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