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.
42 files changed,
+4,285
−713
AGENTS.md+8 −0Makefile+10 −5go.mod+14 −14go.sum+26 −34internal/sheets/app.go+6 −2internal/sheets/auth.go+10 −4internal/sheets/begin.go+21 −17internal/sheets/begin_test.go+10 −3internal/sheets/browser_steps_test.go+48 −0internal/sheets/chrome.go+8 −1internal/sheets/chrome_signin_test.go+1 −1internal/sheets/chrome_test.go+7 −4internal/sheets/home.go+28 −26internal/sheets/home_connect_item_test.go+2 −2internal/sheets/home_door.go+125 −0internal/sheets/home_routes.go+28 −3internal/sheets/home_test.go+11 −1internal/sheets/keymail_signin_test.go+46 −21internal/sheets/nowebfont_test.go+1 −1internal/sheets/serving.go+5 −0internal/sheets/serving_browser_test.go+9 −11internal/sheets/signin.go+200 −131internal/sheets/signin_browser_test.go+192 −0internal/sheets/signin_confirm_test.go+8 −6internal/sheets/signin_door_contract_test.go+134 −0internal/sheets/signin_door_edges_test.go+173 −0internal/sheets/signin_door_helpers_test.go+117 −0internal/sheets/signin_door_refusal_test.go+120 −0internal/sheets/signin_door_remember_test.go+198 −0internal/sheets/signin_door_return_test.go+167 −0internal/sheets/signin_door_states_test.go+155 −0internal/sheets/signin_door_test.go+20 −40internal/sheets/signin_return.go+266 −0internal/sheets/signin_test.go+30 −50internal/sheets/signin_timing_test.go+2 −2internal/sheets/static/tokens.css+2,012 −273internal/sheets/templates/home_oauth.html+0 −2internal/sheets/templates/layout.html+4 −2internal/sheets/templates/signin.html+14 −23internal/sheets/theme_assets_test.go+24 −5internal/sheets/theme_test.go+1 −1internal/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.mdLoading diff…
MakefileLoading diff…
go.modLoading diff…
go.sumLoading diff…
internal/sheets/app.goLoading diff…
internal/sheets/auth.goLoading diff…
internal/sheets/begin.goLoading diff…
internal/sheets/begin_test.goLoading diff…
internal/sheets/browser_steps_test.goLoading diff…
internal/sheets/chrome.goLoading diff…
internal/sheets/chrome_signin_test.goLoading diff…
internal/sheets/chrome_test.goLoading diff…
internal/sheets/home.goLoading diff…
internal/sheets/home_connect_item_test.goLoading diff…
internal/sheets/home_door.goLoading diff…
internal/sheets/home_routes.goLoading diff…
internal/sheets/home_test.goLoading diff…
internal/sheets/keymail_signin_test.goLoading diff…
internal/sheets/nowebfont_test.goLoading diff…
internal/sheets/serving.goLoading diff…
internal/sheets/serving_browser_test.goLoading diff…
internal/sheets/signin.goLoading diff…
internal/sheets/signin_browser_test.goLoading diff…
internal/sheets/signin_confirm_test.goLoading diff…
internal/sheets/signin_door_contract_test.goLoading diff…
internal/sheets/signin_door_edges_test.goLoading diff…
internal/sheets/signin_door_helpers_test.goLoading diff…
internal/sheets/signin_door_refusal_test.goLoading diff…
internal/sheets/signin_door_remember_test.goLoading diff…
internal/sheets/signin_door_return_test.goLoading diff…
internal/sheets/signin_door_states_test.goLoading diff…
internal/sheets/signin_door_test.goLoading diff…
internal/sheets/signin_return.goLoading diff…
internal/sheets/signin_test.goLoading diff…
internal/sheets/signin_timing_test.goLoading diff…
internal/sheets/static/tokens.cssLoading diff…
internal/sheets/templates/home_oauth.htmlLoading diff…
internal/sheets/templates/layout.htmlLoading diff…
internal/sheets/templates/signin.htmlLoading diff…
internal/sheets/theme_assets_test.goLoading diff…
internal/sheets/theme_test.goLoading diff…
internal/sheets/zoom_browser_test.goLoading diff…