rolled-back: C crash-loops with nothing to restore it; Updates stays pinned to applied #1646
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#1646
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 failure
Drive
20260920T011806Z(targetupdates, commit7c22d31e) red at leg 5 of 5.artifacts/verdict.json:artifacts/legs.json:The leg spent its whole 18-minute budget (1083037 ms) waiting on a door that could never open.
What actually happened
1. The window the previous leg opened was still wide open. The drive's own fixture, quoted in
artifacts/journey.updates-.../error-context.md:169-171:with its comment (
:160-168): "the scheduler re-reads the window each tick against its ownclock.Now(),Window.Contains, and starts the rollout on the next tick — within 5 minutes, #1614's finding". Theappliedleg opened that bracket and nothing narrowed it.2. So the scheduler rolled C out on its own tick, before the leg ever reached the U5 door. Leg timings put
appliedending ≈01:53:09 androlled-backrunning 01:53→02:11:12. The crash loop back-extrapolates to ≈01:57:22: restart counter 76 at 02:03:56 and 160 at 02:11:17 (logs/guest-system-journal.log:2,:353) is 84 restarts in 441 s = 5.25 s each, so counter 1 lands ~394 s before 02:03:56. That is ~4 minutes into the leg — exactly the "next tick, within 5 minutes" the fixture comment predicts. No operator action was involved.3. C's control plane dies at start, by design.
state/updates-work/C/control-plane.src/main.go:4. Nothing rolled it back.
logs/guest-control-plane.log:197and the lines after it — the last before harvest:160 restarts over ~14 minutes and no restore.
logs/guest-resources.log's 02:11 process table carries kanidm, caddy andidss-agent report— no control-plane process at all. Norollback/canary/health/restoreline appears anywhere in the harvested guest logs. The leg is named for the fleet rolling itself back (RELEASE_Cnotes,error-context.md:130: "C ships a control plane that fails its health check, so the fleet rolls itself back (#1576)") — but the restorer lives inside the process that just died, so a release that fails at start takes its own rollback with it.5. With the control plane gone the panel froze, and the leg reported the frozen screen. The Updates surface kept its last render (
applied) for the remaining 14 minutes, so the gate message names the wrong thing: the U5 door was not slow, the seam behind it was dead.The suspected layer — three, separable
logs/healer-claude.outrecords this as the gapda89695e(#1639, ADR 0259's open half) closed on main, after this drive's commit7c22d31e. I could not verify that commit — the repo is outside this session's sandbox — so it stands as the healer's claim, with the next drive as its live proof.logs/healer-claude.outreports this fixed atddf57660(poll throughrefreshUpdates;describeSurfacenow names the error state). Same caveat — unverified from here.RolloutState()serveslastRolloutwithretainRolloutas its only writer and no clear/expire, and the Applied/RolledBack/Refused branches win overUpToDateScreen/UpdatesScreen— only U1/U1x/U3x carryopen-policy. So after any applied update the U5 door is unreachable, which is precisely the gate this leg died on. The healer refused it as a one-way UI-contract decision.logs/guest-system-journal.logstarts atSep 20 02:03:51— the line-capped harvest kept only the last ~7.5 minutes, all restart churn, discarding 41 minutes of drive history.logs/guest-failed-units.logreads0 loaded units listedbecause a unit withRestart=never entersfailed, so the failed-unit probe is structurally blind to the exact failure this drive exists to produce. Andlogs/guest-journal.log, despite the name, is the host'sidss-guest.servicejournal and ends atSep 20 01:22:31("Welcome to GRUB!").Not the known frontier
This is not the pairing / own-VPS carrier frontier.
artifacts/legs.jsoncarries"skip": 0— no skipped legs and no skip reasons at all — and no pairing leg. This is the Updates-lane drive ("target": "updates",journey.updates.spec.ts, #1618), which reds four legs before pairing comes into scope.No live box
No live-box section was appended to this task and no
artifacts/live-box.jsonexists, so everything above is from the harvested logs. The namedlogs/droplet-journal.txtis absent too: this run is VM-mode (ADR 0056 —logs/guest-unit.log:idss-guest.service - IDSS VM-mode guest), not a droplet, so the guest record islogs/guest-system-journal.log. Also absent:state/founding-state.json(logs/founding-state.log: "No such file or directory") andstate/logs/(logs/state-logs.log: ENOENT).What plugging it needs
docs/ux/flows/p4b-updates.mermaidgives U4 one out-edge, to monitoring, with no U4 → U1; the U4 wireframe carries onlyopen-logs). This is whyconfidentis false: the headline defect is real and located, but an agent cannot pick between those two without a ruling.rolled-backproves what acceptance clause 3 claims — the operator's own U5 door starting the rollout — instead of losing the race to a scheduler tick on a window the previous leg left wide.--failedprobe with one that catches restart-looping units (systemctl list-units --state=activating,auto-restart, or non-zeroNRestarts).da89695e+ddf57660before treating the first two bullets of the layer list as still-live; both are claimed fixed and neither was verifiable from the run directory.drive
20260920T011806Zred atrolled-back:leg rolled-back was waiting on the U5 policy door (open-policy) to open the maintenance window — the Updates surface showed instead: applied ([data-field="what-happened"])evidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T011806Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRouting →
ready-for-human(one-way UI-contract ruling), with the decoupled two-way part landed.I diagnosed the three layers on this ticket against HEAD and acted only on the revertible, provable one. Summary of findings and what changed:
Verified against the repo
da89695e) IS onorigin/main— a swapped control plane that exits non-zero at start is now rolled back by an out-of-process guard. It landed after this drive's commit7c22d31e, so this red genuinely pre-dates the root-cause fix (the healer's claim, now confirmed from the tree).ddf57660, which does not exist as a commit — but its content is present regardless:waitForScreen/refreshUpdatesre-mount the surface each poll anddescribeSurfacenames the error state (app/tests/e2e/fixtures/updatesDrive.ts). So the 18-minute "re-asked one frozen render" behaviour is not reproducible on a re-drive.Orchestrator.RolloutState()(internal/update/rolloutview.go:112) returnslastRolloutwhenever it is non-nil;retainRolloutis its only writer and there is no clear/expire anywhere. So after any applied / rolled-back / refused rollout the surface is pinned to U3/U4/U4x and the U5 maintenance-window door — which lives only on U1/U1x/U3x — is unreachable. That is exactly the door this leg died waiting on.Landed here (two-way, ruled under ADR 0174)
a3b86ea2— the crash-loop no longer eats its own record (app/tests/e2e/fixtures/evidence.ts):guest-system-journalnow harvests the whole boot (journalctl -b) instead of a-n 500tail — a VM-mode guest (ADR 0056) boots once per drive, so-bis "since the drive's start". This drive kept ~7.5 min of restart churn and discarded the 41 minutes that held the fault.guest-failed-unitsnow catches restart-looping units (systemctl list-units --state=activating,auto-restart+ idss-control-plane'sNRestarts) beside--failed. A unit withRestart=and a lifted start limit (StartLimitIntervalSec=0, the mesh gateway) never enters thefailedstate--failedreads, so the probe was structurally blind to the exact failure this drive exists to produce (0 loaded units listed).vue-tsc+eslintclean.Ruled by agent under ADR 0174 — veto anytime. Revertible (one commit), and its correctness is provable by the next drive's harvest; no posture change, harness diagnostics only.
Why human
A one-way UI-contract ruling (Ben's eyes + a member-facing trust decision), which the healer already refused. The retained rollout pins the Updates surface to its terminal screen forever, so after any update the U5 policy/maintenance-window door is unreachable — every community, not just this drive. Fixing it changes what every community sees after an update, and the design contract moves with it:
docs/ux/flows/p4b-updates.mermaidgives U4 a single out-edge (to monitoring), no U4→U1, and the U4 wireframe carries onlyopen-logs. There is no flow/wireframe for a route back, so the fix also needs a design-tier pass once the option is chosen.The choice (needs a ruling):
Proposed default ruling (adopt or veto): Option A, cleared by operator acknowledgement. Add one explicit writer that nils
lastRollout(internal/update/rolloutview.go), driven by a "Done / Dismiss" affordance on U4/U4x/U3x; the surface returns to U1/U1x with the policy door once the operator has seen and dismissed the outcome. Rationale: it is the smallest, fully-revertible product change (one clear-writer + one affordance vs. a new navigational edge), and it never silently disappears the "your update rolled back / was refused" news the way a timeout- or poll-based auto-clear would — the operator must have seen it. A design-tier pass would add the dismiss affordance to the U4/U4x/U3x wireframes (no new flow edge needed).Consequences for the rest of the ticket's plan:
da89695eis also gated on this ruling. Withda89695e+ the harness poll fix +a3b86ea2in place, a re-drive would still red atrolled-backon this same product defect. So: rule + land the product fix first, then the executor re-drives (operator spend + live-box — the rehearsal-executor's queue-armed job, not a one-shot session's).Leaving
priorityandrehearsal-183. Droppingready-for-session+agent-working, addingready-for-human.Diagnosis from the #1562 lane session is on #1614 (comment 51255): this is a PRODUCT trap, not harness slowness — U4
appliedhas no exit and the retained applied view is never cleared (and is durable since #1633), so after a communitys first successful update the Updates surface is U4 forever. Suggested shape there: give U4 thereturn-to-updates` exit U4x/U3x already have, and do not let a retained applied view outrank a new pending release. Please do not cure it in the harness.RULED by Ben, 2026-09-20 (in session) — DDR 0261, landed
9fd76204. Build it.Read
docs/adr/0261-design-*.mdfirst; it is the contract. The wireframe (p4b-u4-applied.html) and the flow (p4b-updates.mermaid, new edge U4 → U1) moved in the same commit.AppliedScreen.vuegains "Back to updates" (data-action="return-to-updates", emitsreturn-to-updates); inUpdatesSurface.vuethe applied branch takes the same&& !returnedToUpdatesguard and handler as the two branches above it. Check thereturnedToUpdatesreset (~:256) still behaves with applied in the set.s clock (AppliedAtvsclock.Now()) so every browser agrees — e.g.RolloutState()` stops serving it, or the view carries a flag the surface reads. The run stays in the update history; do not delete anything.rolled-backinjourney.updates.spec.ts/updatesDrive.tspresses "Back to updates" like an operator; it must not reload or clear state to get past U4. Also do #1646s item 2: narrow or close the maintenance window between legs, so C is started by the operators own U5 door rather than by a scheduler tick on the windowappliedleft wide open.Proof: unit tests for the three rules (surface + orchestrator clock), then the #1614 drive (free local KVM guest, queued — re-fires when this closes). That fire is also the first LIVE test of the #1639 restore guard.
GOTCHAS entry + STATUS in the same commit as the fix.
swarm-claim host=bens-mac-04 run=28043
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1646 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope