rehearsal phase 4 REGRESSION (2026-09-09): rebuild the golden gateway image (#1346) and prove the rented journey still lands 20/20 on it — after the 2026-09-08 Whakatohea trial's five fixes #1354

Closed
opened 2026-09-09 13:58:42 +00:00 by ben · 9 comments
Owner

Regression drive + the IMAGE RAIL — Ben's instruction 2026-09-09 ("run the image rail"). The 2026-09-08 manual trial (Whakatohea, rented, laptop .deb from db1d1b23) filed five defects and the swarm landed all five on origin/main overnight:

  • #1334 7e251cd5 — Caddy pinned to h1+h2 (advertised h3 over a UDP 443 the firewall never opened)
  • #1335 fd9490d2 — the rented community name is FROZEN after rent (the S5 slug edit re-keyed the rental off the live box)
  • #1343 35d9f7e0 — GET /api/v1/network composed (never wired since #815)
  • #1221 110f6d38 — the fleet-heartbeat SENDER (agent report loop + /proc sampler + ledger-identity join). Item 2 (the rendered report-only unit) is still open, so the sender is DORMANT this drive — the gateway's Fleet row still reads no recent signal; that is EXPECTED, not a red.
  • #1346 df1c0607 — the golden snapshot must carry NO agent-minted device identity (/var/lib/idss/device.key dated the image build on every rental)

Why this drive: #1346 changes what the snapshot BAKES (scripts/gateway-image/**, the recipe axis, #1196) — the staleness gate marks the current idss-gateway-* snapshot STALE and the executor's pre-drive rebuild (#661/#1050, rebased per #1102/#1108) builds a fresh idss-gateway-<sha> before renting. That rebuild IS the rail: it bakes the newest published agent (884b3130, carries the #1221 sender) and, if #1346 holds, a snapshot with no device.key. A FAILED rebuild PARKS (GOTCHAS #162) — a park is not a regression, read the comment it leaves.

Extra evidence to harvest on this drive (beyond the 20 legs): on the rented box after enroll-activate, ls -la /var/lib/idss/ — device.key must be MINTED AT BOOT (mtime ≥ droplet create), never older (#1346's pin); curl -sI https://<apex>/ must carry NO alt-svc: h3 (#1334); GET /api/v1/network on the apex must answer 200 (#1343). If the journey's evidence harvest cannot reach these, comment the gap — do not green over it.

Executor contract unchanged (GREEN is the only close; a red files its defect and blocks this issue; the drive re-fires when the last blocker closes; every red's screenshots get eyeballed before a green is believed). Driven through the standing-drive queue (REHEARSAL_DRIVE_QUEUE, docs/operator-app/rehearsal-drive.md).

Phase 4 last closed GREEN on #1226 (2026-09-05).

Close condition

One GREEN drive, 20/20 by leg list, screenshots eyeballed, on a snapshot built from a sha ≥ df1c0607.

Host: matou-workstation (slug rehearsal-b); elitebook-03 keeps drive 8 (#1277) on the standing rehearsal-e — never point two executors at one issue.

Regression drive + the IMAGE RAIL — Ben's instruction 2026-09-09 ("run the image rail"). The 2026-09-08 manual trial (Whakatohea, rented, laptop `.deb` from `db1d1b23`) filed five defects and the swarm landed all five on `origin/main` overnight: - #1334 `7e251cd5` — Caddy pinned to h1+h2 (advertised h3 over a UDP 443 the firewall never opened) - #1335 `fd9490d2` — the rented community name is FROZEN after rent (the S5 slug edit re-keyed the rental off the live box) - #1343 `35d9f7e0` — `GET /api/v1/network` composed (never wired since #815) - #1221 `110f6d38` — the fleet-heartbeat SENDER (agent `report` loop + `/proc` sampler + ledger-identity join). Item 2 (the rendered report-only unit) is still open, so the sender is DORMANT this drive — the gateway's Fleet row still reads `no recent signal`; that is EXPECTED, not a red. - #1346 `df1c0607` — the golden snapshot must carry NO agent-minted device identity (`/var/lib/idss/device.key` dated the image build on every rental) **Why this drive:** #1346 changes what the snapshot BAKES (`scripts/gateway-image/**`, the recipe axis, #1196) — the staleness gate marks the current `idss-gateway-*` snapshot STALE and the executor's pre-drive rebuild (#661/#1050, rebased per #1102/#1108) builds a fresh `idss-gateway-<sha>` before renting. That rebuild IS the rail: it bakes the newest published agent (`884b3130`, carries the #1221 sender) and, if #1346 holds, a snapshot with no `device.key`. A FAILED rebuild PARKS (GOTCHAS #162) — a park is not a regression, read the comment it leaves. **Extra evidence to harvest on this drive** (beyond the 20 legs): on the rented box after `enroll-activate`, `ls -la /var/lib/idss/` — `device.key` must be MINTED AT BOOT (mtime ≥ droplet create), never older (#1346's pin); `curl -sI https://<apex>/` must carry NO `alt-svc: h3` (#1334); `GET /api/v1/network` on the apex must answer 200 (#1343). If the journey's evidence harvest cannot reach these, comment the gap — do not green over it. Executor contract unchanged (GREEN is the only close; a red files its defect and blocks this issue; the drive re-fires when the last blocker closes; every red's screenshots get eyeballed before a green is believed). Driven through the standing-drive **queue** (`REHEARSAL_DRIVE_QUEUE`, `docs/operator-app/rehearsal-drive.md`). Phase 4 last closed GREEN on #1226 (2026-09-05). ## Close condition **One GREEN drive, 20/20 by leg list, screenshots eyeballed**, on a snapshot built from a sha ≥ `df1c0607`. Host: **matou-workstation** (slug `rehearsal-b`); elitebook-03 keeps drive 8 (#1277) on the standing `rehearsal-e` — never point two executors at one issue. <!-- rehearsal-target: rented --> <!-- rehearsal-confirm: 1 -->

gateway-image: snapshot advanced 0b07e27 → e6444d32bd0e by matou-dev-server-01 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed. Rebuild timings: total 17m51s (provision 1m42s, nixos-install 2m53s, installer-base 11m29s, snapshot 1m35s) (#1139).

gateway-image: snapshot advanced `0b07e27` → `e6444d32bd0e` by matou-dev-server-01 (#661 auto-rebuild — build.sh resolved the newest published agent ancestor, #654). The rented drive now boots current agent bits; no human build.sh run was needed. Rebuild timings: total 17m51s (provision 1m42s, nixos-install 2m53s, installer-base 11m29s, snapshot 1m35s) (#1139).

rehearsal healer: drive 20260909T140205Z red at rent-fails-clean (sig dcd9de7c3e06) self-fixed — commit 5e64d8b653a58c9cb61fd94172991e1e82d024f2 (2 files changed, 13 insertions(+), 1 deletion(-)); checks: app/node_modules/.bin/vitest run tests/unit/foundingBrandKit.test.ts → 22 passed (1 file); ./node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0; prettier --check on both edited files → clean. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260909T140205Z` red at `rent-fails-clean` (sig dcd9de7c3e06) self-fixed — commit `5e64d8b653a58c9cb61fd94172991e1e82d024f2` (2 files changed, 13 insertions(+), 1 deletion(-)); checks: app/node_modules/.bin/vitest run tests/unit/foundingBrandKit.test.ts → 22 passed (1 file); ./node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0; prettier --check on both edited files → clean. The drive stays armed; the next tick re-drives.

drive 20260909T143503Z RED — now blocked by: #1355 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260909T143503Z` RED — now blocked by: #1355 (evidence on each). The drive re-fires when the last blocker closes.

drive 20260909T144805Z GREEN end to end — 20/20 legs green — evidence (legs.json, durations, trace, host facts) in test-results/drive-rented/20260909T144805Z/ on the executor host; a representative screenshot is attached here if one was captured (#596). Closing per the standing instructions: the rented journey passes, #183 is ready to be boring.

drive `20260909T144805Z` GREEN end to end — 20/20 legs green — evidence (legs.json, durations, trace, host facts) in `test-results/drive-rented/20260909T144805Z/` on the executor host; a representative screenshot is attached here if one was captured (#596). Closing per the standing instructions: the rented journey passes, #183 is ready to be boring.

drive 20260923T160002Z RED — now blocked by: #1773 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260923T160002Z` RED — now blocked by: #1773 (evidence on each). The drive re-fires when the last blocker closes.

rehearsal healer: drive 20260923T164947Z red at branded-login (sig 82dac6011854) self-fixed — commit ece820ed4704d8f1c5d0cba46038c44f80aa010d (2 files changed, 98 insertions(+), 23 deletions(-)); checks: app/node_modules/.bin/vitest run tests/e2e/fixtures/idip.test.ts → red first (4 failed / 52 passed), green after the fix (56 passed); app/node_modules/.bin/vitest run tests/e2e/fixtures/ → 686 passed (35 files); go test git.matou.nz/Matou/idss/internal/idp → ok (8.9s); app/node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260923T164947Z` red at `branded-login` (sig 82dac6011854) self-fixed — commit `ece820ed4704d8f1c5d0cba46038c44f80aa010d` (2 files changed, 98 insertions(+), 23 deletions(-)); checks: app/node_modules/.bin/vitest run tests/e2e/fixtures/idip.test.ts → red first (4 failed / 52 passed), green after the fix (56 passed); app/node_modules/.bin/vitest run tests/e2e/fixtures/ → 686 passed (35 files); go test git.matou.nz/Matou/idss/internal/idp → ok (8.9s); app/node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0. The drive stays armed; the next tick re-drives.

rehearsal healer: drive 20260923T231332Z red at operator-session (sig b5659a2277df) self-fixed — commit a384867f6165c4d3fa3c5a73204d02764fb8f258 (9 files changed, 1020 insertions(+), 44 deletions(-)); checks: app/node_modules/.bin/vitest run tests/e2e/fixtures/idip.test.ts → red first (1 failed / 56 passed: the new the bridge sign-in survives one host network flap pin), green after the fix (57 passed); app/node_modules/.bin/vitest run tests/e2e/fixtures/ → 687 passed (35 files), including the pre-existing #1738 pin the ERR_NETWORK_CHANGED guard must live in exactly one shared helper which the hoist keeps at exactly 1; app/node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0. Box evidence read live from the harvested gateway access log: Sep 23 23:27:20 gateway caddy[3215] … "method":"POST","host":"id.rehearsal-g.idss.nz","uri":"/login/verify" … "status":0,"resp_headers":{"Server":["Caddy"]} vs "status":302 + Location: …/authorize/callback on all five earlier sign-ins that run.. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260923T231332Z` red at `operator-session` (sig b5659a2277df) self-fixed — commit `a384867f6165c4d3fa3c5a73204d02764fb8f258` (9 files changed, 1020 insertions(+), 44 deletions(-)); checks: app/node_modules/.bin/vitest run tests/e2e/fixtures/idip.test.ts → red first (1 failed / 56 passed: the new `the bridge sign-in survives one host network flap` pin), green after the fix (57 passed); app/node_modules/.bin/vitest run tests/e2e/fixtures/ → 687 passed (35 files), including the pre-existing #1738 pin `the ERR_NETWORK_CHANGED guard must live in exactly one shared helper` which the hoist keeps at exactly 1; app/node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0. Box evidence read live from the harvested gateway access log: `Sep 23 23:27:20 gateway caddy[3215] … "method":"POST","host":"id.rehearsal-g.idss.nz","uri":"/login/verify" … "status":0,"resp_headers":{"Server":["Caddy"]}` vs `"status":302` + `Location: …/authorize/callback` on all five earlier sign-ins that run.. The drive stays armed; the next tick re-drives.

rehearsal healer: drive 20260924T023814Z red at co-host (sig 9d3c3984ccd6) self-fixed — commit d261196c25cbabaad624aaa75fd293bbf6f1bb46 (2 files changed, 172 insertions(+)); checks: app/node_modules/.bin/vitest run tests/e2e/fixtures/provision.test.ts → red first with the helper neutered (2 failed / 52 passed: the IDIP-answers pin and the names-both-screens pin), green after (54 passed); app/node_modules/.bin/vitest run tests/e2e/fixtures/ → 691 passed (35 files); app/node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0, no diagnostics; eslint + prettier --check on both edited files → clean. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260924T023814Z` red at `co-host` (sig 9d3c3984ccd6) self-fixed — commit `d261196c25cbabaad624aaa75fd293bbf6f1bb46` (2 files changed, 172 insertions(+)); checks: app/node_modules/.bin/vitest run tests/e2e/fixtures/provision.test.ts → red first with the helper neutered (2 failed / 52 passed: the IDIP-answers pin and the names-both-screens pin), green after (54 passed); app/node_modules/.bin/vitest run tests/e2e/fixtures/ → 691 passed (35 files); app/node_modules/.bin/vue-tsc -p tsconfig.json --noEmit (covers tests/e2e) → exit 0, no diagnostics; eslint + prettier --check on both edited files → clean. The drive stays armed; the next tick re-drives.

rehearsal healer: drive 20260924T142850Z red at calendar-remove (sig f8fe3dcef764) fast-lane self-fixed — commit c2e1781891745f612225c84f8656eb4fa7fbc7a1 filed and closed #1822 through the close-report gate; checks: GOWORK had to be pinned to this checkout (the inherited GOWORK points at the drive's payload tree /home/dev/drives/idss-portal). Targeted: GOWORK=/home/dev/rehearsal-heal/idss/go.work go test git.matou.nz/Matou/idss/internal/clan -run 'TestMachineServices_|TestReadDeployedServices_|TestReadPlacement_' -v → RED FIRST on the two new pins (calendar must be in the gateway's Services, got [files]; got map[files:true]), GREEN after the fix (12 passed, 0 failed). Package: go test git.matou.nz/Matou/idss/internal/clan → 2 failures, both PRE-EXISTING on clean main and unrelated (verified by git stash + re-run at 7018fb3f): TestGoldenRenderLint_NoSecretInTheConfigRepo and TestGoldenRenderLint_CatchesPlantedSecretsAndShapes, tripping on the matou-cache public signing key jryaAm0uulUbamaQ5/9Shb9SkpMW3rVv49FkzRNOf7E= that commit 7018fb3f (#1801) landed in gateway-guest.nix/vmguest configuration.nix with no goldenRenderAllowList entry — a separate ticket, not touched here. Downstream consumers: go test git.matou.nz/Matou/idss/internal/provision git.matou.nz/Matou/idss/internal/fleetstate git.matou.nz/Matou/idss/internal/memberorbit git.matou.nz/Matou/idss/internal/catalogue git.matou.nz/Matou/idss/control-plane/... → all ok. gofmt -l internal/clan/ → clean; go vet git.matou.nz/Matou/idss/internal/clan → clean.. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260924T142850Z` red at `calendar-remove` (sig f8fe3dcef764) fast-lane self-fixed — commit `c2e1781891745f612225c84f8656eb4fa7fbc7a1` filed and closed #1822 through the close-report gate; checks: GOWORK had to be pinned to this checkout (the inherited GOWORK points at the drive's payload tree /home/dev/drives/idss-portal). Targeted: `GOWORK=/home/dev/rehearsal-heal/idss/go.work go test git.matou.nz/Matou/idss/internal/clan -run 'TestMachineServices_|TestReadDeployedServices_|TestReadPlacement_' -v` → RED FIRST on the two new pins (`calendar must be in the gateway's Services, got [files]`; `got map[files:true]`), GREEN after the fix (12 passed, 0 failed). Package: `go test git.matou.nz/Matou/idss/internal/clan` → 2 failures, both PRE-EXISTING on clean main and unrelated (verified by `git stash` + re-run at 7018fb3f): `TestGoldenRenderLint_NoSecretInTheConfigRepo` and `TestGoldenRenderLint_CatchesPlantedSecretsAndShapes`, tripping on the matou-cache public signing key `jryaAm0uulUbamaQ5/9Shb9SkpMW3rVv49FkzRNOf7E=` that commit 7018fb3f (#1801) landed in gateway-guest.nix/vmguest configuration.nix with no `goldenRenderAllowList` entry — a separate ticket, not touched here. Downstream consumers: `go test git.matou.nz/Matou/idss/internal/provision git.matou.nz/Matou/idss/internal/fleetstate git.matou.nz/Matou/idss/internal/memberorbit git.matou.nz/Matou/idss/internal/catalogue git.matou.nz/Matou/idss/control-plane/...` → all ok. `gofmt -l internal/clan/` → clean; `go vet git.matou.nz/Matou/idss/internal/clan` → clean.. The drive stays armed; the next tick re-drives.
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#1354
No description provided.