rehearsal-4: journey.rented.spec.ts — twelve teeth incl. rent-fails-clean + release honesty legs; rented fixtures #650
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
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
Reference
Matou/idss#650
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?
Arc: #183 rehearsal phase 4 — rented gateway (S4a). Spec:
docs/superpowers/specs/2026-08-21-183-phase-4-rented-gateway-rehearsal-design.md. Plan:docs/superpowers/plans/2026-08-21-183-phase-4-rented-gateway-rehearsal.md(read its Global Constraints first — they apply to this task). This ticket's body is the plan's task verbatim. Phase-3 precedent: #515–#523.Task 6: Drive fixtures +
journey.rented.spec.ts(twelve legs)Files:
app/tests/e2e/fixtures/rented.ts(REHEARSAL_RENTED_SLUG = 'rehearsal-rented',RENTFAIL_SLUG = 'rehearsal-rentfail',OFFER_PATH = '/v1/gateways/offer',RELEASE_PATH = '/v1/gateways/release',releaseBody(host),dropletExistsByTag(ip): Promise<boolean>viadoctl compute droplet list --tag-name idss-gateway --format PublicIPv4 --no-header)app/tests/e2e/fixtures/rented.test.ts(offline: body builders, tag parsing)app/tests/e2e/fixtures/wizard.ts— adds4aRent(live)(clickoption:rented, expect[data-field="terms"]visible and containingfree while alpha, click[data-action="rent"], expect[data-status="address"]visible; returns the auto-filled IP read from[data-field="gateway-ip"]),s4aRentExpectFail(live)(same clicks; expects[data-status="rent-error"]containingprovision; asserts the S4 option list is still visible),s7RentedChecklist(live)(expects rowsrented,install,pairingmarked done beforeconnectruns)app/tests/e2e/journey.rented.spec.tsSTATUS.mdInterfaces:
Consumes: Task 5 selectors; Task 3 fault host;
fixtures/selfhosted.tsbearer,digAnswers,foundingAddress,MISPOINT_IP,pointBody,POINT_PATH;fixtures/legs.tsrunRecordedLeg,computeVerdict;fixtures/evidence.tsharvest;fixtures/droplet.tssshDroplet(the box is reachable on the app's key — Task 7 exportsOC_E2E_DROPLET_IPfrom the app's state afterwizard-rent).Produces:
legs.jsonwith leg ids exactly:rent-fails-clean, wizard-rent, claim, create, image-boot, pair, point, deploy, activation, founded, heartbeat-repoint, release; verdict target'rented'.Step 1: Write
rented.test.ts(failing) for the pure helpers; runpnpm --filter app exec vitest run tests/e2e/fixtures/rented.test.ts→ FAIL; implementrented.ts; → PASS.Step 2: Write
journey.rented.spec.ts— copyjourney.selfhosted.spec.ts's scaffolding (run dir,legs.jsonwriter, afterAll verdict with target'rented', teardown offboard). Legs:rent-fails-clean(5 min): wizard to S2 with slugRENTFAIL_SLUG→ S3 →s4aRentExpectFail→expect(await dropletExistsByTag(anyIp)).toBe(false)by asserting no droplet taggedidss-gatewaywhose name containsrehearsal-rentfail; then reset the draft (back to S2, rename slug toREHEARSAL_RENTED_SLUG).wizard-rent(8 min):s4aRent→ IP captured →process.env.OC_E2E_DROPLET_IP = ip; write it to${runDir}/artifacts/droplet-ip.txt.claim(3 min): S5 showsrehearsal-rented.idss.nzreserved (already claimed by rent);foundingAddress(state)has the secret.create(3 min):reviewAndCreate→s7RentedChecklist.image-boot(5 min):sshDroplet(ip, 'systemctl is-active idss-agent')=active;sshDroplet(ip, 'test ! -e /var/log/idss-install.log && echo noinstall')=noinstall;sshDroplet(ip, 'lsblk -o LABEL,PARTTYPE -n')contains the labels the disko contract test asserts (read them from a shared constant list inrented.ts).pair(5 min): journey rowpairdone;readFaultundefined.point(5 min):digAnswersfor the host = ip.deploy(15 min): rows throughcontrol-planedone;sshDroplet(ip, 'journalctl -b --no-pager | grep -c -E "kexec|disko" || true')=0.activation(15 min), 10.founded(5 min): verbatim from selfhosted spec.heartbeat-repoint(15 min): verbatim from selfhosted + assert the broker's renew advancedexpires(GET is not exposed; assert via the control-plane journal linerenewed gateway rentalover SSH).release(5 min): POSTRELEASE_PATHwith bearer → 204; polldoctluntil no droplet atip(≤ 2 min); writereleased=trueto legs.Step 3: Run
pnpm --filter app exec tsc --noEmit -p tests/e2e(or the project's e2e typecheck) → PASS;pnpm --filter app exec playwright test --list journey.rented.spec.tslists one test.Step 4: Commit —
git commit -m "rehearsal-4: journey.rented.spec.ts — twelve teeth incl. rent-fails-clean + release honesty legs; rented fixtures (#650)".swarm-claim host=matou-dev-server-01 run=8645
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #650 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope