rehearsal phase 2 T1: ceremony.ts grows the app-window passkey ceremony — PasskeySession, attachAuthenticator, openAppCeremonyWindow (#425 rework) #486
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#486
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?
Phase 2 of the #183 rehearsal ratchet (spec
docs/superpowers/specs/2026-08-12-183-phase-2-nextcloud-rehearsal-design.md, plandocs/superpowers/plans/2026-08-12-183-phase-2-nextcloud-rehearsal.md): the droplet drive grows past founding to a complete Nextcloud deployment at the real public door. This ticket is Task 1 of the plan, carried verbatim below — the plan file at HEAD is the authoritative copy if this body and it ever diverge.Verification gate (what YOU run):
cd app && pnpm test && pnpm build. The tail's LIVE behavior is unprovable in the sandbox (#377) — do NOT attempt to run a drive; the ratchet verifies it after Ben arms phase 2.Global Constraints
data-*contract (ADR 0132); label-matching (clickAny) is sanctioned ONLY for kanidm's and Nextcloud's external screens.readFilesDoor's return +doorPath) — never a rebuilt URL.sign-in10 min,co-host5,deploy-files40,files-healthy2,door2,branded-login3,oidc-admin5,branded-chrome5).runRecordedLeg—legs.jsoncurrent on disk before any rethrow..sandcastle/(protected path, and the machinery is generic by design),scripts/rehearsal-cycle.sh, or.forgejo/workflows/.provision-nextcloud.live.spec.ts,private-path.live.spec.ts,foundingPrefix.ts) must keep compiling and keep their exact behavior — call sites pass the portful door they already read.REHEARSAL_DRIVE_ISSUEin.sandcastle/.envis NOT flipped by this plan — arming is Ben's step after his #425 hand sign-off.pnpm test+pnpm build(vue-tsc) inapp/; the ratchet is the real test.E2E Drive, accent#619793, background#f5f5f0, logoLOGO_FIXTURE_PNG, greetingE2E_GREETING(both exported byapp/tests/e2e/fixtures/wizard.ts).Task 1: ceremony.ts —
PasskeySession+ the app-window ceremony entry pointsThe #425 rework ceremony.ts's header already prescribes: catch the app-opened pinned-CA window, attach the CDP virtual authenticator to THAT page, drive the existing passkey functions there. The passkey drivers only ever use
page/cdp/authenticatorId, so they retype to a structural subset interface —CeremonyBrowsersatisfies it, zero caller churn.Files:
app/tests/e2e/fixtures/ceremony.tsapp/tests/e2e/fixtures/ceremony.test.tsInterfaces:
Consumes: nothing new (Playwright types).
Produces:
interface PasskeySession { page: Page; cdp: CDPSession; authenticatorId: string }attachAuthenticator(page: Page): Promise<PasskeySession>openAppCeremonyWindow(app: ElectronApplication, act: () => Promise<void>, timeoutMs?: number): Promise<PasskeySession>ceremonyWindowOrigin(url: string): stringregisterPasskey(c: PasskeySession, resetUrl: string, runDir: string),loginWithPasskey(c: PasskeySession, …),credentialCount(c: PasskeySession)— same behavior, widened parameter type;registerPasskeyadditionally skips itsgotowhen the page is already atresetUrl.Step 1: Write the failing tests for
ceremonyWindowOriginAppend to
app/tests/e2e/fixtures/ceremony.test.ts(importceremonyWindowOriginalongside the existing imports from./ceremony):Run:
cd app && pnpm test tests/e2e/fixtures/ceremony.test.tsExpected: FAIL —
ceremonyWindowOriginis not exported.ceremony.tsAdd
ElectronApplicationto the@playwright/testtype imports. Then add, afterkanidmOrigin:Add the structural session type and the authenticator extraction, before
CeremonyBrowser:Refactor
openCeremonyBrowser's body to use it (replace the inlinenewCDPSession/WebAuthn.enable/addVirtualAuthenticatorblock):Add the app-window catcher, after
closeCeremonyBrowser:Retype the three passkey drivers' first parameter from
CeremonyBrowsertoPasskeySession(registerPasskey,credentialCount,loginWithPasskey) — signatures otherwise unchanged. InregisterPasskey, replace the unconditional goto:Run:
cd app && pnpm test tests/e2e/fixtures/ceremony.test.tsExpected: PASS (all existing cases too —
kanidmOrigin/waitForResetUrluntouched).Run:
cd app && pnpm build && pnpm testExpected: both green — the retype is structural, so
foundingPrefix.ts'sCeremonyBrowsercall sites compile unchanged.close-report for #486 — status
success⛔ close-report gates REFUSED this close — the following claims did not verify:
208e61bdc8is not reachable from origin/main (not landed on main)envelope
close-report for #486 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope