coa-builds: bring back the macOS installers — a Mac stage on the new macos-x64 runner (un-pauses ADR 0010) #169
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa#169
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A macOS build runner now exists on the forge, so the macOS installers paused by ADR 0010 can come back. This ticket adds the Mac stage to the Forgejo build in
coa-builds.The runner (proven 2026-09-28)
cherese-macbook-main, labelsmacos-x64andcherese-macbook-main. It is deliberately not in theswarmpool.PATH: Node 22.23.3 / npm 10.9.9, Go 1.25.7, gomobile + gobind (pinned x/mobile), CocoaPods 1.16.2,jq,python3,notarytool.Matou/dev-factoryruns 15697 and 15700 (runs-on: macos-x64), both green.flock.What to build
A Mac job in
coa-builds/.forgejo/workflows/build.ymlwithruns-on: macos-x64that produces the two DMGs the schema already names (packages/schema/src/installers.ts):<slug>-<ver>-mac-x64.dmgand<slug>-<ver>-mac-arm64.dmg, unsigned as before (CSC_IDENTITY_AUTO_DISCOVERY=false), and uploads them to the COA server the same way the other installers go (PUT /api/build-upload/<slug>/<build>/<file>with the sha256 and HMAC headers).Known obstacles in the current script
scripts/forgejo/coa-build.shis Linux-only:linux-amd64; the Mac already has a suitable Go.sha256sumandstat --formatdo not exist on macOS (shasum -a 256,stat -f).ready. The Mac DMGs must therefore be uploaded before that callback, or the callback must wait for the Mac job.The arm64 DMG is a cross-build on this host: the Go backend is
CGO_ENABLED=0and electron-builder accepts--arm64, but any smoke step that executes the bundled backend cannot run for arm64 on an Intel Mac. Run that smoke for x64 only.Reuse the raw
git fetchcheckout the Linux job uses rather thanactions/checkout.Proof
A dispatch of the Forgejo build for the
composite-smokefixture finishes green with both DMGs uploaded, and a real community's page shows working macOS download links instead of "coming soon". A build dispatched while the Mac runner is offline still publishes the three non-Mac installers rather than hanging.Ruled by agent under ADR 0174 (two-way-door doctrine) — veto anytime
Ruling:
ready-for-session(category staysenhancement)The ruling. This ticket adds a
macos-x64Mac stage tocoa-builds/.forgejo/workflows/build.yml(+scripts/forgejo/coa-build.sh),producing the two DMGs the schema already names, unsigned, uploaded via the
existing
PUT /api/build-upload/…HMAC path. It goes toready-for-session,not
ready-for-agentand notready-for-human.Why not
ready-for-agent. The tracker convention filed indocs/agents/issue-tracker.mdis explicit: "Machinery changes (anything under.sandcastle/or.forgejo/) are filedready-for-session, never done inside aworker's PR." Beyond the convention, the acceptance proof needs a live macOS
host runner (id 102
cherese-macbook-main, deliberately outside theswarmpool) and the HMAC upload secret — host creds and a live door an AFK
container worker does not have.
Why this is a two-way door (not
ready-for-human). Revertible: the change isa workflow + build-script edit, undone by a commit; the schema already makes
mac-x64/mac-arm64optional (REQUIRED_INSTALLER_KEYSexcludes them), sonothing downstream breaks if the Mac stage is reverted — absent installers just
render "coming soon" as today. Nothing on the one-way-door list is touched: the
runner and the HMAC upload path already exist (no credential minting), there is
no security widening, no product/scope call, no data destruction, no non-routine
spend. Real builds/releases are involved, which is exactly why it needs a
session, not why it needs Ben.
What proves it. The acceptance drive Ben already wrote: a Forgejo build of the
composite-smokefixture finishes green with both DMGs uploaded, a realcommunity's page shows working macOS download links instead of "coming soon", and
a build dispatched while the Mac runner is offline still publishes the three
non-Mac installers rather than hanging (the callback/prune-timing obstacle called
out in the body).
For the session agent — open engineering points in the body, all resolvable
without a human: the Linux-only
scripts/forgejo/coa-build.shneeds macOSequivalents (
shasum -a 256,stat -f, host Go instead of the linux-amd64download, no Docker/
flock), the desktop+cleanup Docker stages don't apply onthe Mac, the publish "exactly 3 files" assumption must widen, and the Mac DMGs
must be uploaded before the success callback (or the callback must wait for
the Mac job) because the server prunes older builds once a build is
ready. Runthe backend smoke for x64 only — arm64 is a cross-build on an Intel Mac. Reuse
the raw
git fetchcheckout, notactions/checkout.Claimed by an interactive session (Ben's laptop, 2026-09-28) — writing the Mac stage in
coa-buildsnow. Session runners: skip.Mac stage written and proven in proof mode — pull request: Matou/coa-builds#1
cherese-macbook-mainin about 10 minutes (coa-builds run 28,composite-smoke).Still owed for the acceptance proof: the live path — merge to
main, then one real build of a demo community, to see the DMGs uploaded while the build is in flight and listed on its page; and one build with the Mac offline.Applying the state label the prior ruling already called for.
This issue carried a complete ADR-0174 ruling (2026-09-28) concluding
ready-for-session, but the label itself was never applied — the issue still carried onlyenhancement, i.e. no state role, so it read as untriaged. Settingready-for-sessionnow (category staysenhancement).The ruling still holds against the current facts:
.forgejo/(coa-builds/.forgejo/workflows/build.yml+scripts/forgejo/coa-build.sh) —docs/agents/issue-tracker.mdfiles theseready-for-session, never a worker PR; and the acceptance proof needs the livemacos-x64host runner (id 102, outside theswarmpool) plus the HMAC upload secret, neither of which an AFK container worker has.ready-for-human. Revertible by a commit; the schema already makes the two Mac keys optional (packages/schema/src/installers.ts:REQUIRED_INSTALLER_KEYS=linux-appimage, windows, android), so absent Mac installers just render "coming soon" as today. No one-way door touched (runner + HMAC path already exist, no credential minting, no security widening, no product call, no data destruction, no non-routine spend).A session (Ben, 2026-09-28) has already claimed this and opened
coa-buildsPR #1; the live acceptance proof (merge tomain, one real build of a demo community, and one build with the Mac offline) is still owed — so it correctly stays open under a session, not routed to Ben or a swarm worker. Veto anytime.Proven live —
whakatohea-demobuild 13 ships all five installers.The Mac stage landed on
coa-buildsmainas806b67e(pull request 1). First real build after it:cherese-macbook-main— picked up 5 s after dispatch, both DMGs built and uploaded by 00:00:21Zoutcome: successwithmac-x64andmac-arm64beside the other threeapp v0.8.3mac-x64154 MB,mac-arm64148 MB)Against the acceptance proof in this ticket:
composite-smoke) and live run 34scripts/forgejo/tests/coa-build-mac-test.sh, "Mac never took the job"); not yet seen liveStill to do in this repo: ADR 0010 and the schema comment in
packages/schema/src/installers.tsstill say macOS is paused.Close-report — pull request opened, awaiting a human merge (pr-mode).
Ruled by agent under ADR 0002 (two-way-door doctrine) — veto anytime.
The
coa-buildsMac stage this ticket asked for was already written, merged and proven live by Ben's interactive session (2026-09-30 comment above):build-mac.yml(runs-on: macos-x64) builds both DMGs unsigned and uploads them over the signedPUT /api/build-upload/…path before the Linux job's success callback; it landed ascoa-builds806b67e(PR 1) andwhakatohea-demobuild 13 shipped all five installers, both DMGs HTTP 200 from/dl/.The only residue Ben flagged lived in this repo — ADR 0010 and the schema comment still said "macOS is paused". That is what this PR lands.
PR: #181 (
closes #169)What it changes (docs/comment-only, no build code, no behaviour change):
docs/adr/0010-builds-on-forgejo-runner.md— dated un-pause amendment (themacos-x64runner, unsigned DMGs uploaded before the callback, arm64 cross-build so smoke runs x64-only, Mac keys stay optional because the laptop runner may be offline).docs/adr/README.md— the 0010 index line.packages/schema/src/installers.ts— the comment now explains the two Mac keys are optional because the Mac runner can be offline, not because macOS is paused.REQUIRED_INSTALLER_KEYSunchanged so an offline-Mac build still ships the three non-Mac installers.templates/src/community-page.ts— the "coming soon" comment.STATUS.md— header + milestone log (same commit).Commit:
a2ee40f.Proof:
make test(schema 77, templates 20, server 146, site 72, e2e-root 5) andmake typecheckgreen.Remaining acceptance item left as residue: a build dispatched with the Mac offline that still ships the other three — covered by the offline test
scripts/forgejo/tests/coa-build-mac-test.sh("Mac never took the job"), but not yet seen live. Seeing it live needs a real build dispatch, a one-way door under ADR 0002, so it is not ruled here — it is a human/live step.pr-mode: not closing this ticket — the human's merge of PR #181 closes it.
Ruled by agent under ADR 0174 — veto anytime.
Ruling: state →
ready-for-session. The ticket carried onlyenhancementand no state role, so it read as untriaged again — the same label-drop the prior rulings (2026-09-28 / 2026-09-29) corrected once already. Restoring the state the established ruling concluded.Why it stays
ready-for-session(notready-for-human, notready-for-agent): the substantive Mac stage already shipped and was proven live (coa-builds806b67e,whakatohea-demobuild 13, all five installers HTTP 200). The residue is PR #181 (closes #169, docs/comment-only un-pause of ADR 0010) awaiting a routine human merge, plus the one still-unseen-live acceptance item — a build dispatched with the Mac offline still shipping the other three. That is a live door (a real build dispatch with host standing), which the label table assigns to a session — "not Ben" — not a product/judgement one-way door.Why it's a two-way door: restoring a label is revertible and touches no credential, posture, or spend. What proves it:
docs/agents/issue-tracker.md(live doors / host creds →ready-for-session), the open PR #181, and the offline-Mac coverage inscripts/forgejo/tests/coa-build-mac-test.sh.Ruled by agent under ADR 0174 — veto anytime.
Label applied:
ready-for-session(categoryenhancementunchanged). The established ruling (2026-09-28 / -29) concludedready-for-session, and today's close-report confirmed it; the state label was dropped again, so the ticket re-surfaced as untriaged on state. Applying it now.The substantive Mac stage already shipped and was proven live (
coa-builds806b67e,whakatohea-demobuild 13 — all five installers HTTP 200). The residue in this repo is PR #181 (closes #169, docs/ADR-0010 un-pause + schema comment;REQUIRED_INSTALLER_KEYSunchanged, so the form contract is untouched), plus one still-unseen-live acceptance item: a build dispatched with the Mac offline still shipping the other three.Why it's a two-way door (session, not Ben): that last item is a live door — a real build dispatch needing host standing — which the label table assigns to a session, not a product/judgement one-way door; restoring a label is revertible and touches no credential, posture, or spend. What proves it:
docs/agents/issue-tracker.md:50(live doors / host creds →ready-for-session), the open PR #181, and the offline-Mac coverage inscripts/forgejo/tests/coa-build-mac-test.sh.Ruled by agent under ADR 0174 — veto anytime.
Ruling: state →
ready-for-human(categoryenhancementunchanged), correcting the priorready-for-sessionruling on this ticket.Why the change.
ready-for-sessionis not terminal here and provably loops. The substantive Mac stage already shipped and was proven live by Ben's session (coa-builds806b67e,whakatohea-demobuild 13 — all five installers HTTP 200). The only in-repo residue is PR #181 (closes #169), a docs/comment-only un-pause of ADR 0010 (REQUIRED_INSTALLER_KEYSunchanged, form contract untouched); it is open and green (make test/make typecheck). By design, a pr-mode ticket with an open agent PR is "handed to review": the session runner deletesready-for-sessionand adds nothing (.sandcastle/session-runner.sh:413-415/:660-663, "#302"). Each triage run then re-reads the stateless ticket as untriaged and re-adds the label; the runner drops it again (this issue's timeline: added 15:11Z, 15:39Z; removed 15:49Z). Re-adding it would only restart the loop.## Why human. Two residues, both human: (1) merge the docs-only PR #181; (2) one still-unseen-live acceptance item — a build dispatched with the Mac runner offline that still ships the other three installers (covered by the offline test
scripts/forgejo/tests/coa-build-mac-test.sh, "Mac never took the job", but not yet seen live). Item (2) is a live door — a real build dispatch needing host standing — so it is a human/session step, not a swarm-worker one. Proposed default: merge PR #181 as-is to close the in-repo residue; optionally dispatch one offline-Mac build when convenient to close the last live acceptance item (the offline test already covers the behaviour, so this is confirmation, not a blocker).Why relabelling is itself a two-way door: a label change, fully revertible, touching no credential, posture, or spend. What proves it:
whakatohea-demobuild 13 (five installers HTTP 200), this issue's label-churn timeline, the offline coverage inscripts/forgejo/tests/coa-build-mac-test.sh, and.sandcastle/session-runner.sh:413-415/:660-663.