snapshot rail after founding-prefix — archive drive starts from a FOUNDED guest snapshot, ~11 min off every run (split from #1270 C) #1280

Closed
opened 2026-09-06 23:24:03 +00:00 by ben · 7 comments
Owner

Why

Split from #1270 Part C on Ben's ruling (2026-09-06). Every #1235 archive-drive run pays ~11 min of founding-prefix before the archive legs start (run 12: 651 863 ms of a 1 119 s red; the closing green 20260906T113212Z spent the same prefix before its 342 s deploy-archive). Ten minutes off every run of this drive, regardless of who fixes what.

Ask (two-way, ADR 0174)

Land the phase-7 spec's snapshot rail for the private-path guest so provision-archive.live.spec.ts (and any later local-* drive sharing the founding prefix) can start from a FOUNDED snapshot instead of re-founding:

  1. runFoundingPrefix (app/tests/e2e/fixtures/foundingPrefix.ts) gains a snapshot path: after a green founding it records the guest's founded state (qemu snapshot or disk-image copy + the state/ sidecars the later legs read); on the next run, if a snapshot exists AND its recorded HEAD/served-pin matches the current bits (GOTCHAS #92 — derivable ≠ deployed; a stale snapshot must NOT be reused), restore it and skip the prefix.
  2. The snapshot is keyed on the founding inputs (guest image sha, agent pin, brand kit) — any drift invalidates it and the prefix runs in full. No env switch may force a stale snapshot green.
  3. The executor/cycle (scripts/rehearsal-cycle.sh, smoke-private-path.sh) reports founding-prefix: snapshot vs founding-prefix: founded in legs.json so the leg list stays honest (a snapshot restore is still a green leg with its own ms).
  4. Park / transient rails stay unexercised territory — this ticket is the snapshot rail only.

Acceptance: an archive drive on the standing elitebook-03 queue reaches operator-session within ~2 min of its stamp on the second fire, with the leg list unchanged (9 legs) and founding-prefix marked snapshot. Independent of #1270 Part A and of #1279.

## Why Split from #1270 Part C on Ben's ruling (2026-09-06). Every #1235 archive-drive run pays ~11 min of `founding-prefix` before the archive legs start (run 12: 651 863 ms of a 1 119 s red; the closing green `20260906T113212Z` spent the same prefix before its 342 s `deploy-archive`). Ten minutes off every run of this drive, regardless of who fixes what. ## Ask (two-way, ADR 0174) Land the phase-7 spec's **snapshot rail** for the private-path guest so `provision-archive.live.spec.ts` (and any later `local-*` drive sharing the founding prefix) can start from a FOUNDED snapshot instead of re-founding: 1. `runFoundingPrefix` (`app/tests/e2e/fixtures/foundingPrefix.ts`) gains a snapshot path: after a green founding it records the guest's founded state (qemu snapshot or disk-image copy + the `state/` sidecars the later legs read); on the next run, if a snapshot exists AND its recorded HEAD/served-pin matches the current bits (GOTCHAS #92 — derivable ≠ deployed; a stale snapshot must NOT be reused), restore it and skip the prefix. 2. The snapshot is keyed on the founding inputs (guest image sha, agent pin, brand kit) — any drift invalidates it and the prefix runs in full. No env switch may force a stale snapshot green. 3. The executor/cycle (`scripts/rehearsal-cycle.sh`, `smoke-private-path.sh`) reports `founding-prefix: snapshot` vs `founding-prefix: founded` in `legs.json` so the leg list stays honest (a snapshot restore is still a green leg with its own `ms`). 4. Park / transient rails stay unexercised territory — this ticket is the snapshot rail only. Acceptance: an archive drive on the standing elitebook-03 queue reaches `operator-session` within ~2 min of its stamp on the second fire, with the leg list unchanged (9 legs) and `founding-prefix` marked `snapshot`. Independent of #1270 Part A and of #1279.

Blocked — cannot-proceed (no live private-path guest environment in the swarm sandbox)

I claimed this (run=19240) and worked the design out in full, but the deliverable has no offline seam I can build test-first against and prove green here. The whole rail is live-guest orchestration whose only real proof is the acceptance itself — two back-to-back live archive drives on the elitebook-03 standing queue (second fire reaches operator-session in ~2 min, founding-prefix marked snapshot). This worktree is a code-implementer, not the drive host: no live QEMU/KVM guest, no standing private-path home, no way to run the drive. Shipping the capture→restore→adopt-boot orchestration blind risks a half-restored guest that reds the drive worse than a clean re-found today — the "cheap green fix" #1270 Part A warned against — so I am not landing it unexercised.

To re-arm

Pick this up from a session with the live private-path guest (or on elitebook-03 directly), where the two-fire acceptance can actually be exercised. Re-add ready-for-agent only once that environment is in hand.

Design worked out (a gift for the next actor)

This is the private-path analogue of ADR 0208's standing-rented community, applied to the local-guest founded state.

  1. Persistence home. The founded private-path state IS the app state dir: <stateDir>/state/ already holds vm/guest.qcow2, clan-config/, guest-trust/, community-ca/, founding-state.json. Give the local-archive drive a persistent home (test-results/standing-private/, mirroring standing-rented/), launched-on across fires via launchApp({stateDir}) (the REHEARSAL_STANDING_DIR seam already exists in launch.ts).

  2. Input-keyed gate (item 2, the GOTCHAS #92 core). Mirror oc_standing_staleness (scripts/lib/rehearsal-standing-lib.sh) but simpler: reuse only when the snapshot's recorded founding inputs — guest-image sha, agent pin, brand-kit fingerprint — still equal the current bits. Key on what the snapshot actually baked at capture time, never on what main merely derives now (derivable ≠ deployed). Any drift → founding-prefix runs in full. No env switch may force a stale snapshot green (offline self-test).

  3. The session problem is solvable — the private path founds with a passkey (not the rented path's password), but the CDP virtual authenticator's resident key round-trips through WebAuthn.getCredentials/addCredential (see transplantCredentials, ceremony.ts). So capture exports the credential beside the snapshot; the adopt branch re-imports it into a fresh authenticator and signs in — no re-run of the S12 reset-token ceremony.

  4. runFoundingPrefix snapshot branch (item 1). Before launchApp, if the gate says fresh: restore state/ (incl. vm/guest.qcow2) + the user unit, start the guest, waitForGuestBanner. The app then boots to the dashboard (idempotent Manager.Create), not Welcome; the branch re-imports the credential, signs in, and returns a FoundingPrefixResult equivalent to a founded one. Degrade-to-full-founding on any doubt (missing/stale snapshot, restore error, guest won't boot, no dashboard, credential re-import fails) — this makes the rail no-regression by construction: worst case = today.

  5. Marker (item 3). runFoundingPrefix returns mode: 'snapshot' | 'founded'; the spec records it in the founding-prefix leg record (same shape as the door marker on operator-session), so legs.json stays honest and a snapshot restore is still a green leg with its own ms.

  6. Scope guard (item 4): snapshot rail only — park / transient rails stay unexercised.

## Blocked — cannot-proceed (no live private-path guest environment in the swarm sandbox) I claimed this (run=19240) and worked the design out in full, but the deliverable has **no offline seam** I can build test-first against and prove green here. The whole rail is live-guest orchestration whose only real proof is the acceptance itself — **two back-to-back live archive drives on the elitebook-03 standing queue** (second fire reaches `operator-session` in ~2 min, `founding-prefix` marked `snapshot`). This worktree is a code-implementer, not the drive host: no live QEMU/KVM guest, no standing private-path home, no way to run the drive. Shipping the capture→restore→adopt-boot orchestration blind risks a *half-restored* guest that reds the drive worse than a clean re-found today — the "cheap green fix" #1270 Part A warned against — so I am not landing it unexercised. ### To re-arm Pick this up from a session with the live private-path guest (or on elitebook-03 directly), where the two-fire acceptance can actually be exercised. Re-add `ready-for-agent` only once that environment is in hand. ### Design worked out (a gift for the next actor) This is the private-path analogue of ADR 0208's standing-rented community, applied to the local-guest founded state. 1. **Persistence home.** The founded private-path state IS the app state dir: `<stateDir>/state/` already holds `vm/guest.qcow2`, `clan-config/`, `guest-trust/`, `community-ca/`, `founding-state.json`. Give the `local-archive` drive a persistent home (`test-results/standing-private/`, mirroring `standing-rented/`), launched-on across fires via `launchApp({stateDir})` (the `REHEARSAL_STANDING_DIR` seam already exists in `launch.ts`). 2. **Input-keyed gate (item 2, the GOTCHAS #92 core).** Mirror `oc_standing_staleness` (`scripts/lib/rehearsal-standing-lib.sh`) but simpler: `reuse` only when the snapshot's **recorded** founding inputs — guest-image sha, agent pin, brand-kit fingerprint — still equal the current bits. Key on what the snapshot **actually baked** at capture time, never on what `main` merely *derives* now (derivable ≠ deployed). Any drift → `founding-prefix` runs in full. No env switch may force a stale snapshot green (offline self-test). 3. **The session problem is solvable** — the private path founds with a passkey (not the rented path's password), but the CDP virtual authenticator's resident key round-trips through `WebAuthn.getCredentials`/`addCredential` (see `transplantCredentials`, `ceremony.ts`). So capture **exports** the credential beside the snapshot; the adopt branch **re-imports** it into a fresh authenticator and signs in — no re-run of the S12 reset-token ceremony. 4. **`runFoundingPrefix` snapshot branch (item 1).** Before `launchApp`, if the gate says fresh: restore `state/` (incl. `vm/guest.qcow2`) + the user unit, start the guest, `waitForGuestBanner`. The app then boots to the **dashboard** (idempotent `Manager.Create`), not Welcome; the branch re-imports the credential, signs in, and returns a `FoundingPrefixResult` equivalent to a founded one. **Degrade-to-full-founding on any doubt** (missing/stale snapshot, restore error, guest won't boot, no dashboard, credential re-import fails) — this makes the rail no-regression by construction: worst case = today. 5. **Marker (item 3).** `runFoundingPrefix` returns `mode: 'snapshot' | 'founded'`; the spec records it in the `founding-prefix` leg record (same shape as the door marker on `operator-session`), so `legs.json` stays honest and a snapshot restore is still a green leg with its own `ms`. 6. **Scope guard (item 4):** snapshot rail only — park / transient rails stay unexercised.
Author
Owner

Rerouted ready-for-agent → ready-for-session (Ben's session, 2026-09-06)

The swarm worker's block is right: the rail's only proof is two back-to-back live archive drives on the elitebook-03 standing queue, and the sandbox has no guest. This is a session's build (host standing, live QEMU/KVM, the standing queue) — the same class as #1270 Part A and #1279. agent-blocked dropped; nothing else changes. The acceptance in the body stands.

Baseline it is measured against: the P4 archive drive retrospective (docs/research/2026-09-06-p4-archive-drive-retrospective.md) — founding-prefix 579–652 s per fire, ~2.5 h of the arc's 4.7 h drive time.

## Rerouted `ready-for-agent` → `ready-for-session` (Ben's session, 2026-09-06) The swarm worker's block is right: the rail's only proof is two back-to-back live archive drives on the elitebook-03 standing queue, and the sandbox has no guest. This is a session's build (host standing, live QEMU/KVM, the standing queue) — the same class as #1270 Part A and #1279. `agent-blocked` dropped; nothing else changes. The acceptance in the body stands. Baseline it is measured against: the P4 archive drive retrospective (`docs/research/2026-09-06-p4-archive-drive-retrospective.md`) — `founding-prefix` 579–652 s per fire, ~2.5 h of the arc's 4.7 h drive time.
Author
Owner

HELD by Ben's local session (2026-09-07 00:17Z) — ready-for-session DROPPED to keep the session-runner off it

Ben's interactive session on the laptop picked this up at 00:17Z (building on the worker's design; paused briefly for #1281). My 00:14Z reroute to ready-for-session made it sweepable by the workstation session-runner at the same time — a duplication hazard, so the label is off. No swarm-visible label remains on purpose: the local session lands it. If that session drops it, re-add ready-for-session.

## HELD by Ben's local session (2026-09-07 00:17Z) — `ready-for-session` DROPPED to keep the session-runner off it Ben's interactive session on the laptop picked this up at 00:17Z (building on the worker's design; paused briefly for #1281). My 00:14Z reroute to `ready-for-session` made it sweepable by the workstation session-runner at the same time — a duplication hazard, so the label is off. No swarm-visible label remains on purpose: the local session lands it. If that session drops it, re-add `ready-for-session`.
Author
Owner

BUILT — commit 436440a1 on main (babysitting session, Ben's 'do it now'; live acceptance pending)

The worked-out design above landed almost exactly as gifted — thank you, it was a real gift. app/tests/e2e/fixtures/snapshotRail.ts, wired into BOTH provision-archive and provision-brands (the brands drive is the live queue right now and shares the prefix):

  • Item 1 (capture/adopt): after a green founding, capture = clean guest shutdown (ssh poweroff, unit-stop backstop) → state home (minus disk + volatile Electron caches) + consistent guest.qcow2 + the operator's resident passkey (WebAuthn.getCredentials, your item-3 insight — it round-trips the private key) → test-results/standing-private/ (outside the pruned tree). Adopt = restore under the run's OWN home with a copy-on-write qcow2 overlay on the read-only master (refinement: a red run can never dirty the master, every run stays isolated, and the restore is near-instant), rewrite the captured unit's paths, start the guest to a real SSH banner, import the passkey into the resolver-carrying ceremony browser — no wizard, no app ceremony window.
  • Item 2 (the GOTCHAS #92 gate): keyed on what the snapshot BAKED — git tree hashes of nix/guest+flake pins (stage-vm-guest-slot's content-key idiom) + internal + control-plane + dashboard (the surfaces the pre-first-deploy legs read live: the browse/catalogue legs read the CAPTURED closure until the first whole-system switch). A harness-only heal keeps the key; any product drift re-founds in full. No force-reuse input exists — the pure gate takes (recorded key, current key, kill switch) and OC_SNAPSHOT_RAIL=0 can only force FOUNDED; pinned by snapshotRail.test.ts.
  • Item 3 (honest legs): the founding-prefix leg stamps founding: snapshot|founded + the gate verdict into its LegMarkers record.
  • Degrade-to-full-founding on any doubt — restore error, stale key, no banner, credential miss → the full prefix runs; worst case is exactly today.
  • Item 4: snapshot rail only; park/transient untouched.

Proof so far (offline): vitest fixtures 351/351 (+9 rail pins), vue-tsc clean, ALL rehearsal offline tests green (+1 rail-wiring check in the brands target test: decision BEFORE launch, honest marker, home outside the pruned tree).

Live acceptance: rides the standing #1277 loop — the next founded fire captures, the fire after adopts (~2 min to operator-session, founding: snapshot in legs.json). This ticket stays open until that two-fire proof lands; I am watching the loop and will post the legs.json evidence here.

## BUILT — commit `436440a1` on `main` (babysitting session, Ben's 'do it now'; live acceptance pending) The worked-out design above landed almost exactly as gifted — thank you, it was a real gift. `app/tests/e2e/fixtures/snapshotRail.ts`, wired into BOTH `provision-archive` and `provision-brands` (the brands drive is the live queue right now and shares the prefix): - **Item 1 (capture/adopt):** after a green founding, capture = clean guest shutdown (ssh `poweroff`, unit-stop backstop) → state home (minus disk + volatile Electron caches) + consistent `guest.qcow2` + the operator's resident passkey (`WebAuthn.getCredentials`, your item-3 insight — it round-trips the private key) → `test-results/standing-private/` (outside the pruned tree). Adopt = restore under the run's OWN home with a **copy-on-write qcow2 overlay on the read-only master** (refinement: a red run can never dirty the master, every run stays isolated, and the restore is near-instant), rewrite the captured unit's paths, start the guest to a real SSH banner, import the passkey into the resolver-carrying ceremony browser — no wizard, no app ceremony window. - **Item 2 (the GOTCHAS #92 gate):** keyed on what the snapshot BAKED — git tree hashes of `nix/guest`+flake pins (stage-vm-guest-slot's content-key idiom) + `internal` + `control-plane` + `dashboard` (the surfaces the pre-first-deploy legs read live: the browse/catalogue legs read the CAPTURED closure until the first whole-system switch). A harness-only heal keeps the key; any product drift re-founds in full. **No force-reuse input exists** — the pure gate takes (recorded key, current key, kill switch) and `OC_SNAPSHOT_RAIL=0` can only force FOUNDED; pinned by `snapshotRail.test.ts`. - **Item 3 (honest legs):** the founding-prefix leg stamps `founding: snapshot|founded` + the gate verdict into its LegMarkers record. - **Degrade-to-full-founding on any doubt** — restore error, stale key, no banner, credential miss → the full prefix runs; worst case is exactly today. - **Item 4:** snapshot rail only; park/transient untouched. **Proof so far (offline):** vitest fixtures 351/351 (+9 rail pins), `vue-tsc` clean, ALL rehearsal offline tests green (+1 rail-wiring check in the brands target test: decision BEFORE launch, honest marker, home outside the pruned tree). **Live acceptance:** rides the standing #1277 loop — the next founded fire captures, the fire after adopts (~2 min to `operator-session`, `founding: snapshot` in legs.json). This ticket stays open until that two-fire proof lands; I am watching the loop and will post the legs.json evidence here.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: apply ready-for-session (keeping the additive priority + rehearsal-183). This is the only open issue carrying no state role, and this run must not leave it untriaged.

State now: code-complete on main — commit 436440a1 landed the snapshot rail (app/tests/e2e/fixtures/snapshotRail.ts + wiring into provision-archive and provision-brands, smoke, and the brands target test). Offline proof is green (fixtures 351/351 incl. +9 rail pins, vue-tsc clean, all rehearsal offline tests). The only work left is the live two-fire acceptance on the standing loop (next founded fire captures, the fire after adopts → operator-session in ~2 min, founding: snapshot in legs.json, 9 legs unchanged).

Why ready-for-session and not the alternatives:

  • Not ready-for-agent — the swarm worker already blocked this (run 19240, agent-blocked): the sandbox has no live private-path guest, and the remaining work is live-guest drive orchestration. Re-adding ready-for-agent just re-triggers that exact block and walks it back to agent-blocked.
  • Not deploy-pending / snapshot-pending — those name specific trees with auto-close rails: deploy-pending = deployed-service tree (broker/**, go.mod/sum) closed by the deploy rail; snapshot-pending = the gateway image bake (nix/guest/**, scripts/gateway-image/**) closed by the #661 auto-rebuild. 436440a1 touches neither — it lives in the e2e harness, and its proof rides the rehearsal drive loop, which has no auto-close rail. (#1280's "snapshot" is a test-guest snapshot — an unrelated mechanism.)
  • Not ready-for-human — live acceptance is observing the standing loop's legs.json for a founding: snapshot fire and closing with that evidence. No Ben's-hands, no Ben's-eyes, no one-way door.
  • ready-for-session fits and matches your own standing instruction — your 00:42Z comment: "If that session drops it, re-add ready-for-session." The building session posted BUILT at 00:51Z and has since ended, so by that instruction the correct state is ready-for-session: a session on the drive host sweeps it, reads the two-fire evidence off the standing #1277 loop, and closes with the legs.json proof (or keeps watching if the two fires haven't landed yet).

Why this is a two-way door: a label change is trivially revertible and you veto anytime; it is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend).

What proves it: the acceptance in the body (second fire → operator-session ~2 min, founding: snapshot, 9 legs) plus the offline snapshotRail.test.ts pins (incl. the no-force-reuse-input rule; OC_SNAPSHOT_RAIL=0 can only force FOUNDED).

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** apply `ready-for-session` (keeping the additive `priority` + `rehearsal-183`). This is the only open issue carrying no state role, and this run must not leave it untriaged. **State now:** code-complete on `main` — commit `436440a1` landed the snapshot rail (`app/tests/e2e/fixtures/snapshotRail.ts` + wiring into `provision-archive` and `provision-brands`, smoke, and the brands target test). Offline proof is green (fixtures 351/351 incl. +9 rail pins, `vue-tsc` clean, all rehearsal offline tests). The only work left is the **live two-fire acceptance** on the standing loop (next founded fire captures, the fire after adopts → `operator-session` in ~2 min, `founding: snapshot` in `legs.json`, 9 legs unchanged). **Why `ready-for-session` and not the alternatives:** - **Not `ready-for-agent`** — the swarm worker already blocked this (run 19240, `agent-blocked`): the sandbox has no live private-path guest, and the remaining work is live-guest drive orchestration. Re-adding `ready-for-agent` just re-triggers that exact block and walks it back to `agent-blocked`. - **Not `deploy-pending` / `snapshot-pending`** — those name specific trees with auto-close rails: `deploy-pending` = deployed-service tree (`broker/**`, `go.mod/sum`) closed by the deploy rail; `snapshot-pending` = the **gateway image** bake (`nix/guest/**`, `scripts/gateway-image/**`) closed by the #661 auto-rebuild. `436440a1` touches neither — it lives in the e2e harness, and its proof rides the **rehearsal drive loop**, which has no auto-close rail. (#1280's "snapshot" is a test-guest snapshot — an unrelated mechanism.) - **Not `ready-for-human`** — live acceptance is *observing* the standing loop's `legs.json` for a `founding: snapshot` fire and closing with that evidence. No Ben's-hands, no Ben's-eyes, no one-way door. - **`ready-for-session` fits and matches your own standing instruction** — your 00:42Z comment: *"If that session drops it, re-add `ready-for-session`."* The building session posted BUILT at 00:51Z and has since ended, so by that instruction the correct state is `ready-for-session`: a session on the drive host sweeps it, reads the two-fire evidence off the standing #1277 loop, and closes with the `legs.json` proof (or keeps watching if the two fires haven't landed yet). **Why this is a two-way door:** a label change is trivially revertible and you veto anytime; it is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). **What proves it:** the acceptance in the body (second fire → `operator-session` ~2 min, `founding: snapshot`, 9 legs) plus the offline `snapshotRail.test.ts` pins (incl. the no-force-reuse-input rule; `OC_SNAPSHOT_RAIL=0` can only force FOUNDED).

Session-runner attempt (matou-dev-server-01, run 1473315) — code re-verified green, live acceptance is elitebook-03-bound; leaving ready-for-session

Ruled by agent under ADR 0174 — veto anytime

What I could prove here (two-way, on current main d42da82d): the snapshot-rail
code is landed and its offline proof is intact —

  • pnpm exec vitest run tests/e2e/fixtures/snapshotRail.test.ts → 9/9 (the pure
    railGateVerdict gate pins incl. "no force-reuse input" and the OC_SNAPSHOT_RAIL=0
    kill-switch-only-forces-FOUNDED shape).
  • pnpm exec vue-tsc -p tsconfig.json --noEmit → clean.
  • pnpm exec vitest run tests/e2e/fixtures/provision.test.ts (the wiring) → 20/20.

Why this attempt did not close it — a missing door, not a defect. The remaining
work is the body's live two-fire acceptance (fire 1 founds+captures, fire 2 adopts
→ operator-session in ~2 min, founding-prefix marked snapshot, 9 legs), whose only
evidence is artifacts/legs.json. That rail is exercised by the local-archive/brands
standing queue
, which runs on elitebook-03 (scripts/rehearsal-executor.sh:20 —
"an unmigrated executor (elitebook-03)"). This session is on matou-dev-server-01, which:

  • drives the idip droplet queue (REHEARSAL_DRIVE_QUEUE=1234, target idip), not
    the local queue — test-results/ here holds drive-droplet only, no private-path/,
    no standing-private/ home, no guest.qcow2 master;
  • has no SSH/mesh door to elitebook-03 (not in ~/.ssh/config, known_hosts, or any
    host env; no netbird peer);
  • so it cannot fire the drive nor read elitebook-03's legs.json.

Running a cold local-guest two-fire here instead would mean staging the guest world from
scratch and paying a 1–3 h heavy drive twice inside a one-shot session (ADR 0184) — the
"cheap green fix" the swarm worker warned against, and out of a session-runner's honest
reach. Not attempted.

State of the prefix-sharer right now: the standing drive is #1277 (brands, shares
the founding prefix). Its last fires (…T234910Z, …T004410Z) are RED at remove-archive
— an archive leg AFTER a green founding prefix, unrelated to the rail — and re-firing
behind #1281/#1282. So no clean GREEN two-fire has landed on the queue since 436440a1
(00:51Z); the founding: snapshot evidence, if the capture is already happening on the
green-founding fires, is sitting in elitebook-03's legs.json where no tracker reader can see it.

Systemic unblock filed: #1283 — make the GREEN close-comment surface the
founding-prefix: snapshot|founded (…ms) marker (+ leg count) read from legs.json, so
this acceptance (and every later prefix-sharing local-* drive) closes from a tracker
read on any host
instead of requiring elitebook-03 shell access. Offline-testable; no
live drive needed to land it.

Routing: leaving ready-for-session per ADR 0174 rule 8 (a missing door, stated
honestly). The next actor that can close this is a session on / adjacent to elitebook-03
reading test-results/private-path/<stamp>/artifacts/legs.json from the next clean GREEN
two-fire (founding: snapshot, 9 legs, operator-session ~2 min) — or, once #1283 lands,
anyone reading the drive's GREEN close-comment. Respecting Ben's 01:08Z ruling that this is
session work, not ready-for-human. Dropping agent-working (this session is ending
without landing it) so the queue re-offers it.

## Session-runner attempt (matou-dev-server-01, run 1473315) — code re-verified green, live acceptance is elitebook-03-bound; leaving `ready-for-session` ### Ruled by agent under ADR 0174 — veto anytime **What I could prove here (two-way, on current `main` `d42da82d`):** the snapshot-rail code is landed and its offline proof is intact — - `pnpm exec vitest run tests/e2e/fixtures/snapshotRail.test.ts` → **9/9** (the pure `railGateVerdict` gate pins incl. "no force-reuse input" and the `OC_SNAPSHOT_RAIL=0` kill-switch-only-forces-FOUNDED shape). - `pnpm exec vue-tsc -p tsconfig.json --noEmit` → **clean**. - `pnpm exec vitest run tests/e2e/fixtures/provision.test.ts` (the wiring) → **20/20**. **Why this attempt did not close it — a missing door, not a defect.** The remaining work is the body's **live two-fire acceptance** (fire 1 founds+captures, fire 2 adopts → `operator-session` in ~2 min, `founding-prefix` marked `snapshot`, 9 legs), whose only evidence is `artifacts/legs.json`. That rail is exercised by the **`local-archive`/`brands` standing queue**, which runs on **elitebook-03** (`scripts/rehearsal-executor.sh:20` — "an unmigrated executor (elitebook-03)"). This session is on **matou-dev-server-01**, which: - drives the **`idip` droplet** queue (`REHEARSAL_DRIVE_QUEUE=1234`, target `idip`), not the local queue — `test-results/` here holds `drive-droplet` only, no `private-path/`, no `standing-private/` home, no `guest.qcow2` master; - has **no SSH/mesh door to elitebook-03** (not in `~/.ssh/config`, `known_hosts`, or any host env; no netbird peer); - so it cannot fire the drive nor read elitebook-03's `legs.json`. Running a cold local-guest two-fire here instead would mean staging the guest world from scratch and paying a 1–3 h heavy drive twice inside a one-shot session (ADR 0184) — the "cheap green fix" the swarm worker warned against, and out of a session-runner's honest reach. Not attempted. **State of the prefix-sharer right now:** the standing drive is **#1277** (brands, shares the founding prefix). Its last fires (`…T234910Z`, `…T004410Z`) are **RED at `remove-archive`** — an archive leg AFTER a green founding prefix, unrelated to the rail — and re-firing behind #1281/#1282. So no clean GREEN two-fire has landed on the queue since `436440a1` (00:51Z); the `founding: snapshot` evidence, if the capture is already happening on the green-founding fires, is sitting in elitebook-03's `legs.json` where no tracker reader can see it. **Systemic unblock filed:** **#1283** — make the GREEN close-comment surface the `founding-prefix: snapshot|founded (…ms)` marker (+ leg count) read from `legs.json`, so this acceptance (and every later prefix-sharing `local-*` drive) closes from a **tracker read on any host** instead of requiring elitebook-03 shell access. Offline-testable; no live drive needed to land it. **Routing:** leaving `ready-for-session` per ADR 0174 rule 8 (a missing door, stated honestly). The next actor that can close this is a session **on / adjacent to elitebook-03** reading `test-results/private-path/<stamp>/artifacts/legs.json` from the next clean GREEN two-fire (`founding: snapshot`, 9 legs, operator-session ~2 min) — or, once #1283 lands, anyone reading the drive's GREEN close-comment. Respecting Ben's 01:08Z ruling that this is session work, not `ready-for-human`. Dropping `agent-working` (this session is ending without landing it) so the queue re-offers it.
Author
Owner

LIVE ACCEPTANCE MET — closing (evidence from the standing #1277 loop)

Two back-to-back fires on elitebook-03, exactly the acceptance shape:

Fire 1 — capture (drive 20260907T013453Z, run 5): full founding (leg green, founding: founded, rail: no snapshot captured yet), then captureFoundedSnapshot shut the guest down cleanly, landed master + manifest + state under test-results/standing-private/ (key 7d89ca4aad965182) and restarted the guest at 01:48:44.

Fire 2 — adopt (drive 20260907T015459Z, run 6), artifacts/legs.json verbatim:

{"leg":"founding-prefix","status":"green","ms":396,"founding":"snapshot",
 "rail":"snapshot key 7d89ca4aad965182 matches (captured 2026-09-07T01:48:44.270Z @ fe6381e…)"}
{"leg":"operator-session","status":"green","ms":3543}

396 ms against the P4 baseline's 579–652 s founding prefix; operator-session green ~3 min after the run stamp (restore + guest boot to a SERVING control plane rides before the launch). The leg list is unchanged — a restore is still a green founding-prefix leg with its own ms and the honest founding: snapshot marker (item 3). The run then drove the full archive cycle green on the adopted community (deploy/healthy/wears-kit/remove), so the adopted session is a real operator session, not a shell.

Notes for the record:

  • The proof ran on the brands drive; provision-archive.live.spec.ts carries the identical wiring (same fixture path, pinned offline by rehearsal-local-brands-target-test.sh §4 over BOTH specs), so the archive drive adopts the same way.
  • One heal en route, exactly the degrade philosophy working: the rail's first restart gated on the SSH banner alone and the door beat the control plane binding :8080 by ~350 ms (run 5's operator-session red) — the healer's 9567f4b2 gates both rail restarts on waitForControlPlaneServing now.
  • The gate is doing its job in both directions: 42c9e644 (#1284, touches internal/) honestly drifts the key, so the next fire re-founds in full and re-captures; harness-only heals keep the snapshot warm.
  • Cost on a capture run: one clean guest stop/copy/restart (~2 min). Saving on every adopt run: ~10 min.

Item 4 respected: park/transient rails untouched.

## LIVE ACCEPTANCE MET — closing (evidence from the standing #1277 loop) Two back-to-back fires on elitebook-03, exactly the acceptance shape: **Fire 1 — capture** (drive `20260907T013453Z`, run 5): full founding (leg green, `founding: founded`, `rail: no snapshot captured yet`), then `captureFoundedSnapshot` shut the guest down cleanly, landed master + manifest + state under `test-results/standing-private/` (key `7d89ca4aad965182`) and restarted the guest at 01:48:44. **Fire 2 — adopt** (drive `20260907T015459Z`, run 6), `artifacts/legs.json` verbatim: ```json {"leg":"founding-prefix","status":"green","ms":396,"founding":"snapshot", "rail":"snapshot key 7d89ca4aad965182 matches (captured 2026-09-07T01:48:44.270Z @ fe6381e…)"} {"leg":"operator-session","status":"green","ms":3543} ``` **396 ms** against the P4 baseline's 579–652 s founding prefix; `operator-session` green ~3 min after the run stamp (restore + guest boot to a SERVING control plane rides before the launch). The leg list is unchanged — a restore is still a green `founding-prefix` leg with its own `ms` and the honest `founding: snapshot` marker (item 3). The run then drove the full archive cycle green on the adopted community (deploy/healthy/wears-kit/remove), so the adopted session is a real operator session, not a shell. Notes for the record: - The proof ran on the **brands** drive; `provision-archive.live.spec.ts` carries the identical wiring (same fixture path, pinned offline by `rehearsal-local-brands-target-test.sh` §4 over BOTH specs), so the archive drive adopts the same way. - One heal en route, exactly the degrade philosophy working: the rail's first restart gated on the SSH banner alone and the door beat the control plane binding :8080 by ~350 ms (run 5's `operator-session` red) — the healer's `9567f4b2` gates both rail restarts on `waitForControlPlaneServing` now. - The gate is doing its job in both directions: `42c9e644` (#1284, touches `internal/`) honestly drifts the key, so the next fire re-founds in full and re-captures; harness-only heals keep the snapshot warm. - Cost on a capture run: one clean guest stop/copy/restart (~2 min). Saving on every adopt run: ~10 min. Item 4 respected: park/transient rails untouched.
ben closed this issue 2026-09-07 02:26:48 +00:00
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1280
No description provided.