session: coa-builds workflow — clone matou-app@tag, fetch kit, build 5, release, HMAC callback (phase-3 plan Task 12) #80
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
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/coa#80
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?
Plan
docs/superpowers/plans/2026-08-31-coa-phase-3.mdTask 12 (repomatou-collective/coa-buildson GitHub — ADR 0004: a thin build repo, not a fork).Deliverable
.github/workflows/build.ymlexactly as in the plan (jobskit→desktopmatrix mac-x64/mac-arm64/linux/windows +androidon ubuntu-latest →release(Releasecoa-<slug>-v<N>, five assets, signed success callback) +failed(signed failure callback));MATOU_APP_REF;fixture/kit.json(=FIXTURE_KIT) +fixture/logo.svg; README.Acceptance
gh workflow run build.ymlwith the fixture kit produces a Release with exactly five assets namedngati-example-<version>-{mac-x64,mac-arm64}.dmg,-linux.AppImage,-win.exe,-android.apk; AppImage smoke step green; the callback body (tohttps://httpbin.org/postbefore COA is deployed) parses withBuildCompleteSchema; run URL recorded here.depends_on
BUILD_WEBHOOK_SECRET, keystore, tag)out_of_scope
Apple/Windows signing; auto-update feed.
matou-app tickets this workflow consumes: Matou/matou-app#237, Matou/matou-app#238, Matou/matou-app#239, Matou/matou-app#245
Progress (session, 2026-09-01)
MATOU_APP_REF,fixture/, README committed tomatou-collective/coa-buildsmainat803ff5a— https://github.com/matou-collective/coa-buildsjqdoes parse withBuildCompleteSchema; theopenssl dgst -hmachex equals Node's HMAC andverifySignatureaccepts it (x-coa-signature: sha256=<hex>).raw.githubusercontent.com/matou-collective/coa-builds/main/fixture, callback to httpbin. Outcome to follow.Deviations from the plan text (all toward matou-app's proven
.github/workflows/build.yml): Go frombackend/go.modnot a pinned 1.21; Android toolchain cached; release APK viascripts/android/build-release-apk.shwhen present (kit plan Task 9) elsebuild-aab.sh+gradlew assembleRelease(what matou-app CI does today);kit:apply --no-iconsuntilicons.mjsexists (kit plan Task 2, matou-app #238); success-callback asset URLs derived from the real filenames rather than assumed names (before kit plan Task 3 the artefacts are stillmatou-<version>-…).MATOU_APP_REFismainuntil door 18a-v writesv0.5.0.Prove run 1 — https://github.com/matou-collective/coa-builds/actions/runs/33458744257 (matou-app
main@ ff34cad,MATOU_APP_REF=main)kitraw.githubusercontent.com/…/fixture, slug/build checks, matou-app checkout, artifactdesktop mac-x64matou-0.4.1-darwin-x64.dmg(146 MB)desktop mac-arm64matou-0.4.1-darwin-arm64.dmgdesktop windowsmatou-0.4.1-win32.exedesktop linuxmatou-0.4.1-linux.AppImage, 154 MB); my smoke ransquashfs-root/AppRunwithoutAPPDIR→/matou: No such file. Fixed in coa-builds1fc3d2a(--appimage-extract-and-run).androidnpm ci, kit apply, gomobile.aarall green;assembleRelease→ AAPT'org.matou.coa.ngati-example'is not a valid package name. matou-app bug → Matou/matou-app#262 (apply-kit must map-→_inandroidApplicationId).releasefailedoutcome:"failure",slug,build:1,runUrl, "error": "workflow failed: kit=success desktop=failure android=failure release=skipped" — headerX-Coa-Signature: sha256=…present. Failure path proven end to end.Findings for the plan / companion plan
${platform}yieldsdarwin/win32, so the installer names are…-darwin-x64.dmg/…-win32.exe, not the-mac-x64.dmg/-win.exethe plan text and@coa/schemaFIXTURE_ASSETSassume. If kit plan Task 3 (matou-app #239) wantsmac/win, itsartifactNamemust use${os}. The coa-builds success callback derives asset URLs from the real filenames, so either naming works for COA.MATOU_APP_REF=mainbuilds a kitted app on four platforms today; only Android is blocked, by #262.Run 2 (smoke fix) queued behind run 1 in the
build-ngati-exampleconcurrency group: https://github.com/matou-collective/coa-builds/actions/runs/33459061877 — expected: linux ✅, android ❌ (same #262) until the fix lands, then run 3 for the five-asset Release.Also filed Matou/matou-app#261 — factor matou-app's build steps into composite actions so coa-builds stops carrying a copy of the recipe (after
v0.5.0+ coa #81).Prove run 2 — https://github.com/matou-collective/coa-builds/actions/runs/33459061877 (coa-builds
1fc3d2a, matou-appmain@ ff34cad)kit✅ ·mac-x64✅ ·mac-arm64✅ ·linux✅ (AppImage smoke green with--appimage-extract-and-run) ·windows✅ ·android❌ same AAPT error (org.matou.coa.ngati-example) ·releaseskipped ·failed✅ (signed failure callback accepted).So the workflow is proven on everything except the Android package-name bug in matou-app. Fix is up as matou-app PR #263 (Matou/matou-app#263,
closes #262;test:script5/5; default-kit outputs regenerated). Forgejo push-mirrorsmainto GitHub on commit, so once #263 lands, run 3 with the same inputs should reachreleaseand post the success callback. Waiting on itsci / checks+pr-e2e.matou-app PR #263 merged (
374cacf,closes #262;ci / checks6m31s +pr-e2e52s green) and Forgejo's push-mirror already carriedmainto GitHub.Prove run 3 dispatched: https://github.com/matou-collective/coa-builds/actions/runs/33461616596 — same fixture inputs,
MATOU_APP_REF=mainnow containing the Android fix. Expectingreleasewith five assets + the signed success callback.✅ Acceptance met — https://github.com/matou-collective/coa-builds/actions/runs/33461616596 (green end to end)
Release
coa-ngati-example-v1— exactly five assets:mac-x64matou-0.4.1-darwin-x64.dmgmac-arm64matou-0.4.1-darwin-arm64.dmglinux-appimagematou-0.4.1-linux.AppImagewindowsmatou-0.4.1-win32.exeandroidngati-example-0.4.1-android.apk--appimage-extract-and-run).:app:validateSigningReleaseran, no unsigned warning;versionCode=1 versionName=0.4.1from the dispatchbuild+ matou-app version).X-Coa-Signature: sha256=c1040182…; the echoed body was fed toBuildCompleteSchemalocally → parses,assetskeys exactlymac-x64,mac-arm64,linux-appimage,windows,android.failedjob posted a validoutcome:"failure"body withrunUrland a job-resulterror.Repo state:
matou-collective/coa-buildsmain—build.yml,MATOU_APP_REF(main; door 18a-v writesv0.5.0),fixture/kit.json+logo.svg, README. Recorded in coa405ceef(STATUS + an As built note on plan Task 12).Two notes for whoever runs #81:
ngati-exampledesktop artefacts are still namedmatou-…because kit plan Task 3 (matou-app #239,artifactBasefrom the kit) hasn't landed — the callback derives asset URLs from the real filenames, so this is cosmetic, but the community page will showmatou-…links until #239 does.gh release delete coa-ngati-example-v1 --cleanup-tag --repo matou-collective/coa-builds) —build=1can't create an existing tag. It's left in place for now as the #80 evidence.Deliverable is complete and proven (comment above). Left open deliberately: Forgejo refuses the close with
412because this issue is registered as blocked by #79, whose doors 18a-v (tag matou-appv0.5.0→MATOU_APP_REF) and 18b (approve the first realcoa_sharedrun + dispatch) are still open. Close this together with #79; the only coa-builds change those doors imply is writing the tag intoMATOU_APP_REF.Closing on the phase-3 end-to-end proof (Ben ruled 2026-09-04): deploys live on
matou, matou-smoke builds 1–2 + the fresh ngati-example chain all proven (submit → tenant → dispatch → run 33858085607 → Release coa-ngati-example-v1 → ready flip → installers-ready email delivered). Full record: STATUS.mdd18adac+ the proof comment on #81.