updates: the first stable promote cannot work — it drops idss-idp, reports success on a 409 while the production-signed feed never publishes, and nothing can serve stable (fix + prove publish.sh promote before the production key is minted) #1971
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#1971
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?
Parent: #1562 — contract: ADR 0248 (decision 3 + amendments), ADR 0185, ADR 0068; rail built under #1578
What's true today (read on
main@be126a6b, 2026-09-28)The
testinglane is live and proven. Thestablehalf of the rail —scripts/release-rail/publish.sh promote <revision>— has never been run, has no test (scripts/tests/release-rail-test.shnever names it), and cannot work as written. #1562's last step is Ben minting the production release key and running the firststablepromote; the first run must not be the one that finds these.promote()downloadsart-control-plane,art-control-panelandart-agentand neverart-idss-idp, and callsrelease-cutwithout--idss-idp.publish()has carried the bridge since #1689. Astablerelease would have three artifacts where itstestingsource has four, so an IDIP community onstableruns its founding-day bridge forever — #1689 again, one channel over.promote()ends withpublish_tree "$tree" "$rev" "stable", which uploadsfeed.jsonand theart-*files to registry version$revofidss-fleet-release— the version thetestingcut of that revision already holds. Forgejo answers 409 for every file;put()logsalready present … (409) — idempotentand returns 0. The registry keeps thetestingfeed, the script logspromoted … onto stable. For the artifacts the 409 is harmless (same bytes). For the feed it is a false green: the production-signed manifest never leaves the machine.stable.pull.shfollows ONE channel (RELEASE_CHANNEL, defaulttesting) with ONE pinned key, andpublished_versionstakes the newest version of the package whatever channel cut it. There is no way for a second pull instance to find "the neweststablerelease", and the unit files + README describe a single instance.https://get.idss.nz/channel/stable.jsonis 404 today (correct), and would stay 404 after a promote.What to build
testingfeed of<revision>(the way_download_verify_installdoes), verify that feed's signature and every artifact digest against thetestingpublic key BEFORE re-signing — promote must never put the production signature on bytes it has not verified — and pass each role through torelease-cut --channel stable --promote. A role the source carries and promote cannot fetch is a refusal, not a smaller release.stablegets its own home in the registry. Proposed default (two-way door, ADR 0174 — the worker may rule otherwise and say so): a second generic package,idss-fleet-release-stable, one immutable version per promoted revision.testingversions stay untouched;published_versionsworks per package unchanged.put()compares the remote file's sha256 with the local one: equal = idempotent, different = fail loudly, non-zero exit. No path may logpromotedunless the registry holds the production-signed feed; promote reads it back and verifies it against the production public key before it says so.pull.shtakes its channel, package, public key and pin file from its environment so a second instance can followstablebeside thetestingone without sharing state (RELEASE_PINis per channel). Stage an instanced unit (or a second unit pair) + env-file template and the README install steps for thestableinstance. The install on the droplet stays Ben's — see below.stable's signed sequence must advance per channel (#1579's high-water mark). Keepgit rev-list --count <rev>; refuse a promote whose sequence does not advance the servedstablefeed's.scripts/release-rail/README.md(promote ritual + stable pull install), ADR 0248 amendment for the registry home, architecture 11's rail diagram, a GOTCHAS entry for the 409-as-success trap, STATUS.md.Out of scope
stablepull instance on the droplet — Ben's hands, tracked on #1562.stable, and moving atestingcommunity onto it — a later ruling (ADR 0248 decision 3, 2026-09-18).Acceptance
Offline, scripted against a local fake registry (the way
scripts/tests/bootstrap-reseed-test.shandrelease-rail-test.shprove the rest of the rail), signing with throwaway keys generated in the test — never the committed TEST key as the "production" key:testingrevision carrying four artifacts, Whenpromote <rev>runs with a throwaway production seed, Then thestablefeed names the same four roles with the same sha256 digests, and verifies against the throwaway production public keytestingversion of<rev>is byte-identical to before — feed and artifactstestingfeed whose signature or any artifact digest does not verify, Then promote refuses before signing anythingtestingrevision whoseidss-idpartifact cannot be fetched, Then promote refuses; it never cuts a three-artifact release from a four-artifact sourcestablefeed's, Then it refusestesting,stable) over one artifacts dir, When a newertestingrelease is published, Then onlychannel/testing.jsonadvances; When a promote lands, Then onlychannel/stable.jsonadvances, verified against thestablekey; astablefeed signed by thetestingkey is refused and the previous release stays servedrelease-rail-test.shchecks stay green;publish(thetestingpath) is unchanged in behaviourNotes
docs/GOTCHAS.mdfirst — #221/#251 (wrong-200 fall-through), #123 (publish jobs starved by cancelled runs), #255 (download caps).--channel stable(release-cutguard); nothing here gives a runner a path tostable.promotewas not executed.swarm-claim host=bens-mac-04 run=35217
(automated multi-host claim — lowest live claim id works this ticket)
swarm-claim host=matou-dev-server-01 run=35217
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1971 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope