rehearsal-5 task 11/13: journey.device.spec.ts + device-add fixtures #852
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#852
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 the #183 phase-5 rehearsal arc (device-add + Nextcloud-on-device on a standing rented community).
docs/superpowers/specs/2026-08-25-183-phase-5-device-nextcloud-rehearsal-design.mddocs/superpowers/plans/2026-08-25-183-phase-5-device-nextcloud-rehearsal.md— this ticket is Task 11, carried verbatim below. The plan's Global Constraints apply to every step.Task 11:
journey.device.spec.ts+ device-add fixturesFiles:
app/tests/e2e/fixtures/deviceAdd.ts+deviceAdd.test.tsapp/tests/e2e/fixtures/deviceProvision.ts+deviceProvision.test.tsapp/tests/e2e/journey.device.spec.tsSTATUS.mdInterfaces:
Consumes: Tasks 2–7 selectors/routes; Task 8's
launchApp({stateDir})+ standing facts; Task 9'sOC_E2E_DEVICE_IP; Task 10'srunRentedPrefix;sshDroplet/sshDropletInteractive/ConsentAnswer(fixtures/droplet.ts:22,120);loginWithPassword+OPERATOR_PASSWORD(ceremony.ts);runRecordedLeg/computeVerdict(fixtures/legs.ts);oidcSignInAsOperator/assertOperatorIsAdmin/assertBrandedLogin/waitForDeployActive/expectFilesHealthy/readFilesDoor(fixtures/provision.ts).Produces:
legs.jsonleg ids exactly:standing, mint, device-create, agent-install, decline-resume, join, approve, assess, select-files, deploy-takeover, files-door, oidc-login, remove-device, reap, finish(+ the recorded prefix legs when re-founding); verdict target'device'.Step 1: Write the fixture unit tests (offline: selector builders, install-command parsing) → FAIL → implement → PASS.
Step 2: Write
journey.device.spec.ts— scaffolding copied fromjourney.rented.spec.ts(run dir,writeLegRecords, afterAll verdict target'device', teardown:oc_devicedroplet destroyed via the spec-sidedoctlfallback pattern, standing community NEVER released here). Body:standing(10 min):oc-side preflight already ran the staleness verdict (Task 12); absent/stale →launchApp({stateDir: standingState}), runrunRentedPrefix(live, slug, …)(recorded legs), then writeartifacts/standing-founded.json({slug, host, ip, sha: driveCommit()}) for Task 12's post-drive step to commit into the standing facts; fresh → launch on the standing state, sign in to the dashboard over the public door withloginWithPassword(…, OPERATOR_PASSWORD, …), assert fleet = gateway-only (any stray non-gateway row →remove-devicewalk, evidence-logged, then still green).mint(5 min):mintCliCode→ code + one-liner captured toartifacts/.device-create(5 min): assertOC_E2E_DEVICE_IPset (created by the bash carrier before playwright, Task 12);sshDroplet(deviceIp, 'echo up').agent-install(5 min): run the CAPTURED one-liner verbatim over SSH (curl -sSf https://<apex>/get | sh -s -- <code>— Task 4 made it real);systemctl is-active idss-agent=active… note:sh -s -- <code>runs install+enroll; to keep decline-resume separate, pass the REAL code only in leg 5/6 — this leg runs the one-liner with a deliberately-revoked probe code and expects the honest refusal, OR splits: fetch+install via/get?arch=then stop. Decision (pinned here): this leg installs viacurl -sSf 'https://<apex>/get?arch=x86_64' -o /usr/local/bin/idss-agent && chmod +x …and asserts the binary runsidss-agent --help; the one-liner-verbatim proof rides thejoinleg.decline-resume(10 min):sshDropletInteractive(deviceIp, 'IDSS_COMMUNITY_ORIGIN=<apex> idss-agent enroll <code>', fullInstallConsentAnswers(), …)in a promise; when the pending card renders,declinePending; await the promise → transcript containsdeclined by the operatorand exit ≠ 0; assert self-removal (systemctl is-active idss-agentinactive); re-mint viamintCliCode(new code — a decline SPENDS the code), re-install the agent.join(10 min): run the captured one-liner VERBATIM with the new code in an interactive PTY (consent answers include the WIPE word); transcript showsconsent recorded+connection request sent+waiting for the operator's decision; the PTY promise is HELD OPEN (not awaited).approve(10 min):approvePending; then await the held PTY promise → transcript shows the landing walk (joined the community network…this machine is enrolled), exit 0; fleet shows the device row with actionset-up-<id>.assess(5 min):openDeviceSetup;[data-field="assess-screen"]with real resources.select-files(5 min):selectFilesOnDevice.deploy-takeover(45 min):confirmEraseDeploy(attribution names the terminal consent);waitForDeployActive(dash, portal, 45*60_000); over SSH on the device: journal shows the takeover phases ran, box is NixOS (test -e /etc/NIXOS).files-door(10 min):expectFilesHealthy,readFilesDoor=https://files.<slug>.idss.nz;assertBrandedLoginin a fresh context; from the GATEWAY over SSH: the rendered front-door route'sreverse_proxytarget is the device's mesh address, not127.0.0.1:8084.oidc-login(10 min):oidcSignInAsOperator(page, door, runDir, OPERATOR_PASSWORD)→assertOperatorIsAdmin.remove-device(20 min): remove walk →confirmRemoveDeploy→ fleet gateway-only; front-door render no longer carries the files route; device grant revoked (device SSH: agent gone or box ignorable — it gets reaped next leg).reap(5 min): the spec calls the bash-exported teardown marker;doctlshows no droplet atOC_E2E_DEVICE_IP.finish: evidence + verdict.Step 3: Run
pnpm -r typecheck+pnpm --filter app exec playwright test --list journey.device.spec.ts→ one test listed.Step 4: Commit —
git commit -m "rehearsal-5: journey.device.spec.ts — fifteen teeth on the standing rented community (task 11 of #<ticket>)".Global Constraints (from the plan)
failure is a named error, never a masked success. No sandbox-green claim (#377).
at P4-S3x; the takeover runs at provisioning's first deploy, never at join.
commit, then two single-node
clan.Deploycalls, device first (ruling: aroute to a dead service is the honest failure, a service with no route is
invisible).
test-results/standing-rented/; staleness gate =oc_bootstrap_stalenesspattern overagent/ go.mod go.sum internal/; thereaper stays honest — renewal, not exemption (
idss-rental-holdis forhumans, the executor never sets it).
#721/#722 (workstation) keep running; the prefix extraction (Task 10) is
behavior-preserving and #720 must stay green across it. Never touch the
executors' env files from a ticket.
POST/DELETE /issues/<n>/labels, never in anissue PATCH. "closes #NNN" in commit messages auto-closes — say "task N of
#NNN" instead.
git ls-tree origin/main docs/adr/at mint (IDIP + observability swarm lanes are minting concurrently).
git pull --rebaseimmediately before a STATUS commit (shared checkout).gofmt,go vet ./...,go test ./...green; TS:pnpm -r typecheck+unit suites green, pre-land.
--target device+ standing preflight wiringADR numbers ruled at mint — read 0207 → 0208, 0208 → 0209, 0209 → 0210
Task 1 (#842) has landed the phase-5 design tier. This ticket's body carries the
plan's assumed ADR numbers; they shifted by one at mint, exactly as the
Global Constraints line in your body told you to re-check.
/getWhy:
docs/adr/0207-design-keri-stack-version-pins.md(#771, the concurrentIDIP lane) had taken 0207 on
origin/mainbefore this arc minted.Use the ruled numbers in your commit messages and code comments. The plan
(
docs/superpowers/plans/2026-08-25-183-phase-5-device-nextcloud-rehearsal.md)is updated and records the mapping; commit
70a3bce6.Ruled by agent under ADR 0174 — veto anytime.
swarm-claim host=elitebook-distributed-server-03 run=10107
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #852 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope