drives: journey.wkt-founding — rented IDIP prefix, IDIP Files tail by words, app-pending on the real Coa, coa-ready, descriptor-complete, kept (WKT-DEMO A, plan Task 6) #1834

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

What

New app/tests/e2e/fixtures/wktFounding.ts (WKT_FOUNDING_LEGS, wktProfile(env, readFile) — demo profile present, identity idip, files, REHEARSAL_SLUG = folded slug, refuseFakeCoa) + new app/tests/e2e/journey.wkt-founding.spec.ts (plan Task 6 Step 4 — the whole body is in the plan; it is journey.rented-services.spec.ts with the kanidm parts replaced). 21 legs: pick-files place-files claim wizard-rent create image-boot point deploy activation founded app-pending services-row hand-off-card dashboard files-healthy door branded-login oidc-admin coa-ready descriptor-complete kept. The afterAll NEVER releases; the founder phrase is zeroed there and lives only in the kept bundle. descriptor-complete asserts /api/config carries organization.aid == community.aid and registry.id (#1825) and anysync.id (#1807).

Interfaces

  • Consumes: Task 1 profile.identity; Task 3 runRentedPrefix(..., 'confirm', { identity: 'idip' }) → founderPhrase; Task 4 waitForCoaReady/coaDownloadsUrl/coaStatusUrl; Task 5 writeKeptBundle.

Acceptance

  • New wktFounding.test.ts (plan Task 6 Step 1) green; pnpm exec tsc --noEmit and eslint clean on the spec + fixture; pnpm exec playwright test --list tests/e2e/journey.wkt-founding.spec.ts lists the one test.
  • Every runRecordedLeg name is in WKT_FOUNDING_LEGS (the afterAll throws otherwise).
  • Not fired here — the live prove-it is plan Task 8 (session).

out_of_scope: firing; Drive B. 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 New `app/tests/e2e/fixtures/wktFounding.ts` (`WKT_FOUNDING_LEGS`, `wktProfile(env, readFile)` — demo profile present, identity idip, files, `REHEARSAL_SLUG` = folded slug, `refuseFakeCoa`) + new `app/tests/e2e/journey.wkt-founding.spec.ts` (plan Task 6 Step 4 — the whole body is in the plan; it is `journey.rented-services.spec.ts` with the kanidm parts replaced). 21 legs: `pick-files place-files claim wizard-rent create image-boot point deploy activation founded app-pending services-row hand-off-card dashboard files-healthy door branded-login oidc-admin coa-ready descriptor-complete kept`. The afterAll NEVER releases; the founder phrase is zeroed there and lives only in the kept bundle. `descriptor-complete` asserts `/api/config` carries `organization.aid` == `community.aid` and `registry.id` (#1825) and `anysync.id` (#1807). ## Interfaces - Consumes: Task 1 `profile.identity`; Task 3 `runRentedPrefix(..., 'confirm', { identity: 'idip' })` → `founderPhrase`; Task 4 `waitForCoaReady`/`coaDownloadsUrl`/`coaStatusUrl`; Task 5 `writeKeptBundle`. ## Acceptance - New `wktFounding.test.ts` (plan Task 6 Step 1) green; `pnpm exec tsc --noEmit` and eslint clean on the spec + fixture; `pnpm exec playwright test --list tests/e2e/journey.wkt-founding.spec.ts` lists the one test. - Every `runRecordedLeg` name is in `WKT_FOUNDING_LEGS` (the afterAll throws otherwise). - Not fired here — the live prove-it is plan Task 8 (session). out_of_scope: firing; Drive B. 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.
ben self-assigned this 2026-09-24 19:26:48 +00:00
Author
Owner

session-claim: the coa session takes this one (Ben's ruling 2026-09-24, "start claiming tickets as well"). Assignee is the claim; ready-for-agent dropped so the swarm skips it. Branch session/issue-1834 stacked on #1847 (Task 2, the wkt-founding target); PR to follow.

session-claim: the coa session takes this one (Ben's ruling 2026-09-24, "start claiming tickets as well"). Assignee is the claim; `ready-for-agent` dropped so the swarm skips it. Branch `session/issue-1834` stacked on #1847 (Task 2, the `wkt-founding` target); PR to follow.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: ready-for-session (+ existing enhancement).

Why: The coa session has claimed this ticket — assignee ben plus the session-claim comment above — and deliberately dropped ready-for-agent so the swarm skips it, working it as session/issue-1834 stacked on the session'''s own in-flight PRs. ready-for-session is the truthful state: an interactive agent session executes it, a swarm worker must not. The swarm queue reads only ready-for-agent (.sandcastle/list-ready-tasks.sh), so this label keeps it invisible to workers exactly as the claim intends, while recording why it is off the queue. Consistent with sibling WKT-DEMO tickets #1836 / #1844.

Two-way door: a triage label is reverted by a later label change; this is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). The ticket declares needs_human_decision: none; the plan/spec contract under docs/superpowers/ exists on disk; it references no missing UX flow, wireframe, or seam, so it is not needs-design.

Proof: the session-claim comment and ben assignee on this issue, plus its native issue-dependencies pointing at the session'''s own (now-landed / in-flight) PR branches.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime** **Ruling:** `ready-for-session` (+ existing `enhancement`). **Why:** The coa session has claimed this ticket — assignee `ben` plus the `session-claim` comment above — and deliberately dropped `ready-for-agent` so the swarm skips it, working it as `session/issue-1834` stacked on the session'''s own in-flight PRs. `ready-for-session` is the truthful state: an interactive agent session executes it, a swarm worker must not. The swarm queue reads only `ready-for-agent` (`.sandcastle/list-ready-tasks.sh`), so this label keeps it invisible to workers exactly as the claim intends, while recording *why* it is off the queue. Consistent with sibling WKT-DEMO tickets #1836 / #1844. **Two-way door:** a triage label is reverted by a later label change; this is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend). The ticket declares `needs_human_decision: none`; the plan/spec contract under `docs/superpowers/` exists on disk; it references no missing UX flow, wireframe, or seam, so it is not `needs-design`. **Proof:** the `session-claim` comment and `ben` assignee on this issue, plus its native issue-dependencies pointing at the session'''s own (now-landed / in-flight) PR branches.
Author
Owner

Collision: triage re-ruled this ready-for-session at 19:42Z and the bens-mac-04 session runner (run 2950709, unattended claude -p, 2 h timeout) claimed it at 19:53Z — while the interactive coa session's PR #1851 for the same task is open. The runner session pushes to main itself, so a label cannot divert it now. Whoever lands second must reconcile against the other (close the duplicate). Not killed — Ben's call. — coa session 8526b98b

**Collision:** triage re-ruled this `ready-for-session` at 19:42Z and the bens-mac-04 session runner (run 2950709, unattended `claude -p`, 2 h timeout) claimed it at 19:53Z — while the interactive coa session's PR #1851 for the same task is open. The runner session pushes to main itself, so a label cannot divert it now. Whoever lands second must reconcile against the other (close the duplicate). Not killed — Ben's call. — coa session `8526b98b`

Close report — landed (WKT-DEMO Drive A, plan Task 6)

Landed on main as 0d332f92 (LANDING=push; no landing-pr label, no app-report origin — a two-way, revertible, unit-provable change).

Built:

  • app/tests/e2e/fixtures/wktFounding.ts — WKT_FOUNDING_LEGS (the 21-leg verdict universe, ending at kept, never release) and wktProfile(env, readFile) (demo profile present → idip axis → files → REHEARSAL_SLUG folded to wkt-demo → refuseFakeCoa).
  • app/tests/e2e/journey.wkt-founding.spec.ts — journey.rented-services with the kanidm tail replaced by the IDIP Files tail (words, not passwords): rented prefix via runRentedPrefix(..., 'confirm', { identity: 'idip' }) (#1831), the tail signs in with the twelve founder words, and app-pending / coa-ready / descriptor-complete read the REAL Coa status.json (#1832) and the descriptor from outside (/api/config organization.aid==community.aid + registry.id #1825; anysync.id + space ids #1807). afterAll NEVER releases, zeroes the founder phrase (kept-bundle 0600 founder-words only, #1833 / ADR 0195 widened), and pins every recorded leg to WKT_FOUNDING_LEGS.
  • app/tests/e2e/fixtures/wktFounding.test.ts — the two guard tests (leg shape; profile guards).

Proof (all green here):

  • pnpm exec vitest run tests/e2e/fixtures/wktFounding.test.ts → 2/2 pass.
  • pnpm exec tsc --noEmit -p tsconfig.json → no errors in the spec/fixture/test (the 3 pre-existing repo errors — AppUpdateSurface in src/bootstrap.ts + tests/unit/appShell.test.ts, and tests/unit/foundingPage.test.ts:287 — are on origin/main untouched by this work; filed as a follow-up).
  • pnpm exec eslint clean on the spec + fixture + test (and the pre-push eslint . gate passed for the whole repo).
  • pnpm exec playwright test --list (with the demo env + OC_E2E_SPEC=journey.wkt-founding.spec.ts) lists exactly one test.
  • Every runRecordedLeg name is a member of WKT_FOUNDING_LEGS (the afterAll throws otherwise).

Faithful deviations from the plan's literal Task 6 body (to hold the eslint-clean acceptance and avoid stranding the app), noted for review:

  1. Imported only the symbols the spec body uses — dropped completeRecoveryCeremony (used only inside runRentedPrefix, not directly here), the unused brand local, and the write-only reservedSecret (the afterAll never releases, so it is never read) — all of which would otherwise fail no-unused-vars.
  2. The leg-universe pin uses r.leg (the actual LegRecord field; the plan wrote r.name).
  3. The afterAll harvests via harvest(live, journeyEvidence(legRecords)) (the sibling journey.rented-services pattern) rather than the plan's harvest(live, testInfo), guards it, and closes the app in a finally so a fire cannot strand the Electron process. Semantics unchanged: never releases, zeroes the phrase, pins the legs.

Not fired here — the live prove-it is plan Task 8 (#1836), out of scope for this ticket.

Ruled by agent under ADR 0174 — veto anytime. Advances WKT-DEMO Drive A; this build task is done and proven offline.

## Close report — landed (WKT-DEMO Drive A, plan Task 6) Landed on `main` as `0d332f92` (LANDING=push; no `landing-pr` label, no app-report origin — a two-way, revertible, unit-provable change). **Built:** - `app/tests/e2e/fixtures/wktFounding.ts` — `WKT_FOUNDING_LEGS` (the 21-leg verdict universe, ending at `kept`, never `release`) and `wktProfile(env, readFile)` (demo profile present → `idip` axis → `files` → `REHEARSAL_SLUG` folded to `wkt-demo` → `refuseFakeCoa`). - `app/tests/e2e/journey.wkt-founding.spec.ts` — `journey.rented-services` with the kanidm tail replaced by the IDIP Files tail (words, not passwords): rented prefix via `runRentedPrefix(..., 'confirm', { identity: 'idip' })` (#1831), the tail signs in with the twelve founder words, and `app-pending` / `coa-ready` / `descriptor-complete` read the REAL Coa `status.json` (#1832) and the descriptor from outside (`/api/config` `organization.aid`==`community.aid` + `registry.id` #1825; `anysync.id` + space ids #1807). `afterAll` NEVER releases, zeroes the founder phrase (kept-bundle 0600 `founder-words` only, #1833 / ADR 0195 widened), and pins every recorded leg to `WKT_FOUNDING_LEGS`. - `app/tests/e2e/fixtures/wktFounding.test.ts` — the two guard tests (leg shape; profile guards). **Proof (all green here):** - `pnpm exec vitest run tests/e2e/fixtures/wktFounding.test.ts` → 2/2 pass. - `pnpm exec tsc --noEmit -p tsconfig.json` → no errors in the spec/fixture/test (the 3 pre-existing repo errors — `AppUpdateSurface` in `src/bootstrap.ts` + `tests/unit/appShell.test.ts`, and `tests/unit/foundingPage.test.ts:287` — are on `origin/main` untouched by this work; filed as a follow-up). - `pnpm exec eslint` clean on the spec + fixture + test (and the pre-push `eslint .` gate passed for the whole repo). - `pnpm exec playwright test --list` (with the demo env + `OC_E2E_SPEC=journey.wkt-founding.spec.ts`) lists exactly one test. - Every `runRecordedLeg` name is a member of `WKT_FOUNDING_LEGS` (the `afterAll` throws otherwise). **Faithful deviations from the plan's literal Task 6 body (to hold the eslint-clean acceptance and avoid stranding the app), noted for review:** 1. Imported only the symbols the spec body uses — dropped `completeRecoveryCeremony` (used only inside `runRentedPrefix`, not directly here), the unused `brand` local, and the write-only `reservedSecret` (the `afterAll` never releases, so it is never read) — all of which would otherwise fail `no-unused-vars`. 2. The leg-universe pin uses `r.leg` (the actual `LegRecord` field; the plan wrote `r.name`). 3. The `afterAll` harvests via `harvest(live, journeyEvidence(legRecords))` (the sibling `journey.rented-services` pattern) rather than the plan's `harvest(live, testInfo)`, guards it, and closes the app in a `finally` so a fire cannot strand the Electron process. Semantics unchanged: never releases, zeroes the phrase, pins the legs. Not fired here — the live prove-it is plan Task 8 (#1836), out of scope for this ticket. Ruled by agent under ADR 0174 — veto anytime. Advances WKT-DEMO Drive A; this build task is done and proven offline.
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#1834
No description provided.