updates (#1614-2): journey.updates.spec.ts — applied, rolled back, refused (artifact + list), replay, then the real testing rail, with screenshots #1618

Closed
opened 2026-09-19 00:34:33 +00:00 by ben · 2 comments
Owner

Parent: #1614 (the Updates-lane proof drive) — slice 2 of 3. Blocked by slice 1 (the local-updates plumbing).

What to build

app/tests/e2e/journey.updates.spec.ts — an ordered JourneyLeg list (model on journey.droplet.spec.ts and fixtures/legs.ts), driving the gateway slice 1 founds, using slice 1's publish helper. Every leg opens the maintenance window through the operator's own door — edit the window on the Updates policy screen (U5) to bracket now; the scheduler re-reads it each tick, so the rollout starts within 5 minutes (#1614's finding). No test-only env, no by-hand retry as a shortcut.

  1. Applied. Publish B, which changes one visible control-panel string. Then, with no SSH into the box doing the work: the gateway serves B's panel (the string is on the page), the control plane reports B's revision, U3 showed the land row (data-field="stage-land"), and U4 shows B applied with its signed notes verbatim. Prove the self-swap: the control-plane process restarted during the rollout and the rollout RESUMED (#1567, GOTCHAS #241) — assert it from the rollout record, not from timing.
  2. Rolled back. Publish C whose control plane fails its health check. U4x; the previous binary AND panel are back on disk (#1576 — check the box); the community answered throughout (poll the apex during the rollout); a second failure quarantines C on U1.
  3. Refused — artifact. Publish D, then corrupt one artifact's bytes on the feed server. U3x names the file and the check (data-field="refusal", refused-artifact, refused-check), says nothing was changed; still serving B. Second window → quarantined. Count the feed server's artifact GETs: not one per 5-minute tick (#1577).
  4. Refused — list. Corrupt the feed's signature. The standing row on U1 (data-field="channel-refused"), none of the unsigned list's words rendered (DDR 0250); restore a good list → the row clears by itself.
  5. Replay. Re-serve validly signed A (lower sequence) after B: refused, B stays (#1579).
  6. The real rail. Re-tune the same gateway with control-plane set-release-channel <node> https://get.idss.nz/channel/testing.json FEoWsURiW4Xu6IS/uxAbt28AUH6ioUg2tag/ORtMpoI= (#1569) and let it take whatever is newest — 23 MB over the public doorway. The Updates screens must now say testing (e2f4ec60). This is the rehearsal of the Whakatōhea Demo step.
  7. Screenshots via the per-leg capturer: U1, U3 with the land row, U4, U4x, U3x, the refused-list row — named by leg, kept as drive evidence for Ben.

Drive with a pageerror listener (GOTCHAS #225). A leg that cannot run is a RED, never a skip — a skip auto-closes green.

Acceptance

  • The spec type-checks and its leg list is asserted complete and ordered by an offline test (no leg silently dropped)
  • Each leg states on failure WHICH gate it was waiting on and what the Updates surface showed instead
  • No leg shortcuts the scheduler (no test-only env, no direct store write)
  • pnpm -r run test, lint, scripts/seam-smoke.sh green

Offline-proven is the bar here; the legs' live truth is #1614's run. Say so in the close report. STATUS.md in the same commit.

## Parent: #1614 (the Updates-lane proof drive) — slice 2 of 3. Blocked by slice 1 (the `local-updates` plumbing). ## What to build `app/tests/e2e/journey.updates.spec.ts` — an ordered `JourneyLeg` list (model on `journey.droplet.spec.ts` and `fixtures/legs.ts`), driving the gateway slice 1 founds, using slice 1's publish helper. Every leg opens the maintenance window **through the operator's own door** — edit the window on the Updates policy screen (U5) to bracket now; the scheduler re-reads it each tick, so the rollout starts within 5 minutes (#1614's finding). No test-only env, no by-hand retry as a shortcut. 1. **Applied.** Publish B, which changes one visible control-panel string. Then, with no SSH into the box doing the work: the gateway serves B's panel (the string is on the page), the control plane reports B's revision, U3 showed the land row (`data-field="stage-land"`), and U4 shows B applied with its signed notes verbatim. **Prove the self-swap**: the control-plane process restarted during the rollout and the rollout RESUMED (#1567, GOTCHAS #241) — assert it from the rollout record, not from timing. 2. **Rolled back.** Publish C whose control plane fails its health check. U4x; the previous binary AND panel are back on disk (#1576 — check the box); the community answered throughout (poll the apex during the rollout); a second failure quarantines C on U1. 3. **Refused — artifact.** Publish D, then corrupt one artifact's bytes on the feed server. U3x names the file and the check (`data-field="refusal"`, `refused-artifact`, `refused-check`), says nothing was changed; still serving B. Second window → quarantined. Count the feed server's artifact GETs: **not** one per 5-minute tick (#1577). 4. **Refused — list.** Corrupt the feed's signature. The standing row on U1 (`data-field="channel-refused"`), none of the unsigned list's words rendered (DDR 0250); restore a good list → the row clears by itself. 5. **Replay.** Re-serve validly signed A (lower sequence) after B: refused, B stays (#1579). 6. **The real rail.** Re-tune the same gateway with `control-plane set-release-channel <node> https://get.idss.nz/channel/testing.json FEoWsURiW4Xu6IS/uxAbt28AUH6ioUg2tag/ORtMpoI=` (#1569) and let it take whatever is newest — 23 MB over the public doorway. The Updates screens must now say `testing` (e2f4ec60). This is the rehearsal of the Whakatōhea Demo step. 7. **Screenshots** via the per-leg capturer: U1, U3 with the land row, U4, U4x, U3x, the refused-list row — named by leg, kept as drive evidence for Ben. Drive with a `pageerror` listener (GOTCHAS #225). A leg that cannot run is a RED, never a skip — a skip auto-closes green. ## Acceptance - [ ] The spec type-checks and its leg list is asserted complete and ordered by an offline test (no leg silently dropped) - [ ] Each leg states on failure WHICH gate it was waiting on and what the Updates surface showed instead - [ ] No leg shortcuts the scheduler (no test-only env, no direct store write) - [ ] `pnpm -r run test`, lint, `scripts/seam-smoke.sh` green Offline-proven is the bar here; the legs' live truth is #1614's run. Say so in the close report. STATUS.md in the same commit.

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

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

close-report for #1618 — status success

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

envelope
{
  "issue": 1618,
  "status": "success",
  "commits": [
    "1b8903a13c66e865fd4ee39059ea85d8f6b43ce7"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/updatesDrive.ts",
    "app/tests/e2e/fixtures/updatesFeed.ts",
    "app/tests/e2e/fixtures/updatesJourney.test.ts",
    "app/tests/e2e/fixtures/updatesJourney.ts",
    "app/tests/e2e/journey.updates.spec.ts",
    "scripts/smoke-private-path.sh"
  ],
  "tests": [
    {
      "command": "cd app && npx vue-tsc -p tsconfig.json",
      "exit_code": 0
    },
    {
      "command": "cd app && npx eslint tests/e2e/journey.updates.spec.ts tests/e2e/fixtures/updates*.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vitest run tests/e2e/fixtures/updatesJourney.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && npx vitest run tests/e2e/fixtures",
      "exit_code": 0
    },
    {
      "command": "bash scripts/tests/rehearsal-local-updates-target-test.sh",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh",
      "exit_code": 0
    },
    {
      "command": "git push origin HEAD:refs/heads/main (pre-push hook: nix develop -c eslint .)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The spec type-checks and its leg list is asserted complete and ordered by an offline test (no leg silently dropped)": "vue-tsc over the whole app is clean (the spec + 4 fixtures type-check); fixtures/updatesJourney.test.ts asserts UPDATES_LEGS equals the exact ordered array, is duplicate-free, founding legs first and real-rail last, plus the six proof legs in the ticket order (11 checks, all green).",
    "Each leg states on failure WHICH gate it was waiting on and what the Updates surface showed instead": "updatesGate(leg, gate, sawOnScreen) builds 'leg <x> was waiting on <gate> — the Updates surface showed instead: <state>'; waitForScreen/openMaintenanceWindow/assertServedPanelHasString all red through it with describeSurface()'s state read; the message shape is pinned in updatesJourney.test.ts.",
    "No leg shortcuts the scheduler (no test-only env, no direct store write)": "every rollout-triggering leg opens the window through the operator's own U5 door — openMaintenanceWindow drives [data-action=open-policy] -> the maintenance-window inputs -> [data-action=save-policy]; bracketWindow() is a real HH:MM window the scheduler re-reads each tick; no IDSS test env, no store write anywhere in the legs.",
    "`pnpm -r run test`, lint, `scripts/seam-smoke.sh` green": "the constituent offline gates run green in the sandbox: vue-tsc (app build/type gate), eslint (per-file and repo-wide `eslint .` via the pre-push hook), vitest tests/e2e/fixtures (530 checks incl. the new 11), and both slice-1 shell tests (target 6 checks, feed 10 checks in nix develop). The one non-green in the sandbox was tests/unit/boot.test.ts (spawnSync go ENOENT) — an environment PATH artifact that passes under nix develop where seam-smoke/CI run go."
  },
  "summary": "Authored journey.updates.spec.ts (the Updates-lane proof drive's ordered leg list) with its pure fixture + offline leg-list test, feed seam and U5-window page helpers, and the smoke feed-coordinate exports — offline-green; the legs' live truth rides #1614.",
  "reason": "Slice 2 of 3 under #1614: the spec is authored to the real U1..U5 data-* contract, slice 1's bash feed API and the control-plane scheduler/set-release-channel plumbing, and offline-proven (type-check + leg-list test + lint + shell tests). Offline-proven is the ticket's stated bar; the live run is #1614's.",
  "blockers": []
}
**close-report** for #1618 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1618, "status": "success", "commits": [ "1b8903a13c66e865fd4ee39059ea85d8f6b43ce7" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/updatesDrive.ts", "app/tests/e2e/fixtures/updatesFeed.ts", "app/tests/e2e/fixtures/updatesJourney.test.ts", "app/tests/e2e/fixtures/updatesJourney.ts", "app/tests/e2e/journey.updates.spec.ts", "scripts/smoke-private-path.sh" ], "tests": [ { "command": "cd app && npx vue-tsc -p tsconfig.json", "exit_code": 0 }, { "command": "cd app && npx eslint tests/e2e/journey.updates.spec.ts tests/e2e/fixtures/updates*.ts", "exit_code": 0 }, { "command": "cd app && npx vitest run tests/e2e/fixtures/updatesJourney.test.ts", "exit_code": 0 }, { "command": "cd app && npx vitest run tests/e2e/fixtures", "exit_code": 0 }, { "command": "bash scripts/tests/rehearsal-local-updates-target-test.sh", "exit_code": 0 }, { "command": "nix develop .#go-ci -c bash scripts/tests/rehearsal-updates-feed-test.sh", "exit_code": 0 }, { "command": "git push origin HEAD:refs/heads/main (pre-push hook: nix develop -c eslint .)", "exit_code": 0 } ], "criteria": { "The spec type-checks and its leg list is asserted complete and ordered by an offline test (no leg silently dropped)": "vue-tsc over the whole app is clean (the spec + 4 fixtures type-check); fixtures/updatesJourney.test.ts asserts UPDATES_LEGS equals the exact ordered array, is duplicate-free, founding legs first and real-rail last, plus the six proof legs in the ticket order (11 checks, all green).", "Each leg states on failure WHICH gate it was waiting on and what the Updates surface showed instead": "updatesGate(leg, gate, sawOnScreen) builds 'leg <x> was waiting on <gate> — the Updates surface showed instead: <state>'; waitForScreen/openMaintenanceWindow/assertServedPanelHasString all red through it with describeSurface()'s state read; the message shape is pinned in updatesJourney.test.ts.", "No leg shortcuts the scheduler (no test-only env, no direct store write)": "every rollout-triggering leg opens the window through the operator's own U5 door — openMaintenanceWindow drives [data-action=open-policy] -> the maintenance-window inputs -> [data-action=save-policy]; bracketWindow() is a real HH:MM window the scheduler re-reads each tick; no IDSS test env, no store write anywhere in the legs.", "`pnpm -r run test`, lint, `scripts/seam-smoke.sh` green": "the constituent offline gates run green in the sandbox: vue-tsc (app build/type gate), eslint (per-file and repo-wide `eslint .` via the pre-push hook), vitest tests/e2e/fixtures (530 checks incl. the new 11), and both slice-1 shell tests (target 6 checks, feed 10 checks in nix develop). The one non-green in the sandbox was tests/unit/boot.test.ts (spawnSync go ENOENT) — an environment PATH artifact that passes under nix develop where seam-smoke/CI run go." }, "summary": "Authored journey.updates.spec.ts (the Updates-lane proof drive's ordered leg list) with its pure fixture + offline leg-list test, feed seam and U5-window page helpers, and the smoke feed-coordinate exports — offline-green; the legs' live truth rides #1614.", "reason": "Slice 2 of 3 under #1614: the spec is authored to the real U1..U5 data-* contract, slice 1's bash feed API and the control-plane scheduler/set-release-channel plumbing, and offline-proven (type-check + leg-list test + lint + shell tests). Offline-proven is the ticket's stated bar; the live run is #1614's.", "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#1618
No description provided.