Public: anyone can read this; the crew can change it.

Owner decision: where do a pull's checks run on a Mac, away from the machine that holds signing keys #18543

opened this

Merged 2h 48m ago, live in production

mason/forge:mason/18517-owner-decision-where-do-a-pull-s-checks → main 0 commits fork 4 threads · 4 unresolved

  • Merged. mason/18517-owner-decision-where-do-a-pull-s-checks was merged into main as 5061124.

Review

Sign in to review this change.
1 file changed +21 −5
docs/designs/compute-leaves-the-forge.md +21 −5
@@ -56,7 +56,8 @@ says so.
5656
5757 **A job** is: a commit (fetched from the forge's git door with a short-lived token), a recipe
5858 (the repository's own `forge.json` check steps), the cache keys it may read, a time budget, and
59 the secrets the repository was granted for that kind of run and nothing else.
59 no secrets. A secret that signs or ships (signing keys, store credentials) stays in the forge and
60 is used by the forge, never handed to a runner; a job receives only its short-lived git token.
6061
6162 **Running.** The same cell the forge uses today (bubblewrap on Linux; a container or the system
6263 sandbox on macOS, with the honest note that a Mac result is for macOS-compatible steps: a check
@@ -66,8 +67,23 @@ with the test list it ran and kept.
6667 **Trust.** A result is signed by the runner's key and recorded with who ran it. Three classes:
6768 the forge's own machine (trusted); a runner the owner enrolled (trusted for that owner's
6869 repositories); anyone else's (its green is evidence, and the landing gate re-runs on a trusted
69 runner). A pull from a stranger never runs on a runner that holds anyone's secrets: the outside
70 lane the forge already has.
70 runner). A runner holds no one's secrets, so trust decides whose green counts, not who sees secrets;
71 a pull from a stranger still runs in the outside lane the forge already has.
72
outdated

This replaces the secrets model, but the A job definition (line 58-59), Trust (line 69) and Risks (line 147) still say jobs get granted secrets and secrets go to trusted runners. Reword them in this pull so the doc has one answer.

73 **Signing keys (owner's decision, 2026-12-06, #18517).** Where a pull's checks run on a Mac, away
74 from the machine that holds signing keys, is answered by taking the question away: no runner holds
75 signing keys, and a runner should not see the secrets of the job it runs, ideally nothing at all.
76 Not a VM, not a second macOS user, not a second Mac: the keys are sealed into the forge. The next
77 step is a spike (#334, P17 line 5a): an archive built unsigned on a Mac, then signed and sent to
outdated

'Stay where they are' names no machine, and 'proves out' has no exit. Name the keyed machine, define the spike's done (unsigned archive built on the Mac, signed and uploaded by the forge, no key on the Mac), and say what happens to Mac pull checks in the interim.

78 TestFlight by the forge.
79 *Proves out* means the spike's exit: an unsigned archive is built on a Mac, then signed and
80 uploaded to TestFlight by the forge, with no key on the Mac. When that has run once, this
81 paragraph's interim lines below are retired.
82

Non-blocking: trailing space, and the next line starts a new paragraph with no blank line before it. Put a blank line here.

83 *Interim, and open.* Until then, the landing job (TestFlight, main only) stays on the keyed Mac
84 that runs it today, with its launchd watcher. Pull checks on a Mac are not moved away from it:
85 they wait for the spike, and the accepted risk is that any Mac pull check that does run runs on
86 the keyed Mac. #18517's question is closed for the long run, not for the interim.
7187
7288 **Losing a runner.** A job has a lease. A runner that goes silent loses the lease and the job is
7389 queued again without counting as a try (the rule that now holds for restarts).
@@ -116,7 +132,7 @@ the seed of that), and that is a tier, not a redesign.
116132 +-------v--+ +-----v-----+ +-----------+
117133 | runner: | | runner: | | runner: | checks, crew runs, looks;
118134 | its own | | a pool | | the Mac, | join and leave freely;
119 | machine | | (hosted) | | when able | sandboxed; no secrets it was not given
135 | machine | | (hosted) | | when able | sandboxed; no secrets at all
120136 +----------+ +-----------+ +-----------+
121137 ```
122138
@@ -137,7 +153,7 @@ forge is small and always there; the work it asks for happens wherever there is
137153 ## Risks
138154
139155 - **Security is the whole game.** A runner executes untrusted code and holds a token. Scope every
140 token to one job; give secrets only to trusted runners; treat a volunteer runner's green as
156 token to one job; give secrets to no runner (what signs or ships stays in the forge); treat a volunteer runner's green as

Non-blocking: this line is longer than the file's wrap width; rewrap.

141157 evidence, never as proof.
142158 - **macOS is not Linux.** The forge's checks assume Linux cells. The Mac can run the large share
143159 that is plain `bun test`; the rest stays on Linux. Do not chase parity.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs