oficina / home Public

Clone
git clone https://amadan.net/oficina/home

Plain git — no account needed to clone.

Download

Download this file

1# Oficina ID slice 1 validation record
2
3Agent 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
14Pending.
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
64behavioral regressions. Removing only the SQL recovery-subject predicate
65survived because the independent mailbox subject check still refused the proof;
66removing both checks was killed. The JSON record names every guard, test and
67result. This is a recorded redundant defense, not a claim of zero survivors.
68
69The checks include every replacement revocation table, rollback, WebAuthn
70origin/RP/UV/signature rejection, replay, challenge and cookie binding, limits,
71expiry, clock rollback, entropy, mail/limiter/storage privacy, Continue/CSRF,
72closed authorize parsing, audience, nonce, lifetime and authentication-time
73provenance. Original source was restored after each check.
74
75Additional red/green tests reject old fresh-intent cookies without a start time,
76preserve email verification time rather than session-mint time, and require an
77enrolled passkey before issuing codes. Recovery proofs have a hard row bound.
78Hosted CI's race pass found two concurrent ResponseRecorder.Result calls in
79fixtures; cookie snapshots now precede the goroutines. Targeted race tests pass.
80
81The full gates exposed one final fixture tied to the former magic-link fallback:
82it backdated session creation while leaving the newly explicit auth_time fresh.
83The fixture now backdates the actual authentication time and passes its full
84stale-to-fresh operator ceremony. This changes no production behavior.
85
86## Completed gates
87
88On 2026-11-13, `GOFLAGS=-buildvcs=false make test` passed every local target:
89vet, formatting, cgo-free builds (including linux/arm64), every module's regular
90tests and the full race suites. `GOFLAGS=-buildvcs=false make test-browser`
91also passed, including the new real-browser identity flows and the zoom gate.
92Hosted CI passed all steps at 9d8fa5f1b620c9d1ae5d4e779d596b0ab1102c82.
93
94The final closeout moves the Keymail fixture's simulated gesture after its link
95start to avoid a second-boundary flake, records completed plan tasks, ignores the
96local handoff, and applies Astra's accepted "Oficina ID" signed-out wording.
97Targeted Keymail/sign-out race tests pass after that delta. Final-tip CI and the
98exact final SHA are recorded in branch discussion 107 and the requested report.
99
100GPT-6 Astra approved source/tests; deployed-canary review remains outstanding
101under Paul's no-deploy instruction. No merge was attempted. Equipo and shared
102consumer adapter changes remain part B.
103
104A final renderer check found credential HTML lacked explicit no-store headers.
105`TestIDCredentialPagesAreNoStore` failed before the fix. The shared renderer now
106sets no-store on credential-origin HTML, including shown-once recovery codes;
107static assets retain their own cache policy. The regression passes and removing
108the header is killed by mutation. The final record is 63 checks / 62 killed /
109one independently guarded survivor. Targeted renderer and browser tests follow
110this final three-line production change; final-tip CI reruns the full gate.
111
112## Fable review fixes: red tests
113
114After merging origin/main, the revised real-form signout regression and hanging
115issuer test both failed because the local page had no credential POST form.
116The anonymous-begin flood failed on request 10,001; its first 10,000 requests
117filled the ceremony table. Sealed-proof cases failed because no sealed proof
118existed. Recovery tests failed for full RAM blocking the email gate, missing/full
119RAM still consuming codes, no redemption notice, and recovery satisfying linking.
120The replacement regression failed because the new passkey login skipped codes.
121These failures were observed before their production changes. Existing recovery
122exclusion, replacement method/session binding, and attempt-budget guards already
123passed; their missing mutations are added in this review pass.
124
125Astra's follow-up found cross-site directory classification used the directory
126hostname instead of ID's cookie site. TestCredentialSignoutUsesIssuerSite failed
127before the fix. Sign-out now compares the issuer's scheme and public-suffix
128registrable domain; the existing workspace x/net version is explicitly required
129by this module. Chromium sign-out passes for same-site and cross-site origins,
130with scripts on and off. Selectors distinguish the issuer confirmation button
131from the directory menu button to avoid clicking the page being navigated away
132from. The hanging test posts the actual local page's form and checks the local
133landing and revoked session again while that request is blocked.
134
135The full mutation pass exposed redundant refusal in an old restart fixture:
136missing RAM proof hid removed persistent attempt limits. The fixture now obtains
137a fresh mailbox proof after reconstruction. Persisted mailbox freshness is also
138checked with the independent RAM proof kept live, so neither defense masks the
139other in the mutation check. Legacy 50-bit codes have a compatibility regression;
140only newly generated sets receive the 128-bit entropy guarantee.
141
142Final full mutation rerun: 91 checks, 90 killed. The one surviving removal is
143still the SQL recovery-proof subject predicate, independently enforced by the
144RAM mailbox subject check. Removing both is killed. All 28 added mutations are
145killed, including the real-browser auto-submit mutation. The runner restores
146source after every mutation and records results in
147implementation/oficina-id-slice1-mutations.json.
148
149Hosted CI also caught the added public-suffix dependency's missing attribution.
150make credits regenerated it; delegated Astra review verified the license against
151the 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
154Authorship for this review-fix pass: Codex (OpenAI), acting on Paul's request.
155GPT-6 Astra performed the delegated copy and independent source reviews.
156The agent's coordination and review record is Amadan discussion 107; the prompt
157ledger is retained on the branch. The final source/tests/records approval before
158this authorship note was af703f4735776f6fc1a915369348d40b1548f8f9.
159
160Final hosted CI exposed an unrelated probabilistic fixture in
161TestResolvedRefusals: replacing the receipt's last two characters with AA can
162leave the original signature unchanged. The test now flips a decoded signature
163byte and re-encodes it, guaranteeing different bytes. Production verification
164is unchanged. The corrected test passed 20 consecutive runs. The full browser
165gate already passed; the full local gate continues through its race suites.
166