rehearsal-3: drive fixtures — self-hosted wizard branch, install-command paste, terminal consent over SSH #520
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of rehearsal phase 3 — gateway from home (spec
docs/superpowers/specs/2026-08-14-183-phase-3-home-gateway-rehearsal-design.md, plandocs/superpowers/plans/2026-08-14-183-phase-3-home-gateway-rehearsal.md).The plan section below is the work, verbatim; its Interfaces block names what neighbouring tasks consume — keep those names exact.
Global constraints (apply to every step)
CONTEXT.md) in ALL copy, comments,commit messages: founding, gateway, agent, install command,
enrollment code — never installer/daemon/token/join-key.
error with the real reason, never a silent skip or a made-up value.
install command is a doorway, not a kept tool (ADR 0028).
closes #NNN(or any close keyword) in commits or issue bodiesfor the standing drive issue family — say "advances #NNN". Even DESCRIBING a
close can auto-close (2026-08-10 lesson, twice).
STATUS.mdin the same commit(CLAUDE.md rule); the drive-issue minting commit (Task 9) carries the
STATUS + runbook update for the whole arc.
.sandcastle/.env(it forwards into worker containers);host-only secrets live in the executor's
rehearsal-env.sh(2026-07-11lesson).
Task 6: Drive fixtures — wizard branch, install-command paste, terminal consent
Files:
app/tests/e2e/fixtures/wizard.tsapp/tests/e2e/fixtures/droplet.ts(+droplet.test.ts)Interfaces:
Consumes: screen selectors — S4 options render
[data-option="self-hosted"]/
[data-action="option:self-hosted"](FoundingAccess.vue); S7b renders[data-action="choose-method-command-line"]and[data-field="install-command"](FoundingInstallMachine.vue);sshDroplet(ip, command, timeoutMs)(droplet.ts).Produces (Task 7 calls exactly these):
s4AccessSelfHosted(live: LaunchedApp): Promise<void>— select theself-hosted option, run the pre-check, answer
sameConnection=false(the caution path), land on S5.
s7bInstallCommand(live: LaunchedApp): Promise<string>— choose thecommand-line method, read and return
[data-field="install-command"]'stext.
sshDropletInteractive(ip: string, command: string, answers: Array<{expect: RegExp, send: string}>, timeoutMs: number): Promise<{code: number; transcript: string}>—ssh -ttwith pipedstdin; on each
expectmatch in the accumulated output, writessend;resolves with the full transcript (Task 7 saves it as evidence); rejects
on timeout with the transcript so far in the error.
Step 1: Failing unit test —
droplet.test.ts: with a PATH-shimmedssh(the file's existing shim pattern) that printsInstall mode?thenechoes stdin,
sshDropletInteractivesends the scripted answer and thetranscript contains both prompt and answer; a never-matching expect rejects
at the timeout with the transcript in the message.
Step 2: Red → implement → green —
pnpm vitest run app/tests/e2e/fixtures/droplet.test.ts(match the repo's runnerinvocation).
Step 3: Wizard fixtures — implement
s4AccessSelfHosted/s7bInstallCommandagainst the selectors above (mirrors4AccessOwnVPS's style, wizard.ts:99); pure-logic seams (e.g. theexpect/send sequencer) get cases beside the existing wizard tests. The
consent answer sequence itself lives in Task 7 (it is journey knowledge);
this task ships the mechanism.
Step 4:
tsc+ full unit suites green; commit —rehearsal: the wizard drives the self-hosted branch and a terminal consent can be answered over SSH (spec 2026-08-14).swarm-claim host=matou-dev-server-01 run=5898
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #520 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope