rolled-back: C crash-loops with nothing to restore it; Updates stays pinned to applied #1646

Closed
opened 2026-09-20 02:29:53 +00:00 by matou-build-agent · 5 comments

The failure

Drive 20260920T011806Z (target updates, commit 7c22d31e) red at leg 5 of 5.

artifacts/verdict.json:

"verdict": "red", "firstRedLeg": "rolled-back", "legs": {"total": 5, "green": 4, "red": 1, "skip": 0}

artifacts/legs.json:

"leg": "rolled-back", "status": "red", "ms": 1083037, "error": "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\"])"

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:

export function bracketWindow(): { start: string; end: string } {
  return { start: '00:00', end: '23:59' };
}

with its comment (:160-168): "the scheduler re-reads the window each tick against its own clock.Now(), Window.Contains, and starts the rollout on the next tick — within 5 minutes, #1614's finding". The applied leg 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 applied ending ≈01:53:09 and rolled-back running 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:

// Exits non-zero so the deployed control plane fails its health check (#1618).
func main() { os.Exit(1) }

4. Nothing rolled it back. logs/guest-control-plane.log:197 and the lines after it — the last before harvest:

Sep 20 02:11:17 idss-guest systemd[1]: idss-control-plane.service: Scheduled restart job, restart counter is at 160.
Sep 20 02:11:17 idss-guest systemd[1]: idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE

160 restarts over ~14 minutes and no restore. logs/guest-resources.log's 02:11 process table carries kanidm, caddy and idss-agent report — no control-plane process at all. No rollback / canary / health / restore line appears anywhere in the harvested guest logs. The leg is named for the fleet rolling itself back (RELEASE_C notes, 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

  • Infra/product (root cause): no out-of-process restore guard for a control plane that exits non-zero at start. logs/healer-claude.out records this as the gap da89695e (#1639, ADR 0259's open half) closed on main, after this drive's commit 7c22d31e. 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.
  • Harness (why the red misnames itself): the leg polled with a call that cannot re-mount an already-standing drill-in, so it re-asked one frozen render for 18 minutes. logs/healer-claude.out reports this fixed at ddf57660 (poll through refreshUpdates; describeSurface now names the error state). Same caveat — unverified from here.
  • Product (survives both fixes, still open): the retained rollout pins the Updates surface to its terminal screen. Per the healer's residual, RolloutState() serves lastRollout with retainRollout as its only writer and no clear/expire, and the Applied/RolledBack/Refused branches win over UpToDateScreen/UpdatesScreen — only U1/U1x/U3x carry open-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.
  • Harness (evidence, separate and cheap): the crash loop ate the drive's own record. logs/guest-system-journal.log starts at Sep 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.log reads 0 loaded units listed because a unit with Restart= never enters failed, so the failed-unit probe is structurally blind to the exact failure this drive exists to produce. And logs/guest-journal.log, despite the name, is the host's idss-guest.service journal and ends at Sep 20 01:22:31 ("Welcome to GRUB!").

Not the known frontier

This is not the pairing / own-VPS carrier frontier. artifacts/legs.json carries "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.json exists, so everything above is from the harvested logs. The named logs/droplet-journal.txt is 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 is logs/guest-system-journal.log. Also absent: state/founding-state.json (logs/founding-state.log: "No such file or directory") and state/logs/ (logs/state-logs.log: ENOENT).

What plugging it needs

  1. The ruling (blocking). Either a retained rollout expires — and on what rule: next poll, operator ack, timeout? — or U4/U4x/U3x gain a visible route back to U1. Both change what every community sees after an update, and the design contract moves with it (docs/ux/flows/p4b-updates.mermaid gives U4 one out-edge, to monitoring, with no U4 → U1; the U4 wireframe carries only open-logs). This is why confident is false: the headline defect is real and located, but an agent cannot pick between those two without a ruling.
  2. Unblocked now. Have the drive narrow or close the maintenance window between legs, so rolled-back proves 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.
  3. Unblocked now. Harvest the guest journal since the drive's start rather than at a fixed line cap, and replace the --failed probe with one that catches restart-looping units (systemctl list-units --state=activating,auto-restart, or non-zero NRestarts).
  4. Re-drive at ≥ da89695e + ddf57660 before 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 20260920T011806Z red at rolled-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/20260920T011806Z 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 `20260920T011806Z` (target `updates`, commit `7c22d31e`) red at leg 5 of 5. `artifacts/verdict.json`: > `"verdict": "red"`, `"firstRedLeg": "rolled-back"`, `"legs": {"total": 5, "green": 4, "red": 1, "skip": 0}` `artifacts/legs.json`: > `"leg": "rolled-back", "status": "red", "ms": 1083037, "error": "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\"])"` 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`: > ```ts > export function bracketWindow(): { start: string; end: string } { > return { start: '00:00', end: '23:59' }; > } > ``` with its comment (`:160-168`): "the scheduler re-reads the window each tick against its own `clock.Now()`, `Window.Contains`, and starts the rollout on the next tick — within 5 minutes, #1614's finding". The `applied` leg 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 `applied` ending ≈01:53:09 and `rolled-back` running 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`: > ```go > // Exits non-zero so the deployed control plane fails its health check (#1618). > func main() { os.Exit(1) } > ``` **4. Nothing rolled it back.** `logs/guest-control-plane.log:197` and the lines after it — the last before harvest: > `Sep 20 02:11:17 idss-guest systemd[1]: idss-control-plane.service: Scheduled restart job, restart counter is at 160.` > `Sep 20 02:11:17 idss-guest systemd[1]: idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE` 160 restarts over ~14 minutes and no restore. `logs/guest-resources.log`'s 02:11 process table carries kanidm, caddy and `idss-agent report` — **no control-plane process at all**. No `rollback` / `canary` / `health` / `restore` line appears anywhere in the harvested guest logs. The leg is named for the fleet rolling *itself* back (`RELEASE_C` notes, `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 - **Infra/product (root cause):** no out-of-process restore guard for a control plane that exits non-zero at start. `logs/healer-claude.out` records this as the gap `da89695e` (#1639, ADR 0259's open half) closed on main, after this drive's commit `7c22d31e`. *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.* - **Harness (why the red misnames itself):** the leg polled with a call that cannot re-mount an already-standing drill-in, so it re-asked one frozen render for 18 minutes. `logs/healer-claude.out` reports this fixed at `ddf57660` (poll through `refreshUpdates`; `describeSurface` now names the error state). Same caveat — unverified from here. - **Product (survives both fixes, still open):** the retained rollout pins the Updates surface to its terminal screen. Per the healer's residual, `RolloutState()` serves `lastRollout` with `retainRollout` as its only writer and no clear/expire, and the Applied/RolledBack/Refused branches win over `UpToDateScreen`/`UpdatesScreen` — only U1/U1x/U3x carry `open-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. - **Harness (evidence, separate and cheap):** the crash loop ate the drive's own record. `logs/guest-system-journal.log` starts at `Sep 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.log` reads `0 loaded units listed` because a unit with `Restart=` never enters `failed`, so the failed-unit probe is structurally blind to the exact failure this drive exists to produce. And `logs/guest-journal.log`, despite the name, is the *host's* `idss-guest.service` journal and ends at `Sep 20 01:22:31` ("Welcome to GRUB!"). ## Not the known frontier This is **not** the pairing / own-VPS carrier frontier. `artifacts/legs.json` carries `"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.json` exists, so everything above is from the harvested logs. The named `logs/droplet-journal.txt` is 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 is `logs/guest-system-journal.log`. Also absent: `state/founding-state.json` (`logs/founding-state.log`: "No such file or directory") and `state/logs/` (`logs/state-logs.log`: ENOENT). ## What plugging it needs 1. **The ruling (blocking).** Either a retained rollout expires — and on what rule: next poll, operator ack, timeout? — or U4/U4x/U3x gain a visible route back to U1. Both change what every community sees after an update, and the design contract moves with it (`docs/ux/flows/p4b-updates.mermaid` gives U4 one out-edge, to monitoring, with no U4 → U1; the U4 wireframe carries only `open-logs`). This is why `confident` is false: the headline defect is real and located, but an agent cannot pick between those two without a ruling. 2. **Unblocked now.** Have the drive narrow or close the maintenance window between legs, so `rolled-back` proves 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. 3. **Unblocked now.** Harvest the guest journal since the drive's start rather than at a fixed line cap, and replace the `--failed` probe with one that catches restart-looping units (`systemctl list-units --state=activating,auto-restart`, or non-zero `NRestarts`). 4. **Re-drive at ≥ `da89695e` + `ddf57660`** before 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 `20260920T011806Z` red at `rolled-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/20260920T011806Z` 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 -->
Author
Member

Routing → 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

  • #1639 restore guard (da89695e) IS on origin/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 commit 7c22d31e, so this red genuinely pre-dates the root-cause fix (the healer's claim, now confirmed from the tree).
  • The harness poll-misnaming is already fixed in the tree. The healer attributed it to ddf57660, which does not exist as a commit — but its content is present regardless: waitForScreen/refreshUpdates re-mount the surface each poll and describeSurface names 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.
  • The headline product defect is real and located. Orchestrator.RolloutState() (internal/update/rolloutview.go:112) returns lastRollout whenever it is non-nil; retainRollout is 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-journal now harvests the whole boot (journalctl -b) instead of a -n 500 tail — a VM-mode guest (ADR 0056) boots once per drive, so -b is "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-units now catches restart-looping units (systemctl list-units --state=activating,auto-restart + idss-control-plane's NRestarts) beside --failed. A unit with Restart= and a lifted start limit (StartLimitIntervalSec=0, the mesh gateway) never enters the failed state --failed reads, so the probe was structurally blind to the exact failure this drive exists to produce (0 loaded units listed).
  • Offline-proven: evidence contract test 25/25 (names unchanged), vue-tsc + eslint clean.

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.mermaid gives U4 a single out-edge (to monitoring), no U4→U1, and the U4 wireframe carries only open-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):

  • (A) A retained rollout expires / is cleared — on what rule: next poll, operator acknowledgement, or a timeout?
  • (B) U4 / U4x / U3x gain a visible route back to U1 (a new flow edge + wireframe affordance).

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:

  • The ticket's "narrow/close the maintenance window between legs" harness fix is gated on this ruling — the drive cannot edit the window without the U5 door, and the door is exactly what the retained-rollout bug removes. It is not independently landable now.
  • The re-drive at ≥ da89695e is also gated on this ruling. With da89695e + the harness poll fix + a3b86ea2 in place, a re-drive would still red at rolled-back on 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 priority and rehearsal-183. Dropping ready-for-session + agent-working, adding ready-for-human.

**Routing → `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 - **#1639 restore guard (`da89695e`) IS on `origin/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 commit `7c22d31e`, so this red genuinely pre-dates the root-cause fix (the healer's claim, now confirmed from the tree). - **The harness poll-misnaming is already fixed in the tree.** The healer attributed it to `ddf57660`, which **does not exist** as a commit — but its content is present regardless: `waitForScreen`/`refreshUpdates` re-mount the surface each poll and `describeSurface` names 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. - **The headline product defect is real and located.** `Orchestrator.RolloutState()` (`internal/update/rolloutview.go:112`) returns `lastRollout` whenever it is non-nil; `retainRollout` is 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-journal` now harvests the **whole boot** (`journalctl -b`) instead of a `-n 500` tail — a VM-mode guest (ADR 0056) boots once per drive, so `-b` is "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-units` now catches **restart-looping units** (`systemctl list-units --state=activating,auto-restart` + idss-control-plane's `NRestarts`) beside `--failed`. A unit with `Restart=` and a lifted start limit (`StartLimitIntervalSec=0`, the mesh gateway) never enters the `failed` state `--failed` reads, so the probe was structurally blind to the exact failure this drive exists to produce (`0 loaded units listed`). - Offline-proven: evidence contract test 25/25 (names unchanged), `vue-tsc` + `eslint` clean. _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.mermaid` gives U4 a single out-edge (to monitoring), no U4→U1, and the U4 wireframe carries only `open-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):** - **(A)** A retained rollout *expires* / is *cleared* — on what rule: next poll, operator acknowledgement, or a timeout? - **(B)** U4 / U4x / U3x gain a visible route back to U1 (a new flow edge + wireframe affordance). **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:** - The ticket's "narrow/close the maintenance window between legs" harness fix is **gated on this ruling** — the drive cannot edit the window without the U5 door, and the door is exactly what the retained-rollout bug removes. It is not independently landable now. - **The re-drive at ≥ `da89695e` is also gated on this ruling.** With `da89695e` + the harness poll fix + `a3b86ea2` in place, a re-drive would still red at `rolled-back` on 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 `priority` and `rehearsal-183`. Dropping `ready-for-session` + `agent-working`, adding `ready-for-human`.
Owner

Diagnosis from the #1562 lane session is on #1614 (comment 51255): this is a PRODUCT trap, not harness slowness — U4 applied has 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 the return-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.

Diagnosis from the #1562 lane session is on #1614 (comment 51255): this is a PRODUCT trap, not harness slowness — U4 `applied` has no exit and the retained applied view is never cleared (and is durable since #1633), so after a community`s first successful update the Updates surface is U4 forever. Suggested shape there: give U4 the `return-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.
Owner

RULED by Ben, 2026-09-20 (in session) — DDR 0261, landed 9fd76204. Build it.

Read docs/adr/0261-design-*.md first; 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.

  1. U4 gets the exit U4x/U3x already have. AppliedScreen.vue gains "Back to updates" (data-action="return-to-updates", emits return-to-updates); in UpdatesSurface.vue the applied branch takes the same && !returnedToUpdates guard and handler as the two branches above it. Check the returnedToUpdates reset (~:256) still behaves with applied in the set.
  2. Something to review outranks a retained applied view. When the surface carries a pending, queued, quarantined or refused release, land on U1, not U4. A rollout in progress, a rollback (U4x) and a refusal (U3x) still win.
  3. An applied view older than 24 h stops being the landing screen. Decide it on the control planes 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.
  4. The drive. rolled-back in journey.updates.spec.ts / updatesDrive.ts presses "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 window applied left 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.

## RULED by Ben, 2026-09-20 (in session) — DDR 0261, landed `9fd76204`. Build it. Read `docs/adr/0261-design-*.md` first; 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. 1. **U4 gets the exit U4x/U3x already have.** `AppliedScreen.vue` gains "Back to updates" (`data-action="return-to-updates"`, emits `return-to-updates`); in `UpdatesSurface.vue` the applied branch takes the same `&& !returnedToUpdates` guard and handler as the two branches above it. Check the `returnedToUpdates` reset (`~:256`) still behaves with applied in the set. 2. **Something to review outranks a retained applied view.** When the surface carries a pending, queued, quarantined or refused release, land on U1, not U4. A rollout in progress, a rollback (U4x) and a refusal (U3x) still win. 3. **An applied view older than 24 h stops being the landing screen.** Decide it on the control plane`s clock (`AppliedAt` vs `clock.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. 4. **The drive.** `rolled-back` in `journey.updates.spec.ts` / `updatesDrive.ts` presses "Back to updates" like an operator; it must not reload or clear state to get past U4. Also do #1646`s item 2: narrow or close the maintenance window between legs, so C is started by the operator`s own U5 door rather than by a scheduler tick on the window `applied` left 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.
Author
Member

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

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

close-report for #1646 — status success

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

