updates drive: the "second failure quarantines" checks re-open the SAME window the same day — the durable retry throttle (#1650) now rightly holds them to tomorrow, so both legs will time out #1654

Closed
opened 2026-09-20 05:10:17 +00:00 by ben · 3 comments
Owner

The problem (found by reading 9c906f8e, before any run hit it)

#1650 made ADR 0067's retry throttle durable — correctly: a release with a counted attempt is held until the maintenance window's NEXT opening (Window.OpeningAt keys on the window's Start on the calendar day; AttemptedInCurrentWindow holds any release whose LastAttemptAt is not before that opening — internal/update/rollout.go:223-235, :761-778).

The Updates-lane proof drive still reaches its two "a second failure quarantines" checks the old way — by re-opening the SAME window on the SAME day:

  • rolled-back: journey.updates.spec.ts:~436-445 — openMaintenanceWindow(dash, bracketWindow(), …) then expects quarantined-<C>.
  • refused-artifact: :~482-487 — same, expects quarantined-<D>.

bracketWindow() is 00:00–23:59 (fixtures/updatesJourney.ts:169), so its opening is today 00:00 both times; the first attempt's stamp falls inside it; the product now (rightly) holds the retry to tomorrow; and each check will sit out ROLLOUT_BUDGET_MS and red. The product is right; the harness's way of getting a second attempt no longer exists.

Fix — reach the second attempt the way an operator can

  1. C (rolled-back): U4x already offers "retry by hand" (RolledBackScreen.vue, data-action="retry-by-hand" → Orchestrator.RetryByHand, which bypasses the window by design, story 35). Press it; the second boot-failure → guard restore → quarantine. Apply the same ≤60 s closed-door bound to this second outage (Ben's #1650 ruling is per failed attempt).
  2. D (refused-artifact): U3x has no retry (open-policy, quarantine-now, return-to-updates). An operator's real "second window" is a window that OPENS after the first attempt: through the U5 door set start to the gateway's current clock minute (read it from the guest — guestExec date +%H:%M — so the timezone is the control plane's own) and end to 23:59; if the first attempt landed in that same minute, wait for the minute to turn. Then OpeningAt is after LastAttemptAt and the retry is a genuinely new window. Add a windowOpeningNow() helper beside bracketWindow(); keep bracketWindow() for first attempts.
  3. Do NOT add a test-only bypass, clear LastAttemptAt, or move the guest clock.

Acceptance

  • The fixture unit tests cover the new helper (minute rollover, guest-clock source).
  • An offline test pins the premise: with a 00:00–23:59 window, a release with an attempt today is held (AttemptedInCurrentWindow true); with start = a minute after the attempt it is not.
  • The drive's leg comments say which door each second attempt uses and why.
  • STATUS + GOTCHAS (the hazard: a harness that re-opens the same window to get a retry stops working the day the product starts honouring "next window").

Live proof: the #1614 drive itself (free local KVM guest).

## The problem (found by reading `9c906f8e`, before any run hit it) #1650 made ADR 0067's retry throttle durable — correctly: a release with a counted attempt is held until the maintenance window's NEXT opening (`Window.OpeningAt` keys on the window's `Start` on the calendar day; `AttemptedInCurrentWindow` holds any release whose `LastAttemptAt` is not before that opening — `internal/update/rollout.go:223-235`, `:761-778`). The Updates-lane proof drive still reaches its two "a second failure quarantines" checks the old way — by re-opening the SAME window on the SAME day: - `rolled-back`: `journey.updates.spec.ts:~436-445` — `openMaintenanceWindow(dash, bracketWindow(), …)` then expects `quarantined-<C>`. - `refused-artifact`: `:~482-487` — same, expects `quarantined-<D>`. `bracketWindow()` is `00:00–23:59` (`fixtures/updatesJourney.ts:169`), so its opening is today 00:00 both times; the first attempt's stamp falls inside it; the product now (rightly) holds the retry to tomorrow; and each check will sit out `ROLLOUT_BUDGET_MS` and red. The product is right; the harness's way of getting a second attempt no longer exists. ## Fix — reach the second attempt the way an operator can 1. **C (`rolled-back`)**: U4x already offers **"retry by hand"** (`RolledBackScreen.vue`, `data-action="retry-by-hand"` → `Orchestrator.RetryByHand`, which bypasses the window by design, story 35). Press it; the second boot-failure → guard restore → quarantine. Apply the same ≤60 s closed-door bound to this second outage (Ben's #1650 ruling is *per failed attempt*). 2. **D (`refused-artifact`)**: U3x has no retry (`open-policy`, `quarantine-now`, `return-to-updates`). An operator's real "second window" is a window that OPENS after the first attempt: through the U5 door set `start` to the gateway's current clock minute (read it from the guest — `guestExec date +%H:%M` — so the timezone is the control plane's own) and `end` to `23:59`; if the first attempt landed in that same minute, wait for the minute to turn. Then `OpeningAt` is after `LastAttemptAt` and the retry is a genuinely new window. Add a `windowOpeningNow()` helper beside `bracketWindow()`; keep `bracketWindow()` for first attempts. 3. Do NOT add a test-only bypass, clear `LastAttemptAt`, or move the guest clock. ## Acceptance - [ ] The fixture unit tests cover the new helper (minute rollover, guest-clock source). - [ ] An offline test pins the premise: with a `00:00–23:59` window, a release with an attempt today is held (`AttemptedInCurrentWindow` true); with `start` = a minute after the attempt it is not. - [ ] The drive's leg comments say which door each second attempt uses and why. - [ ] STATUS + GOTCHAS (the hazard: *a harness that re-opens the same window to get a retry stops working the day the product starts honouring "next window"*). Live proof: the #1614 drive itself (free local KVM guest).

swarm-claim host=bens-mac-04 run=28113
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=28113 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

Run 20260920T050806Z at 9c906f8e (from the #1562 lane session) — two more live proofs, and a harness red in the same leg #1654 is editing.

Proven live: (1) Bens bounded closed-door window — the leg measured ONE outage, apex 502 12.1s, reopened, well inside 60 s. (2) The durable retry throttle (#1650) — after the guard restored B at 05:49:18and the restored process counted attempt 1, there is NO secondfleetland: landed/ self-swap forupdates-c in the journal; last run it re-landed one second later. (applied` green a fourth time; U3/U4/U4x screenshots captured.)

The red: rolled-back → "waiting on the fleet rolled back to updates-b — showed instead: fleet on (unread)". Harness. After the outage check the leg does reloadPanelToUpdates then readFleetRevision (journey.updates.spec.ts:~418-427), which only knows U1/U1x selectors (up-to-date / current / convergence — updatesDrive.ts:134-147). But after a reload the surface rightly lands on U4x again (a retained rolled-back view holds the screen until the operator leaves it — unchanged by DDR 0261), and U4x carries none of those fields. The fleet IS on B: U4x says so itself in its rollback detail (view.rollback.nowOn, composed as <channel> · <revision> — all N nodes converged, rolloutview.go:242/268).

Fix, to fold into #1654 since it is rewriting this exact stretch: read B off U4xs own "now on" detail (give that span a data-field, e.g. now-on, and teach readFleetRevision about it) — and keep the leg ON U4x, because #1654s "retry by hand" button lives there. Only after the quarantine check press "Back to updates" and cross-check U1`s header. Do not reorder it the other way round (return-to-updates first) or the retry-by-hand door is gone.

**Run `20260920T050806Z` at `9c906f8e` (from the #1562 lane session) — two more live proofs, and a harness red in the same leg #1654 is editing.** **Proven live:** (1) Ben`s bounded closed-door window — the leg measured ONE outage, `apex 502 12.1s`, reopened, well inside 60 s. (2) The durable retry throttle (#1650) — after the guard restored B at `05:49:18` and the restored process counted attempt 1, there is NO second `fleetland: landed` / self-swap for `updates-c` in the journal; last run it re-landed one second later. (`applied` green a fourth time; U3/U4/U4x screenshots captured.) **The red:** `rolled-back` → "waiting on the fleet rolled back to updates-b — showed instead: fleet on (unread)". Harness. After the outage check the leg does `reloadPanelToUpdates` then `readFleetRevision` (`journey.updates.spec.ts:~418-427`), which only knows U1/U1x selectors (`up-to-date` / `current` / `convergence` — `updatesDrive.ts:134-147`). But after a reload the surface rightly lands on **U4x** again (a retained rolled-back view holds the screen until the operator leaves it — unchanged by DDR 0261), and U4x carries none of those fields. The fleet IS on B: U4x says so itself in its rollback detail (`view.rollback.nowOn`, composed as `<channel> · <revision> — all N nodes converged`, `rolloutview.go:242/268`). **Fix, to fold into #1654 since it is rewriting this exact stretch:** read B off U4x`s own "now on" detail (give that span a `data-field`, e.g. `now-on`, and teach `readFleetRevision` about it) — and keep the leg ON U4x, because #1654`s "retry by hand" button lives there. Only after the quarantine check press "Back to updates" and cross-check U1`s header. Do not reorder it the other way round (return-to-updates first) or the retry-by-hand door is gone.

close-report for #1654 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1654,
  "status": "success",
  "commits": [
    "5cc6cf45c10842b9893c4f2a36248e685515ffab"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/updatesDrive.ts",
    "app/tests/e2e/fixtures/updatesJourney.test.ts",
    "app/tests/e2e/fixtures/updatesJourney.ts",
    "app/tests/e2e/journey.updates.spec.ts",
    "docs/GOTCHAS.md",
    "internal/update/rollback_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "npx vitest run tests/e2e/fixtures/updatesJourney.test.ts (app)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit (app)",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/{journey.updates.spec,fixtures/updatesJourney,fixtures/updatesDrive,fixtures/updatesJourney.test}.ts (app)",
      "exit_code": 0
    },
    {
      "command": "npx prettier --check (changed e2e files)",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/update/rollback_test.go && go vet ./internal/update/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The fixture unit tests cover the new helper (minute rollover, guest-clock source)": "app/tests/e2e/fixtures/updatesJourney.test.ts — new describe('windowOpeningNow …') with three cases: reads the guest clock minute + ends 23:59, waits for the minute to turn when the attempt shared it (rollover), reds loud on a non-HH:MM read (guest-clock source). Green in vitest 15/15.",
    "An offline test pins the premise: with a 00:00–23:59 window, a release with an attempt today is held (AttemptedInCurrentWindow true); with start = a minute after the attempt it is not": "internal/update/rollback_test.go TestAttemptedInCurrentWindow_HeldByWideBracketFreedByALaterOpening — attempt counted at 02:30; the 00:00–23:59 bracket → AttemptedInCurrentWindow true (held); a 02:31–23:59 window (clock advanced to 02:31) → false. go test ./internal/update/ green.",
    "The drive's leg comments say which door each second attempt uses and why": "app/tests/e2e/journey.updates.spec.ts — rolled-back (C) leg comment explains RetryByHand via U4x retry-by-hand bypasses the window (story 35) and why re-opening bracketWindow cannot reach a second attempt post-#1650; refused-artifact (D) leg comment explains windowOpeningNow opens a window starting after the first attempt off the gateway's own clock, U3x has no retry.",
    "STATUS + GOTCHAS (the hazard: a harness that re-opens the same window to get a retry stops working the day the product starts honouring next window)": "docs/GOTCHAS.md #284 (symptom/cause/rule) + STATUS.md header entry for #1654."
  },
  "summary": "The Updates-lane proof drive's two 'second failure quarantines' checks now reach the second attempt the way an operator can — U4x 'retry by hand' for the rollback and a window opening after the first attempt (off the gateway clock) for the refusal — instead of re-opening the same window the durable #1650 throttle now holds to tomorrow.",
  "reason": "",
  "blockers": []
}
**close-report** for #1654 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1654, "status": "success", "commits": [ "5cc6cf45c10842b9893c4f2a36248e685515ffab" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/updatesDrive.ts", "app/tests/e2e/fixtures/updatesJourney.test.ts", "app/tests/e2e/fixtures/updatesJourney.ts", "app/tests/e2e/journey.updates.spec.ts", "docs/GOTCHAS.md", "internal/update/rollback_test.go" ], "tests": [ { "command": "go test ./internal/update/", "exit_code": 0 }, { "command": "npx vitest run tests/e2e/fixtures/updatesJourney.test.ts (app)", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit (app)", "exit_code": 0 }, { "command": "npx eslint tests/e2e/{journey.updates.spec,fixtures/updatesJourney,fixtures/updatesDrive,fixtures/updatesJourney.test}.ts (app)", "exit_code": 0 }, { "command": "npx prettier --check (changed e2e files)", "exit_code": 0 }, { "command": "gofmt -l internal/update/rollback_test.go && go vet ./internal/update/", "exit_code": 0 } ], "criteria": { "The fixture unit tests cover the new helper (minute rollover, guest-clock source)": "app/tests/e2e/fixtures/updatesJourney.test.ts — new describe('windowOpeningNow …') with three cases: reads the guest clock minute + ends 23:59, waits for the minute to turn when the attempt shared it (rollover), reds loud on a non-HH:MM read (guest-clock source). Green in vitest 15/15.", "An offline test pins the premise: with a 00:00–23:59 window, a release with an attempt today is held (AttemptedInCurrentWindow true); with start = a minute after the attempt it is not": "internal/update/rollback_test.go TestAttemptedInCurrentWindow_HeldByWideBracketFreedByALaterOpening — attempt counted at 02:30; the 00:00–23:59 bracket → AttemptedInCurrentWindow true (held); a 02:31–23:59 window (clock advanced to 02:31) → false. go test ./internal/update/ green.", "The drive's leg comments say which door each second attempt uses and why": "app/tests/e2e/journey.updates.spec.ts — rolled-back (C) leg comment explains RetryByHand via U4x retry-by-hand bypasses the window (story 35) and why re-opening bracketWindow cannot reach a second attempt post-#1650; refused-artifact (D) leg comment explains windowOpeningNow opens a window starting after the first attempt off the gateway's own clock, U3x has no retry.", "STATUS + GOTCHAS (the hazard: a harness that re-opens the same window to get a retry stops working the day the product starts honouring next window)": "docs/GOTCHAS.md #284 (symptom/cause/rule) + STATUS.md header entry for #1654." }, "summary": "The Updates-lane proof drive's two 'second failure quarantines' checks now reach the second attempt the way an operator can — U4x 'retry by hand' for the rollback and a window opening after the first attempt (off the gateway clock) for the refusal — instead of re-opening the same window the durable #1650 throttle now holds to tomorrow.", "reason": "", "blockers": [] } ``` </details>
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#1654
No description provided.