S12 hand-off: open the dashboard once the passkey enrols — honour “we'll bring you to the dashboard” #348
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
After the S12 passkey ceremony completes, the app promises "We'll bring you to the dashboard the moment it's done…" — but no code fulfils it. The operator's browser is abandoned on kanidm's credential-reset screen, and the app just swaps the waiting card for the static "Passkey registered" line. Open the community dashboard (the portal address) in the operator's browser once enrolment is confirmed.
Evidence — the drift
app/src/components/founding/FoundingHandOff.vueline ~50 (theenrol-pendingwaiting card): "Your browser is open — create your passkey there. We'll bring you to the dashboard the moment it's done…"docs/ux/wireframes/p1-founding/p1-s12-hand-off.html,data-status="enrol-pending"frame.internal/fleetwire/enrolment.go—RegisterPasskeyopens kanidm's reset screen (/ui/reset?token=…), pollsHasPasskeyevery 2s, and on success simply returnsnil. Nothing navigates the browser anywhere. The e2e drive (app/tests/e2e/private-path.live.spec.ts, "sign in with the passkey" step) has to sign in and navigate to the dashboard itself to verify it.Proposed fix
When
HasPasskeyconfirms (the success path ofRegisterPasskey, or the orchestrator'sEnrolPasskeyop on the helper side), open the portal address with the same browser opener the ceremony used. The hand-off view already carries the portal address (S12data-field="portal-address"), and the enrolment adapter already hascfg.Open.Design ruling context (why this is the right direction, not in-app): ADR 0046 — passkey enrolment is inherently out-of-band; the browser is where the person credential must live. Opening the dashboard afterwards honours the promise without changing the credential model.
Acceptance criteria
data-field="portal-address").ErrEnrolmentTokenExpired) does NOT open the dashboard — the fault renders with its step as today (DDR 0131/0138 contract unchanged).e2eOpenSinkEnvinapp/helper/cmd/helper/wiring_prod.go) receives the dashboard URL as a second appended line instead of a real tab; the live spec asserts it (and may drop its manual dashboard navigation or keep it as verification — spec's choice).Open design note (small, resolve in-ticket or punt)
The wireframe caption also claims "First dashboard launch is auto-signed-in." The reset ceremony does not necessarily leave a kanidm session — the e2e drive signs in with the fresh passkey explicitly. If the opened dashboard redirects to kanidm sign-in (one passkey touch), that is acceptable and the wireframe caption should be softened in the same change; if a session does carry, nothing to do. Verify live, amend whichever side is wrong.
Provenance
Found 2026-08-08 while walking the founding flow ("what happens after the admin passkey is created?"). Related: #338 (e2e open sink), DDR 0138 (visible waiting), ADR 0046 (two credentials), drive
20260809T030602Z(proved the current behaviour live).Shipped in
e370519(on origin/main).The S12 hand-off now honours "we'll bring you to the dashboard": when the helper's
HasPasskeypoll confirms the passkey landed,fleetwire.RegisterPasskeyopens the community's portal address with the same opener the ceremony used (ADR 0046 — enrolment stays out-of-band). The address is threaded fromOrchestrator.EnrolPasskeyasho.Portal.Addressthrough thefounding.Enrolmentinterface.data-field="portal-address"). Proven at both seams:internal/fleetwire/enrolment_test.go(real adapter opens reset-screen then portal) andinternal/founding/handoff_test.goTestStory27_PasskeyEnrolmentOpensTheDashboard.ErrEnrolmentTokenExpirednever opens; only thehas==truepath does. Tested.ctx.Done()and never opens; the narrow Cancel-races-passkey-landing case is ACCEPTED as honest (a passkey did register) — the choice is named inenrolment.go.private-path.live.spec.tsassertssink[last] === portal-addressand keeps its manual dashboard navigation as verification.enrol-pendingcopy change; it stays truthful because the open lands.A dashboard-open failure is deliberately non-fatal (the credential already settled — logged, not fatal).
go test ./internal/fleetwire/... ./internal/founding/...green; full pre-push Go gate passed.