drives: the rented prefix learns IDIP — completeRecoveryCeremony after Build it, founderPhrase on RentedPrefixState (WKT-DEMO A, plan Task 3) #1831

Closed
opened 2026-09-24 18:15:08 +00:00 by ben · 2 comments
Owner

What

app/tests/e2e/fixtures/idip.ts: split s6aRecoveryPhraseAndCreate so the part after click('[data-action="build"]') is the exported completeRecoveryCeremony(live, expectStatus): Promise<string> (reads + confirms the twelve words, presses Create, resolves the phrase on one of expectStatus, throws the recovery-error text otherwise). app/tests/e2e/fixtures/rentedPrefix.ts: RentedPrefixState.founderPhrase?: string; runRentedPrefix(..., enterFrom, opts?: { identity?: 'kanidm' | 'idip' }); on 'idip' with the 'confirm' entry the create leg runs the ceremony between Build it and standup-rented (plan Task 3 Step 4 has the exact block) and carries the phrase on the resolved AND the captured-on-error state.

Interfaces

  • Produces completeRecoveryCeremony and RentedPrefixState.founderPhrase for Task 6.

Acceptance

  • New app/tests/e2e/fixtures/idip.test.ts (plan Task 3 Step 1) green; demoProfile.test.ts green; tsc + eslint clean.
  • s6aRecoveryPhraseAndCreate behaviour identical for the idip journey (it now calls the split helper).
  • The 'address'/'welcome' entries stay on reviewAndCreate (kanidm); documented in the JSDoc.

depends_on: none. out_of_scope: the journey. needs_human_decision: none.

Plan: docs/superpowers/plans/2026-09-24-wkt-founding-drive.md (commit b8907abc) — the task's steps, exact code, tests and commands live there; this ticket is the work order. Spec: docs/superpowers/specs/2026-09-24-wkt-demo-founding-and-app-drives-design.md. Read the plan's header (Global Constraints, Review Focus) before the task.

Discipline: TDD as the plan's steps order it (failing test → red → implement → green → commit); one commit per task with the plan's subject line; STATUS.md dated entry in the same commit; no fake Coa anywhere on wkt-*; existing targets byte-identical when the new env/markers are unset.

## What `app/tests/e2e/fixtures/idip.ts`: split `s6aRecoveryPhraseAndCreate` so the part after `click('[data-action="build"]')` is the exported `completeRecoveryCeremony(live, expectStatus): Promise<string>` (reads + confirms the twelve words, presses Create, resolves the phrase on one of `expectStatus`, throws the `recovery-error` text otherwise). `app/tests/e2e/fixtures/rentedPrefix.ts`: `RentedPrefixState.founderPhrase?: string`; `runRentedPrefix(..., enterFrom, opts?: { identity?: 'kanidm' | 'idip' })`; on `'idip'` with the `'confirm'` entry the create leg runs the ceremony between Build it and `standup-rented` (plan Task 3 Step 4 has the exact block) and carries the phrase on the resolved AND the captured-on-error state. ## Interfaces - Produces `completeRecoveryCeremony` and `RentedPrefixState.founderPhrase` for Task 6. ## Acceptance - New `app/tests/e2e/fixtures/idip.test.ts` (plan Task 3 Step 1) green; `demoProfile.test.ts` green; tsc + eslint clean. - `s6aRecoveryPhraseAndCreate` behaviour identical for the idip journey (it now calls the split helper). - The `'address'`/`'welcome'` entries stay on `reviewAndCreate` (kanidm); documented in the JSDoc. depends_on: none. out_of_scope: the journey. needs_human_decision: none. **Plan:** `docs/superpowers/plans/2026-09-24-wkt-founding-drive.md` (commit `b8907abc`) — the task's steps, exact code, tests and commands live there; this ticket is the work order. **Spec:** `docs/superpowers/specs/2026-09-24-wkt-demo-founding-and-app-drives-design.md`. Read the plan's header (Global Constraints, Review Focus) before the task. **Discipline:** TDD as the plan's steps order it (failing test → red → implement → green → commit); one commit per task with the plan's subject line; STATUS.md dated entry in the same commit; no fake Coa anywhere on `wkt-*`; existing targets byte-identical when the new env/markers are unset.

