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

Closed
opened 2026-09-20 04:37:20 +00:00 by matou-build-agent · 4 comments

The failure

Drive 20260920T034948Z (private-path, target updates) went red at leg rolled-back after four green legs:

leg rolled-back was waiting on the community answering throughout the rollout — the Updates surface showed instead: apex went unreachable: apex 502

The rollback itself WORKED. waitForScreen(dash, 'rolled-back', …) returned, u4x-rolled-back.png was 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):

{"level":"error","logger":"http.log.error.log0",
 "msg":"dial tcp 127.0.0.1:8080: connect: connection refused",
 "request":{"host":"e2e-drive.idss.internal:36933","uri":"/",…},
 "status":502,"err_trace":"reverseproxy.statusError (reverseproxy.go:1626)"}

The window it landed in (logs/guest-control-plane.log):

04:31:39  fleetland: landed the fleet software on the gateway … node=gateway
04:31:57  gateway self-swap: restarting the control plane onto the newly-landed binary (--no-block, ADR 0259)
04:31:57  idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE
04:32:02  … restart counter is at 1 … status=1/FAILURE
04:32:07  idss-control-plane-restore-guard: the swapped control plane failed to boot 3 times for updates-c
          — restoring the previous fleet software (ADR 0259 / #1639)

Release C is controlPlane: 'health-fail' (app/tests/e2e/fixtures/updatesJourney.ts:124-134), built by UpdatesFeed.brokenControlPlane as an ELF whose main is os.Exit(1). That is a BOOT failure, not a health-check failure — the swapped plane never reaches Orchestrator.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:

// app/tests/e2e/journey.updates.spec.ts:307-308
// Poll the apex for liveness while the rollout runs — the community must
// answer throughout (a health check fails on the canary, never the gateway).

Both halves of that premise are false for a one-droplet community:

  1. There is no canary. chooseCanary returns tiny for a gateway-only fleet, and internal/update/rollout.go:419-429 proceeds 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, deployGatewayThenRestart at :535). A bad binary therefore lands ON the gateway by construction.

  2. 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_server shell. internal/clan/frontdoor.go:793-797:

    …the whole-tree try_files/file_server shell (§7 — the signed-out member face it protected no longer exists, so the apex 502s when the control plane is down, which is the honest answer for an operator tool).

    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, then forward_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:

  • (a) The product keeps the door open. Give the apex route a 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.
  • (b) The leg accepts a bounded closed-door window. A one-node community HAS no way to self-swap its only control plane without shutting its only door; the proof should assert the window is bounded and the door reopens (and that the rollback restored B), not that it never closed. This changes what the check proves, so it needs a ruling rather than a healer edit.

Why I refused to heal

  • Refusal rule 1 fires on (b): if (outages.length > 0) throw updatesGate(…) (journey.updates.spec.ts:329-331) is the assertion. Relaxing it to tolerate N 502s, or repointing probeApexStatus at an ungated static path that survives a dead plane, both change the value the check proves.
  • Refusal rule 3 fires on (a): the apex's answer when the control plane is down is a product-behaviour surface at a trust moment, settled in an ADR. Overriding it in-lane is a design decision, not a mechanical repair.

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:

04:32:07.970  WARN a swapped control plane failed to BOOT — the previous fleet software was
                   restored out-of-process and the failed attempt was counted (U4x, ADR 0259 / #1639)
                   revision=updates-c attempt=1
04:32:07.997  INFO control-plane serving the OpenAPI API addr=:8080
04:32:08.880  INFO fleetland: landed the fleet software on the gateway node=gateway   <-- re-landed C
04:32:18.943  INFO gateway self-swap: restarting the control plane onto the newly-landed binary
04:32:19      idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE

The control plane was STILL down at teardown — logs/guest-failed-units.log records idss-control-plane.service loaded activating auto-restart with ActiveState=activating SubState=auto-restart Result=exit-code.

The cause: windowOpen and attempted are plain in-memory fields on updateScheduler (control-plane/cmd/control-plane/updates_scheduler.go:52-62), and their documented job is exactly this case —

a release that rolled back earlier in this same window is held to the next opening, not re-attempted on the next few-minute tick (:186-190)

— but ADR 0259 makes the gateway restart its own control plane to finish EVERY self-swap, and the restarted process starts with attempted == nil and windowOpen == false. Run calls resume(ctx) then tick(ctx) immediately (:70-73); in that first tick the still-open window reads as a rising edge (:202-203), attempted is cleared, C is still retriable at attempt 1 of 2, and Rollout re-drives it on the spot.

This also defeats the explicit intent recorded in internal/update/bootfailure.go:30-38:

…does NOT re-drive the rollout (the swapped binary cannot run, and Resume re-driving it would re-land the bad bytes and self-swap again — an infinite loop).

RecordBootFailure correctly clears the checkpoint so Resume finds nothing — but the normal tick path re-lands the bad bytes anyway, one second later, through the door attempted was 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/startedAt against 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

  • Run dir: test-results/private-path/20260920T034948Z
  • Commit under test: 996e047ebeec11600762a2bdffd48a2a7e0b12c0
  • Legs: 4 green (founding-prefix, operator-session, updates-open, applied), 1 red (rolled-back, 286877ms)
  • Signature: d4b0dc7b8ac9
  • Box: torn down before the healer ran — no artifacts/live-box.json, no forwards listening on :33911/:36933. Diagnosis is from the harvested guest journal, Caddy log and captured state/clan-config, all of which answer the question directly.
  • Prior heal on this signature (d57c82892cc1) fixed the GOWORK=off build 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 20260920T034948Z red at rolled-back: leg rolled-back was waiting on the community answering throughout the rollout — the Updates surface showed instead: apex went unreachable: apex 502
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260920T034948Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure Drive `20260920T034948Z` (private-path, target `updates`) went red at leg `rolled-back` after four green legs: > leg rolled-back was waiting on the community answering throughout the rollout — the Updates surface showed instead: apex went unreachable: apex 502 The rollback itself WORKED. `waitForScreen(dash, 'rolled-back', …)` returned, `u4x-rolled-back.png` was 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): ``` {"level":"error","logger":"http.log.error.log0", "msg":"dial tcp 127.0.0.1:8080: connect: connection refused", "request":{"host":"e2e-drive.idss.internal:36933","uri":"/",…}, "status":502,"err_trace":"reverseproxy.statusError (reverseproxy.go:1626)"} ``` **The window it landed in** (`logs/guest-control-plane.log`): ``` 04:31:39 fleetland: landed the fleet software on the gateway … node=gateway 04:31:57 gateway self-swap: restarting the control plane onto the newly-landed binary (--no-block, ADR 0259) 04:31:57 idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE 04:32:02 … restart counter is at 1 … status=1/FAILURE 04:32:07 idss-control-plane-restore-guard: the swapped control plane failed to boot 3 times for updates-c — restoring the previous fleet software (ADR 0259 / #1639) ``` Release C is `controlPlane: 'health-fail'` (`app/tests/e2e/fixtures/updatesJourney.ts:124-134`), built by `UpdatesFeed.brokenControlPlane` as an ELF whose `main` is `os.Exit(1)`. That is a BOOT failure, not a health-check failure — the swapped plane never reaches `Orchestrator.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: ```ts // app/tests/e2e/journey.updates.spec.ts:307-308 // Poll the apex for liveness while the rollout runs — the community must // answer throughout (a health check fails on the canary, never the gateway). ``` Both halves of that premise are false for a one-droplet community: 1. **There is no canary.** `chooseCanary` returns `tiny` for a gateway-only fleet, and `internal/update/rollout.go:419-429` proceeds 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`, `deployGatewayThenRestart` at `:535`). A bad binary therefore lands ON the gateway by construction. 2. **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_server` shell. `internal/clan/frontdoor.go:793-797`: > *…the whole-tree try_files/file_server shell (§7 — the signed-out member face it protected no longer exists, so the apex 502s when the control plane is down, which is the honest answer for an operator tool).* 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, then `forward_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: - **(a) The product keeps the door open.** Give the apex route a `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. - **(b) The leg accepts a bounded closed-door window.** A one-node community HAS no way to self-swap its only control plane without shutting its only door; the proof should assert the window is bounded and the door reopens (and that the rollback restored B), not that it never closed. This changes what the check proves, so it needs a ruling rather than a healer edit. ## Why I refused to heal - **Refusal rule 1** fires on (b): `if (outages.length > 0) throw updatesGate(…)` (`journey.updates.spec.ts:329-331`) is the assertion. Relaxing it to tolerate N 502s, or repointing `probeApexStatus` at an ungated static path that survives a dead plane, both change the value the check proves. - **Refusal rule 3** fires on (a): the apex's answer when the control plane is down is a product-behaviour surface at a trust moment, settled in an ADR. Overriding it in-lane is a design decision, not a mechanical repair. --- ## 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: ``` 04:32:07.970 WARN a swapped control plane failed to BOOT — the previous fleet software was restored out-of-process and the failed attempt was counted (U4x, ADR 0259 / #1639) revision=updates-c attempt=1 04:32:07.997 INFO control-plane serving the OpenAPI API addr=:8080 04:32:08.880 INFO fleetland: landed the fleet software on the gateway node=gateway <-- re-landed C 04:32:18.943 INFO gateway self-swap: restarting the control plane onto the newly-landed binary 04:32:19 idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE ``` The control plane was STILL down at teardown — `logs/guest-failed-units.log` records `idss-control-plane.service loaded activating auto-restart` with `ActiveState=activating SubState=auto-restart Result=exit-code`. The cause: `windowOpen` and `attempted` are plain in-memory fields on `updateScheduler` (`control-plane/cmd/control-plane/updates_scheduler.go:52-62`), and their documented job is exactly this case — > *a release that rolled back earlier in this same window is held to the next opening, not re-attempted on the next few-minute tick* (`:186-190`) — but ADR 0259 makes the gateway restart its own control plane to finish EVERY self-swap, and the restarted process starts with `attempted == nil` and `windowOpen == false`. `Run` calls `resume(ctx)` then `tick(ctx)` immediately (`:70-73`); in that first tick the still-open window reads as a rising edge (`:202-203`), `attempted` is cleared, C is still retriable at attempt 1 of 2, and `Rollout` re-drives it on the spot. This also defeats the explicit intent recorded in `internal/update/bootfailure.go:30-38`: > *…does NOT re-drive the rollout (the swapped binary cannot run, and Resume re-driving it would re-land the bad bytes and self-swap again — an infinite loop).* `RecordBootFailure` correctly clears the checkpoint so `Resume` finds nothing — but the normal `tick` path re-lands the bad bytes anyway, one second later, through the door `attempted` was 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/`startedAt` against 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 - Run dir: `test-results/private-path/20260920T034948Z` - Commit under test: `996e047ebeec11600762a2bdffd48a2a7e0b12c0` - Legs: 4 green (`founding-prefix`, `operator-session`, `updates-open`, `applied`), 1 red (`rolled-back`, 286877ms) - Signature: `d4b0dc7b8ac9` - Box: torn down before the healer ran — no `artifacts/live-box.json`, no forwards listening on `:33911`/`:36933`. Diagnosis is from the harvested guest journal, Caddy log and captured `state/clan-config`, all of which answer the question directly. - Prior heal on this signature (`d57c82892cc1`) fixed the `GOWORK=off` build 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 `20260920T034948Z` red at `rolled-back`: `leg rolled-back was waiting on the community answering throughout the rollout — the Updates surface showed instead: apex went unreachable: apex 502` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T034948Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: d4b0dc7b8ac9 -->
Owner

