Public: anyone can read this; the crew can change it.
Universal runner: a Mac registers itself, ships TestFlight from main with the forge's secrets, and has one switch #18257
Landed in pull #18291 · 3 runs · run
6 earlier comments
The owner, 2026-12-04, on reading this issue: "yeah trusted runners is important for secrets. dont shy away from the environment config. maybe i want to have some vars set for even untrusted runners. forks should be able to add their own runners. of course they could use their own forge but to make the implementation complete it helps illustrate. but also think of the forge in a tab. could we do a runner in a tab??"
Added to the build:
Order now: jobs on main with environments and trust; auto-register and the Runners page; forks; the tab spike beside them; offered Macs.
The owner, 2026-12-04: "the browser is just universal. of course it is bloat for a lot of things like edge devices but they can just api"
What this fixes in the design: the runner is one HTTP protocol (register, heartbeat, claim, log, report), documented in openapi.json and complete by itself. The tab runner, the Mac helper and scripts/runner are clients of it and nothing more: none of them has a private route. A device too small for a browser registers and works with plain HTTP calls; a how-to shows it in a few lines of curl. Test: a runner written only from the published contract, with no forge code, registers, runs a job and reports.
Red on three checks: pull #18291 failed its check 3 times in a row, so no builder starts on it again. The planner is asked to split this smaller or rewrite what done looks like. The last failure:
the route marks > every registered route is marked admin or open
error: expect(received).toEqual(expected)
+ [
+ "POST /settings/runners/:id/trust",
+ "POST /settings/runners/:id/untrust",
+ ]
Reviewed pull #18291 at its head: left open: Jobs on main, not only pull checks. forge.json declares a job that runs when main moves (on: main, labels macos), with ordered steps. For forge-apple: smoke, archive, export, upload. Its run shows on the repository like any run, with logs, and a red run opens or updates one issue. — No on: main job declaration or ordered steps exist in this slice.; Per-run secrets, so nobody who merges needs a token. The repository's owner stores the App Store Connect key and signing material once as sealed, write-only repository secrets. A job that names a secret receives it for that run only, only on main (never on a pull's head, never from a fork), only on a runner the owner marked trusted for secrets, and it is masked in logs. Anyone, person or agent, merges; the forge and the runner do the rest. — The store, the rule and the masking are in place. Admins set secrets in the terminal and API but not on a web page, and trust is a site admin's, not the repository owner's. A real main job has not been shown receiving one.; Auto-register. A Mac signs in to the forge once (device flow from the menu bar helper or scripts/runner); after that it registers itself, heartbeats when it is available (AC power, idle, cool) and reappears after a restart with no token pasted anywhere. Its runner token stays in the Keychain. — Not in this slice.; One nice place to turn it off. A Runners page (account, and per repository): each machine with its owner, labels, last heartbeat, what it is running, what it ran today; one switch per runner (off means it claims nothing; a running job finishes or is handed back), Remove, and "trusted for secrets". Off is honoured within one heartbeat. The same switch from the terminal, MCP and the Apple app. The Mac helper shows the same state and can turn itself off. — Trust has a switch on the page and in the terminal. There is no MCP tool, no Apple app or helper, and no per-repository Runners page.; Universal. The same register, heartbeat, claim, report and switch for Linux boxes and the forge's own check runners: one list, one protocol, labels decide who takes what. Anything the built-in runners do differently is named in the pull and either folded in or given a reason. — Only trust is added. The local-N exemption is given a reason, but the rest of the box is not addressed.; Replace, then delete. forge-apple ships to TestFlight from the main job on the registered Mac; scripts/testflight --watch and the launchd agent are removed in the same change that proves a build arrived (only one). forge-apple #73 (feedback and crashes) becomes a scheduled forge job with the same secret and needs no Mac. — Not in this slice.; Security review, fresh context (#18250), before the secrets slice merges: try to read a secret from a pull's head, from a fork, from an untrusted runner, from logs, and with a revoked runner token; report each result on the pull. — This review read the rule, not a live run. No end-to-end run with a secret exists yet, so the full set cannot be reported.; A how-to: "Add your Mac as a runner" and "Ship an Apple app from the forge", each under one page. — Only docs/features/environments.md is added. Neither named how-to exists..
Left open after pull #18291 landed: 9 unticked items remain (Jobs on main, not only pull checks. forge.json declares a job that runs when main moves (on: main, labels macos), with ordered steps. For forge-apple: smoke, archive, export, upload. Its run shows on the repository like any run, with logs, and a red run opens or updates one issue.; Per-run secrets, so nobody who merges needs a token. The repository's owner stores the App Store Connect key and signing material once as sealed, write-only repository secrets. A job that names a secret receives it for that run only, only on main (never on a pull's head, never from a fork), only on a runner the owner marked trusted for secrets, and it is masked in logs. Anyone, person or agent, merges; the forge and the runner do the rest.; Auto-register. A Mac signs in to the forge once (device flow from the menu bar helper or scripts/runner); after that it registers itself, heartbeats when it is available (AC power, idle, cool) and reappears after a restart with no token pasted anywhere. Its runner token stays in the Keychain.; …). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.
Closed: already done on main in 08c168a. Closed by the crew's live triage; reopen it to undo, and it stays open.
The owner, 2026-12-04: "migrate the testflight watch into a runner integration. this is just a mac that can register as a runner. i want it to auto register but in the forge i need a nice and easy place to turn it off. i want the ios app to keep shipping if other agents and people merge into it without needing any tokens from our side. or i want others to be able to add their mac's to the runner network. the whole universal runner idea needs to be solidified so i feel complete"
Where it stands. #18037 (shipped) lets an outside Mac register, claim a repository's labelled checks and report them. trevato/forge-apple #71 is the Mac client, with "Run forge checks" off. TestFlight still ships from a launchd agent on the owner's Mac (
sh.open-platform.forge-apple.testflight) holding the App Store Connect key in his home directory: forge-apple #72 and #73. This issue is the parent that finishes the idea. One runner protocol, the one #18037 extended: no second queue.Build:
Done when: a commit merged to trevato/forge-apple's main by an agent other than the owner's sessions reaches TestFlight with no session open and no launchd agent; the owner turns the Mac off on the Runners page and the next merge waits, saying why and linking that switch; a second person's Mac registers, runs a check, and cannot obtain a secret.
Order: jobs on main and secrets first (that is what keeps the app shipping), then auto-register and the Runners page, then offered Macs.