oficina / home Public

Close out Home ID validation and clarify local sign-out copy

Paul Campbell pushed by paul@keymail.dev b8cf49059db6c082f5a57abe33667959495ac273 parent 9d8fa5f
6 files changed, +31 −10
  • .gitignore +2 −0
  • docs/superpowers/plans/2026-11-13-oficina-id-slice1-home.md +5 −5
  • implementation/oficina-id-slice1-copy.md +1 −1
  • implementation/oficina-id-slice1-validation.md +18 −0
  • internal/home/keymail_fresh_test.go +4 −3
  • internal/home/templates/id_signed_out.html +1 −1

CI cancelled — superseded by a newer push — run details

diff --git a/.gitignore b/.gitignore
index 0975d7c..c1aa599 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,3 +19,5 @@
writing/
/releases/
+
+.claude/HANDOFF.md
diff --git a/docs/superpowers/plans/2026-11-13-oficina-id-slice1-home.md b/docs/superpowers/plans/2026-11-13-oficina-id-slice1-home.md
index a5cf776..8e07292 100644
--- a/docs/superpowers/plans/2026-11-13-oficina-id-slice1-home.md
+++ b/docs/superpowers/plans/2026-11-13-oficina-id-slice1-home.md
@@ -5,23 +5,23 @@ no deployment or merge. Equipo and changes to its connect adapter are part B.
## Tasks
-1. [ ] Require a new authentication gesture for `max_age=300`; add a protected,
+1. [x] Require a new authentication gesture for `max_age=300`; add a protected,
fixed-label Continue page for existing sessions. Files: `exchange.go`,
`signin.go`, `app.go`, templates, assertion tests. Preserve the closed
consumer manifest and 120-second P-256 assertions.
-2. [ ] Add browser-bound, five-minute, single-use direct passkey sign-in and
+2. [x] Add browser-bound, five-minute, single-use direct passkey sign-in and
enrollment. Require UV, exact RP/origin, stored person binding and generated
WebAuthn names. Keep gated legacy credentials. Files: new Home ceremony
handlers/migration/tests, `passkey.go`, `static/passkey.js`, templates.
-3. [ ] Implement 80-bit-or-better recovery codes, persistent atomic account/IP
+3. [x] Implement 80-bit-or-better recovery codes, persistent atomic account/IP
limits, fresh mailbox/browser proof, explicit replacement and atomic
credential/session/code revocation. Keep the notice address only in bounded
memory, with retry and content-free errors. Files: recovery handlers,
migration, ceremony completion, tests.
-4. [ ] Preserve Keymail/platform SMTP and sealed-link storage; strengthen
+4. [x] Preserve Keymail/platform SMTP and sealed-link storage; strengthen
hostile error/address scans and note the later blind-auth-store seam.
Make Home sign-out land locally, including directory outage behavior.
-5. [ ] Run local gates, targeted mutations, delegated copy review and Astra
+5. [x] Run local gates, targeted mutations, delegated copy review and Astra
security review. Push regularly, poll hosted CI, repair failures, and write
`../report.md` in the supplied clone's parent with SHA and remaining work.
diff --git a/implementation/oficina-id-slice1-copy.md b/implementation/oficina-id-slice1-copy.md
index bbf5d3c..e15e076 100644
--- a/implementation/oficina-id-slice1-copy.md
+++ b/implementation/oficina-id-slice1-copy.md
@@ -24,7 +24,7 @@ Reviewed by GPT-6 Astra. Fixed labels only; no account-authored text.
- Continue
- Signed out · Oficina
- You are signed out
-- You are signed out of Oficina Home in this browser.
+- You are signed out of Oficina ID in this browser.
- Sign in
- That did not work. You can try again.
- That code did not work.
diff --git a/implementation/oficina-id-slice1-validation.md b/implementation/oficina-id-slice1-validation.md
index 1bca12d..c6ac1de 100644
--- a/implementation/oficina-id-slice1-validation.md
+++ b/implementation/oficina-id-slice1-validation.md
@@ -82,3 +82,21 @@ 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.
diff --git a/internal/home/keymail_fresh_test.go b/internal/home/keymail_fresh_test.go
index 824800b..8129cd9 100644
--- a/internal/home/keymail_fresh_test.go
+++ b/internal/home/keymail_fresh_test.go
@@ -83,12 +83,13 @@ func TestFreshKeymailGestureYieldsAssertionWithKeymailAuthTime(t *testing.T) {
p := newExchangePair(t)
stub := newKeymailStub(t, p.credential, freshKeymailAddress)
stub.reauth = true
- // Inside the window but well away from now, so an implementation
- // that stamped issuance time over Keymail's report would be seen.
- stub.authTime = time.Now().Truncate(time.Second)
intent, navigation := freshSignInForm(t, p, nil)
u, pending := keymailContinuation(t, p, freshBegin(t, p, "/signin", freshKeymailAddress, intent, navigation))
+ // The simulated gesture happens after the link transaction starts.
+ stub.mu.Lock()
+ stub.authTime = time.Now().Truncate(time.Second)
+ stub.mu.Unlock()
back := callback(t, p.credential, "code-1", u.Query().Get("state"), pending, intent, navigation)
if back.Code != 303 || back.Header().Get("Location") != "/authorize/resume" || sessionCookie(back) == nil {
t.Fatal("fresh Keymail gesture was not credited", back.Code, back.Header().Get("Location"))
diff --git a/internal/home/templates/id_signed_out.html b/internal/home/templates/id_signed_out.html
index 10cd4c2..508fa06 100644
--- a/internal/home/templates/id_signed_out.html
+++ b/internal/home/templates/id_signed_out.html
@@ -1,6 +1,6 @@
{{define "title"}}Signed out · Oficina{{end}}
{{define "content"}}
<h1>You are signed out</h1>
-<p>You are signed out of Oficina Home in this browser.</p>
+<p>You are signed out of Oficina ID in this browser.</p>
<a href="/signin" rst-btn="primary">Sign in</a>
{{end}}