drives: demo profile gains IDSS_DEMO_IDENTITY (kanidm | idip) — IDIP needs no password file (WKT-DEMO A, plan Task 1) #1829

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

What

app/tests/e2e/fixtures/demoProfile.ts: DemoProfile.identity: 'kanidm' | 'idip' (default kanidm) from IDSS_DEMO_IDENTITY; on idip the password file is not required and password is ''; an unknown identity refuses naming the variable.

Interfaces

  • Produces profile.identity for plan Tasks 3/6 (journey.wkt-founding).

Acceptance

  • The four new cases in demoProfile.test.ts (plan Task 1 Step 1) green; every pre-existing case green.
  • pnpm exec tsc --noEmit + eslint clean on the two files.
  • kanidm callers unchanged (the rented-services demo still requires IDSS_DEMO_PASSWORD_FILE).

depends_on: none. out_of_scope: the journey (Task 6), the prefix (Task 3). 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/demoProfile.ts`: `DemoProfile.identity: 'kanidm' | 'idip'` (default kanidm) from `IDSS_DEMO_IDENTITY`; on `idip` the password file is not required and `password` is `''`; an unknown identity refuses naming the variable. ## Interfaces - Produces `profile.identity` for plan Tasks 3/6 (`journey.wkt-founding`). ## Acceptance - The four new cases in `demoProfile.test.ts` (plan Task 1 Step 1) green; every pre-existing case green. - `pnpm exec tsc --noEmit` + eslint clean on the two files. - kanidm callers unchanged (the rented-services demo still requires `IDSS_DEMO_PASSWORD_FILE`). depends_on: none. out_of_scope: the journey (Task 6), the prefix (Task 3). 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=matou-dev-server-01 run=32053
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=32053 (automated multi-host claim — lowest live claim id works this ticket)
matou-build-agent 2026-09-24 19:19:32 +00:00

close-report for #1829 — status success

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

envelope
{
  "issue": 1829,
  "status": "success",
  "commits": [
    "e20634c2"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/demoProfile.ts",
    "app/tests/e2e/fixtures/demoProfile.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm exec vitest run tests/e2e/fixtures/demoProfile.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm exec eslint tests/e2e/fixtures/demoProfile.ts tests/e2e/fixtures/demoProfile.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The four new cases in demoProfile.test.ts green; every pre-existing case green": "vitest run — 11 tests passed (4 new identity cases + 7 pre-existing)",
    "tsc --noEmit + eslint clean on the two files": "eslint exit 0 on both files; tsc reports zero errors in demoProfile.ts/.test.ts (the only tsc errors are pre-existing in unrelated files: bootstrap.ts, appShell.test.ts, foundingPage.test.ts)",
    "kanidm callers unchanged (rented-services demo still requires IDSS_DEMO_PASSWORD_FILE)": "demoProfile.ts still calls need('IDSS_DEMO_PASSWORD_FILE') and the <12-char refusal when identity is kanidm (default); test 'kanidm still refuses without the password file' green"
  },
  "summary": "DemoProfile gains identity: 'kanidm' | 'idip' from IDSS_DEMO_IDENTITY; idip needs no password file (password ''), unknown identity refuses at second 0.",
  "blockers": []
}
**close-report** for #1829 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1829, "status": "success", "commits": [ "e20634c2" ], "changed_files": [ "app/tests/e2e/fixtures/demoProfile.ts", "app/tests/e2e/fixtures/demoProfile.test.ts", "STATUS.md" ], "tests": [ { "command": "cd app && CI=true pnpm exec vitest run tests/e2e/fixtures/demoProfile.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm exec eslint tests/e2e/fixtures/demoProfile.ts tests/e2e/fixtures/demoProfile.test.ts", "exit_code": 0 } ], "criteria": { "The four new cases in demoProfile.test.ts green; every pre-existing case green": "vitest run — 11 tests passed (4 new identity cases + 7 pre-existing)", "tsc --noEmit + eslint clean on the two files": "eslint exit 0 on both files; tsc reports zero errors in demoProfile.ts/.test.ts (the only tsc errors are pre-existing in unrelated files: bootstrap.ts, appShell.test.ts, foundingPage.test.ts)", "kanidm callers unchanged (rented-services demo still requires IDSS_DEMO_PASSWORD_FILE)": "demoProfile.ts still calls need('IDSS_DEMO_PASSWORD_FILE') and the <12-char refusal when identity is kanidm (default); test 'kanidm still refuses without the password file' green" }, "summary": "DemoProfile gains identity: 'kanidm' | 'idip' from IDSS_DEMO_IDENTITY; idip needs no password file (password ''), unknown identity refuses at second 0.", "blockers": [] } ``` </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#1829
No description provided.