Skip to content

Add deterministic mock authentication and safe session restoration - #46

Merged
DavidVFitzGerald merged 1 commit into
mainfrom
feat/f2-mock-auth
Nov 14, 2026
Merged

DavidVFitzGerald merged 1 commit into
mainfrom
feat/f2-mock-auth

Conversation

@DavidVFitzGerald

@DavidVFitzGerald DavidVFitzGerald commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Provide deterministic local account/session scenarios through AuthService so F2 forms and session guards can run without Firebase, credentials or email delivery. Refs #12.

The adapter supports verified/unverified login, registration, resend/explicit verification refresh, reset, reload restore, logout, expiry/revocation and refresh errors. Only a versioned synthetic active-session marker persists; submitted passwords and provider tokens are never stored. Cancellation and operation ordering reject obsolete identity changes; composed mock data denies anonymous/unverified reads and stale responses. The services README documents fixed demo credentials and disposable account behavior.

Delivered SHA: 8fc0de230c7b04036cc7fb5c51e899666ae56549, branch feat/f2-mock-auth.

Container validation passed: rootless environment/eight preflight checks, frozen npm ci, format/lint/type, 134 unit tests/seven files, production build and Chromium/Firefox foundation smoke. Independent QA also passed eight supplemental auth edge probes in each browser. Lockfiles unchanged. Exact commands and limitations: docs/engineering/f2-auth-verification.md. Independent QA PASS; hosted quality CI PASS.

Combined verification with PR #45 passed 140 unit tests and six Chromium/Firefox checks, including session restore without a modal flash and sign-out/reload. This supplements independent issue QA; #15 owns consolidated regression coverage.

Forms and complete account browser journeys remain #13/#15; expanded query/session-controller coverage is #14; real Firebase/API/security validation remains Phase 2. No ADR/spec deviation, host installations, secrets or licensed data. Ready for maintainer review; leave #12 open until approved merge.

@DavidVFitzGerald

Copy link
Copy Markdown
Owner Author

Coordinator compatibility verification: PASS for PR #45 (8eaec2df5faa91a76452dc308a75561e0fb57ae7) together with PR #46 (8fc0de230c7b04036cc7fb5c51e899666ae56549). A local-only merge at b616257490aa65b690a3f1971b02a2eff2a5b8c1 in /tmp/lca-diff-f2-combined merged without conflicts; neither PR nor main was merged remotely.

Guarded rootless container startup/check passed, including eight preflight regressions. Inside that container, frozen npm --prefix apps/frontend ci --no-audit --no-fund, format:check, lint, typecheck, test:unit (140 tests/seven files), and build all passed. Invocation: docker compose -p lca-diff-f2-combined exec -T workspace bash -lc '<npm command>'.

npm --prefix apps/frontend run test:e2e passed six cases across Chromium and Firefox: four committed shell checks plus two supplemental production-bundle compatibility runs. The supplemental scenario seeds a safe synthetic verified-session marker, observes no login-modal flash during restore, uses keyboard Scores navigation and indicator collapse, signs out, checks marker removal, and reloads into the locked dialog with no runtime errors. Its local source is retained at /tmp/lca-diff-f2-combined-compatibility.spec.ts; it was removed from the validation checkout after execution. These additional checks are manual session evidence, not committed regression coverage; #15 owns consolidated F2 browser coverage.

This supplements each issue's independent QA and hosted CI. It does not complete #13 account forms, #14 session/query-controller hardening, #15 acceptance, or real Firebase/API security validation. #13/#14 remain dependent on maintainer-approved merge of #11/#12. Both PRs remain open for review; no merge was authorized or performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant