updates: a community founded from a build AHEAD of the feed has no replay floor — it auto-applies the feed's OLDER release and walks itself backwards #1690
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.
Dependencies
No dependencies set.
Reference
Matou/idss#1690
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?
What
Orchestrator.Poll(internal/update/update.go:354-394) protects against replay/downgrade (#1579) with a per-channel high-water mark. A freshly founded community gets that floor ONLY byadoptOwnReleaseSequence— i.e. only when the feed's newest revision equals the revision stamped on its control plane (#1674: builds stamp the revision, never the signed sequence).If the operator app's payload was built from a commit the rail has not published yet (main HEAD ahead of
testing— true for every laptop/dev build made between rail cuts, and for any commit the rail skipped because main was red), then on the first poll:rel.Revision != current.Revision→ no adoption,current.Sequencestays 0;knows()is false,highWaterFor(channel)is 0 → the floor check is skipped;StateAutomatic(the rail cuts everything aspatch).So the community walks itself backwards onto older code in its first 02:00–04:00 window, unattended, and U1 offers a downgrade as an "update". Observed state today: main
a3513a26, feed5b910ef3(seq 2573), four commits behind.The reverse case is also unhandled: a payload stamped at a commit the rail never published and never will (red main) has no sequence to adopt, ever.
Proposed default (ADR 0174)
Founding must carry a floor of its own, not borrow one from the feed:
assemble-payload.shreads the feed at build time and stampsfounding.ReleaseChannelSequencewith the newest signed sequence whose revision is an ancestor-or-equal of HEAD (it has git; the gateway does not) — so a payload ahead of the feed starts its floor AT the feed's newest and refuses it as stale.current.Sequence == 0and the feed's newest revision is not ours, do not track it as automatic — surface it as pending (human approves) until a sequence is adopted.package-app.shwarns loudly when HEAD is not a revision the pinned channel has served.Workaround used for the Whakatōhea Demo hand re-founding: build the app from a worktree checked out AT the feed's current revision.
Blocks #1562 (a community "deployed from now on" by anyone building off main is exposed). Relates to #1579, #1631, #1674.
Ruled by agent under ADR 0174 — veto anytime: build options 2 and 3 (never auto-track a release while the community has no adopted sequence; loud warning at package time). Option 1 (build-time sequence stamp) is left for a later ticket if 2 proves too quiet. Two-way door: a commit reverts it, the Updates seam tests + #1614 drive prove it.
swarm-claim host=bens-mac-04 run=29329
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1690 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope