oficina / home Public
Oficina ID slice 1 validation record
Agent record, 2026-11-13. No deploy or merge.
Red/green
- Task 1:
TestIDLinkAlwaysRequiresNewGesturefailed because GET reused a recent session (200);TestIDContinueBeforeMintingfailed because GET minted immediately. Both pass after the issuance change. Existing fresh assertion, Home assertion and directory exchange tests also pass.
Mutations
Pending.
- Task 2: direct sign-in and proof-negative tests failed with 404 before the handlers existed. Credential-transfer test failed because enrollment replaced the first person's row. All now pass, along with enrollment freshness and existing gated-sign-in tests. New registrations use the existing WebAuthn helper's required resident key and user verification options.
- Task 3: entropy, parallel/restart attempt limits, replacement confirmation, and hostile SMTP-error tests failed before recovery implementation. The new code passes them. Added account/IP, rollback, browser/person/expiry/UV/replay, and no-address checks. A later notice-restart regression failed, then passed after adding a sealed, content-free result cookie separate from the RAM address. Successful replacement revokes all issuer sessions; directory and consumer sessions retain their own expiry/revocation. Delegated copy now says Oficina ID and names that limit.
- Astra source review found stale/passive Keymail proof, an email-mint/enrollment race, cached-session assertion issuance, missing nondiscoverable browser allowlists, and notice-result loss. Added failing stale-mailbox, cached-session and legacy-allowlist regressions; fixed each. Email-only mint now shares the gate transaction and preserves Keymail auth_time. Re-review remains pending.
- Task 4: hanging-issuer sign-out test failed on the old 307 to the issuer. Directory sign-out now revokes and lands locally; credential sign-out also has its own landing page. The hanging server accepts an actual connection.
- Historical admission profiles remain byte-for-byte frozen. New identity migrations are a separate serving-role set, following existing HTTP schema extensions; standalone test Apps apply that set too.
- Local Go's VCS discovery selects an unrelated broken
.gitin the ancestor scratch directory. Local gates use GOFLAGS=-buildvcs=false; no ancestor files or shared Go cache settings were changed. Hosted CI uses the normal targets.
- Real Chromium: TestIDBrowserDirectPasskeyAndGeneratedNames, TestIDBrowserLegacyNonresidentGate and TestIDBrowserScriptlessCrossSiteReturn pass against two HTTPS sites routed to a loopback test server. No deploy.
- Further red/green regressions: legacy runtime missing identity schema; duplicate/trailing ceremony JSON; enrollment exceeding the allowlist bound; future/passive enrollment authentication; readable address in Flow's limiter. The limiter now receives a blinded address key and still shares its IP budget with /resolve. Existing rate-limit tests remain in force.
- Added code/person/replay races, live registration binding, clock rollback, challenge/cookie bounds, unrelated step-up refusal, backup-file privacy and notice retry tests. All targeted ID tests pass.
- First hosted CI at df69548 failed three old fixtures (recent-session reuse and GET minting). Fixtures now reauthenticate the original identity and POST Continue; operator fixtures have explicit larger mail budgets for repeated independent test ceremonies. Production mail limits are unchanged.
Mutation result
scripts/check-id-mutations.py ran 63 guard-removal checks. 62 were killed by behavioral regressions. Removing only the SQL recovery-subject predicate survived because the independent mailbox subject check still refused the proof; removing both checks was killed. The JSON record names every guard, test and result. This is a recorded redundant defense, not a claim of zero survivors.
The checks include every replacement revocation table, rollback, WebAuthn origin/RP/UV/signature rejection, replay, challenge and cookie binding, limits, expiry, clock rollback, entropy, mail/limiter/storage privacy, Continue/CSRF, closed authorize parsing, audience, nonce, lifetime and authentication-time provenance. Original source was restored after each check.
Additional red/green tests reject old fresh-intent cookies without a start time, preserve email verification time rather than session-mint time, and require an enrolled passkey before issuing codes. Recovery proofs have a hard row bound. Hosted CI's race pass found two concurrent ResponseRecorder.Result calls in fixtures; cookie snapshots now precede the goroutines. Targeted race tests pass.
The full gates exposed one final fixture tied to the former magic-link fallback: it backdated session creation while leaving the newly explicit auth_time fresh. The fixture now backdates the actual authentication time and passes its full stale-to-fresh operator ceremony. This changes no production behavior.
Completed gates
On 2026-11-13, GOFLAGS=-buildvcs=false make test passed every local target: vet, formatting, cgo-free builds (including linux/arm64), every module's regular tests and the full race suites. GOFLAGS=-buildvcs=false make test-browser also passed, including the new real-browser identity flows and the zoom gate. Hosted CI passed all steps at 9d8fa5f1b620c9d1ae5d4e779d596b0ab1102c82.
The final closeout moves the Keymail fixture's simulated gesture after its link start to avoid a second-boundary flake, records completed plan tasks, ignores the local handoff, and applies Astra's accepted "Oficina ID" signed-out wording. Targeted Keymail/sign-out race tests pass after that delta. Final-tip CI and the exact final SHA are recorded in branch discussion 107 and the requested report.
GPT-6 Astra approved source/tests; deployed-canary review remains outstanding under Paul's no-deploy instruction. No merge was attempted. Equipo and shared consumer adapter changes remain part B.
A final renderer check found credential HTML lacked explicit no-store headers. TestIDCredentialPagesAreNoStore failed before the fix. The shared renderer now sets no-store on credential-origin HTML, including shown-once recovery codes; static assets retain their own cache policy. The regression passes and removing the header is killed by mutation. The final record is 63 checks / 62 killed / one independently guarded survivor. Targeted renderer and browser tests follow this final three-line production change; final-tip CI reruns the full gate.
Fable review fixes: red tests
After merging origin/main, the revised real-form signout regression and hanging issuer test both failed because the local page had no credential POST form. The anonymous-begin flood failed on request 10,001; its first 10,000 requests filled the ceremony table. Sealed-proof cases failed because no sealed proof existed. Recovery tests failed for full RAM blocking the email gate, missing/full RAM still consuming codes, no redemption notice, and recovery satisfying linking. The replacement regression failed because the new passkey login skipped codes. These failures were observed before their production changes. Existing recovery exclusion, replacement method/session binding, and attempt-budget guards already passed; their missing mutations are added in this review pass.
Astra's follow-up found cross-site directory classification used the directory hostname instead of ID's cookie site. TestCredentialSignoutUsesIssuerSite failed before the fix. Sign-out now compares the issuer's scheme and public-suffix registrable domain; the existing workspace x/net version is explicitly required by this module. Chromium sign-out passes for same-site and cross-site origins, with scripts on and off. Selectors distinguish the issuer confirmation button from the directory menu button to avoid clicking the page being navigated away from. The hanging test posts the actual local page's form and checks the local landing and revoked session again while that request is blocked.
The full mutation pass exposed redundant refusal in an old restart fixture: missing RAM proof hid removed persistent attempt limits. The fixture now obtains a fresh mailbox proof after reconstruction. Persisted mailbox freshness is also checked with the independent RAM proof kept live, so neither defense masks the other in the mutation check. Legacy 50-bit codes have a compatibility regression; only newly generated sets receive the 128-bit entropy guarantee.
Final full mutation rerun: 91 checks, 90 killed. The one surviving removal is still the SQL recovery-proof subject predicate, independently enforced by the RAM mailbox subject check. Removing both is killed. All 28 added mutations are killed, including the real-browser auto-submit mutation. The runner restores source after every mutation and records results in implementation/oficina-id-slice1-mutations.json.
Hosted CI also caught the added public-suffix dependency's missing attribution. make credits regenerated it; delegated Astra review verified the license against the cached upstream text. Full local gates and final hosted CI are recorded in ../report2.md and branch discussion 107 rather than claimed before completion.
Authorship for this review-fix pass: Codex (OpenAI), acting on Paul's request. GPT-6 Astra performed the delegated copy and independent source reviews. The agent's coordination and review record is Amadan discussion 107; the prompt ledger is retained on the branch. The final source/tests/records approval before this authorship note was af703f4735776f6fc1a915369348d40b1548f8f9.
Final hosted CI exposed an unrelated probabilistic fixture in TestResolvedRefusals: replacing the receipt's last two characters with AA can leave the original signature unchanged. The test now flips a decoded signature byte and re-encodes it, guaranteeing different bytes. Production verification is unchanged. The corrected test passed 20 consecutive runs. The full browser gate already passed; the full local gate continues through its race suites.