hand-off on IDIP: "Open control panel" runs the KANIDM enrolment ceremony — the buttons vanish, a raw Go error appears, and "Get a fresh invite" re-drives the same dead end #1704

Closed
opened 2026-09-21 20:17:01 +00:00 by ben · 4 comments
Owner

What happened

Rented + IDIP founding, hand-off screen. Ben pressed the open-control-panel button. The buttons disappeared and this row replaced them:

founding: no kanidm credential-enrolment ceremony on the IDIP path (the person credential is the founder AID — ADR 0215) [GET A FRESH INVITE ↗]

Cause

FoundingStandup.vue onOpenDashboard() (~line 796) unconditionally calls props.client.enrolPasskey() — the Kanidm passkey/password ceremony (ADR 0046). On IDIP the helper rightly refuses (ErrEnrolmentNotOnIDIP, internal/founding/handoff.go:404,539), and the renderer shows the raw error in the enrol-fault slot with the re-mint button — which re-drives the same op and can never succeed. There is no invite on IDIP to refresh.

Expected (wireframe p1-s12-hand-off-idip.html)

On an IDIP community the button simply opens the control panel (https://<apex>) in the browser — the operator signs in there with their recovery phrase — and the hand-off completes on the recovery-kit answer alone (the person credential already exists: the founder AID). No ceremony, no waiting card, no invite.

Fix

  • Branch on the draft's identity path in the hand-off: IDIP ⇒ open the apex, never call enrolPasskey; maybeFinish treats the credential as already enrolled.
  • The enrol-fault slot never renders a raw helper error string (ADR 0100: honest AND in the operator's words), and never offers a re-mint on a path that has no invite.
  • Component test: IDIP hand-off ⇒ click opens the apex URL, no enrolPasskey call, buttons stay; Kanidm hand-off unchanged.
  • The IDIP prove-it drive (#1688) must press THIS button on the founding page's hand-off — find out why it has not caught this (does it finish through a different surface?) and say so in the close-report.

Found on the hand re-founding of Whakatōhea Demo 2026-09-21. Build idss_0.1.0_amd64.deb sha256 ecff1f99…6e87febc, source 5b910ef3.

## What happened Rented + IDIP founding, hand-off screen. Ben pressed the open-control-panel button. The buttons disappeared and this row replaced them: > founding: no kanidm credential-enrolment ceremony on the IDIP path (the person credential is the founder AID — ADR 0215) [GET A FRESH INVITE ↗] ## Cause `FoundingStandup.vue` `onOpenDashboard()` (~line 796) unconditionally calls `props.client.enrolPasskey()` — the Kanidm passkey/password ceremony (ADR 0046). On IDIP the helper rightly refuses (`ErrEnrolmentNotOnIDIP`, `internal/founding/handoff.go:404,539`), and the renderer shows the raw error in the enrol-fault slot with the re-mint button — which re-drives the same op and can never succeed. There is no invite on IDIP to refresh. ## Expected (wireframe `p1-s12-hand-off-idip.html`) On an IDIP community the button simply **opens the control panel** (`https://<apex>`) in the browser — the operator signs in there with their recovery phrase — and the hand-off completes on the recovery-kit answer alone (the person credential already exists: the founder AID). No ceremony, no waiting card, no invite. ## Fix - Branch on the draft's identity path in the hand-off: IDIP ⇒ open the apex, never call `enrolPasskey`; `maybeFinish` treats the credential as already enrolled. - The enrol-fault slot never renders a raw helper error string (ADR 0100: honest AND in the operator's words), and never offers a re-mint on a path that has no invite. - Component test: IDIP hand-off ⇒ click opens the apex URL, no `enrolPasskey` call, buttons stay; Kanidm hand-off unchanged. - The IDIP prove-it drive (#1688) must press THIS button on the founding page's hand-off — find out why it has not caught this (does it finish through a different surface?) and say so in the close-report. Found on the hand re-founding of Whakatōhea Demo 2026-09-21. Build `idss_0.1.0_amd64.deb` sha256 `ecff1f99…6e87febc`, source `5b910ef3`.
Author
Owner

Addendum (same session): there is also no way to FINISH this hand-off on IDIP. The recovery-kit offer was removed from this screen on Ben's 2026-09-12 ruling (FoundingHandOff.vue:118-125 — "whichever surface takes the offer inherits a live path"; no surface has taken it: saveRecoveryKit is referenced only by the stand-up host and the hand-off component). maybeFinish still waits for passkey enrolled + kit resolved (ADR 0044). On IDIP the enrol op always refuses and the kit is never offered, so the hand-off never completes, the scrub never runs (crown-jewel material and founding-state.json stay on the laptop) and the operator never lands on Operator home. The fix must define the IDIP completion rule, and the kit offer needs a home on BOTH identity paths.

**Addendum (same session):** there is also no way to FINISH this hand-off on IDIP. The recovery-kit offer was removed from this screen on Ben's 2026-09-12 ruling (`FoundingHandOff.vue:118-125` — "whichever surface takes the offer inherits a live path"; no surface has taken it: `saveRecoveryKit` is referenced only by the stand-up host and the hand-off component). `maybeFinish` still waits for *passkey enrolled + kit resolved* (ADR 0044). On IDIP the enrol op always refuses and the kit is never offered, so the hand-off never completes, the **scrub never runs** (crown-jewel material and `founding-state.json` stay on the laptop) and the operator never lands on Operator home. The fix must define the IDIP completion rule, and the kit offer needs a home on BOTH identity paths.

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

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

close-report for #1704 — status success

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

envelope
{
  "issue": 1704,
  "status": "success",
  "commits": [
    "76eb5e6db91dc79a16f3edbc2343bd9cafb6bc5e"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/components/founding/FoundingHandOff.vue",
    "app/src/components/founding/FoundingStandup.vue",
    "app/src/i18n/founding/g5.en.ts",
    "app/src/i18n/founding/g5.es.ts",
    "app/src/i18n/founding/g5.fr.ts",
    "app/src/i18n/founding/g5.nl.ts",
    "app/src/lib/founding.ts",
    "internal/founding/handoff.go",
    "internal/founding/handoff_test.go",
    "app/tests/unit/foundingHandOffIdip.test.ts"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/founding/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm vitest run tests/unit/foundingHandOffIdip.test.ts tests/unit/foundingHandOff.test.ts tests/unit/founding tests/unit/i18nSeam.test.ts (280 pass)",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm build (vue-tsc -p tsconfig.json)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Branch on the identity path: IDIP opens the apex, never calls enrolPasskey; the credential is treated as already enrolled": "FoundingStandup.onOpenDashboard gates on handOff.enrolment.offered===false (DDR 0216, never an identity flag): window.open(portal.address) + completeIdipHandOff, no enrolPasskey. Seam CompleteHandOff (handoff.go) gates the passkey clause on Enrolment.Offered so IDIP completes without a registered passkey.",
    "The enrol-fault slot never renders a raw helper error string and never offers a re-mint on a path that has no invite (ADR 0100)": "FoundingHandOff renders only the actions block when noEnrolmentCeremony (offered===false) — the enrol-pending / journey-fault / remint-invite branches never render on IDIP; and onOpenDashboard never drives enrolPasskey there, so enrolFault is never populated.",
    "Component test: IDIP hand-off => click opens the apex URL, no enrolPasskey call, buttons stay; Kanidm hand-off unchanged": "foundingHandOffIdip.test.ts: click opens https://example.idss.nz, fake.ops has no enrol-passkey, no journey-fault/remint-invite/enrol-pending, complete-hand-off runs and lands. Kanidm: foundingHandOff.test.ts (12 tests) unchanged and green.",
    "Define the IDIP completion rule — the hand-off completes, the scrub runs (crown jewels + founding-state.json off the laptop), lands on Operator home (Ben addendum)": "CompleteHandOff completes on the recovery-kit answer alone on IDIP; TestIDIP_HandOffCompletesWithoutKanidmEnrolment asserts Done, Landing=operator-home, laptop.Scrubbed, StateFileDeleted, 0 tokens minted. A relaunch onto an open IDIP hand-off auto-completes at boot (onLoad).",
    "The recovery-kit offer has a home on both identity paths (Ben addendum)": "On IDIP completeIdipHandOff defers a still-offered kit to LATER as part of completing (one decline-recovery-kit, proven in the test); on kanidm the existing kitDeferred watch still defers it. The kit clause in CompleteHandOff guards BOTH paths.",
    "Say why the #1688 prove-it drive did not catch this": "The IDIP drive never presses this button: leg 12/founded only asserts the hand-off visible + reads portal-address; sign-in is proven through a SEPARATE fresh chromium at the real front door (leg 13); completion is taken via a RESUME (page.reload -> Operator home) at app-pending-at-handoff, explicitly avoiding the kanidm exit button this path never draws. So the in-app button's enrolPasskey dead-end was on a surface no leg exercised. Follow-up owed (live env): a drive leg pressing Open-your-dashboard on the founding hand-off."
  },
  "summary": "On IDIP the hand-off's Open-your-dashboard now opens the control panel and completes the hand-off (scrub + land) instead of dead-ending on a kanidm passkey ceremony that path has no counterpart to.",
  "reason": "",
  "blockers": []
}
**close-report** for #1704 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1704, "status": "success", "commits": [ "76eb5e6db91dc79a16f3edbc2343bd9cafb6bc5e" ], "changed_files": [ "STATUS.md", "app/src/components/founding/FoundingHandOff.vue", "app/src/components/founding/FoundingStandup.vue", "app/src/i18n/founding/g5.en.ts", "app/src/i18n/founding/g5.es.ts", "app/src/i18n/founding/g5.fr.ts", "app/src/i18n/founding/g5.nl.ts", "app/src/lib/founding.ts", "internal/founding/handoff.go", "internal/founding/handoff_test.go", "app/tests/unit/foundingHandOffIdip.test.ts" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/founding/", "exit_code": 0 }, { "command": "CI=true pnpm vitest run tests/unit/foundingHandOffIdip.test.ts tests/unit/foundingHandOff.test.ts tests/unit/founding tests/unit/i18nSeam.test.ts (280 pass)", "exit_code": 0 }, { "command": "CI=true pnpm build (vue-tsc -p tsconfig.json)", "exit_code": 0 } ], "criteria": { "Branch on the identity path: IDIP opens the apex, never calls enrolPasskey; the credential is treated as already enrolled": "FoundingStandup.onOpenDashboard gates on handOff.enrolment.offered===false (DDR 0216, never an identity flag): window.open(portal.address) + completeIdipHandOff, no enrolPasskey. Seam CompleteHandOff (handoff.go) gates the passkey clause on Enrolment.Offered so IDIP completes without a registered passkey.", "The enrol-fault slot never renders a raw helper error string and never offers a re-mint on a path that has no invite (ADR 0100)": "FoundingHandOff renders only the actions block when noEnrolmentCeremony (offered===false) — the enrol-pending / journey-fault / remint-invite branches never render on IDIP; and onOpenDashboard never drives enrolPasskey there, so enrolFault is never populated.", "Component test: IDIP hand-off => click opens the apex URL, no enrolPasskey call, buttons stay; Kanidm hand-off unchanged": "foundingHandOffIdip.test.ts: click opens https://example.idss.nz, fake.ops has no enrol-passkey, no journey-fault/remint-invite/enrol-pending, complete-hand-off runs and lands. Kanidm: foundingHandOff.test.ts (12 tests) unchanged and green.", "Define the IDIP completion rule — the hand-off completes, the scrub runs (crown jewels + founding-state.json off the laptop), lands on Operator home (Ben addendum)": "CompleteHandOff completes on the recovery-kit answer alone on IDIP; TestIDIP_HandOffCompletesWithoutKanidmEnrolment asserts Done, Landing=operator-home, laptop.Scrubbed, StateFileDeleted, 0 tokens minted. A relaunch onto an open IDIP hand-off auto-completes at boot (onLoad).", "The recovery-kit offer has a home on both identity paths (Ben addendum)": "On IDIP completeIdipHandOff defers a still-offered kit to LATER as part of completing (one decline-recovery-kit, proven in the test); on kanidm the existing kitDeferred watch still defers it. The kit clause in CompleteHandOff guards BOTH paths.", "Say why the #1688 prove-it drive did not catch this": "The IDIP drive never presses this button: leg 12/founded only asserts the hand-off visible + reads portal-address; sign-in is proven through a SEPARATE fresh chromium at the real front door (leg 13); completion is taken via a RESUME (page.reload -> Operator home) at app-pending-at-handoff, explicitly avoiding the kanidm exit button this path never draws. So the in-app button's enrolPasskey dead-end was on a surface no leg exercised. Follow-up owed (live env): a drive leg pressing Open-your-dashboard on the founding hand-off." }, "summary": "On IDIP the hand-off's Open-your-dashboard now opens the control panel and completes the hand-off (scrub + land) instead of dead-ending on a kanidm passkey ceremony that path has no counterpart to.", "reason": "", "blockers": [] } ``` </details>
Author
Owner

Follow-up note (2026-09-24) — the "open the panel AND complete the hand-off" bundling is not a worker choice; it is DDR 0216 ruling 1.

An earlier session flagged the close-report's bundling (the IDIP Open admin control panel click both opens the browser door and fires CompleteHandOff) as a #1704 choice that could be unbundled. Checked against the design contract: DDR 0216 §1 (Ben's ruling, 2026-08-30, #970) rules exactly this — "On IDIP, Open your dashboard both opens the portal in the operator's browser and fires CompleteHandOff. No waiting card, no poll, no new wire." It explicitly rejects completing at hand-off open and first-sign-in completion; the click is the confirmation gesture. Spec #1039 carries the same title ("render + click-completes").

So the shipped behaviour is the ruled one and there is nothing to unbundle. What has moved since: c936ef1a (2026-09-24, ADR 0271, Ben's option 2) retargets the click's URL from portal.address (now the members' Portal at the apex) to the panel's own door dashboardDoor (admin.<apex>), still completing the hand-off on the spot. FoundingStandup.vue onOpenDashboard on main reads exactly that. Question closed.

**Follow-up note (2026-09-24) — the "open the panel AND complete the hand-off" bundling is not a worker choice; it is DDR 0216 ruling 1.** An earlier session flagged the close-report's bundling (the IDIP *Open admin control panel* click both opens the browser door and fires `CompleteHandOff`) as a #1704 choice that could be unbundled. Checked against the design contract: **DDR 0216 §1 (Ben's ruling, 2026-08-30, #970)** rules exactly this — *"On IDIP, Open your dashboard both opens the portal in the operator's browser and fires CompleteHandOff. No waiting card, no poll, no new wire."* It explicitly rejects completing at hand-off open and first-sign-in completion; the click is the confirmation gesture. Spec #1039 carries the same title ("render + click-completes"). So the shipped behaviour is the ruled one and there is nothing to unbundle. What has moved since: `c936ef1a` (2026-09-24, ADR 0271, Ben's option 2) retargets the click's URL from `portal.address` (now the members' Portal at the apex) to the panel's own door `dashboardDoor` (`admin.<apex>`), still completing the hand-off on the spot. `FoundingStandup.vue` `onOpenDashboard` on main reads exactly that. Question closed.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1704
No description provided.