# ZitPlane P05-CI-02 — Targeted CI acceptance **Date:** 2026-11-22 **Baseline:** `42adaba0044ee5cb86e6e6bcfd4e00e5fe96ad00` **State:** Source prepared; Gitea acceptance run pending. ## What changed and why - Account Portal's Auth.js `session` callback now narrows the JWT's optional identity subject to a real `string` before computing the valid session identity. The previous code's non-null assertion could infer `{}` and failed TypeScript `TS2345` in Run #81. No login provider flow, PKCE/state/nonce, expiry rule, API guard, password or UI changes. - Gitea's existing `p05-ci.yml` remains manual only, builds Account Portal with exact npm lock, runs Login V2 frozen build/1,219 upstream unit regressions, collects npm/pnpm advisory metadata, checks disposable Docker readiness/Postgres restart persistence/OIDC metadata/JWKS and always cleans up. - Source-only/negative contract tests verify untrusted issuer/JWKS rejection; a CI-only started Account Portal checks unauthenticated `/api/account/me` returns 401/no-store and protected `/account` redirects to `/signin`. **No real authenticated user test**. - Security gate still fails for HIGH/CRITICAL advisories. Separate JSON inventory records Moderate IDs, affected package/range and available patches; **no dependency changes**. ## How to run Gitea > `vibtools/ZitPlane` > Actions > `ZitPlane P05 CI Verification` > Run workflow on `main`. This runs only on a Docker-capable, isolated Gitea runner. It never deploys to Coolify or production identity domains. ## Status and scope of proof A green source/typecheck job does not prove an authenticated OIDC callback or MFA. A green Docker job proves **disposable local** backend readiness/discovery and Postgres persistence only, not Admin Console human login. Full OIDC E2E remains a separate planned scope. The workflow uses a fixed P02 dev network, so it refuses to start when that network already exists; it must never stop another owner's containers or volumes. Temporary CI credentials must not appear in logs or the repository. When runner/Compose startup is unavailable, mark **BLOCKED**, not PASS. ## Actual Gitea run evidence **PENDING.** Record run ID/SHA, individual terminal job results, real advisory IDs, persistence/cleanup evidence and exact blockers after the single focused CI cycle. See `notes/P05-CI-02.md` for the detailed phase record.