updates (#1562-13): a swapped control plane that cannot BOOT is never rolled back — a restore guard outside the process (ADR 0259's open half) #1639
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.
Blocks
Depends on
Reference
Matou/idss#1639
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?
The hazard
ADR 0259 (#1636) makes the gateway restart its own control plane to finish an update, and the restarted process gives the post-swap health verdict and rolls back if it is unhealthy. That covers a new binary that runs but is unhealthy. It does not cover a new binary that cannot boot at all (a panic at start, a missing library, a bad flag): it never reaches
Orchestrator.Resume, so nothing alive can callLander.Restore.Restart=on-failure/RestartSec=5s(internal/clan/vmguest.go) just loops it, and the community's one door stays shut until someone gets a shell on the gateway. GOTCHAS #241 names this: a swap with no rollback bricks the operator's only door.What to build
A guard outside the control-plane process that puts the previous fleet software back when a swapped binary will not start:
*.previouscopies the lander retained exist (internal/fleetland,previousSuffix). A control plane that fails to start for any other reason is left alone — the guard must never "restore" over a healthy install.StartLimitBurst+ anOnFailure=oneshot), or anExecStartPrecheck that counts failed starts since the checkpoint was marked "restart pending". Pick one and say why in the commit.*.previousback over the binary, the agent and the control panel (the same scopeLander.Restorerestores), record in the durable store that the attempt failed at boot so the started process counts it against the ADR 0067 budget and shows U4x (rolled back) with an honest reason, then start the unit.Acceptance
*.previous→ restored and marked; no checkpoint → untouched; checkpoint but no*.previous→ refuses loudly, touches nothing.Live proof can ride a later fire of the #1614 drive (a release C′ whose binary exits 1 at start) — file that leg as a follow-up rather than widening this ticket.
Why it matters when
Not needed for #1614's
appliedleg. Needed before any kept community pins a release channel (#1569, and founding's heldtestingpin) — so it blocks #1562.idss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fireidss-control-plane, so the landed binary never runs and Resume (#1567, GOTCHAS #241) can never fire #1636swarm-claim host=bens-mac-04 run=27974
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1639 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
idss-idp— an IDIP community updates its control plane and runs its founding-day sign-in bridge forever #1689