rolled-back: drive's Updates reader reads no revision off U4x, reds a real rollback #1655

Closed
opened 2026-09-20 06:02:02 +00:00 by matou-build-agent · 2 comments

The red

artifacts/verdict.json — "verdict": "red", "firstRedLeg": "rolled-back", legs 4 green / 1 red / 0 skip.

artifacts/legs.json:

{
  "leg": "rolled-back",
  "status": "red",
  "ms": 324973,
  "error": "leg rolled-back was waiting on the fleet rolled back to updates-b — the Updates surface showed instead: fleet on (unread)",
  "outages": ["apex 502 12.1s"]
}

This is not the known frontier. legs.json carries no skip reasons at all ("skip": 0) — the own-VPS carrier / pairing-never-flips frontier named in the brief skipped nothing on this drive and is not what red'd it. Fresh red.

The box did roll back — the drive could not read it

artifacts/updates/u4x-rolled-back.png is byte-identical (md5 eb37ac461e122c354dc016314723343d) to artifacts/legs/rolled-back-dash.png and to Playwright's test-failed-1.png — it is the screen as it stood at the instant of the red. It reads:

Rollback proof C (updates-c) — ● ROLLED BACK — attempt 1 of 2 · 05:49
The fleet is on its previous revision and healthy.
CHECK: control plane — the swapped control plane did not start (rolled back at boot)
NOW ON: testing · updates-b — all 1 nodes converged

The gate the leg was waiting on — "the fleet rolled back to updates-b" — was satisfied on screen, and the drive photographed it while reporting it unsatisfied.

logs/guest-control-plane.log corroborates, in the same minute:

05:48:50 msg="fleetland: landed the fleet software on the gateway (staging + atomic rename…)" node=gateway
05:49:08 msg="gateway self-swap: restarting the control plane onto the newly-landed binary (--no-block, ADR 0259)"
05:49:08 / :13 / :18  systemd: idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE   (×3)
05:49:18 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)
05:49:18 idss-control-plane-restore-guard: previous fleet software restored; marked updates-c boot-failed for the started process to roll back (U4x, ADR 0067)
05:49:18.421 level=WARN msg="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

and logs/guest-failed-units.log shows the fleet came back clean on the previous binary: 0 loaded units listed. / ActiveState=active SubState=running Result=success NRestarts=2.

The recorded outage is the expected bounded closed door, not the fault. logs/guest-caddy.log has exactly four "status":502 entries — dial tcp 127.0.0.1:8080: connect: connection refused at 05:49:08, :11, :14, :17, and none after — ≈12 s, well inside the 60 s-per-failed-attempt bound Ben set on #1650 / ADR 0259.

The defect

The red string is composed by updatesGate(leg, gate, sawOnScreen) — quoted in error-context.md:

return new Error(
  `leg ${leg} was waiting on ${gate} — the Updates surface showed instead: ${sawOnScreen}`,
);

The surface summary rendered as fleet on (unread) — an empty revision, not a wrong one. unread appears nowhere in any harvested log or on any captured screen (grep over logs/ + artifacts/ hits only the composed error itself); it is the harness's own token. So the drive's fleet-revision reader returned '' against a surface that plainly says testing · updates-b — all 1 nodes converged.

Why empty: the leg ends up on U4x, the rolled-back screen — a rollback parks there waiting for the operator (the card offers Retry now / Don't try again, and "It will try once more at tomorrow's window"). U4x composes its revision into the prose of the NOW ON detail row rather than carrying the revision marker the reader knows from the rolling-out / applied screens (u1-baseline, u3-rolling-out, u4-applied) — all of which the rollback left behind.

The browser was live and polling throughout: caddy logs the drive's GET / every ~3 s across the outage, and the control plane was back up at 05:49:18.45 — three more polls fit before the leg expired at 05:49:28.37. The reader had chances and read empty each time. This is a harness defect; the product did exactly what #1576 / #1639 / ADR 0259 specify and said so on screen.

What plugging it needs

  1. Teach the drive's fleet-revision reader to lift the revision out of U4x's composed NOW ON line (and U3x's equivalent), the way it already lifts the channel out of U1x's prose. No assertion changes — the gate is correct, only the read is blind. Real-bytes caveat: the line renders with U+00B7 (·) and U+2014 (—) as the box drew it, so match on those, not ASCII.
  2. Worth tightening in the same pass: the leg burned its entire budget (ms: 324973 ≈ 5 m 25 s) and the rollback only completed at 05:49:18 — 10 s before the leg expired (verdict.json endedAt: 05:49:28.368Z). The scheduler interval alone is msg="update scheduler started" interval=5m0s, and land→swap→3 boot failures cost a further ~28 s. Even with the read fixed this leg clears by seconds. Budget the rolled-back wait as scheduler-tick + rollout + restore-guard, not a flat five-and-a-bit minutes.

Live box, and what is absent

  • No live-box section was appended to this task, so nothing was asked of a live machine — everything above is from the harvested records. (The "droplet" here is a local QEMU guest anyway: logs/guest-unit.log shows idss-guest.service … qemu-system-x86_64 … hostfwd=tcp:127.0.0.1:35505-:22.)
  • logs/droplet-journal.txt — absent. The journal was harvested as logs/guest-journal.log, guest-system-journal.log and per-unit guest-*.log instead.
  • artifacts/journey.json — present, but carries the same five leg rows as legs.json plus a fault field; no separate founding rows.
  • state/founding-state.json — absent (founding-state.log: cat: … No such file or directory). state/logs/ — absent (state-logs.log: ENOENT … scandir).
  • logs/healer-claude.out shows an automated healer already reached the same conclusion and committed 6c24d6fb locally (unpushed) against readFleetRevision, and filed a residual needing a human ruling: U4x's headline renders 's control plane service failed its health check after the update — an empty node name, and a health check the boot-failure branch deliberately avoids naming. That prose defect is real and visible in u4x-rolled-back.png, but the drive asserts nothing about it, so it is not this red. Treat that log's file/line claims as unverified here — this session could read only the run directory, not the repo source — and note it opens with a fabricated "summary":"placeholder" JSON block it then retracts, so the commit is worth re-checking before trusting.

drive 20260920T050806Z red at rolled-back: leg rolled-back was waiting on the fleet rolled back to updates-b — the Updates surface showed instead: fleet on (unread)
evidence: /home/swarm/swarm/Matou/idss/test-results/private-path/20260920T050806Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The red `artifacts/verdict.json` — `"verdict": "red"`, `"firstRedLeg": "rolled-back"`, legs `4 green / 1 red / 0 skip`. `artifacts/legs.json`: ```json { "leg": "rolled-back", "status": "red", "ms": 324973, "error": "leg rolled-back was waiting on the fleet rolled back to updates-b — the Updates surface showed instead: fleet on (unread)", "outages": ["apex 502 12.1s"] } ``` **This is not the known frontier.** `legs.json` carries no skip reasons at all (`"skip": 0`) — the own-VPS carrier / pairing-never-flips frontier named in the brief skipped nothing on this drive and is not what red'd it. Fresh red. ## The box *did* roll back — the drive could not read it `artifacts/updates/u4x-rolled-back.png` is byte-identical (md5 `eb37ac461e122c354dc016314723343d`) to `artifacts/legs/rolled-back-dash.png` and to Playwright's `test-failed-1.png` — it is the screen as it stood at the instant of the red. It reads: > **Rollback proof C (updates-c)** — ● ROLLED BACK — `attempt 1 of 2 · 05:49` > The fleet is on its previous revision and healthy. > CHECK: `control plane — the swapped control plane did not start (rolled back at boot)` > NOW ON: `testing · updates-b — all 1 nodes converged` The gate the leg was waiting on — "the fleet rolled back to updates-b" — was satisfied on screen, and the drive photographed it while reporting it unsatisfied. `logs/guest-control-plane.log` corroborates, in the same minute: ``` 05:48:50 msg="fleetland: landed the fleet software on the gateway (staging + atomic rename…)" node=gateway 05:49:08 msg="gateway self-swap: restarting the control plane onto the newly-landed binary (--no-block, ADR 0259)" 05:49:08 / :13 / :18 systemd: idss-control-plane.service: Main process exited, code=exited, status=1/FAILURE (×3) 05:49:18 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) 05:49:18 idss-control-plane-restore-guard: previous fleet software restored; marked updates-c boot-failed for the started process to roll back (U4x, ADR 0067) 05:49:18.421 level=WARN msg="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 ``` and `logs/guest-failed-units.log` shows the fleet came back clean on the previous binary: `0 loaded units listed.` / `ActiveState=active SubState=running Result=success NRestarts=2`. The recorded outage is the expected bounded closed door, not the fault. `logs/guest-caddy.log` has exactly four `"status":502` entries — `dial tcp 127.0.0.1:8080: connect: connection refused` at 05:49:08, :11, :14, :17, and none after — ≈12 s, well inside the 60 s-per-failed-attempt bound Ben set on #1650 / ADR 0259. ## The defect The red string is composed by `updatesGate(leg, gate, sawOnScreen)` — quoted in `error-context.md`: ```ts return new Error( `leg ${leg} was waiting on ${gate} — the Updates surface showed instead: ${sawOnScreen}`, ); ``` The surface summary rendered as `fleet on (unread)` — an **empty revision**, not a wrong one. `unread` appears nowhere in any harvested log or on any captured screen (grep over `logs/` + `artifacts/` hits only the composed error itself); it is the harness's own token. So the drive's fleet-revision reader returned `''` against a surface that plainly says `testing · updates-b — all 1 nodes converged`. Why empty: the leg ends up on **U4x**, the rolled-back screen — a rollback parks there waiting for the operator (the card offers *Retry now* / *Don't try again*, and "It will try once more at tomorrow's window"). U4x composes its revision into the prose of the `NOW ON` detail row rather than carrying the revision marker the reader knows from the rolling-out / applied screens (`u1-baseline`, `u3-rolling-out`, `u4-applied`) — all of which the rollback left behind. The browser was live and polling throughout: caddy logs the drive's `GET /` every ~3 s across the outage, and the control plane was back up at 05:49:18.45 — three more polls fit before the leg expired at 05:49:28.37. The reader had chances and read empty each time. This is a **harness** defect; the product did exactly what #1576 / #1639 / ADR 0259 specify and said so on screen. ## What plugging it needs 1. Teach the drive's fleet-revision reader to lift the revision out of U4x's composed `NOW ON` line (and U3x's equivalent), the way it already lifts the channel out of U1x's prose. No assertion changes — the gate is correct, only the read is blind. Real-bytes caveat: the line renders with `U+00B7` (·) and `U+2014` (—) as the box drew it, so match on those, not ASCII. 2. Worth tightening in the same pass: the leg burned its entire budget (`ms: 324973` ≈ 5 m 25 s) and the rollback only completed at 05:49:18 — **10 s** before the leg expired (`verdict.json` `endedAt: 05:49:28.368Z`). The scheduler interval alone is `msg="update scheduler started" interval=5m0s`, and land→swap→3 boot failures cost a further ~28 s. Even with the read fixed this leg clears by seconds. Budget the `rolled-back` wait as *scheduler-tick + rollout + restore-guard*, not a flat five-and-a-bit minutes. ## Live box, and what is absent - **No live-box section was appended to this task**, so nothing was asked of a live machine — everything above is from the harvested records. (The "droplet" here is a local QEMU guest anyway: `logs/guest-unit.log` shows `idss-guest.service … qemu-system-x86_64 … hostfwd=tcp:127.0.0.1:35505-:22`.) - `logs/droplet-journal.txt` — **absent**. The journal was harvested as `logs/guest-journal.log`, `guest-system-journal.log` and per-unit `guest-*.log` instead. - `artifacts/journey.json` — present, but carries the same five leg rows as `legs.json` plus a `fault` field; no separate founding rows. - `state/founding-state.json` — absent (`founding-state.log`: `cat: … No such file or directory`). `state/logs/` — absent (`state-logs.log`: `ENOENT … scandir`). - `logs/healer-claude.out` shows an automated healer already reached the same conclusion and committed `6c24d6fb` locally (unpushed) against `readFleetRevision`, and filed a residual needing a human ruling: U4x's headline renders `'s control plane service failed its health check after the update` — an empty node name, and a health check the boot-failure branch deliberately avoids naming. That prose defect is real and visible in `u4x-rolled-back.png`, but the drive asserts nothing about it, so it is not this red. Treat that log's file/line claims as unverified here — this session could read only the run directory, not the repo source — and note it opens with a fabricated `"summary":"placeholder"` JSON block it then retracts, so the commit is worth re-checking before trusting. drive `20260920T050806Z` red at `rolled-back`: `leg rolled-back was waiting on the fleet rolled back to updates-b — the Updates surface showed instead: fleet on (unread)` evidence: `/home/swarm/swarm/Matou/idss/test-results/private-path/20260920T050806Z` 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

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

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

close-report for #1655 — status success

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

envelope
{
  "issue": 1655,
  "status": "success",
  "commits": [
    "c1900747031dfcd90f60aafc8df569cb4ce10f3a"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/updatesDrive.test.ts",
    "app/tests/e2e/fixtures/updatesDrive.ts",
    "app/tests/e2e/journey.updates.spec.ts",
    "docs/GOTCHAS.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/fixtures/updatesJourney.test.ts (app/)",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc --noEmit -p tsconfig.json (app/)",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/fixtures/updatesDrive.ts tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/journey.updates.spec.ts (app/)",
      "exit_code": 0
    },
    {
      "command": "npx prettier --check (touched files, app/)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Item 1 — the drive's fleet-revision reader lifts the revision out of U4x's composed NOW ON line (and U3x's equivalent), matching on U+00B7 (·) and U+2014 (—), not ASCII": "app/tests/e2e/fixtures/updatesDrive.ts: NOW_ON_REVISION = /·\\s*(\\S+)\\s*—/ (verified U+00B7/U+2014 bytes) + REVISION_READS adds [data-field=now-on] (U3x) and [data-field=detail] (U4x); red-first updatesDrive.test.ts describe '… NOW ON line (#1655)' — U4x + U3x read 'updates-b', proven to fail ('' expected 'updates-b') on the pre-fix reader and pass after",
    "No assertion changes — the gate is correct, only the read is fixed": "journey.updates.spec.ts rolled-back leg gate (`the fleet rolled back to ${RELEASE_B.revision}`) unchanged; only the ROLLED_BACK_BUDGET_MS budget swap on the wait",
    "Item 2 — budget the rolled-back wait as scheduler-tick + rollout + restore-guard, not a flat five-and-a-bit minutes": "app/tests/e2e/fixtures/updatesDrive.ts: ROLLED_BACK_BUDGET_MS = SCHEDULER_TICK_MS + ROLLOUT_BUDGET_MS, used by the rolled-back leg's scheduler-started waitForScreen (journey.updates.spec.ts)"
  },
  "summary": "The Updates drive's fleet-revision reader now lifts the revision out of U4x/U3x's composed NOW ON prose (matching the box's own U+00B7/U+2014), so a genuine rollback no longer reds as blind, and the rolled-back wait is budgeted as scheduler-tick + rollout + restore-guard.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1655 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1655, "status": "success", "commits": [ "c1900747031dfcd90f60aafc8df569cb4ce10f3a" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/updatesDrive.test.ts", "app/tests/e2e/fixtures/updatesDrive.ts", "app/tests/e2e/journey.updates.spec.ts", "docs/GOTCHAS.md" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/fixtures/updatesJourney.test.ts (app/)", "exit_code": 0 }, { "command": "npx vue-tsc --noEmit -p tsconfig.json (app/)", "exit_code": 0 }, { "command": "npx eslint tests/e2e/fixtures/updatesDrive.ts tests/e2e/fixtures/updatesDrive.test.ts tests/e2e/journey.updates.spec.ts (app/)", "exit_code": 0 }, { "command": "npx prettier --check (touched files, app/)", "exit_code": 0 } ], "criteria": { "Item 1 — the drive's fleet-revision reader lifts the revision out of U4x's composed NOW ON line (and U3x's equivalent), matching on U+00B7 (·) and U+2014 (—), not ASCII": "app/tests/e2e/fixtures/updatesDrive.ts: NOW_ON_REVISION = /·\\s*(\\S+)\\s*—/ (verified U+00B7/U+2014 bytes) + REVISION_READS adds [data-field=now-on] (U3x) and [data-field=detail] (U4x); red-first updatesDrive.test.ts describe '… NOW ON line (#1655)' — U4x + U3x read 'updates-b', proven to fail ('' expected 'updates-b') on the pre-fix reader and pass after", "No assertion changes — the gate is correct, only the read is fixed": "journey.updates.spec.ts rolled-back leg gate (`the fleet rolled back to ${RELEASE_B.revision}`) unchanged; only the ROLLED_BACK_BUDGET_MS budget swap on the wait", "Item 2 — budget the rolled-back wait as scheduler-tick + rollout + restore-guard, not a flat five-and-a-bit minutes": "app/tests/e2e/fixtures/updatesDrive.ts: ROLLED_BACK_BUDGET_MS = SCHEDULER_TICK_MS + ROLLOUT_BUDGET_MS, used by the rolled-back leg's scheduler-started waitForScreen (journey.updates.spec.ts)" }, "summary": "The Updates drive's fleet-revision reader now lifts the revision out of U4x/U3x's composed NOW ON prose (matching the box's own U+00B7/U+2014), so a genuine rollback no longer reds as blind, and the rolled-back wait is budgeted as scheduler-tick + rollout + restore-guard.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1655
No description provided.