oficina / sheets Public

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>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 7b33142efd923263c9896df7af7134ded5d46cea parent 03d52db
40 files changed, +4,056 −708
  • Makefile +1 −1
  • 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 +120 −0
  • internal/sheets/home_routes.go +17 −2
  • 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 +196 −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_helpers_test.go +111 −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 +253 −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.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
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_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…