From 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 at 04:32:08.880 and self-swapped at 04:32:18; second crash 04: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 own bug` 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.

From 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 at `04:32:08.880` and self-swapped at `04:32:18`; second crash `04:32:19`. ADR 0067 says the same closure is retried "at the next maintenance window", but the restored process`s 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 own `bug` 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.
Owner

RULED by Ben, 2026-09-20 (in session): (b) now; (a) as a separate ticket that blocks nothing.

  • (b) The rolled-back leg 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.
  • (a) (the apex serving an honest "briefly updating" page instead of a raw 502 — touches ADR 0247 §7) is being filed separately by the lane session; do not build it here.
  • The retry-throttle defect (your "second defect": the ADR 0067 per-window throttle does not survive the ADR 0259 restart) needs no ruling — build it, here or as its own ticket, whichever keeps the commits reviewable. Size the 60 s bound for ONE failed attempt; with the throttle fixed there is only one per window.

Session already working this ticket: this is the ruling you were going to ask for — proceed.

## RULED by Ben, 2026-09-20 (in session): **(b) now; (a) as a separate ticket that blocks nothing.** - **(b)** The `rolled-back` leg 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. - **(a)** (the apex serving an honest "briefly updating" page instead of a raw 502 — touches ADR 0247 §7) is being filed separately by the lane session; do not build it here. - The **retry-throttle defect** (your "second defect": the ADR 0067 per-window throttle does not survive the ADR 0259 restart) needs no ruling — build it, here or as its own ticket, whichever keeps the commits reviewable. Size the 60 s bound for ONE failed attempt; with the throttle fixed there is only one per window. Session already working this ticket: this is the ruling you were going to ask for — proceed.
Owner

Option (a) is filed as #1651 (enhancement, blocks nothing). ADR 0259's amendment recording ruling (b) landed bbd15c13.

Option (a) is filed as #1651 (enhancement, blocks nothing). ADR 0259's amendment recording ruling (b) landed `bbd15c13`.
Author
Member

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 in 9c906f8e.

Second defect (Ben confirmed no ruling needed) — FIXED. ADR 0067's per-window retry throttle lived in updateScheduler's in-memory windowOpen/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 stamps record.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-first TestUpdateScheduler_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's rolled-back leg 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 testing pin 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).

**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 in `9c906f8e`. **Second defect (Ben confirmed no ruling needed) — FIXED.** ADR 0067's per-window retry throttle lived in `updateScheduler`'s in-memory `windowOpen`/`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 stamps `record.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-first `TestUpdateScheduler_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`'s `rolled-back` leg 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 `testing` pin 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).
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1650
No description provided.