swarm-claim host=bens-mac-04 run=32053
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=32053 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1831 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1831,
  "status": "success",
  "commits": [
    "41f072914e79ab3a08ca3f4aafcfbc29e81cbe86"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/fixtures/idip.test.ts",
    "app/tests/e2e/fixtures/idip.ts",
    "app/tests/e2e/fixtures/rentedPrefix.ts"
  ],
  "tests": [
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/idip.test.ts tests/e2e/fixtures/demoProfile.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec eslint tests/e2e/fixtures/idip.ts tests/e2e/fixtures/rentedPrefix.ts tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm run lint (repo-wide eslint, the pre-push TS gate)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "New app/tests/e2e/fixtures/idip.test.ts (plan Task 3 Step 1) green": "idip.test.ts gains the 'S6a ceremony helpers (WKT-DEMO A, Task 3)' describe ×3 (phraseFromWords twelve words; confirmPositionsFromLabel reads 3,7,11; both completeRecoveryCeremony and s6aRecoveryPhraseAndCreate exported) — vitest run green (60 cases in idip.test.ts).",
    "demoProfile.test.ts green": "Same vitest run: demoProfile.test.ts 7 cases green.",
    "tsc + eslint clean": "eslint clean on the three touched fixtures AND repo-wide (pnpm run lint, exit 0 — the push gate ran it). tsc: no diagnostic references any file this commit changed; the only tsc errors on the tree (app/src/bootstrap.ts, tests/unit/appShell.test.ts, tests/unit/foundingPage.test.ts) are pre-existing on the base from the operator-home/app-update slice (AppShell.vue named-type export), untouched here and outside this slice.",
    "s6aRecoveryPhraseAndCreate behaviour identical for the idip journey (it now calls the split helper)": "idip.ts: s6aRecoveryPhraseAndCreate now does walkToConfirm -> click build -> completeRecoveryCeremony(live, expectStatus); the ceremony body (word read, confirm-positions fill via fillRecoveryValue, Create, recovery-error race) is byte-moved into completeRecoveryCeremony, so journey.idip.spec.ts's call is unchanged in behaviour.",
    "The 'address'/'welcome' entries stay on reviewAndCreate (kanidm); documented in the JSDoc": "rentedPrefix.ts: opts.identity is honoured only on the 'confirm' branch; the else branch keeps reviewAndCreate; RentedPrefixOptions and the runRentedPrefix comment both state 'confirm'-only / kanidm for address+welcome.",
    "Produces completeRecoveryCeremony and RentedPrefixState.founderPhrase for Task 6": "idip.ts exports completeRecoveryCeremony; rentedPrefix.ts adds RentedPrefixState.founderPhrase? plus RentedPrefixOptions and carries founderPhrase on both the resolved return and rentedPrefixCaptured."
  },
  "summary": "Split the S6a ceremony into completeRecoveryCeremony and taught runRentedPrefix an IDIP 'confirm' create leg that runs it after Build it, resolving founderPhrase on RentedPrefixState.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1831 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1831, "status": "success", "commits": [ "41f072914e79ab3a08ca3f4aafcfbc29e81cbe86" ], "changed_files": [ "STATUS.md", "app/tests/e2e/fixtures/idip.test.ts", "app/tests/e2e/fixtures/idip.ts", "app/tests/e2e/fixtures/rentedPrefix.ts" ], "tests": [ { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/idip.test.ts tests/e2e/fixtures/demoProfile.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm exec eslint tests/e2e/fixtures/idip.ts tests/e2e/fixtures/rentedPrefix.ts tests/e2e/fixtures/idip.test.ts", "exit_code": 0 }, { "command": "CI=true pnpm run lint (repo-wide eslint, the pre-push TS gate)", "exit_code": 0 } ], "criteria": { "New app/tests/e2e/fixtures/idip.test.ts (plan Task 3 Step 1) green": "idip.test.ts gains the 'S6a ceremony helpers (WKT-DEMO A, Task 3)' describe ×3 (phraseFromWords twelve words; confirmPositionsFromLabel reads 3,7,11; both completeRecoveryCeremony and s6aRecoveryPhraseAndCreate exported) — vitest run green (60 cases in idip.test.ts).", "demoProfile.test.ts green": "Same vitest run: demoProfile.test.ts 7 cases green.", "tsc + eslint clean": "eslint clean on the three touched fixtures AND repo-wide (pnpm run lint, exit 0 — the push gate ran it). tsc: no diagnostic references any file this commit changed; the only tsc errors on the tree (app/src/bootstrap.ts, tests/unit/appShell.test.ts, tests/unit/foundingPage.test.ts) are pre-existing on the base from the operator-home/app-update slice (AppShell.vue named-type export), untouched here and outside this slice.", "s6aRecoveryPhraseAndCreate behaviour identical for the idip journey (it now calls the split helper)": "idip.ts: s6aRecoveryPhraseAndCreate now does walkToConfirm -> click build -> completeRecoveryCeremony(live, expectStatus); the ceremony body (word read, confirm-positions fill via fillRecoveryValue, Create, recovery-error race) is byte-moved into completeRecoveryCeremony, so journey.idip.spec.ts's call is unchanged in behaviour.", "The 'address'/'welcome' entries stay on reviewAndCreate (kanidm); documented in the JSDoc": "rentedPrefix.ts: opts.identity is honoured only on the 'confirm' branch; the else branch keeps reviewAndCreate; RentedPrefixOptions and the runRentedPrefix comment both state 'confirm'-only / kanidm for address+welcome.", "Produces completeRecoveryCeremony and RentedPrefixState.founderPhrase for Task 6": "idip.ts exports completeRecoveryCeremony; rentedPrefix.ts adds RentedPrefixState.founderPhrase? plus RentedPrefixOptions and carries founderPhrase on both the resolved return and rentedPrefixCaptured." }, "summary": "Split the S6a ceremony into completeRecoveryCeremony and taught runRentedPrefix an IDIP 'confirm' create leg that runs it after Build it, resolving founderPhrase on RentedPrefixState.", "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#1831
No description provided.