Coa app updates — server half: -build.N installers, the latest*.yml feed files, /dl/<slug>/current, CORS on status.json (coa #140) #170
No reviewers
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.
Dependencies
No dependencies set.
Reference
Matou/coa!170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/app-updates-spec"
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?
Builds coa #140 (spec
docs/superpowers/specs/2026-09-30-coa-app-updates-design.md, plandocs/superpowers/plans/2026-09-30-coa-app-updates.md, both in this branch). The server half of Coa app updates: community desktop apps will self-update on Windows/Linux through electron-updater's generic feed at/dl/<slug>/current/, and Mac/Android apps readstatus.jsonfor an update notice.Server changes (Tasks 1–3 + the final-review fix):
PUT /api/build-upload/:slug/:build/:filenameaccepts the coa build version shape<matou-app version>-build.<N>in installer names, and exactly two update-feed files,latest.ymlandlatest-linux.yml(answered{url, feed, bytes}; never listed as assets). Everything else is still refused./api/build-complete,InstallerStore.promotepoints<slug>/currentatv<build>— a relative symlink swapped atomically through a.current-*temp link. Prune runs only after a successful promote, so a failed promote never deletes the buildcurrentstill serves.GET /c/:slug/status.jsonanswersAccess-Control-Allow-Origin: *(production gets the same from Caddy — mds PR #23).Tests: server suite 21 files / 140 tests,
tsc --noEmitclean.Rollout (spec §5, in order): 1. merge + deploy this (coa GOTCHAS 17); 2. merge mds #23 and run the playbook
-t coa; 3. merge matou-app #724 and cut a release; 4. merge coa-buildssession/coa-app-updatesWITH theMATOU_APP_REFbump to that release in the same PR; 5. first updater build on whakatohea-demo. Each step is harmless without the next. Two rulings are owed before step 5 on a re-founded slug (see the final review in the SDD ledger): a slug release resets the build number to 1, and whether pre-feature matou-app refs stay buildable.🤖 Generated with Claude Code
Pushed
10045f2(Task 12, Ben's ruling on the final review's I2): the per-community build number now survives a slug release — the installer store keeps a per-slug high-water mark in<installers-root>/.builds.json(installers volume, outside the checkout),startBuildcontinues from it,removeAllleaves it alone. So a re-founded community's installed apps still see every rebuild as newer. Spec §2 + STATUS amended. Suite 146/146, tsc clean. I3 ruled by Ben: pre-feature matou-app refs are no longer buildable by coa-builds; rollback = manual install.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.