rehearsal: THE DRIVE — run the #183 journey on the droplet (standing issue; blocked-by = the frontier) #378

Closed
opened 2026-08-09 21:53:18 +00:00 by ben · 32 comments
Owner

The standing drive issue of the #183 rehearsal ratchet (spec
docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md,
plan docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md,
runbook docs/operator-app/rehearsal-drive.md). This issue IS the cycle's
state machine (Ben's ruling, 2026-08-09): its label + dependency state
decide when a drive runs. Nobody schedules anything.

Lifecycle — standing instructions to any executor

  1. Ready = drive. When this issue is ready-for-agent and unblocked,
    run one drive: scripts/rehearsal-cycle.sh (refresh → payload gate →
    scripts/smoke-private-path.sh --target droplet → reporter → teardown).
  2. Red: NEVER close this issue. The reporter
    (.sandcastle/rehearsal-report.sh) files/matches the bug issues, wires
    each as a native dependency ("blocked by") of THIS issue, and posts one
    evidence comment here (stamp, red legs, blocking issues). If nothing
    could be filed or matched, swap this issue's ready-for-agent for
    ready-for-human instead — this issue must never sit ready and
    undepended after a red.
  3. Re-drive is automatic. When the last blocker closes, this issue is
    ready again and the next executor pick re-drives — verifying the plugs
    and surfacing the next hole. Multiple blockers coalesce: no drive until
    all of them close.
  4. GREEN closes it. The full droplet journey passing end to end is the
    ONLY close. Post the run evidence (stamp, leg durations, host facts) in
    the closing comment. At that point #183 is ready to be boring — say so
    to Ben.

Current state

no-triage — the harness isn't ready for the first drive yet. Flipping
this to ready-for-agent is the declaration of readiness (Ben's call, or
the driver session's once the gates pass). Prerequisites before the flip:

  • Plan Tasks 5+6 landed (droplet journey spec + --target droplet seam)
  • #377 answered — substrate has no /dev/kvm; the host wrapper scripts/rehearsal-executor.sh is built (62f8706)
  • #371 (leg registry) and #373 (reporter) landed; the dependency-wiring
    contract completed in 62f8706 (offline test 6 cases)
  • Workstation prerequisites per the runbook (payload, doctl, broker env,
    REHEARSAL_DRIVE_ISSUE=378 in .sandcastle/.env)

The first drives are EXPECTED to red at the pairing frontier until #368
(own-VPS founding carrier) lands — that red is the ratchet working, not a
failure of this issue.

**The standing drive issue of the #183 rehearsal ratchet** (spec `docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md`, plan `docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md`, runbook `docs/operator-app/rehearsal-drive.md`). This issue IS the cycle's state machine (Ben's ruling, 2026-08-09): its label + dependency state decide when a drive runs. Nobody schedules anything. ## Lifecycle — standing instructions to any executor 1. **Ready = drive.** When this issue is `ready-for-agent` and unblocked, run one drive: `scripts/rehearsal-cycle.sh` (refresh → payload gate → `scripts/smoke-private-path.sh --target droplet` → reporter → teardown). 2. **Red: NEVER close this issue.** The reporter (`.sandcastle/rehearsal-report.sh`) files/matches the bug issues, wires each as a native dependency ("blocked by") of THIS issue, and posts one evidence comment here (stamp, red legs, blocking issues). If nothing could be filed or matched, swap this issue's `ready-for-agent` for `ready-for-human` instead — this issue must never sit ready and undepended after a red. 3. **Re-drive is automatic.** When the last blocker closes, this issue is ready again and the next executor pick re-drives — verifying the plugs and surfacing the next hole. Multiple blockers coalesce: no drive until all of them close. 4. **GREEN closes it.** The full droplet journey passing end to end is the ONLY close. Post the run evidence (stamp, leg durations, host facts) in the closing comment. At that point #183 is ready to be boring — say so to Ben. ## Current state `no-triage` — the harness isn't ready for the first drive yet. Flipping this to `ready-for-agent` is the declaration of readiness (Ben's call, or the driver session's once the gates pass). Prerequisites before the flip: - [x] Plan Tasks 5+6 landed (droplet journey spec + `--target droplet` seam) - [x] #377 answered — substrate has no /dev/kvm; the host wrapper `scripts/rehearsal-executor.sh` is built (62f8706) - [x] #371 (leg registry) and #373 (reporter) landed; the dependency-wiring contract completed in 62f8706 (offline test 6 cases) - [ ] Workstation prerequisites per the runbook (payload, doctl, broker env, `REHEARSAL_DRIVE_ISSUE=378` in `.sandcastle/.env`) The first drives are EXPECTED to red at the pairing frontier until #368 (own-VPS founding carrier) lands — that red is the ratchet working, not a failure of this issue.
Author
Owner

Plan Tasks 5+6 landed — ticked on the pre-flip checklist.

  • Task 5 = bf028ec: app/tests/e2e/journey.droplet.spec.ts (own-VPS wizard branch through the shared fixtures, install command over ssh, honest red at the pairing frontier #368, legs #368/#369/#370 as named skips into artifacts/legs.json) + playwright.config.ts keys the default spec off OC_E2E_TARGET, composed on top of #376's OC_E2E_SPEC override (advances #376).
  • Task 6 = 6829b21: scripts/lib/rehearsal-droplet.sh (clan-lab create --fresh 6h TTL, evidence off-box, best-effort offboard with the wizard's own claim secret, destroy) + the --target local-guest|droplet / --keep-droplet seam in scripts/smoke-private-path.sh. Droplet runs land in test-results/drive-droplet/.

Verified: --dry-run GREEN on both targets (local-guest output unchanged — kvm/qcow2/warm-cache gates stay its alone; droplet preflight passed with doctl authed, no guest machinery mentioned); playwright test --list selects exactly one spec per target and the OC_E2E_SPEC override still wins; tsc adds no new errors; shellcheck clean on both scripts; fixture unit suite 30/30.

Deviations recorded in the commit messages: the #375 memory floor gets a droplet-sized 2048 MiB variant, and --drive with --target droplet refuses rather than composing. The Stage-1 checkpoint (a real --target droplet drive to the pairing red) remains for the workstation per the plan.

**Plan Tasks 5+6 landed** — ticked on the pre-flip checklist. - Task 5 = `bf028ec`: `app/tests/e2e/journey.droplet.spec.ts` (own-VPS wizard branch through the shared fixtures, install command over ssh, honest red at the pairing frontier #368, legs #368/#369/#370 as named skips into `artifacts/legs.json`) + `playwright.config.ts` keys the default spec off `OC_E2E_TARGET`, composed on top of #376's `OC_E2E_SPEC` override (advances #376). - Task 6 = `6829b21`: `scripts/lib/rehearsal-droplet.sh` (clan-lab `create --fresh` 6h TTL, evidence off-box, best-effort offboard with the wizard's own claim secret, destroy) + the `--target local-guest|droplet` / `--keep-droplet` seam in `scripts/smoke-private-path.sh`. Droplet runs land in `test-results/drive-droplet/`. Verified: `--dry-run` GREEN on both targets (local-guest output unchanged — kvm/qcow2/warm-cache gates stay its alone; droplet preflight passed with doctl authed, no guest machinery mentioned); `playwright test --list` selects exactly one spec per target and the `OC_E2E_SPEC` override still wins; tsc adds no new errors; shellcheck clean on both scripts; fixture unit suite 30/30. Deviations recorded in the commit messages: the #375 memory floor gets a droplet-sized 2048 MiB variant, and `--drive` with `--target droplet` refuses rather than composing. The Stage-1 checkpoint (a real `--target droplet` drive to the pairing red) remains for the workstation per the plan.
ben closed this issue 2026-08-09 22:48:18 +00:00
Author
Owner

Task 8 landed (62f8706): scripts/rehearsal-cycle.sh (one firing —
drive, report on red, close THIS issue with evidence on GREEN) and
scripts/rehearsal-executor.sh (host-mode cron applying the swarm's exact
readiness rule to this issue — #377's verdict selected this branch). The
reporter now wires dependencies and holds the blocked invariant (6-case
offline test).

All code on this issue's path is now landed. What remains before the
flip is ops + rulings:

  1. Workstation setup per the runbook's host prerequisites
    (docs/operator-app/rehearsal-drive.md) + install the executor crontab.
    Include one local-guest drive there as host verification — that also
    closes the Task-3 GREEN gate #377 left outstanding (substrate refusal
    was its honest second path; the GREEN itself still wants a KVM host).
  2. Ben: the #368 design session (the frontier carrier — now a needs-design
    epic) and the #369 SMTP/contact ruling. Neither blocks the FIRST drive —
    it reds honestly at pairing by design — but #368 is the tooth the
    ratchet turns on after that.
  3. Ben (or the driver session on his word): flip this issue
    no-triage → ready-for-agent. That is the declaration of readiness.
Task 8 landed (`62f8706`): `scripts/rehearsal-cycle.sh` (one firing — drive, report on red, close THIS issue with evidence on GREEN) and `scripts/rehearsal-executor.sh` (host-mode cron applying the swarm's exact readiness rule to this issue — #377's verdict selected this branch). The reporter now wires dependencies and holds the blocked invariant (6-case offline test). **All code on this issue's path is now landed.** What remains before the flip is ops + rulings: 1. Workstation setup per the runbook's host prerequisites (`docs/operator-app/rehearsal-drive.md`) + install the executor crontab. Include one local-guest drive there as host verification — that also closes the Task-3 GREEN gate #377 left outstanding (substrate refusal was its honest second path; the GREEN itself still wants a KVM host). 2. Ben: the #368 design session (the frontier carrier — now a needs-design epic) and the #369 SMTP/contact ruling. Neither blocks the FIRST drive — it reds honestly at pairing by design — but #368 is the tooth the ratchet turns on after that. 3. Ben (or the driver session on his word): flip this issue `no-triage` → `ready-for-agent`. That is the declaration of readiness.
ben reopened this issue 2026-08-09 23:07:23 +00:00
Author
Owner

Reopened — the close at 22:48 was Forgejo auto-close misreading the Task-8 commit body ("close #378 with evidence on GREEN" described the cycle script's behaviour, not an instruction). This issue is the standing drive issue and stays OPEN no-triage until Ben flips it ready-for-agent; the cycle script closes it only on a real GREEN droplet drive with evidence attached.

Reopened — the close at 22:48 was Forgejo auto-close misreading the Task-8 commit body ("close #378 with evidence on GREEN" described the cycle script's behaviour, not an instruction). This issue is the standing drive issue and stays OPEN `no-triage` until Ben flips it `ready-for-agent`; the cycle script closes it only on a real GREEN droplet drive with evidence attached.
Author
Owner

This drive issue surfaced in the swarm ready-queue this iteration, but per your #380 ruling (2026-08-10) it is executed host-mode by scripts/rehearsal-executor.sh on the workstation cron — the swarm containers carry none of the drive credentials/substrate. This sandbox confirmed it: no .sandcastle/.env, no OURCLOUD_PAYLOAD_DIR, no OURCLOUD_BROKER_URL, no DIGITALOCEAN_ACCESS_TOKEN, no go, no /dev/kvm. A swarm pick here would hot-loop on a drive it structurally cannot run (the sibling of #381`s undepended-red hot loop).

Rather than drive (impossible here) or strip ready-for-agent (which would disarm the host cron — the executor requires it), I closed the hole at the source: .sandcastle/list-ready-tasks.sh now excludes the standing drive issue (REHEARSAL_DRIVE_ISSUE, default 378 — the same env knob the two host-mode scripts default) from the swarm queue. The label rehearsal-183 is not excluded — the real holes the swarm plugs still surface. The executor reads this issue directly, so the ratchet`s real trigger is untouched.

Fixed en route: xargs -r — with this issue the only ready one left (todays live state), the emptied number stream would otherwise abort the whole list script (exit 123); the live run now returns []` cleanly.

Landed in 7b53c69 (on origin/main) with a new offline test .sandcastle/tests/list-ready-tasks-test.sh (5 cases). This issue stays OPEN and ready-for-agent for the host cron — GREEN is still its only close.

This drive issue surfaced in the **swarm** ready-queue this iteration, but per your #380 ruling (2026-08-10) it is executed **host-mode** by `scripts/rehearsal-executor.sh` on the workstation cron — the swarm containers carry none of the drive credentials/substrate. This sandbox confirmed it: no `.sandcastle/.env`, no `OURCLOUD_PAYLOAD_DIR`, no `OURCLOUD_BROKER_URL`, no `DIGITALOCEAN_ACCESS_TOKEN`, no `go`, no `/dev/kvm`. A swarm pick here would hot-loop on a drive it structurally cannot run (the sibling of #381`s undepended-red hot loop). Rather than drive (impossible here) or strip `ready-for-agent` (which would disarm the host cron — the executor requires it), I closed the hole at the source: **`.sandcastle/list-ready-tasks.sh` now excludes the standing drive issue** (`REHEARSAL_DRIVE_ISSUE`, default 378 — the same env knob the two host-mode scripts default) from the **swarm** queue. The label `rehearsal-183` is *not* excluded — the real holes the swarm plugs still surface. The executor reads this issue directly, so the ratchet`s real trigger is untouched. Fixed en route: `xargs -r` — with this issue the only ready one left (today`s live state), the emptied number stream would otherwise abort the whole list script (exit 123); the live run now returns `[]` cleanly. Landed in `7b53c69` (on `origin/main`) with a new offline test `.sandcastle/tests/list-ready-tasks-test.sh` (5 cases). **This issue stays OPEN and `ready-for-agent`** for the host cron — GREEN is still its only close.
Author
Owner

drive 20260810T111039Z RED — now blocked by: #390 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T111039Z` RED — now blocked by: #390 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T141050Z RED — now blocked by: #397 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T141050Z` RED — now blocked by: #397 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T151050Z RED — now blocked by: #398 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T151050Z` RED — now blocked by: #398 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T154053Z RED — now blocked by: #399 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T154053Z` RED — now blocked by: #399 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T162053Z RED — now blocked by: #402 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T162053Z` RED — now blocked by: #402 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T171130Z RED — now blocked by: #406 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T171130Z` RED — now blocked by: #406 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T181051Z RED — now blocked by: #410 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T181051Z` RED — now blocked by: #410 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T190054Z RED — now blocked by: #412 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T190054Z` RED — now blocked by: #412 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260810T203119Z RED — now blocked by: #414 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260810T203119Z` RED — now blocked by: #414 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T001112Z RED — now blocked by: #426 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T001112Z` RED — now blocked by: #426 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T062137Z RED — now blocked by: #431 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T062137Z` RED — now blocked by: #431 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T071123Z RED — now blocked by: #432 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T071123Z` RED — now blocked by: #432 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T145107Z RED — now blocked by: #436 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T145107Z` RED — now blocked by: #436 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

rehearsal healer: drive 20260811T165115Z red at wizard (sig dcf630511b50) self-fixed — commit 2523d880efea212502c997f1c89d574892c128d9 (2 files changed, 45 insertions(+), 3 deletions(-)); checks: pnpm --filter app exec vitest run tests/unit/foundingOwnVPSCarrier.test.ts — 8/8 passed (incl. new post-connect-fault test); pnpm --filter app exec vitest run tests/unit/founding — 163/163 passed, no regressions. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260811T165115Z` red at `wizard` (sig dcf630511b50) self-fixed — commit `2523d880efea212502c997f1c89d574892c128d9` (2 files changed, 45 insertions(+), 3 deletions(-)); checks: pnpm --filter app exec vitest run tests/unit/foundingOwnVPSCarrier.test.ts — 8/8 passed (incl. new post-connect-fault test); pnpm --filter app exec vitest run tests/unit/founding — 163/163 passed, no regressions. The drive stays armed; the next tick re-drives.
Author
Owner

drive 20260811T180057Z RED — now blocked by: #439 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T180057Z` RED — now blocked by: #439 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

rehearsal healer: drive 20260811T183121Z red at supply (sig 404124947736) self-fixed — commit 99393f9d27f12bf42244e90d51cb9cc15dacd504 (1 file changed, 5 insertions(+), 3 deletions(-)); checks: pnpm exec vitest run tests/e2e/fixtures/journey.test.ts — 7/7 passed; pnpm exec tsc --noEmit -p . — no errors in journey.droplet.spec.ts; manual diff confirms OWN_VPS_ORDER now matches ownVPSJourneyRowIds (app/src/lib/founding.ts) element-for-element. The drive stays armed; the next tick re-drives.

rehearsal healer: drive `20260811T183121Z` red at `supply` (sig 404124947736) self-fixed — commit `99393f9d27f12bf42244e90d51cb9cc15dacd504` (1 file changed, 5 insertions(+), 3 deletions(-)); checks: pnpm exec vitest run tests/e2e/fixtures/journey.test.ts — 7/7 passed; pnpm exec tsc --noEmit -p . — no errors in journey.droplet.spec.ts; manual diff confirms OWN_VPS_ORDER now matches ownVPSJourneyRowIds (app/src/lib/founding.ts) element-for-element. The drive stays armed; the next tick re-drives.
Author
Owner

drive 20260811T185108Z GREEN end to end — evidence (legs.json, durations, trace, host facts) in test-results/drive-droplet/20260811T185108Z/ on the executor host. Closing per the standing instructions: the droplet journey passes, #183 is ready to be boring.

drive `20260811T185108Z` GREEN end to end — evidence (legs.json, durations, trace, host facts) in `test-results/drive-droplet/20260811T185108Z/` on the executor host. Closing per the standing instructions: the droplet journey passes, #183 is ready to be boring.
Author
Owner

REOPENED — this was a FALSE GREEN. The harness reported DRIVE GREEN and auto-closed this issue, but state/founding-state.json from run 20260811T185108Z shows step: deploying (never founded-complete) and the finish leg carrying a real fault: scp: /var/lib/ourcloud/enroll.json: No such file or directory (the authority handover). GREEN is the ratchet contract for a COMPLETE founding; this run did not complete. Two defects filed and wired as blockers: the product scp fault, and the harness false-green (a faulted finish leg must fail the drive, not pass). The ratchet stays closed-on-genuine-green only.

REOPENED — this was a FALSE GREEN. The harness reported DRIVE GREEN and auto-closed this issue, but `state/founding-state.json` from run `20260811T185108Z` shows `step: deploying` (never founded-complete) and the finish leg carrying a real fault: `scp: /var/lib/ourcloud/enroll.json: No such file or directory` (the authority handover). GREEN is the ratchet contract for a COMPLETE founding; this run did not complete. Two defects filed and wired as blockers: the product scp fault, and the harness false-green (a faulted finish leg must fail the drive, not pass). The ratchet stays closed-on-genuine-green only.
Author
Owner

drive 20260811T195131Z RED — now blocked by: #442 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T195131Z` RED — now blocked by: #442 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T204058Z RED — now blocked by: #443 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T204058Z` RED — now blocked by: #443 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T221125Z RED — now blocked by: #451 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T221125Z` RED — now blocked by: #451 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260811T232725Z RED — now blocked by: #456 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260811T232725Z` RED — now blocked by: #456 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260812T000306Z RED — now blocked by: #457 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260812T000306Z` RED — now blocked by: #457 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260812T003918Z RED — now blocked by: #458 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260812T003918Z` RED — now blocked by: #458 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260812T010139Z RED — now blocked by: #461 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260812T010139Z` RED — now blocked by: #461 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260812T024144Z RED — now blocked by: #462 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260812T024144Z` RED — now blocked by: #462 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260812T032139Z RED — now blocked by: #464 (evidence on each). The drive re-fires when the last blocker closes.

drive `20260812T032139Z` RED — now blocked by: #464 (evidence on each). The drive re-fires when the last blocker closes.
Author
Owner

drive 20260812T035658Z GREEN end to end — evidence (legs.json, durations, trace, host facts) in test-results/drive-droplet/20260812T035658Z/ on the executor host. Closing per the standing instructions: the droplet journey passes, #183 is ready to be boring.

drive `20260812T035658Z` GREEN end to end — evidence (legs.json, durations, trace, host facts) in `test-results/drive-droplet/20260812T035658Z/` on the executor host. Closing per the standing instructions: the droplet journey passes, #183 is ready to be boring.
ben closed this issue 2026-08-12 04:04:13 +00:00
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.

Depends on
Reference
Matou/idss#378
No description provided.