rehearsal: own-VPS wizard branch + droplet ssh helper (plan Task 4) #372

Closed
opened 2026-08-09 20:00:21 +00:00 by ben · 1 comment
Owner

Implements Task 4 of docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md (spec:
docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md).
Follow the plan task's steps exactly — it carries the full code including
the real selectors from the founding components.

BLOCKED (no-triage) until plan Task 3 lands on main — the wizard
extraction that creates app/tests/e2e/fixtures/wizard.ts is being done in
the driver session because its gate is a live local-guest GREEN drive. This
flips to ready-for-agent when wizard.ts exists on main.

Adds to wizard.ts: s4AccessOwnVPS, s5AddressSubdomain,
harvestInstallCommand. Creates app/tests/e2e/fixtures/droplet.ts
(sshDroplet — accept-new host keys, BatchMode, timeout kill) with the
PATH-shim vitest test from the plan.

Acceptance:

  • Given the plan's shim test, when pnpm --filter app exec vitest run tests/e2e/fixtures/droplet.test.ts runs, then it passes
  • pnpm --filter app exec tsc --noEmit stays clean
  • The wizard functions keep the test.step titles exactly as the plan writes them (trace step names are evidence)
Implements **Task 4** of `docs/superpowers/plans/2026-08-09-183-vps-rehearsal-ratchet.md` (spec: `docs/superpowers/specs/2026-08-09-183-vps-rehearsal-ratchet-design.md`). Follow the plan task's steps exactly — it carries the full code including the real selectors from the founding components. **BLOCKED (no-triage) until plan Task 3 lands on main** — the wizard extraction that creates `app/tests/e2e/fixtures/wizard.ts` is being done in the driver session because its gate is a live local-guest GREEN drive. This flips to ready-for-agent when `wizard.ts` exists on main. Adds to `wizard.ts`: `s4AccessOwnVPS`, `s5AddressSubdomain`, `harvestInstallCommand`. Creates `app/tests/e2e/fixtures/droplet.ts` (`sshDroplet` — accept-new host keys, BatchMode, timeout kill) with the PATH-shim vitest test from the plan. Acceptance: - [ ] Given the plan's shim test, when `pnpm --filter app exec vitest run tests/e2e/fixtures/droplet.test.ts` runs, then it passes - [ ] `pnpm --filter app exec tsc --noEmit` stays clean - [ ] The wizard functions keep the `test.step` titles exactly as the plan writes them (trace step names are evidence)
Author
Owner

Done in 3192b25 (on origin/main).

Plan Task 4 of the #183 rehearsal ratchet:

  • app/tests/e2e/fixtures/wizard.ts — appended s4AccessOwnVPS, s5AddressSubdomain, harvestInstallCommand, typed against LaunchedApp like the existing steps, with the exact test.step titles the plan writes (trace evidence).
  • app/tests/e2e/fixtures/droplet.ts — new sshDroplet(ip, command, timeoutMs): ssh with StrictHostKeyChecking=accept-new + BatchMode=yes at root@ip, SIGKILL on timeout.
  • app/tests/e2e/fixtures/droplet.test.ts — new PATH-shim vitest unit.

Acceptance:

  • pnpm --filter app exec vitest run tests/e2e/fixtures/droplet.test.ts — PASS (1 test).
  • tsc --noEmit adds no new errors from this slice. Note: two pre-existing errors (AppUpdateSurface in src/bootstrap.ts and tests/unit/appShell.test.ts) already fail on a clean main HEAD — out of scope for this task; my three fixture files are error-free.
  • The wizard test.step titles match the plan verbatim (S4 access → own VPS, S5 address → the rehearsal subdomain, S7a shows the install command — harvest it verbatim).
Done in `3192b25` (on `origin/main`). Plan Task 4 of the #183 rehearsal ratchet: - `app/tests/e2e/fixtures/wizard.ts` — appended `s4AccessOwnVPS`, `s5AddressSubdomain`, `harvestInstallCommand`, typed against `LaunchedApp` like the existing steps, with the exact `test.step` titles the plan writes (trace evidence). - `app/tests/e2e/fixtures/droplet.ts` — new `sshDroplet(ip, command, timeoutMs)`: `ssh` with `StrictHostKeyChecking=accept-new` + `BatchMode=yes` at `root@ip`, SIGKILL on timeout. - `app/tests/e2e/fixtures/droplet.test.ts` — new PATH-shim vitest unit. Acceptance: - `pnpm --filter app exec vitest run tests/e2e/fixtures/droplet.test.ts` — PASS (1 test). - `tsc --noEmit` adds no new errors from this slice. Note: two pre-existing errors (`AppUpdateSurface` in `src/bootstrap.ts` and `tests/unit/appShell.test.ts`) already fail on a clean `main` HEAD — out of scope for this task; my three fixture files are error-free. - The wizard `test.step` titles match the plan verbatim (`S4 access → own VPS`, `S5 address → the rehearsal subdomain`, `S7a shows the install command — harvest it verbatim`).
ben closed this issue 2026-08-09 22:04:43 +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.

Dependencies

No dependencies set.

Reference
Matou/idss#372
No description provided.