founding S12: the enrol op blocks the tail for minutes with no motion, and its fault lands in the top box #339

Closed
opened 2026-08-08 15:04:27 +00:00 by ben · 2 comments
Owner

Two S12 UX gaps observed live in drive 18 (out of Defect K's ruled scope, which covered finish-setup only):

  1. Clicking "Open your dashboard" runs enrolPasskey, which polls kanidm for a registered passkey until cfg.Timeout — MINUTES of a busy screen with no progress affordance, nothing telling the operator a browser window opened or what to do in it, and no way to cancel.
  2. If the op faults (e.g. ErrEnrolmentTokenExpired), the error renders in the standup screen's TOP box — the same misplacement Defect K fixed for finish-setup (wireframe fault-frame contract: a step's fault renders with its step), and outside the harness's data-field="fault-line" evidence contract.

Needs the S12 wireframe extended for the enrolment-in-progress state (what the operator sees while the ceremony is pending, the re-mint story for an expired token) before the fix is agentable — hence needs-design. The K round's finishFault plumbing (20be184) is the pattern the fault half should follow once designed.

Two S12 UX gaps observed live in drive 18 (out of Defect K's ruled scope, which covered finish-setup only): 1. Clicking "Open your dashboard" runs `enrolPasskey`, which polls kanidm for a registered passkey until `cfg.Timeout` — MINUTES of a busy screen with no progress affordance, nothing telling the operator a browser window opened or what to do in it, and no way to cancel. 2. If the op faults (e.g. `ErrEnrolmentTokenExpired`), the error renders in the standup screen's TOP box — the same misplacement Defect K fixed for finish-setup (wireframe fault-frame contract: a step's fault renders with its step), and outside the harness's `data-field="fault-line"` evidence contract. Needs the S12 wireframe extended for the enrolment-in-progress state (what the operator sees while the ceremony is pending, the re-mint story for an expired token) before the fix is agentable — hence needs-design. The K round's `finishFault` plumbing (`20be184`) is the pattern the fault half should follow once designed.
Author
Owner

Ruled by Ben 2026-08-08 (decision sweep) → DDR 0138 + S12 wireframe frames (1716193, on main): the pending state is an inline waiting card in the stand-up rows' running style — "Your browser is open — create your passkey there", animated ellipsis, data-status="enrol-pending" — with Cancel (data-action="cancel-enrol") returning to the idle button. The fault renders with its step (DDR 0131; the finishFault plumbing 20be184 is the pattern), inside the data-field="fault-line" evidence contract; an expired invite carries one action, data-action="remint-invite" — mint a fresh token and reopen the browser. → ready-for-agent.

Ruled by Ben 2026-08-08 (decision sweep) → **DDR 0138** + S12 wireframe frames (`1716193`, on main): the pending state is an **inline waiting card** in the stand-up rows' running style — "Your browser is open — create your passkey there", animated ellipsis, `data-status="enrol-pending"` — with **Cancel** (`data-action="cancel-enrol"`) returning to the idle button. The fault renders **with its step** (DDR 0131; the `finishFault` plumbing `20be184` is the pattern), inside the `data-field="fault-line"` evidence contract; an expired invite carries one action, `data-action="remint-invite"` — mint a fresh token and reopen the browser. → `ready-for-agent`.
Author
Owner

Done in 9ec3f22 (on origin/main). Built to DDR 0138 + the amended p1-s12-hand-off.html pending/fault frames, app-side only:

  • Pending is visible. Clicking Open your dashboard swaps the idle button for an inline waiting card (data-status="enrol-pending", moving ellipsis, "Your browser is open — create your passkey there") with Cancel (data-action="cancel-enrol"). Cancel is a UI retreat back to the idle button, guarded by an epoch counter so an abandoned poll can never later yank the operator to enrolled or surface a fault they walked away from — no kanidm rollback (DDR 0138).
  • The fault renders with its step. A faulted ceremony lands in the data-field="fault-line" contract (data-status="journey-fault") inside the hand-off screen, never the stand-up top box — the finishFault pattern (DDR 0131) — fixing drive 18’s misplacement. It carries one action, Get a fresh invite (data-action="remint-invite"), so the last screen of founding has no dead ends.
  • Re-mint needs no orchestrator change. The helper’s EnrolPasskey already consumes the seed token and re-mints on retry, so remint-invite simply re-drives enrol-passkey. internal/fleetwire/enrolment.go and the Go orchestrator are untouched (#338 — the real xdg-open test seam — stays open, out of scope here).

Evidence: seam tests in app/tests/unit/foundingHandOff.test.ts (pending → cancel → orphaned-result; fault-with-step → re-mint) — 8/8 green, full founding suite 116/116, vue-tsc + eslint clean. Files: FoundingHandOff.vue, FoundingStandup.vue, founding.ts (fake enrolFault/enrolGate knobs), STATUS.md.

Done in `9ec3f22` (on origin/main). Built to DDR 0138 + the amended `p1-s12-hand-off.html` pending/fault frames, app-side only: - **Pending is visible.** Clicking *Open your dashboard* swaps the idle button for an inline waiting card (`data-status="enrol-pending"`, moving ellipsis, *"Your browser is open — create your passkey there"*) with **Cancel** (`data-action="cancel-enrol"`). Cancel is a UI retreat back to the idle button, guarded by an epoch counter so an abandoned poll can never later yank the operator to enrolled or surface a fault they walked away from — no kanidm rollback (DDR 0138). - **The fault renders with its step.** A faulted ceremony lands in the `data-field="fault-line"` contract (`data-status="journey-fault"`) inside the hand-off screen, never the stand-up top box — the `finishFault` pattern (DDR 0131) — fixing drive 18’s misplacement. It carries one action, **Get a fresh invite** (`data-action="remint-invite"`), so the last screen of founding has no dead ends. - **Re-mint needs no orchestrator change.** The helper’s `EnrolPasskey` already consumes the seed token and re-mints on retry, so `remint-invite` simply re-drives `enrol-passkey`. `internal/fleetwire/enrolment.go` and the Go orchestrator are untouched (#338 — the real xdg-open test seam — stays open, out of scope here). Evidence: seam tests in `app/tests/unit/foundingHandOff.test.ts` (pending → cancel → orphaned-result; fault-with-step → re-mint) — 8/8 green, full founding suite 116/116, `vue-tsc` + eslint clean. Files: `FoundingHandOff.vue`, `FoundingStandup.vue`, `founding.ts` (fake `enrolFault`/`enrolGate` knobs), `STATUS.md`.
ben closed this issue 2026-08-08 19:51:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#339
No description provided.