rolled-back: the apex 502s throughout a one-node control-plane self-swap, so the leg's "community answering throughout" poll can never pass (ADR 0247 §7 vs ADR 0259) #1650
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#1650
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
20260920T034948Z(private-path, targetupdates) went red at legrolled-backafter four green legs:The rollback itself WORKED.
waitForScreen(dash, 'rolled-back', …)returned,u4x-rolled-back.pngwas captured, the out-of-process restore guard (#1639) fired exactly as designed. The ONLY thing that failed is the liveness poll running alongside it.The evidence
The box's own refusal, verbatim (
logs/guest-caddy.log, 04:32:04):The window it landed in (
logs/guest-control-plane.log):Release C is
controlPlane: 'health-fail'(app/tests/e2e/fixtures/updatesJourney.ts:124-134), built byUpdatesFeed.brokenControlPlaneas an ELF whosemainisos.Exit(1). That is a BOOT failure, not a health-check failure — the swapped plane never reachesOrchestrator.Resume, so the door stays shut for threshold(3) × RestartSec(5s) ≈ 10s. The probe polls every 15s (journey.updates.spec.ts:318-327), so it lands in that window essentially every drive.Why the leg's premise cannot hold on this world
The assertion's own comment states the premise:
Both halves of that premise are false for a one-droplet community:
There is no canary.
chooseCanaryreturnstinyfor a gateway-only fleet, andinternal/update/rollout.go:419-429proceeds straight to the gateway — which is "always updated last" and, when the release carries artifacts, is self-swapped rather than health-gated in-process (rollout.go:454-458,deployGatewayThenRestartat:535). A bad binary therefore lands ON the gateway by construction.The apex is DESIGNED to 502 when the control plane is down. ADR 0247 flipped the apex from the Portal to the control panel and deliberately dropped ADR 0233 §7's whole-tree
try_files/file_servershell.internal/clan/frontdoor.go:793-797:The drive's own rendered front door confirms it —
state/clan-config/machines/gateway/front-door.nix:91-134:@apex→ allow-list, then/assets/*+/idip/*off disk, thenforward_auth→reverse_proxy http://127.0.0.1:8080./(what the probe reads) has no static fallback.Note the timeline: the probe was written 2026-09-19 (
1b8903a1, #1618), three days AFTER the apex flip (98757010, 2026-09-16) — so this is not stale-harness drift, it is an unreconciled contradiction between two live decisions.The ruling needed
One of two, and both are one-way doors:
handle_errors/static-shell fallback so a dead control plane renders an honest "this community is briefly updating" frame instead of a raw 502. This directly reverses ADR 0247 §7's recorded reasoning and changes what a community sees at a trust moment.Why I refused to heal
if (outages.length > 0) throw updatesGate(…)(journey.updates.spec.ts:329-331) is the assertion. Relaxing it to tolerate N 502s, or repointingprobeApexStatusat an ungated static path that survives a dead plane, both change the value the check proves.Second defect found in the same evidence (confident, mechanical, separately actionable)
The ADR 0067 per-window retry throttle cannot survive the ADR 0259 restart it exists to bound, so a boot-failing release re-swaps immediately instead of waiting for the next window.
Same journal, one second after the guard restored B:
The control plane was STILL down at teardown —
logs/guest-failed-units.logrecordsidss-control-plane.service loaded activating auto-restartwithActiveState=activating SubState=auto-restart Result=exit-code.The cause:
windowOpenandattemptedare plain in-memory fields onupdateScheduler(control-plane/cmd/control-plane/updates_scheduler.go:52-62), and their documented job is exactly this case —— but ADR 0259 makes the gateway restart its own control plane to finish EVERY self-swap, and the restarted process starts with
attempted == nilandwindowOpen == false.Runcallsresume(ctx)thentick(ctx)immediately (:70-73); in that first tick the still-open window reads as a rising edge (:202-203),attemptedis cleared, C is still retriable at attempt 1 of 2, andRolloutre-drives it on the spot.This also defeats the explicit intent recorded in
internal/update/bootfailure.go:30-38:RecordBootFailurecorrectly clears the checkpoint soResumefinds nothing — but the normaltickpath re-lands the bad bytes anyway, one second later, through the doorattemptedwas supposed to hold shut. The ADR 0067 budget still terminates it (quarantine on the second failure), so it is not literally infinite; the cost is a second back-to-back closed-door window with no cooling-off, and a documented behaviour that silently does not happen in production.The fix is mechanical and needs no ruling: the throttle must be keyed to the window opening durably (or derived from the release's recorded attempt/
startedAtagainst the current window) rather than to process lifetime, so a retry counted in window W is held until W+1 regardless of how many times the control plane restarted inside W. It is testable in-package (go test ./control-plane/cmd/control-plane— the seam fakes already drive the scheduler with a fake clock).I did not fast-lane this one: repairing it does not change this leg's verdict (the first 502, at 04:32:04, predates the re-land and is the outage that made the leg red), so landing it alone would spend a paid re-drive to go red in the same place.
Drive facts
test-results/private-path/20260920T034948Z996e047ebeec11600762a2bdffd48a2a7e0b12c0founding-prefix,operator-session,updates-open,applied), 1 red (rolled-back, 286877ms)d4b0dc7b8ac9artifacts/live-box.json, no forwards listening on:33911/:36933. Diagnosis is from the harvested guest journal, Caddy log and capturedstate/clan-config, all of which answer the question directly.d57c82892cc1) fixed theGOWORK=offbuild of release C. That heal is holding — C now cuts and lands correctly, which is precisely why the drive reached this genuine finding for the first time.drive
20260920T034948Zred atrolled-back:leg rolled-back was waiting on the community answering throughout the rollout — the Updates surface showed instead: apex went unreachable: apex 502evidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T034948Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedFrom the #1562 lane session — agree with all of this (same reading, posted on #1614 as comment 51326). One thing that run also showed and this ticket should not lose: the retry after the boot-failure rollback was IMMEDIATE. Attempt 1 was counted at
04:32:07.970; C was landed again at04:32:08.880and self-swapped at04:32:18; second crash04:32:19. ADR 0067 says the same closure is retried "at the next maintenance window", but the restored processs start-up scheduler tick sees the window still open (Window.Contains(now)) and re-runs the failed release one second later — two back-to-back outages and a quarantine inside a minute on a real 02:00–04:00 community. If it is out of scope here, please file it as its ownbug` rather than fold it into the probe fix; whatever outage bound the leg adopts should be sized for ONE failed attempt, not two in a row.RULED by Ben, 2026-09-20 (in session): (b) now; (a) as a separate ticket that blocks nothing.
rolled-backleg accepts a BOUNDED closed-door window. A one-node community cannot swap its only control plane without shutting its only door — Ben already accepted that in ADR 0259 ("the control panel drops for about a minute", and U2 tells the operator so). The leg asserts: the door reopens within 60 s per failed attempt, red on anything longer; B is restored and healthy; U4x renders. It no longer asserts the door never closed. Keep recording every outage with its duration in the evidence so the bound is a measured number, not a guess. An ADR 0259 amendment recording this lands from the lane session shortly — no need to write one here.Session already working this ticket: this is the ruling you were going to ask for — proceed.
Option (a) is filed as #1651 (enhancement, blocks nothing). ADR 0259's amendment recording ruling (b) landed
bbd15c13.Ruled by agent under ADR 0174 — veto anytime.
Ben's ruling landed while this session was in flight (
bbd15c13, ADR 0259 amended): (b) — the proof accepts a bounded closed-door window (≤60 s per failed attempt), asserts the door reopens, B restored + healthy, U4x renders. Both remaining pieces of this ticket are now BUILT and offline-green in9c906f8e.Second defect (Ben confirmed no ruling needed) — FIXED. ADR 0067's per-window retry throttle lived in
updateScheduler's in-memorywindowOpen/attempted, reset by the ADR 0259 restart that finishes every self-swap — so a boot-failing release re-swapped one second after the #1639 guard rolled it back instead of waiting for the next window. Now durable: each counted attempt stampsrecord.LastAttemptAt(rollback / refusal / boot-failure) and the scheduler holds any release whose stamp falls in the window's current opening (Window.OpeningAt+Orchestrator.AttemptedInCurrentWindow), so a retry counted in window W is held to W+1 across any number of restarts inside W. Ruled two-way under ADR 0174: revertible commit, no posture change, proven in-package (no paid re-drive). Proof: red-firstTestUpdateScheduler_BootFailedReleaseHeldToNextWindowAcrossRestart(2 node-deploys on the buggy code → 0 held); the two existing next-window tests now advance a full day (the durable throttle keys on the window's calendar opening, not an in-memory open/closed toggle).Ruling (b) — IMPLEMENTED in the harness.
journey.updates.spec.ts'srolled-backleg no longer demands the apex answer "throughout" — it samples the apex every 3 s, measures each contiguous closed-door window, asserts the door reopens and each window is ≤60 s (OUTAGE_BOUND_MS), and records the measured lengths on the leg (LegMarkers.outages). The B-restored + U4x + second-failure-quarantine checks are unchanged.Proof:
go test ./internal/update/... ./control-plane/cmd/control-plane/ ./internal/controlapi/... ./internal/clan/+go vet+ gofmt green (golangci-lint absent on this host); vue-tsc + eslint + prettier clean; updates fixture vitest 28/28, legs+legframe 31/31. GOTCHAS #282, STATUS updated.Live proof rides #1614's next drive (the free local-KVM standing proof drive) — exactly as the sibling #1646 closed with its live proof riding #1614. Founding's
testingpin stays HELD until that drive is green. The ~2 h two-box drive is the executor's queued job, not runnable from this one-shot session.Option (a) — an honest "briefly updating" page from the front door instead of the raw 502 (would amend ADR 0247 §7) — is ticketed separately and blocks nothing.
Close-report: both two-way parts landed offline-green in
9c906f8e; closing per the #1646 precedent (finding fixed + offline-proven; #1614 carries the live re-proof).