rehearsal-5 task 11/13: journey.device.spec.ts + device-add fixtures #852

Closed
opened 2026-08-25 20:14:50 +00:00 by ben · 3 comments
Owner

Part of the #183 phase-5 rehearsal arc (device-add + Nextcloud-on-device on a standing rented community).

  • Spec: docs/superpowers/specs/2026-08-25-183-phase-5-device-nextcloud-rehearsal-design.md
  • Plan: docs/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 fixtures

Files:

  • Create: app/tests/e2e/fixtures/deviceAdd.ts + deviceAdd.test.ts
  • Create: app/tests/e2e/fixtures/deviceProvision.ts + deviceProvision.test.ts
  • Create: app/tests/e2e/journey.device.spec.ts
  • Modify: STATUS.md

Interfaces:

  • Consumes: Tasks 2–7 selectors/routes; Task 8's launchApp({stateDir}) + standing facts; Task 9's OC_E2E_DEVICE_IP; Task 10's runRentedPrefix; 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.json leg 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'.

    // deviceAdd.ts
    export async function mintCliCode(page: Page): Promise<string>       // Fleet → [data-action="add-device"] → intended-role helper → [data-action="path-cli"] → reads [data-field="enrollment-code"] and [data-field="install-command"]
    export async function approvePending(page: Page): Promise<void>      // [data-field="pending-device"] → [data-action="approve"] → [data-field="connected-device"] visible
    export async function declinePending(page: Page): Promise<void>      // [data-action="decline"] → pending card gone
    // deviceProvision.ts
    export async function openDeviceSetup(page: Page, deviceId: string): Promise<void>   // fleet row [data-field="fleet-row-<id>"] action `set-up-<id>` → drill-in, no setup-error
    export async function selectFilesOnDevice(page: Page): Promise<void> // S2 device shape: [data-field="advice-note"] present, NO [data-field="headroom"]; [data-action="toggle-files"] → selected → [data-action="review-impact"]
    export async function confirmEraseDeploy(page: Page): Promise<void>  // [data-status="destructive-confirm"][data-action="erase-and-deploy"], [data-field="consent-attribution"] non-empty
    export async function confirmRemoveDeploy(page: Page): Promise<void> // [data-field="loses"] names Files & documents; [data-action="remove-and-deploy"]
    
  • 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 from journey.rented.spec.ts (run dir, writeLegRecords, afterAll verdict target 'device', teardown: oc_device droplet destroyed via the spec-side doctl fallback pattern, standing community NEVER released here). Body:

    1. standing (10 min): oc-side preflight already ran the staleness verdict (Task 12); absent/stale → launchApp({stateDir: standingState}), run runRentedPrefix(live, slug, …) (recorded legs), then write artifacts/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 with loginWithPassword(…, OPERATOR_PASSWORD, …), assert fleet = gateway-only (any stray non-gateway row → remove-device walk, evidence-logged, then still green).
    2. mint (5 min): mintCliCode → code + one-liner captured to artifacts/.
    3. device-create (5 min): assert OC_E2E_DEVICE_IP set (created by the bash carrier before playwright, Task 12); sshDroplet(deviceIp, 'echo up').
    4. 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 via curl -sSf 'https://<apex>/get?arch=x86_64' -o /usr/local/bin/idss-agent && chmod +x … and asserts the binary runs idss-agent --help; the one-liner-verbatim proof rides the join leg.
    5. 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 contains declined by the operator and exit ≠ 0; assert self-removal (systemctl is-active idss-agent inactive); re-mint via mintCliCode (new code — a decline SPENDS the code), re-install the agent.
    6. join (10 min): run the captured one-liner VERBATIM with the new code in an interactive PTY (consent answers include the WIPE word); transcript shows consent recorded + connection request sent + waiting for the operator's decision; the PTY promise is HELD OPEN (not awaited).
    7. 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 action set-up-<id>.
    8. assess (5 min): openDeviceSetup; [data-field="assess-screen"] with real resources.
    9. select-files (5 min): selectFilesOnDevice.
    10. 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).
    11. files-door (10 min): expectFilesHealthy, readFilesDoor = https://files.<slug>.idss.nz; assertBrandedLogin in a fresh context; from the GATEWAY over SSH: the rendered front-door route's reverse_proxy target is the device's mesh address, not 127.0.0.1:8084.
    12. oidc-login (10 min): oidcSignInAsOperator(page, door, runDir, OPERATOR_PASSWORD) → assertOperatorIsAdmin.
    13. 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).
    14. reap (5 min): the spec calls the bash-exported teardown marker; doctl shows no droplet at OC_E2E_DEVICE_IP.
    15. 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)

  • Nothing fabricated (ADR 0100): every landed fact is read from the box; a
    failure is a named error, never a masked success. No sandbox-green claim (#377).
  • The wipe consent is given at the machine (ADR 0024) and shown-not-re-asked
    at P4-S3x; the takeover runs at provisioning's first deploy, never at join.
  • One placement deploy = device closure + gateway route in one config-repo
    commit, then two single-node clan.Deploy calls, device first (ruling: a
    route to a dead service is the honest failure, a service with no route is
    invisible).
  • Standing community: home test-results/standing-rented/; staleness gate =
    oc_bootstrap_staleness pattern over agent/ go.mod go.sum internal/; the
    reaper stays honest — renewal, not exemption (idss-rental-hold is for
    humans, the executor never sets it).
  • Do not destabilize live drives: #720 (rented confirm loop, elitebook) and
    #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.
  • Tracker gotcha: labels via POST/DELETE /issues/<n>/labels, never in an
    issue PATCH. "closes #NNN" in commit messages auto-closes — say "task N of
    #NNN" instead.
  • ADR numbers: 0207/0208/0209 assumed — re-check git ls-tree origin/main docs/adr/
    at mint (IDIP + observability swarm lanes are minting concurrently).
  • STATUS.md updated in the same commit as any project-state change;
    git pull --rebase immediately before a STATUS commit (shared checkout).
  • Go: gofmt, go vet ./..., go test ./... green; TS: pnpm -r typecheck +
    unit suites green, pre-land.
Part of the **#183 phase-5 rehearsal arc** (device-add + Nextcloud-on-device on a standing rented community). - Spec: `docs/superpowers/specs/2026-08-25-183-phase-5-device-nextcloud-rehearsal-design.md` - Plan: `docs/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 fixtures **Files:** - Create: `app/tests/e2e/fixtures/deviceAdd.ts` + `deviceAdd.test.ts` - Create: `app/tests/e2e/fixtures/deviceProvision.ts` + `deviceProvision.test.ts` - Create: `app/tests/e2e/journey.device.spec.ts` - Modify: `STATUS.md` **Interfaces:** - Consumes: Tasks 2–7 selectors/routes; Task 8's `launchApp({stateDir})` + standing facts; Task 9's `OC_E2E_DEVICE_IP`; Task 10's `runRentedPrefix`; `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.json` leg 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'`. ```ts // deviceAdd.ts export async function mintCliCode(page: Page): Promise<string> // Fleet → [data-action="add-device"] → intended-role helper → [data-action="path-cli"] → reads [data-field="enrollment-code"] and [data-field="install-command"] export async function approvePending(page: Page): Promise<void> // [data-field="pending-device"] → [data-action="approve"] → [data-field="connected-device"] visible export async function declinePending(page: Page): Promise<void> // [data-action="decline"] → pending card gone // deviceProvision.ts export async function openDeviceSetup(page: Page, deviceId: string): Promise<void> // fleet row [data-field="fleet-row-<id>"] action `set-up-<id>` → drill-in, no setup-error export async function selectFilesOnDevice(page: Page): Promise<void> // S2 device shape: [data-field="advice-note"] present, NO [data-field="headroom"]; [data-action="toggle-files"] → selected → [data-action="review-impact"] export async function confirmEraseDeploy(page: Page): Promise<void> // [data-status="destructive-confirm"][data-action="erase-and-deploy"], [data-field="consent-attribution"] non-empty export async function confirmRemoveDeploy(page: Page): Promise<void> // [data-field="loses"] names Files & documents; [data-action="remove-and-deploy"] ``` - [ ] **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 from `journey.rented.spec.ts` (run dir, `writeLegRecords`, afterAll verdict target `'device'`, teardown: `oc_device` droplet destroyed via the spec-side `doctl` fallback pattern, standing community NEVER released here). Body: 1. `standing` (10 min): `oc`-side preflight already ran the staleness verdict (Task 12); absent/stale → `launchApp({stateDir: standingState})`, run `runRentedPrefix(live, slug, …)` (recorded legs), then write `artifacts/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 with `loginWithPassword(…, OPERATOR_PASSWORD, …)`, assert fleet = gateway-only (any stray non-gateway row → `remove-device` walk, evidence-logged, then still green). 2. `mint` (5 min): `mintCliCode` → code + one-liner captured to `artifacts/`. 3. `device-create` (5 min): assert `OC_E2E_DEVICE_IP` set (created by the bash carrier before playwright, Task 12); `sshDroplet(deviceIp, 'echo up')`. 4. `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 via `curl -sSf 'https://<apex>/get?arch=x86_64' -o /usr/local/bin/idss-agent && chmod +x …` and asserts the binary runs `idss-agent --help`; the one-liner-verbatim proof rides the `join` leg. 5. `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 contains `declined by the operator` and exit ≠ 0; assert self-removal (`systemctl is-active idss-agent` inactive); re-mint via `mintCliCode` (new code — a decline SPENDS the code), re-install the agent. 6. `join` (10 min): run the captured one-liner VERBATIM with the new code in an interactive PTY (consent answers include the WIPE word); transcript shows `consent recorded` + `connection request sent` + `waiting for the operator's decision`; the PTY promise is HELD OPEN (not awaited). 7. `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 action `set-up-<id>`. 8. `assess` (5 min): `openDeviceSetup`; `[data-field="assess-screen"]` with real resources. 9. `select-files` (5 min): `selectFilesOnDevice`. 10. `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`). 11. `files-door` (10 min): `expectFilesHealthy`, `readFilesDoor` = `https://files.<slug>.idss.nz`; `assertBrandedLogin` in a fresh context; from the GATEWAY over SSH: the rendered front-door route's `reverse_proxy` target is the device's mesh address, not `127.0.0.1:8084`. 12. `oidc-login` (10 min): `oidcSignInAsOperator(page, door, runDir, OPERATOR_PASSWORD)` → `assertOperatorIsAdmin`. 13. `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). 14. `reap` (5 min): the spec calls the bash-exported teardown marker; `doctl` shows no droplet at `OC_E2E_DEVICE_IP`. 15. `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) - **Nothing fabricated (ADR 0100):** every landed fact is read from the box; a failure is a named error, never a masked success. No sandbox-green claim (#377). - **The wipe consent is given at the machine (ADR 0024)** and shown-not-re-asked at P4-S3x; the takeover runs at provisioning's first deploy, never at join. - **One placement deploy = device closure + gateway route** in one config-repo commit, then two single-node `clan.Deploy` calls, device first (ruling: a route to a dead service is the honest failure, a service with no route is invisible). - **Standing community:** home `test-results/standing-rented/`; staleness gate = `oc_bootstrap_staleness` pattern over `agent/ go.mod go.sum internal/`; the reaper stays honest — renewal, not exemption (`idss-rental-hold` is for humans, the executor never sets it). - **Do not destabilize live drives:** #720 (rented confirm loop, elitebook) and #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. - **Tracker gotcha:** labels via `POST/DELETE /issues/<n>/labels`, never in an issue PATCH. "closes #NNN" in commit messages auto-closes — say "task N of #NNN" instead. - **ADR numbers:** 0207/0208/0209 assumed — re-check `git ls-tree origin/main docs/adr/` at mint (IDIP + observability swarm lanes are minting concurrently). - **STATUS.md** updated in the same commit as any project-state change; `git pull --rebase` immediately before a STATUS commit (shared checkout). - Go: `gofmt`, `go vet ./...`, `go test ./...` green; TS: `pnpm -r typecheck` + unit suites green, pre-land.

ADR 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.

assumed ruled ADR
0207 0208 the standing rehearsal community — staleness-gated re-found
0208 0209 device-add's landing goes live — mesh fact, fleet admission, /get
0209 0210 files on a member device — composition, OIDC split, mesh route

Why: docs/adr/0207-design-keri-stack-version-pins.md (#771, the concurrent
IDIP lane) had taken 0207 on origin/main before 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.

## ADR 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. | assumed | **ruled** | ADR | |---|---|---| | 0207 | **0208** | the standing rehearsal community — staleness-gated re-found | | 0208 | **0209** | device-add's landing goes live — mesh fact, fleet admission, `/get` | | 0209 | **0210** | files on a member device — composition, OIDC split, mesh route | Why: `docs/adr/0207-design-keri-stack-version-pins.md` (#771, the concurrent IDIP lane) had taken 0207 on `origin/main` before 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)

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
{
  "issue": 852,
  "status": "success",
  "commits": [
    "ade5f304cf4395ad63af61f64a467b7f01da13f0"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/deviceAdd.ts",
    "app/tests/e2e/fixtures/deviceAdd.test.ts",
    "app/tests/e2e/fixtures/deviceProvision.ts",
    "app/tests/e2e/fixtures/deviceProvision.test.ts",
    "app/tests/e2e/journey.device.spec.ts"
  ],
  "tests": [
    {
      "command": "pnpm --filter app exec vitest run tests/e2e/fixtures/deviceAdd.test.ts tests/e2e/fixtures/deviceProvision.test.ts",
      "exit_code": 0
    },
    {
      "command": "pnpm --filter app exec vitest run tests/e2e (125 e2e-fixture cases)",
      "exit_code": 0
    },
    {
      "command": "pnpm --filter app exec vue-tsc -p tsconfig.json (no errors in the new files)",
      "exit_code": 0
    },
    {
      "command": "OC_E2E_SPEC=journey.device.spec.ts pnpm --filter app exec playwright test --list",
      "exit_code": 0
    },
    {
      "command": "pnpm exec eslint (the 5 new files)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Step 1 — fixture unit tests written (offline selector builders + install-command parsing), red then green": "fixtures/deviceAdd.test.ts (7 cases: parseInstallCommand + fetchAndInstallCommand) + fixtures/deviceProvision.test.ts (5 cases: fleetRowField/setUpAction/deviceIdFromSetUpAction) — 12 cases green under vitest",
    "Step 2 — journey.device.spec.ts scaffolded from journey.rented.spec.ts (run dir, writeLegRecords, afterAll verdict target 'device', standing NEVER released, oc_device teardown via spec-side doctl fallback)": "app/tests/e2e/journey.device.spec.ts — afterAll writes legs.json + verdict.json (computeVerdict target 'device'), runs OC_E2E_DEVICE_TEARDOWN as the doctl fallback, never releases the standing gateway",
    "Step 2 — the fifteen legs in the exact produced order with the fixture interfaces": "legs standing, mint, device-create, agent-install, decline-resume, join, approve, assess, select-files, deploy-takeover, files-door, oidc-login, remove-device, reap, finish — driving mintCliCode/approvePending/declinePending, openDeviceSetup/selectFilesOnDevice/confirmEraseDeploy/confirmRemoveDeploy, and the consumed task 8/10 + droplet/ceremony/provision helpers",
    "Step 3 — pnpm typecheck + playwright --list journey.device.spec.ts → one test listed": "vue-tsc clean on the new files; playwright --list (OC_E2E_SPEC=journey.device.spec.ts) → 'Total: 1 test in 1 file'",
    "Step 4 — single commit named for the issue": "ade5f304cf4395ad63af61f64a467b7f01da13f0, message 'sandcastle: #852 — rehearsal-5: journey.device.spec.ts … (task 11 of #852)'",
    "STATUS.md updated in the same commit": "STATUS.md lead now leads with #852 (device-add journey spec + fixtures); prior #866 lead demoted to a Prior lead line"
  },
  "summary": "Shipped the #183 phase-5 device-add live-drive spec (journey.device.spec.ts, 15 legs, verdict target 'device') and its two offline-proven fixture pairs (deviceAdd, deviceProvision); 12 new unit cases green, vue-tsc clean, playwright lists one test.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #852 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 852, "status": "success", "commits": [ "ade5f304cf4395ad63af61f64a467b7f01da13f0" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/deviceAdd.ts", "app/tests/e2e/fixtures/deviceAdd.test.ts", "app/tests/e2e/fixtures/deviceProvision.ts", "app/tests/e2e/fixtures/deviceProvision.test.ts", "app/tests/e2e/journey.device.spec.ts" ], "tests": [ { "command": "pnpm --filter app exec vitest run tests/e2e/fixtures/deviceAdd.test.ts tests/e2e/fixtures/deviceProvision.test.ts", "exit_code": 0 }, { "command": "pnpm --filter app exec vitest run tests/e2e (125 e2e-fixture cases)", "exit_code": 0 }, { "command": "pnpm --filter app exec vue-tsc -p tsconfig.json (no errors in the new files)", "exit_code": 0 }, { "command": "OC_E2E_SPEC=journey.device.spec.ts pnpm --filter app exec playwright test --list", "exit_code": 0 }, { "command": "pnpm exec eslint (the 5 new files)", "exit_code": 0 } ], "criteria": { "Step 1 — fixture unit tests written (offline selector builders + install-command parsing), red then green": "fixtures/deviceAdd.test.ts (7 cases: parseInstallCommand + fetchAndInstallCommand) + fixtures/deviceProvision.test.ts (5 cases: fleetRowField/setUpAction/deviceIdFromSetUpAction) — 12 cases green under vitest", "Step 2 — journey.device.spec.ts scaffolded from journey.rented.spec.ts (run dir, writeLegRecords, afterAll verdict target 'device', standing NEVER released, oc_device teardown via spec-side doctl fallback)": "app/tests/e2e/journey.device.spec.ts — afterAll writes legs.json + verdict.json (computeVerdict target 'device'), runs OC_E2E_DEVICE_TEARDOWN as the doctl fallback, never releases the standing gateway", "Step 2 — the fifteen legs in the exact produced order with the fixture interfaces": "legs standing, mint, device-create, agent-install, decline-resume, join, approve, assess, select-files, deploy-takeover, files-door, oidc-login, remove-device, reap, finish — driving mintCliCode/approvePending/declinePending, openDeviceSetup/selectFilesOnDevice/confirmEraseDeploy/confirmRemoveDeploy, and the consumed task 8/10 + droplet/ceremony/provision helpers", "Step 3 — pnpm typecheck + playwright --list journey.device.spec.ts → one test listed": "vue-tsc clean on the new files; playwright --list (OC_E2E_SPEC=journey.device.spec.ts) → 'Total: 1 test in 1 file'", "Step 4 — single commit named for the issue": "ade5f304cf4395ad63af61f64a467b7f01da13f0, message 'sandcastle: #852 — rehearsal-5: journey.device.spec.ts … (task 11 of #852)'", "STATUS.md updated in the same commit": "STATUS.md lead now leads with #852 (device-add journey spec + fixtures); prior #866 lead demoted to a Prior lead line" }, "summary": "Shipped the #183 phase-5 device-add live-drive spec (journey.device.spec.ts, 15 legs, verdict target 'device') and its two offline-proven fixture pairs (deviceAdd, deviceProvision); 12 new unit cases green, vue-tsc clean, playwright lists one test.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#852
No description provided.