rehearsal phase 2 T1: ceremony.ts grows the app-window passkey ceremony — PasskeySession, attachAuthenticator, openAppCeremonyWindow (#425 rework) #486

Closed
opened 2026-08-12 18:28:52 +00:00 by ben · 2 comments
Owner

Phase 2 of the #183 rehearsal ratchet (spec docs/superpowers/specs/2026-08-12-183-phase-2-nextcloud-rehearsal-design.md, plan docs/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

  • Selectors are the wireframes' data-* contract (ADR 0132); label-matching (clickAny) is sanctioned ONLY for kanidm's and Nextcloud's external screens.
  • DDR 0165: every Nextcloud address resolves against the door the app exposes (readFilesDoor's return + doorPath) — never a rebuilt URL.
  • Budgets are CEILINGS, not expectations (phase-1 ruling); each tail leg's ceiling is the spec's table (sign-in 10 min, co-host 5, deploy-files 40, files-healthy 2, door 2, branded-login 3, oidc-admin 5, branded-chrome 5).
  • Every tail step is a runRecordedLeg — legs.json current on disk before any rethrow.
  • NO changes to .sandcastle/ (protected path, and the machinery is generic by design), scripts/rehearsal-cycle.sh, or .forgejo/workflows/.
  • The private-path specs (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_ISSUE in .sandcastle/.env is NOT flipped by this plan — arming is Ben's step after his #425 hand sign-off.
  • The tail's live behavior is unprovable off-droplet (#377): the pre-land gate is pnpm test + pnpm build (vue-tsc) in app/; the ratchet is the real test.
  • Brand expectations are the wizard fixtures' own values: name E2E Drive, accent #619793, background #f5f5f0, logo LOGO_FIXTURE_PNG, greeting E2E_GREETING (both exported by app/tests/e2e/fixtures/wizard.ts).

Task 1: ceremony.ts — PasskeySession + the app-window ceremony entry points

The #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 — CeremonyBrowser satisfies it, zero caller churn.

Files:

  • Modify: app/tests/e2e/fixtures/ceremony.ts
  • Test: app/tests/e2e/fixtures/ceremony.test.ts

Interfaces:

  • 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): string
    • registerPasskey(c: PasskeySession, resetUrl: string, runDir: string), loginWithPasskey(c: PasskeySession, …), credentialCount(c: PasskeySession) — same behavior, widened parameter type; registerPasskey additionally skips its goto when the page is already at resetUrl.
  • Step 1: Write the failing tests for ceremonyWindowOrigin

Append to app/tests/e2e/fixtures/ceremony.test.ts (import ceremonyWindowOrigin alongside the existing imports from ./ceremony):

describe('ceremonyWindowOrigin', () => {
  it('returns the origin of the app-window ceremony url — any https host', () => {
    // Post-#425 the app window loads the reset url itself; on the droplet the
    // IdP is a real public host with no port (default 443) — unlike
    // kanidmOrigin, no localhost pin and no explicit-port demand.
    expect(ceremonyWindowOrigin('https://id.rehearsal.idss.nz/ui/reset?token=abc')).toBe(
      'https://id.rehearsal.idss.nz',
    );
    expect(ceremonyWindowOrigin('https://localhost:38629/ui/reset?token=abc')).toBe(
      'https://localhost:38629',
    );
  });

  it('refuses a non-https url — WebAuthn needs a secure context', () => {
    expect(() => ceremonyWindowOrigin('http://id.rehearsal.idss.nz/ui/reset?token=abc')).toThrow(
      /https/,
    );
  });
});
  • Step 2: Run the test to verify it fails

Run: cd app && pnpm test tests/e2e/fixtures/ceremony.test.ts
Expected: FAIL — ceremonyWindowOrigin is not exported.

  • Step 3: Implement in ceremony.ts

Add ElectronApplication to the @playwright/test type imports. Then add, after kanidmOrigin:

/**
 * The ceremony origin taken from the APP-OPENED ceremony window's own url
 * (#425 / DDR 0163): electron-main's `open-ceremony` IPC already refuses
 * non-https urls, and the window's cert verdict is the scoped CA pin — so the
 * only validation left to the drive is the secure-context floor. Unlike
 * `kanidmOrigin` (the private path's localhost-pinned sink url), the host is
 * whatever the helper minted — on the droplet a real public IdP host with no
 * explicit port.
 */
export function ceremonyWindowOrigin(url: string): string {
  const u = new URL(url);
  if (u.protocol !== 'https:') {
    throw new Error(`ceremony window url is not https (${url}) — WebAuthn needs a secure context`);
  }
  return u.origin;
}

Add the structural session type and the authenticator extraction, before CeremonyBrowser:

/**
 * The subset the passkey drivers actually use — a page plus its CDP virtual
 * authenticator. `CeremonyBrowser` (the external Chromium) satisfies it
 * structurally; `openAppCeremonyWindow` (the #425 app-owned window) returns
 * exactly this, with no browser/context of its own to manage.
 */
export interface PasskeySession {
  page: Page;
  cdp: CDPSession;
  authenticatorId: string;
}

/**
 * Attach a CDP virtual authenticator to an existing page — the one WebAuthn
 * rig (ctap2_1, resident keys, automatic presence) both ceremony shapes share.
 */
export async function attachAuthenticator(page: Page): Promise<PasskeySession> {
  const cdp = await page.context().newCDPSession(page);
  await cdp.send('WebAuthn.enable', { enableUI: false });
  const { authenticatorId } = (await cdp.send('WebAuthn.addVirtualAuthenticator', {
    options: {
      protocol: 'ctap2',
      ctap2Version: 'ctap2_1',
      transport: 'internal',
      hasResidentKey: true,
      hasUserVerification: true,
      isUserVerified: true,
      automaticPresenceSimulation: true,
    },
  })) as { authenticatorId: string };
  return { page, cdp, authenticatorId };
}

Refactor openCeremonyBrowser's body to use it (replace the inline newCDPSession/WebAuthn.enable/addVirtualAuthenticator block):

  const page = await context.newPage();
  const { cdp, authenticatorId } = await attachAuthenticator(page);
  return { browser, context, page, cdp, authenticatorId };

Add the app-window catcher, after closeCeremonyBrowser:

/**
 * The #425 / DDR 0163 ceremony shape: `act` triggers the app to open its OWN
 * pinned-CA ceremony window (electron-main.ts `createCeremonyWindow`, reached
 * through the `open-ceremony` IPC). The window promise is registered BEFORE
 * `act` runs — the window may open faster than the click settles — then the
 * virtual authenticator is attached to the caught page. No external Chromium,
 * no `--ignore-certificate-errors`: the scoped CA pin (or a real public cert)
 * is what makes the origin trusted, so a cert regression reds here instead of
 * being masked by a blanket flag.
 *
 * The default ceiling covers the helper's token mint (an SSH round-trip plus a
 * kanidm API call) — the window cannot open before the mint returns.
 */
export async function openAppCeremonyWindow(
  app: ElectronApplication,
  act: () => Promise<void>,
  timeoutMs = 3 * 60_000,
): Promise<PasskeySession> {
  const winPromise = app.waitForEvent('window', { timeout: timeoutMs });
  await act();
  const page = await winPromise;
  await page.waitForLoadState('domcontentloaded');
  return attachAuthenticator(page);
}

Retype the three passkey drivers' first parameter from CeremonyBrowser to PasskeySession (registerPasskey, credentialCount, loginWithPasskey) — signatures otherwise unchanged. In registerPasskey, replace the unconditional goto:

  // The app-window ceremony is ALREADY at the reset url (the window loaded it);
  // re-navigating would re-spend the single-use token. The external-Chromium
  // shape starts on a blank page and still navigates.
  if (page.url() !== resetUrl) {
    await page.goto(resetUrl, { waitUntil: 'domcontentloaded' });
  }
  • Step 4: Run the tests to verify they pass

Run: cd app && pnpm test tests/e2e/fixtures/ceremony.test.ts
Expected: PASS (all existing cases too — kanidmOrigin/waitForResetUrl untouched).

  • Step 5: Typecheck + full unit suite

Run: cd app && pnpm build && pnpm test
Expected: both green — the retype is structural, so foundingPrefix.ts's CeremonyBrowser call sites compile unchanged.

  • Step 6: Commit
git add app/tests/e2e/fixtures/ceremony.ts app/tests/e2e/fixtures/ceremony.test.ts
git commit -m "rehearsal phase 2: the app-window passkey ceremony fixture (#425 rework, spec 2026-08-12)"
Phase 2 of the #183 rehearsal ratchet (spec `docs/superpowers/specs/2026-08-12-183-phase-2-nextcloud-rehearsal-design.md`, plan `docs/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 - Selectors are the wireframes' `data-*` contract (ADR 0132); label-matching (`clickAny`) is sanctioned ONLY for kanidm's and Nextcloud's external screens. - DDR 0165: every Nextcloud address resolves against the door the app exposes (`readFilesDoor`'s return + `doorPath`) — never a rebuilt URL. - Budgets are CEILINGS, not expectations (phase-1 ruling); each tail leg's ceiling is the spec's table (`sign-in` 10 min, `co-host` 5, `deploy-files` 40, `files-healthy` 2, `door` 2, `branded-login` 3, `oidc-admin` 5, `branded-chrome` 5). - Every tail step is a `runRecordedLeg` — `legs.json` current on disk before any rethrow. - NO changes to `.sandcastle/` (protected path, and the machinery is generic by design), `scripts/rehearsal-cycle.sh`, or `.forgejo/workflows/`. - The private-path specs (`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_ISSUE` in `.sandcastle/.env` is NOT flipped by this plan — arming is Ben's step after his #425 hand sign-off. - The tail's live behavior is unprovable off-droplet (#377): the pre-land gate is `pnpm test` + `pnpm build` (vue-tsc) in `app/`; the ratchet is the real test. - Brand expectations are the wizard fixtures' own values: name `E2E Drive`, accent `#619793`, background `#f5f5f0`, logo `LOGO_FIXTURE_PNG`, greeting `E2E_GREETING` (both exported by `app/tests/e2e/fixtures/wizard.ts`). ### Task 1: ceremony.ts — `PasskeySession` + the app-window ceremony entry points The #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 — `CeremonyBrowser` satisfies it, zero caller churn. **Files:** - Modify: `app/tests/e2e/fixtures/ceremony.ts` - Test: `app/tests/e2e/fixtures/ceremony.test.ts` **Interfaces:** - 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): string` - `registerPasskey(c: PasskeySession, resetUrl: string, runDir: string)`, `loginWithPasskey(c: PasskeySession, …)`, `credentialCount(c: PasskeySession)` — same behavior, widened parameter type; `registerPasskey` additionally skips its `goto` when the page is already at `resetUrl`. - [ ] **Step 1: Write the failing tests for `ceremonyWindowOrigin`** Append to `app/tests/e2e/fixtures/ceremony.test.ts` (import `ceremonyWindowOrigin` alongside the existing imports from `./ceremony`): ```ts describe('ceremonyWindowOrigin', () => { it('returns the origin of the app-window ceremony url — any https host', () => { // Post-#425 the app window loads the reset url itself; on the droplet the // IdP is a real public host with no port (default 443) — unlike // kanidmOrigin, no localhost pin and no explicit-port demand. expect(ceremonyWindowOrigin('https://id.rehearsal.idss.nz/ui/reset?token=abc')).toBe( 'https://id.rehearsal.idss.nz', ); expect(ceremonyWindowOrigin('https://localhost:38629/ui/reset?token=abc')).toBe( 'https://localhost:38629', ); }); it('refuses a non-https url — WebAuthn needs a secure context', () => { expect(() => ceremonyWindowOrigin('http://id.rehearsal.idss.nz/ui/reset?token=abc')).toThrow( /https/, ); }); }); ``` - [ ] **Step 2: Run the test to verify it fails** Run: `cd app && pnpm test tests/e2e/fixtures/ceremony.test.ts` Expected: FAIL — `ceremonyWindowOrigin` is not exported. - [ ] **Step 3: Implement in `ceremony.ts`** Add `ElectronApplication` to the `@playwright/test` type imports. Then add, after `kanidmOrigin`: ```ts /** * The ceremony origin taken from the APP-OPENED ceremony window's own url * (#425 / DDR 0163): electron-main's `open-ceremony` IPC already refuses * non-https urls, and the window's cert verdict is the scoped CA pin — so the * only validation left to the drive is the secure-context floor. Unlike * `kanidmOrigin` (the private path's localhost-pinned sink url), the host is * whatever the helper minted — on the droplet a real public IdP host with no * explicit port. */ export function ceremonyWindowOrigin(url: string): string { const u = new URL(url); if (u.protocol !== 'https:') { throw new Error(`ceremony window url is not https (${url}) — WebAuthn needs a secure context`); } return u.origin; } ``` Add the structural session type and the authenticator extraction, before `CeremonyBrowser`: ```ts /** * The subset the passkey drivers actually use — a page plus its CDP virtual * authenticator. `CeremonyBrowser` (the external Chromium) satisfies it * structurally; `openAppCeremonyWindow` (the #425 app-owned window) returns * exactly this, with no browser/context of its own to manage. */ export interface PasskeySession { page: Page; cdp: CDPSession; authenticatorId: string; } /** * Attach a CDP virtual authenticator to an existing page — the one WebAuthn * rig (ctap2_1, resident keys, automatic presence) both ceremony shapes share. */ export async function attachAuthenticator(page: Page): Promise<PasskeySession> { const cdp = await page.context().newCDPSession(page); await cdp.send('WebAuthn.enable', { enableUI: false }); const { authenticatorId } = (await cdp.send('WebAuthn.addVirtualAuthenticator', { options: { protocol: 'ctap2', ctap2Version: 'ctap2_1', transport: 'internal', hasResidentKey: true, hasUserVerification: true, isUserVerified: true, automaticPresenceSimulation: true, }, })) as { authenticatorId: string }; return { page, cdp, authenticatorId }; } ``` Refactor `openCeremonyBrowser`'s body to use it (replace the inline `newCDPSession`/`WebAuthn.enable`/`addVirtualAuthenticator` block): ```ts const page = await context.newPage(); const { cdp, authenticatorId } = await attachAuthenticator(page); return { browser, context, page, cdp, authenticatorId }; ``` Add the app-window catcher, after `closeCeremonyBrowser`: ```ts /** * The #425 / DDR 0163 ceremony shape: `act` triggers the app to open its OWN * pinned-CA ceremony window (electron-main.ts `createCeremonyWindow`, reached * through the `open-ceremony` IPC). The window promise is registered BEFORE * `act` runs — the window may open faster than the click settles — then the * virtual authenticator is attached to the caught page. No external Chromium, * no `--ignore-certificate-errors`: the scoped CA pin (or a real public cert) * is what makes the origin trusted, so a cert regression reds here instead of * being masked by a blanket flag. * * The default ceiling covers the helper's token mint (an SSH round-trip plus a * kanidm API call) — the window cannot open before the mint returns. */ export async function openAppCeremonyWindow( app: ElectronApplication, act: () => Promise<void>, timeoutMs = 3 * 60_000, ): Promise<PasskeySession> { const winPromise = app.waitForEvent('window', { timeout: timeoutMs }); await act(); const page = await winPromise; await page.waitForLoadState('domcontentloaded'); return attachAuthenticator(page); } ``` Retype the three passkey drivers' first parameter from `CeremonyBrowser` to `PasskeySession` (`registerPasskey`, `credentialCount`, `loginWithPasskey`) — signatures otherwise unchanged. In `registerPasskey`, replace the unconditional goto: ```ts // The app-window ceremony is ALREADY at the reset url (the window loaded it); // re-navigating would re-spend the single-use token. The external-Chromium // shape starts on a blank page and still navigates. if (page.url() !== resetUrl) { await page.goto(resetUrl, { waitUntil: 'domcontentloaded' }); } ``` - [ ] **Step 4: Run the tests to verify they pass** Run: `cd app && pnpm test tests/e2e/fixtures/ceremony.test.ts` Expected: PASS (all existing cases too — `kanidmOrigin`/`waitForResetUrl` untouched). - [ ] **Step 5: Typecheck + full unit suite** Run: `cd app && pnpm build && pnpm test` Expected: both green — the retype is structural, so `foundingPrefix.ts`'s `CeremonyBrowser` call sites compile unchanged. - [ ] **Step 6: Commit** ```bash git add app/tests/e2e/fixtures/ceremony.ts app/tests/e2e/fixtures/ceremony.test.ts git commit -m "rehearsal phase 2: the app-window passkey ceremony fixture (#425 rework, spec 2026-08-12)" ```
Author
Owner

close-report for #486 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 208e61bdc8 is not reachable from origin/main (not landed on main)
  • changed_files: 'app/tests/e2e/fixtures/ceremony.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/ceremony.test.ts' is not in the diff of the claimed commits
envelope
{
  "issue": 486,
  "status": "success",
  "commits": [
    "208e61bdc8f42cc548b7c02d084e7e0e8122ba3e"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/ceremony.ts",
    "app/tests/e2e/fixtures/ceremony.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm test tests/e2e/fixtures/ceremony.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm build",
      "exit_code": 0
    }
  ],
  "criteria": {
    "ceremonyWindowOrigin returns the origin of an https app-window url (any host, no port pin)": "ceremony.ts ceremonyWindowOrigin; ceremony.test.ts 'returns the origin of the app-window ceremony url'",
    "ceremonyWindowOrigin refuses a non-https url": "ceremony.ts throws when protocol !== https:; ceremony.test.ts 'refuses a non-https url'",
    "PasskeySession { page, cdp, authenticatorId } exported and CeremonyBrowser satisfies it structurally": "ceremony.ts PasskeySession interface; pnpm build clean confirms foundingPrefix.ts/*.live.spec.ts call sites compile unchanged",
    "attachAuthenticator(page) attaches the shared CDP virtual authenticator; openCeremonyBrowser refactored onto it": "ceremony.ts attachAuthenticator + openCeremonyBrowser body",
    "openAppCeremonyWindow(app, act, timeoutMs?) registers the window promise before act and attaches to the caught page": "ceremony.ts openAppCeremonyWindow",
    "registerPasskey/loginWithPasskey/credentialCount retyped to PasskeySession; registerPasskey skips goto when already at resetUrl": "ceremony.ts driver signatures + url()!==resetUrl guard"
  },
  "summary": "ceremony.ts grew the #425 app-window passkey ceremony entry points (PasskeySession, attachAuthenticator, openAppCeremonyWindow, ceremonyWindowOrigin) with the drivers retyped to a structural subset; ceremony tests and vue-tsc build pass.",
  "blockers": []
}
**close-report** for #486 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 208e61bdc8f42cc548b7c02d084e7e0e8122ba3e is not reachable from origin/main (not landed on main) - changed_files: 'app/tests/e2e/fixtures/ceremony.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/ceremony.test.ts' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 486, "status": "success", "commits": [ "208e61bdc8f42cc548b7c02d084e7e0e8122ba3e" ], "changed_files": [ "app/tests/e2e/fixtures/ceremony.ts", "app/tests/e2e/fixtures/ceremony.test.ts" ], "tests": [ { "command": "cd app && CI=true pnpm test tests/e2e/fixtures/ceremony.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm build", "exit_code": 0 } ], "criteria": { "ceremonyWindowOrigin returns the origin of an https app-window url (any host, no port pin)": "ceremony.ts ceremonyWindowOrigin; ceremony.test.ts 'returns the origin of the app-window ceremony url'", "ceremonyWindowOrigin refuses a non-https url": "ceremony.ts throws when protocol !== https:; ceremony.test.ts 'refuses a non-https url'", "PasskeySession { page, cdp, authenticatorId } exported and CeremonyBrowser satisfies it structurally": "ceremony.ts PasskeySession interface; pnpm build clean confirms foundingPrefix.ts/*.live.spec.ts call sites compile unchanged", "attachAuthenticator(page) attaches the shared CDP virtual authenticator; openCeremonyBrowser refactored onto it": "ceremony.ts attachAuthenticator + openCeremonyBrowser body", "openAppCeremonyWindow(app, act, timeoutMs?) registers the window promise before act and attaches to the caught page": "ceremony.ts openAppCeremonyWindow", "registerPasskey/loginWithPasskey/credentialCount retyped to PasskeySession; registerPasskey skips goto when already at resetUrl": "ceremony.ts driver signatures + url()!==resetUrl guard" }, "summary": "ceremony.ts grew the #425 app-window passkey ceremony entry points (PasskeySession, attachAuthenticator, openAppCeremonyWindow, ceremonyWindowOrigin) with the drivers retyped to a structural subset; ceremony tests and vue-tsc build pass.", "blockers": [] } ``` </details>
Author
Owner

close-report for #486 — status success

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

envelope
{
  "issue": 486,
  "status": "success",
  "commits": [
    "208e61bdc8f42cc548b7c02d084e7e0e8122ba3e"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/ceremony.ts",
    "app/tests/e2e/fixtures/ceremony.test.ts"
  ],
  "tests": [
    {
      "command": "cd app && CI=true pnpm test tests/e2e/fixtures/ceremony.test.ts",
      "exit_code": 0
    },
    {
      "command": "cd app && CI=true pnpm build",
      "exit_code": 0
    }
  ],
  "criteria": {
    "ceremonyWindowOrigin returns the origin of an https app-window url (any host, no port pin)": "ceremony.ts ceremonyWindowOrigin; ceremony.test.ts 'returns the origin of the app-window ceremony url'",
    "ceremonyWindowOrigin refuses a non-https url": "ceremony.ts throws when protocol !== https:; ceremony.test.ts 'refuses a non-https url'",
    "PasskeySession { page, cdp, authenticatorId } exported and CeremonyBrowser satisfies it structurally": "ceremony.ts PasskeySession interface; pnpm build clean confirms foundingPrefix.ts/*.live.spec.ts call sites compile unchanged",
    "attachAuthenticator(page) attaches the shared CDP virtual authenticator; openCeremonyBrowser refactored onto it": "ceremony.ts attachAuthenticator + openCeremonyBrowser body",
    "openAppCeremonyWindow(app, act, timeoutMs?) registers the window promise before act and attaches to the caught page": "ceremony.ts openAppCeremonyWindow",
    "registerPasskey/loginWithPasskey/credentialCount retyped to PasskeySession; registerPasskey skips goto when already at resetUrl": "ceremony.ts driver signatures + url()!==resetUrl guard"
  },
  "summary": "ceremony.ts grew the #425 app-window passkey ceremony entry points (PasskeySession, attachAuthenticator, openAppCeremonyWindow, ceremonyWindowOrigin) with the drivers retyped to a structural subset; ceremony tests and vue-tsc build pass.",
  "blockers": []
}
**close-report** for #486 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 486, "status": "success", "commits": [ "208e61bdc8f42cc548b7c02d084e7e0e8122ba3e" ], "changed_files": [ "app/tests/e2e/fixtures/ceremony.ts", "app/tests/e2e/fixtures/ceremony.test.ts" ], "tests": [ { "command": "cd app && CI=true pnpm test tests/e2e/fixtures/ceremony.test.ts", "exit_code": 0 }, { "command": "cd app && CI=true pnpm build", "exit_code": 0 } ], "criteria": { "ceremonyWindowOrigin returns the origin of an https app-window url (any host, no port pin)": "ceremony.ts ceremonyWindowOrigin; ceremony.test.ts 'returns the origin of the app-window ceremony url'", "ceremonyWindowOrigin refuses a non-https url": "ceremony.ts throws when protocol !== https:; ceremony.test.ts 'refuses a non-https url'", "PasskeySession { page, cdp, authenticatorId } exported and CeremonyBrowser satisfies it structurally": "ceremony.ts PasskeySession interface; pnpm build clean confirms foundingPrefix.ts/*.live.spec.ts call sites compile unchanged", "attachAuthenticator(page) attaches the shared CDP virtual authenticator; openCeremonyBrowser refactored onto it": "ceremony.ts attachAuthenticator + openCeremonyBrowser body", "openAppCeremonyWindow(app, act, timeoutMs?) registers the window promise before act and attaches to the caught page": "ceremony.ts openAppCeremonyWindow", "registerPasskey/loginWithPasskey/credentialCount retyped to PasskeySession; registerPasskey skips goto when already at resetUrl": "ceremony.ts driver signatures + url()!==resetUrl guard" }, "summary": "ceremony.ts grew the #425 app-window passkey ceremony entry points (PasskeySession, attachAuthenticator, openAppCeremonyWindow, ceremonyWindowOrigin) with the drivers retyped to a structural subset; ceremony tests and vue-tsc build pass.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 20:26:31 +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.

Reference
Matou/idss#486
No description provided.