rehearsal drive #492: sign-in leg — kanidm passkey ceremony never completes, Save Changes stays disabled (signature e689ed304acb) #494
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.
Blocks
Reference
Matou/idss#494
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?
Failure
journey.droplet.spec.ts:289stepjourney: sign-inreds after 34186ms (test-results/drive-droplet/20260812T214238Z/artifacts/legs.json):locator.click: Timeout 30000ms exceededonpage.locator('button').filter({ hasText: /Save/i }).first(), which resolved to kanidm's own commit control:<button disabled type="submit" class="btn btn-success" hx-post="/ui/api/cu_commit" ...>Save Changes</button>. It never becomes enabled because no credential was ever actually committed for the operator.Evidence
app/tests/e2e/fixtures/ceremony.ts:297-305—registerPasskeydumpsreset-1(pre-click) then clicksAdd Passkey(line 299) and dumpsreset-2after a fixed 1500ms wait. On this runartifacts/ceremony/holds onlyreset-1.pngandreset-2.png— noreset-3.png/reset-done.png— so the drive died inside the very next call,ceremony.ts:310:await clickAny(page, ['Submit', 'Create', 'Continue', 'Save', 'Begin', 'Add', 'Done']);.reset-1.pngandreset-2.pngare near-identical (73692 vs 73936 bytes, same visible layout: "Your account has no credentials...", ADD PASSKEY, ADD PASSWORD, DISCARD/SAVE CHANGES) — theAdd Passkeyclick did not visibly progress kanidm's UI in the 1500ms window.test-results/drive-droplet/20260812T214238Z/logs/droplet-journal.txt:1552-1774— kanidm (kanidmd[1060]) logs the initialGET /ui/reset?token=...(200, 21:49:06) then, from 21:49:07 onward, only the app helper's own polling (GET /v1/person/operator,GET /v1/person/operator/_credential/_statusevery 2s, authenticated asidm_admin). No POST/PUT from the ceremony window itself ever reaches kanidm's credential-update API in this window — no passkey-init, no passkey-finish, no primary-credential set. Whatever happened client-side after theAdd Passkeyclick, it never round-tripped to the server.Save's regex fallback atceremony.ts:310(list:['Submit', 'Create', 'Continue', 'Save', 'Begin', 'Add', 'Done']) also matches the page-level, still-disabledSave Changescommit button,clickAnylatches onto it and Playwright's actionability retry spins for the full default 30s click timeout instead of failing fast with a diagnosable error.Suspected layer
This is the first-ever live droplet run of two things landing together: #425's app-owned pinned-CA ceremony window (
openAppCeremonyWindow, replacing the previously-proven external-Chromium path) and #485's credential-floor drop toany(a54545e). Either could be at fault:attachAuthenticatorand the page's own passkey-creation script.Savein the fallback list atceremony.ts:310is ambiguous once the page hasn't progressed.a54545e's own commit message says this exact next drive was supposed to prove the PASSWORD-only path ("the next founding drive must complete the ceremony with a PASSWORD ONLY and watch AwaitCredential advance S12"), butregisterPasskey(ceremony.ts:285-317) still drives the passkey-only flow — the fixture was never updated for that live-proof burden, per the commit's own "drive residue" caveat.No console or network capture exists for the ceremony window itself to distinguish these —
trace.zipfor this test only contains the main Electron page's trace (the ceremony window is a separate, untraced page, per the comment atceremony.ts:188-194which only covers the external-Chromium shape).What plugging it needs
a54545e's stated live-proof burden), or is the passkey path still the intended proof and genuinely broken?registerPasskey's WebAuthn calls so the next red can show whethernavigator.credentials.create()ever fires/resolves, and tightenceremony.ts:310's fallback list (or gate on the button's enabled state, not just visibility) so a stalled ceremony fails fast with a clear message instead of a 30s generic timeout.drive
20260812T214238Zred atsign-in:locator.click: Timeout Nms exceeded. Call log: [Nm - waiting for locator('button').filter({ hasText: /Save/i }).first()[Nm [Nm - locator resolved to <button disabled type="submit" class="btn btn-success" hx-post="/ui/api/cu_commit" hx-on:htmx:before-request="removeBeforeUnloadHandler()">Save Changes</button>[Nm [Nm - attempting click action[Nm [Nm N × waiting for element to be visible, enabled and stable[Nm [Nm - element is not enabled[Nm [Nm - retrying click action[Nm [Nm - waiting Nms[Nm [Nm N × waiting for element to be visible, enabled and stable[Nm [Nm - element is not enabled[Nm [Nm - retrying click action[Nm [Nm - waiting Nms[Nm [Nm N × waiting for element to be visible, enabled and stable[Nm [Nm - element is not enabled[Nm [Nm - retrying click action[Nm [Nm - waiting Nms[Nmevidence:
test-results/…/20260812T214238Z/on matou-workstation (legs.json, droplet-journal.txt, trace)Triage
Category:
bug— State:ready-for-human(this run is headless CI; no maintainer was available to ask, so routing per the ambiguity below rather than guessing).Why this can't go to an agent: the report itself frames the blocker as a scope call, not a missing fact: "A human call on scope: should this drive be exercising the password path now (matching
a54545e's stated live-proof burden), or is the passkey path still the intended proof and genuinely broken?" That's a judgement call about what the phase-2 drive is supposed to be proving right now — not something an agent should decide unilaterally, since it changes the intended shape ofregisterPasskeyinapp/tests/e2e/fixtures/ceremony.tsand the live-proof burden #485 committed to.Verification performed:
app/tests/e2e/fixtures/ceremony.tsstill matches the report at HEAD (a3b4c61):registerPasskey(current lines ~285-317) still drives the passkey-only flow — clicksAdd Passkey, waits 1500ms, then falls into the ambiguousclickAny(['Submit','Create','Continue','Save','Begin','Add','Done'])fallback that the report says can latch onto the still-disabledSave Changescommit button.git log -- app/tests/e2e/fixtures/ceremony.ts— last touch is208e61b, before this drive ran).AwaitCredentialand related handling; the password-floor drop from #485 is present (a54545e) but the e2e fixture itself was never updated to match it, exactly as the report notes..out-of-scope/— this isn't a previously-rejected request.Suggested next step for whoever picks this up: rule on the scope question first (drive the password path now, or keep chasing the passkey ceremony), then the mechanical follow-up (console/CDP capture around
registerPasskey's WebAuthn calls, and tightening theceremony.ts:310fallback to gate on the button's enabled state) is agent-shaped and can be split out as aready-for-agentchild once the scope is decided.Ben's ruling (2026-08-12, live): PASSWORD ceremony — do NOT fix WebAuthn
The diagnosis in this ticket is correct but the fix direction is RULED: the drive registers a password, not a passkey, in the app-window ceremony. Do not attempt to make the CDP virtual authenticator work inside Electron — that path is closed.
Why (the evidence + the product ruling):
artifacts/ceremony/reset-1.pngvsreset-2.pngare pixel-identical: the ADD PASSKEY click fired butnavigator.credentials.create()produced nothing — the CDP virtual authenticator is silent inside the Electron ceremony window.Save Changes(cu_commit) stays disabled because no credential was ever added.provision-nextcloud.live.spec.ts/foundingPrefix.ts, real Chromium + CDP authenticator). Do not touch it.Fix shape (fixtures only, no product code):
app/tests/e2e/fixtures/ceremony.ts: addregisterPassword(c, password, runDir)— from the reset page clickADD PASSWORD(clickAny, same sanctioned label-matching), fill the password + confirm fields, submit the dialog, then click the now-ENABLEDSave Changesand confirm the commit (the disabled→enabled flip is the assertion that a credential was actually added — this drive's exact failure signature inverted). AddloginWithPassword(c, origin, username, password, runDir, expectDomainName?, expectDomainLogo?, expectGreeting?)mirroringloginWithPasskey's screens/brand assertions but answering kanidm's password prompt instead of the WebAuthn step. Reuse the fixed-pacing +dump()rhythm; kanidm screens stay label-matched.app/tests/e2e/journey.droplet.spec.ts(sign-inleg): export a fixture password constant (long, e.g.rehearsal-drive-operator-passphrase-2026; kanidm rejects short/weak ones), callregisterPassword+loginWithPasswordinstead ofregisterPasskey/credentialCount/loginWithPasskey. Keep thecredential-enrolledwait as-is — the helper's #485AwaitCredentialaccepts any credential class.oidc-adminleg rides the SAME window's live kanidm session (straight into Nextcloud, no prompt). If kanidm does prompt cold,oidcSignInAsOperator's login branch needs a password fill after the username — guard it: fill only when a password field renders.AC: the next drive's
sign-inleg greens through the password path; ceremony artifacts show the credential committed and the operator home reached; no WebAuthn/CDP-authenticator call remains in the droplet tail (private path untouched).swarm-claim host=matou-dev-server-01 run=5400
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #494 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
{token:...}; real kanidm answers[CUSessionToken, CUStatus]as an array, and even fixed the commit is MFA-policy-refused — by-hand temp_password 400s live (invite-member leg) #662