envelope
{
  "issue": 1646,
  "status": "success",
  "commits": [
    "f6c6eace"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/updatesDrive.test.ts",
    "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",
    "dashboard/src/components/provisioning/AppliedScreen.vue",
    "dashboard/src/components/provisioning/UpdatesSurface.vue",
    "dashboard/tests/unit/rollout.test.ts",
    "docs/GOTCHAS.md",
    "docs/adr/0261-design-applied-is-a-screen-the-operator-can-leave-and-it-never-outranks-something-to-review.md",
    "internal/update/rolloutview.go",
    "internal/update/rolloutview_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/... ./internal/controlapi/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/update/rolloutview.go internal/update/rolloutview_test.go",
      "exit_code": 0
    },
    {
      "command": "dashboard: vitest run (1750 passed, 3 skipped)",
      "exit_code": 0
    },
    {
      "command": "app: vitest run tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/fixtures/updatesJourney.test.ts (28 passed)",
      "exit_code": 0
    },
    {
      "command": "dashboard vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "app vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "eslint (changed dashboard + app files; pre-push hook eslint . also passed)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "DDR 0261 rule 1 — U4 gains the 'Back to updates' exit U4x/U3x already have (flow edge U4 → U1)": "AppliedScreen.vue emits `return-to-updates` on data-action=\"return-to-updates\" (the wireframe p4b-u4-applied.html contract); UpdatesSurface.vue applied branch guarded by !returnedToUpdates with @return-to-updates handler and reset watcher extended to !r?.applied. Proven: dashboard/tests/unit/rollout.test.ts 'offers \"Back to updates\" and emits it' + 'rule 1: \"Back to updates\" leaves U4 for the resting surface'.",
    "DDR 0261 rule 2 — something to review (pending/queued/quarantined/refused) outranks a retained applied view; U4x/U3x/rollout-in-progress still win": "UpdatesSurface.vue `somethingToReview` computed gates the applied branch. Proven: rollout.test.ts 'rule 2: something to review outranks a retained applied view (lands U1)'.",
    "DDR 0261 rule 3 — an applied view older than 24h stops being the landing screen, on the control plane's clock; run stays in history; rollback/refusal exempt": "internal/update/rolloutview.go RolloutState() returns ok=false when Applied && AppliedAt older than appliedLandingTTL (24h) vs o.clock.Now(). Proven: TestRolloutState_AppliedStopsBeingLandingAfterADay (also asserts HistoryFor still finds it) + TestRolloutState_RolledBackHoldsPastADay.",
    "#1646 item 2 — the drive narrows/closes the maintenance window between legs so C is started by the operator's own U5 door, not a scheduler tick on a stale-open window; presses 'Back to updates', no reload/clear": "journey.updates.spec.ts rolled-back leg calls closeMaintenanceWindow(dash,'rolled-back') BEFORE cutting C; updatesDrive.ts returnToUpdates presses data-action=\"return-to-updates\" to leave U4, closeMaintenanceWindow sets closedWindow() (start==end). Proven offline: updatesDrive.test.ts 'the drive leaves U4 the operator's own way' (2 cases) + updatesJourney.test.ts 'closedWindow contains no instant'.",
    "GOTCHAS entry + STATUS in the same commit (Ben's ruling)": "docs/GOTCHAS.md #279 (retained terminal view with a writer but no expiry pins the surface) and STATUS.md milestone entry both in commit f6c6eace; docs/adr/0261 status note updated to BUILT."
  },
  "summary": "Built DDR 0261 — Applied gains a 'Back to updates' exit, something to review outranks a retained applied view, and an applied view older than 24h (control-plane clock) stops being the landing screen; the Updates drive closes the window between legs so C starts at the operator's own U5 door.",
  "reason": "Ben ruled the blocking one-way UI-contract decision in-session as DDR 0261 (issue comment 2026-09-20T03:01:05Z); this ticket implements that ruling's three rules plus item 2's drive change.",
  "blockers": []
}
**close-report** for #1646 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1646, "status": "success", "commits": [ "f6c6eace" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/updatesDrive.test.ts", "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", "dashboard/src/components/provisioning/AppliedScreen.vue", "dashboard/src/components/provisioning/UpdatesSurface.vue", "dashboard/tests/unit/rollout.test.ts", "docs/GOTCHAS.md", "docs/adr/0261-design-applied-is-a-screen-the-operator-can-leave-and-it-never-outranks-something-to-review.md", "internal/update/rolloutview.go", "internal/update/rolloutview_test.go" ], "tests": [ { "command": "go test ./internal/update/... ./internal/controlapi/... ./control-plane/...", "exit_code": 0 }, { "command": "gofmt -l internal/update/rolloutview.go internal/update/rolloutview_test.go", "exit_code": 0 }, { "command": "dashboard: vitest run (1750 passed, 3 skipped)", "exit_code": 0 }, { "command": "app: vitest run tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/fixtures/updatesJourney.test.ts (28 passed)", "exit_code": 0 }, { "command": "dashboard vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "app vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "eslint (changed dashboard + app files; pre-push hook eslint . also passed)", "exit_code": 0 } ], "criteria": { "DDR 0261 rule 1 — U4 gains the 'Back to updates' exit U4x/U3x already have (flow edge U4 → U1)": "AppliedScreen.vue emits `return-to-updates` on data-action=\"return-to-updates\" (the wireframe p4b-u4-applied.html contract); UpdatesSurface.vue applied branch guarded by !returnedToUpdates with @return-to-updates handler and reset watcher extended to !r?.applied. Proven: dashboard/tests/unit/rollout.test.ts 'offers \"Back to updates\" and emits it' + 'rule 1: \"Back to updates\" leaves U4 for the resting surface'.", "DDR 0261 rule 2 — something to review (pending/queued/quarantined/refused) outranks a retained applied view; U4x/U3x/rollout-in-progress still win": "UpdatesSurface.vue `somethingToReview` computed gates the applied branch. Proven: rollout.test.ts 'rule 2: something to review outranks a retained applied view (lands U1)'.", "DDR 0261 rule 3 — an applied view older than 24h stops being the landing screen, on the control plane's clock; run stays in history; rollback/refusal exempt": "internal/update/rolloutview.go RolloutState() returns ok=false when Applied && AppliedAt older than appliedLandingTTL (24h) vs o.clock.Now(). Proven: TestRolloutState_AppliedStopsBeingLandingAfterADay (also asserts HistoryFor still finds it) + TestRolloutState_RolledBackHoldsPastADay.", "#1646 item 2 — the drive narrows/closes the maintenance window between legs so C is started by the operator's own U5 door, not a scheduler tick on a stale-open window; presses 'Back to updates', no reload/clear": "journey.updates.spec.ts rolled-back leg calls closeMaintenanceWindow(dash,'rolled-back') BEFORE cutting C; updatesDrive.ts returnToUpdates presses data-action=\"return-to-updates\" to leave U4, closeMaintenanceWindow sets closedWindow() (start==end). Proven offline: updatesDrive.test.ts 'the drive leaves U4 the operator's own way' (2 cases) + updatesJourney.test.ts 'closedWindow contains no instant'.", "GOTCHAS entry + STATUS in the same commit (Ben's ruling)": "docs/GOTCHAS.md #279 (retained terminal view with a writer but no expiry pins the surface) and STATUS.md milestone entry both in commit f6c6eace; docs/adr/0261 status note updated to BUILT." }, "summary": "Built DDR 0261 — Applied gains a 'Back to updates' exit, something to review outranks a retained applied view, and an applied view older than 24h (control-plane clock) stops being the landing screen; the Updates drive closes the window between legs so C starts at the operator's own U5 door.", "reason": "Ben ruled the blocking one-way UI-contract decision in-session as DDR 0261 (issue comment 2026-09-20T03:01:05Z); this ticket implements that ruling's three rules plus item 2's drive change.", "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#1646
No description provided.