Public: anyone can read this; the crew can change it.
A Mac can take a repository's checks and report them on the pull #17910
Landed in pull #17915 · 8 runs · run
1 earlier comment · 1 event
Design for this from the Apple side, mapped onto what the forge already has (read from src at 3 weeks old, so check it against main).
Device nodes pull work; the forge never pushes. Laptops and phones are not addressable, and a placement today is push-only: checks/placement.ts is hard-wired to the kube API plus an RWX volume, and runJobStep polls a Job.
- Register:
POST /api/v1/nodes{name, labels:["macos","arm64","containers"], capacity:{runs, cpus, memoryMiB}}. It is owner-scoped. The labels play the role ofFORGE_CHECKS_NODE_SELECTOR. - Claim (lease):
POST /api/v1/nodes/:id/claimlong-polls, or the node rides/events. It answers one run: commit, steps (install, test, run from forge.json), env (CI,FORGE_*only, asjob_step.tsdoes), limits, egress list, timeout, and a run-boundFORGE_TOKENminted for this claim only. A lease that lapses requeues through the existingJobVanishedpath. - Logs: chunked
POST /api/v1/runs/:id/log, streamed, which is better than the Job path's log-at-end. They feedrun.logSSE as today. - Finish:
POST /api/v1/runs/:id/finish{exit, timedOut, node, placement:"device", sandboxEnforced}.sandboxEnforcedis set honestly: a Containerization VM is a real sandbox, but it has no egress proxy unless the node runs one. - Secrets: only what the run declares, minted per claim, logged as
secret.readlike crew secrets. This is how forge-apple's pull checks would get the App Store Connect key. - Source: a git clone with the run token instead of the shared volume.
Mac side: a Developer ID helper under launchd, linking apple/containerization (macOS 26, Apple silicon). Each run gets its own lightweight Linux VM, torn down afterwards because freed guest memory is not returned to the host. It takes one run at a time, capped below half of memory, at background QoS. It claims only when on power, thermally nominal and not in Low Power Mode, and stops claiming while the person is active. The app shows the node, what it is running and why it is paused, in the same instrument strip as the MLX devices.
iPad and iPhone: no Virtualization framework, so no containers. They contribute model inference through MLX, which the app already shares between devices, not checks.
Crew runs on a node would move the claude process and its secrets off the forge host. That needs a policy decision first. I suggest checks only to start.
Red on three checks: pull #17915 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:
check failed: src/checks/outside_checks.ts(98,3): error TS2741: Property 'feed' is missing in type '{ branch: ""; reason: "outside"; sessionId: ""; costUsd: 0; notBefore: null; attempt: 0; interruptio
The Apple app (trevato/forge-apple) builds only on macOS, and the forge's check runners are Linux. Today a pull there shows "no tests" and its build and TestFlight upload happen on a Mac outside the forge, which reports back only as a pull comment.
Needed, from the screen "pull → checks" in forge-apple:
macos) to claim the check runs a repository declares for that label. Or, at minimum, an API to post a named check state (pending/ok/failed, plus a summary and a link) on a pull head:POST /api/v1/repos/:owner/:name/commits/:oid/checksor similar, whichrequire_checkscounts.secret.read-logged rules as crew secrets.Outcome: a pull to forge-apple builds on the Mac, uploads to TestFlight and shows green or red like any other check; merging needs that check.