oficina / sheets Public

Sign-in: the smart door (smart-door step 6, Sheets)

Sheets adopts the smart sign-in door, as Docs did (2e21630). Bumps:
rastrillo v0.27.1 to v0.42.0, Home connect/handoff to 98726fa, estilo to
468fab1.
- The door: SigninScreen and SigninOneWay through estilo-signin-screen,
  with Continue with Oficina ID first; /signin/local is email only;
  /signin/oficina starts Oficina ID; step-up offers email only.
- Admission: a probe runs Sheets' own guard. Refusals show in the
  app-problem slot, and Other ways still works. Oficina ID is remembered
  only for an admitted session.
- A sealed return memory, so you land where you started.
- Signed out: Forget me on this device, chained to id.oficina.works.
- rastrillo catch-up: the English locale pack (else no boot), chromedp
  v0.21, minified assets, tokens.css from Fiesta 1.5.0, and the Keymail
  continuation on the door.
- Native Oficina ID is untouched; the contract tests pass.

Reviewed by Claude Fable: APPROVE AFTER FIXES at 7b33142, then APPROVE at
3d9e3f2. Copy approved by Paul (2026-11-22). CI passed. Discussion 71.
Follow-ups: Admits returning false on a DB error; a team-mode refusal test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Squashed from feat/smart-door into main.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 66e5391f92c17493769c36bf9c97807dc419f935 parent 03d52db
42 files changed, +4,285 −713
  • AGENTS.md +8 −0
  • Makefile +10 −5
  • go.mod +14 −14
  • go.sum +26 −34
  • internal/sheets/app.go +6 −2
  • internal/sheets/auth.go +10 −4
  • internal/sheets/begin.go +21 −17
  • internal/sheets/begin_test.go +10 −3
  • internal/sheets/browser_steps_test.go +48 −0
  • internal/sheets/chrome.go +8 −1
  • internal/sheets/chrome_signin_test.go +1 −1
  • internal/sheets/chrome_test.go +7 −4
  • internal/sheets/home.go +28 −26
  • internal/sheets/home_connect_item_test.go +2 −2
  • internal/sheets/home_door.go +125 −0
  • internal/sheets/home_routes.go +28 −3
  • internal/sheets/home_test.go +11 −1
  • internal/sheets/keymail_signin_test.go +46 −21
  • internal/sheets/nowebfont_test.go +1 −1
  • internal/sheets/serving.go +5 −0
  • internal/sheets/serving_browser_test.go +9 −11
  • internal/sheets/signin.go +200 −131
  • internal/sheets/signin_browser_test.go +192 −0
  • internal/sheets/signin_confirm_test.go +8 −6
  • internal/sheets/signin_door_contract_test.go +134 −0
  • internal/sheets/signin_door_edges_test.go +173 −0
  • internal/sheets/signin_door_helpers_test.go +117 −0
  • internal/sheets/signin_door_refusal_test.go +120 −0
  • internal/sheets/signin_door_remember_test.go +198 −0
  • internal/sheets/signin_door_return_test.go +167 −0
  • internal/sheets/signin_door_states_test.go +155 −0
  • internal/sheets/signin_door_test.go +20 −40
  • internal/sheets/signin_return.go +266 −0
  • internal/sheets/signin_test.go +30 −50
  • internal/sheets/signin_timing_test.go +2 −2
  • internal/sheets/static/tokens.css +2,012 −273
  • internal/sheets/templates/home_oauth.html +0 −2
  • internal/sheets/templates/layout.html +4 −2
  • internal/sheets/templates/signin.html +14 −23
  • internal/sheets/theme_assets_test.go +24 −5
  • internal/sheets/theme_test.go +1 −1
  • internal/sheets/zoom_browser_test.go +24 −28

CI passed — run details

CI log
amadan: .amadan/timeout: this job's budget is 15m0s (this runner allows up to 30m0s)
=== vet ===
CGO_ENABLED=0 go vet ./...
go: downloading amadan.net/rastrillo/rastrillo v0.42.0
go: downloading amadan.net/oficina/estilo.git v0.0.0-20261121233240-468fab16e803
go: downloading amadan.net/oficina/home/connect v0.0.0-20261121235253-98726fac99a7
go: downloading amadan.net/oficina/home/handoff v0.0.0-20261121235253-98726fac99a7
go: downloading github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3
go: downloading github.com/modelcontextprotocol/go-sdk v1.8.0
go: downloading amadan.net/rastrillo/fiesta v1.5.0
go: downloading golang.org/x/net v0.58.0
go: downloading github.com/tdewolff/minify/v2 v2.24.19
go: downloading github.com/tdewolff/parse/v2 v2.8.16
CGO_ENABLED=0 go vet -tags browser ./internal/sheets/
go: downloading github.com/chromedp/cdproto v0.158.6
go: downloading github.com/chromedp/chromedp v0.21.0
=== fmt ===
=== build ===
CGO_ENABLED=0 go build ./...
=== migrations ===
go tool rastrillo migration check
go: downloading golang.org/x/tools v0.48.0
rastrillo migration check: models and migrations agree
=== go-test ===
CGO_ENABLED=0 go test -count=1 ./...
?   	amadan.net/oficina/sheets/cmd/sheets	[no test files]
?   	amadan.net/oficina/sheets/cmd/sheets-contract	[no test files]
ok  	amadan.net/oficina/sheets/internal/guardstest	0.168s
ok  	amadan.net/oficina/sheets/internal/sheets	16.480s
ok  	amadan.net/oficina/sheets/internal/sheets/calc	0.011s
ok  	amadan.net/oficina/sheets/internal/sheets/format	0.003s
?   	amadan.net/oficina/sheets/internal/sheets/keymailtest	[no test files]
ok  	amadan.net/oficina/sheets/internal/sheets/live	0.053s
ok  	amadan.net/oficina/sheets/internal/sheets/seal	0.002s
ok  	amadan.net/oficina/sheets/internal/sheets/sealtest	0.007s
ok  	amadan.net/oficina/sheets/internal/sheets/store	6.392s
ok  	amadan.net/oficina/sheets/internal/sheets/teamstate	0.122s
ok  	amadan.net/oficina/sheets/internal/sheets/xlsx	4.828s
?   	amadan.net/oficina/sheets/tools/gencorpus	[no test files]
=== race ===
go test -race -count=1 ./internal/sheets/store/... ./internal/sheets/live/...
ok  	amadan.net/oficina/sheets/internal/sheets/store	72.871s
ok  	amadan.net/oficina/sheets/internal/sheets/live	1.064s
AGENTS.md

Loading diff…

Makefile

Loading diff…

go.mod

Loading diff…

go.sum

Loading diff…

internal/sheets/app.go

Loading diff…

internal/sheets/auth.go

Loading diff…

internal/sheets/begin.go

Loading diff…

internal/sheets/begin_test.go

Loading diff…

internal/sheets/browser_steps_test.go

Loading diff…

internal/sheets/chrome.go

Loading diff…

internal/sheets/chrome_signin_test.go

Loading diff…

internal/sheets/chrome_test.go

Loading diff…

internal/sheets/home.go

Loading diff…

internal/sheets/home_connect_item_test.go

Loading diff…

internal/sheets/home_door.go

Loading diff…

internal/sheets/home_routes.go

Loading diff…

internal/sheets/home_test.go

Loading diff…

internal/sheets/keymail_signin_test.go

Loading diff…

internal/sheets/nowebfont_test.go

Loading diff…

internal/sheets/serving.go

Loading diff…

internal/sheets/serving_browser_test.go

Loading diff…

internal/sheets/signin.go

Loading diff…

internal/sheets/signin_browser_test.go

Loading diff…

internal/sheets/signin_confirm_test.go

Loading diff…

internal/sheets/signin_door_contract_test.go

Loading diff…

internal/sheets/signin_door_edges_test.go

Loading diff…

internal/sheets/signin_door_helpers_test.go

Loading diff…

internal/sheets/signin_door_refusal_test.go

Loading diff…

internal/sheets/signin_door_remember_test.go

Loading diff…

internal/sheets/signin_door_return_test.go

Loading diff…

internal/sheets/signin_door_states_test.go

Loading diff…

internal/sheets/signin_door_test.go

Loading diff…

internal/sheets/signin_return.go

Loading diff…

internal/sheets/signin_test.go

Loading diff…

internal/sheets/signin_timing_test.go

Loading diff…

internal/sheets/static/tokens.css

Loading diff…

internal/sheets/templates/home_oauth.html

Loading diff…

internal/sheets/templates/layout.html

Loading diff…

internal/sheets/templates/signin.html

Loading diff…

internal/sheets/theme_assets_test.go

Loading diff…

internal/sheets/theme_test.go

Loading diff…

internal/sheets/zoom_browser_test.go

Loading diff…