rehearsal-3: journey.selfhosted.spec.ts — thirteen teeth over the manual path, fault-injection honesty legs included #521
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
Depends on
Reference
Matou/idss#521
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 7: The journey spec —
journey.selfhosted.spec.ts(blocked by Tasks 4, 5, 6)Files:
app/tests/e2e/journey.selfhosted.spec.tsheartbeat trigger) unit-tested beside the fixtures it lives with.
Interfaces:
runRecordedLeg/driveLegs(fixtures/legs.ts),runFoundingPrefix(foundingPrefix.ts — S1–S3 shared bodies), Task 6's three fixtures, Task 4's
walkthrough selectors,
sshDroplet, the evidence fixtures, the droplet envthe machinery exports (
REHEARSAL_DROPLET_IP— confirm the exact name inscripts/lib/rehearsal-droplet.shand reuse it).legs.jsonunder
test-results/drive-selfhosted/<stamp>/; teardown offboards the slugand relies on the machinery's droplet destroy.
Leg implementation notes (each is a
runRecordedLegwith the spec's ceiling):wizard-precheck→claim(slugrehearsal-home) →create→install-command(via Task 6 fixtures; the command string must containget.idss.nzand the code — assert it, the fixture returns it).agent-install:sshDroplet(ip, command, 300_000)with the EXACTstring the app rendered (never rebuilt); assert exit 0 and
systemctl is-active ourcloud-agentreports active.consent:sshDropletInteractivere-attaches the terminal join (perTask 1's script contract the join runs foreground; drive it with the
expect/send pairs for full install — read the agent's actual prompts from
internal/join/cli.goat implementation time and pin them in the answersarray); save the transcript to the run dir as
consent-transcript.txt.pair: app-side — wait for the S9 spec gate to render its pass.ports-honest: BEFORE the walkthrough's first probe:sshDroplet(ip, "iptables -I INPUT -p tcp --dport 443 -j DROP", …); assert[data-port="443"][data-status="dropped"]and the firewall-lane guidancerender; red the leg if S10 shows reachable while the rule stands (the
under-report detector); then
iptables -D INPUT -p tcp --dport 443 -j DROP,click
[data-action="recheck-ports"], assert reachable.point→deploy-takeover→activation→founded: mirror thephase-1 journey's leg bodies (journey.droplet.spec.ts) — same events, same
honest-red plumbing; the takeover here is triggered by the first deploy on
the paired device, not the carrier.
heartbeat-repoint: readAddress.Host+Address.Secretfrom thedrive's founding state (the same state file the evidence fixtures snapshot);
POST the broker's
/pointwithip: "203.0.113.250"(TEST-NET — never areal host) + the secret; then poll
dig +short <host>until it answers thedroplet IP again within the ceiling — the gateway's heartbeat must have
re-pointed. Assert the app/dashboard shows no standing fault after.
expectations.
tsc+ unit suites green; commit —rehearsal phase 3: the drive founds from home — thirteen teeth over the manual path (spec 2026-08-14).swarm-claim host=matou-dev-server-01 run=6263
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #521 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope