Sign-in: the smart door (smart-door step 6, Sheets)
Sheets adopts the smart sign-in door, as Docs did (2e21630). In one change:
rastrillo v0.27.1 to v0.42.0, Home connect/handoff to Home main 98726fa,
estilo to main 468fab1 (door pills).
- SigninScreen and SigninOneWay are on, SigninPath is connect.SigninPath,
every state drawn through estilo's estilo-signin-screen; the tab title is
rastrillo's for the state ("Sign in to Sheets").
- With Home: /signin is connect's SigninDoor with Continue with Oficina ID
(chrome.OficinaGlyph, OficinaHref), /signin/local SigninLocal (email
only), /signin/oficina SigninOficina. All three sit behind Sheets'
admission check (admittedOnly: the signed-in guard, probed). Step-up
offers email only.
- A refusal (auth's Refused, or a session the guard refuses) is the
screen's app problem with the email field; the chooser and each way's
own page stay reachable. A refused session's remembered Oficina ID is
forgotten.
- MintHomeSession remembers Oficina ID with connect.MintedPerson's
address, only for a session the guard admits, nothing carried over.
- Signed out: Forget me on this device, chained with Home to
{issuer}/forget?return=<origin>/signed-out.
- Return memory: with Home, POST /signin takes return_to off Begin's form
(parsed or not), keeps it in a sealed cookie, and puts it back on
Begin's redirect; /auth/local/complete lands there instead of /sheets.
A post without one remembers the list; a plain /signin/local keeps the
page. Standalone, rastrillo carries it itself.
- Lagged / no Home: the door is email only; /signin/oficina and
/signin/local answer 404.
- rastrillo catch-up: the en locale pack is linked (v0.29+ refuses to
start without it); chromedp v0.21 in the browser tests; Assets serves
vendored paths minified (tests ask Assets); tokens.css re-vendored from
ui.TokensCSS (Fiesta; doctor refuses while native.go needs the pre-move
path); Sent is ?sent=1&attempt=; Keymail continues on the door at
?continue=, so connect.OAuthContinuation and home_oauth.html are gone.
- Refusal copy (Paul, 2026-11-21): "That email can’t sign in to Sheets.
Use a different email, or ask whoever runs this team to add it."
native/ and the native exchange are untouched; the guards' "Sign in
first." bodies are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 files changed,
+4,056
−708
Makefile+1 −1go.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+120 −0internal/sheets/home_routes.go+17 −2internal/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+196 −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_helpers_test.go+111 −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+253 −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.167s ok amadan.net/oficina/sheets/internal/sheets 15.939s 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.003s ok amadan.net/oficina/sheets/internal/sheets/sealtest 0.003s ok amadan.net/oficina/sheets/internal/sheets/store 6.230s ok amadan.net/oficina/sheets/internal/sheets/teamstate 0.141s ok amadan.net/oficina/sheets/internal/sheets/xlsx 4.716s ? 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.858s ok amadan.net/oficina/sheets/internal/sheets/live 1.064s
Intent
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_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…