oficina / meet Public

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

Calls adopts the smart sign-in door, as Docs, Sheets, Slides and Calendar
did. One bump: rastrillo v0.27.1 to v0.42.0, Home connect/handoff
14c83d7/ff16bf5 to 150d94e, estilo 260f98c to 468fab1.

- The door: rastrillo's one-way screen in estilo's door. With Home,
  /signin (Continue with Oficina ID), /signin/local (email only) and
  /signin/oficina, all behind an admission probe of requirePerson; any
  5xx is undecided, never a refusal. Home storage failures outside team
  mode are now a no-store 503, not a 404.
- Guests are not the door's: joining by name is untouched, a guest
  session is never judged, refused or ended at the door, and the join
  cookie's door stays email only. Native sessions never reach the door
  and are never ended by it.
- Refusal ("That email can't sign in to Calls...") and Calls' removal in
  the app-problem slot, plain door only; a refused session ended on the
  door's own response; Oficina ID forgotten, email kept.
- Oficina ID remembered in MintHomeSession, strictly for an admitted
  minted session, with no carry-over.
- Return memory: Calls' sealed cookie, with every protection (Begin never
  sees return_to, reset on a post without one, parse errors, /signed-out,
  Forget and Sign out clear it), so /continue still takes a pending join
  first.
- Signed out: Forget, chained to id.oficina.works with Home.
- Team mode: connect now requires Admit; teamAdmit and the member choice
  page.
- sameAnswer is deleted, as on Slides: Begin's answers are honest and the
  same for any address.
- rastrillo catch-up: English locale pack, minified assets, doctor clean
  (vendoredIsMine, templates migrated, generate stubs), credits
  regenerated (Fiesta, minify, parse). Migration: linkstore
  0003_choice_proofs (additive, at boot with Home).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev bf3b569755579a3c78372781f404e281556ec5c1 parent 13e3383
71 files changed, +5,868 −962
  • AGENTS.md +36 −17
  • Makefile +8 −3
  • api/v1.json +4 −0
  • gen/api.go +19 −0
  • gen/locales/packs.go +19 −0
  • gen/locales/packs_test.go +28 −0
  • gen/router.go +23 −0
  • go.mod +10 −6
  • go.sum +24 −24
  • internal/calls/app.go +30 −7
  • internal/calls/auth.go +70 −242
  • internal/calls/chrome.go +7 −0
  • internal/calls/credits/notices.json +54 −5
  • internal/calls/home.go +83 −41
  • internal/calls/home_connect_item_test.go +2 −2
  • internal/calls/home_consumer_test.go +3 −1
  • internal/calls/home_router_test.go +32 −15
  • internal/calls/keymail_signin_test.go +37 −17
  • internal/calls/native_auth_test.go +1 −1
  • internal/calls/render.go +0 −4
  • internal/calls/serving.go +7 −1
  • internal/calls/signin.go +315 −0
  • internal/calls/signin_admission.go +279 −0
  • internal/calls/signin_browser_test.go +184 −0
  • internal/calls/signin_door_calls_test.go +145 −0
  • internal/calls/signin_door_contract_test.go +154 −0
  • internal/calls/signin_door_forget_test.go +55 −0
  • internal/calls/signin_door_helpers_test.go +222 −0
  • internal/calls/signin_door_refusal_test.go +206 −0
  • internal/calls/signin_door_remember_test.go +121 −0
  • internal/calls/signin_door_return_test.go +208 −0
  • internal/calls/signin_door_states_test.go +151 −0
  • internal/calls/signin_door_team_test.go +130 −0
  • internal/calls/signin_equal_work_test.go +1 −1
  • internal/calls/signin_return.go +167 −7
  • internal/calls/signin_timing_test.go +1 −1
  • internal/calls/static/busy.js +154 −38
  • internal/calls/static/rastrillo.js +197 −22
  • internal/calls/static/select.js +188 −30
  • internal/calls/static/theme.css +116 −0
  • internal/calls/static/tokens.css +2,012 −273
  • internal/calls/team_access.go +0 −38
  • internal/calls/team_fixture_test.go +38 −1
  • internal/calls/team_home_only.go +29 −5
  • internal/calls/templates/agent_once.html +4 −4
  • internal/calls/templates/confirm.html +4 −4
  • internal/calls/templates/credits.html +1 −1
  • internal/calls/templates/errors.html +1 −1
  • internal/calls/templates/guest.html +3 −3
  • internal/calls/templates/home.html +11 −1
  • internal/calls/templates/index.html +8 −8
  • internal/calls/templates/join.html +8 −8
  • internal/calls/templates/layout.html +6 −4
  • internal/calls/templates/link_once.html +3 −3
  • internal/calls/templates/meeting_settings.html +5 −5
  • internal/calls/templates/native.html +4 −4
  • internal/calls/templates/partials/meeting-options.html +3 −3
  • internal/calls/templates/room.html +10 −10
  • internal/calls/templates/settings.html +7 −7
  • internal/calls/templates/share.html +2 −2
  • internal/calls/templates/signedout.html +1 −1
  • internal/calls/templates/signin.html +14 −24
  • internal/calls/templates/welcome.html +2 −2
  • internal/callstest/api_test.go +2 −2
  • internal/callstest/chrome_test.go +26 −15
  • internal/callstest/confirm_test.go +2 −2
  • internal/callstest/harness_test.go +15 −1
  • internal/callstest/join_test.go +12 −12
  • internal/callstest/signin_test.go +25 −24
  • internal/callstest/vendored_test.go +57 −9
  • test/browser/door.mjs +62 −0

CI passed — run details

CI log
=== vet ===
go vet ./...
go: downloading amadan.net/rastrillo/rastrillo v0.42.0
go: downloading amadan.net/oficina/home/connect v0.0.0-20261122114341-150d94e2370f
go: downloading amadan.net/oficina/estilo.git v0.0.0-20261121233240-468fab16e803
go: downloading amadan.net/oficina/home/handoff v0.0.0-20261122114341-150d94e2370f
go: downloading github.com/go-json-experiment/json v0.0.0-20260820222146-c27c302e5fc3
go: downloading amadan.net/rastrillo/fiesta v1.5.0
go: downloading github.com/modelcontextprotocol/go-sdk v1.8.0
go: downloading github.com/tdewolff/minify/v2 v2.24.19
go: downloading github.com/tdewolff/parse/v2 v2.8.16
go vet -tags browser ./internal/calls/ ./internal/callstest/
=== fmt ===
=== test ===
go test ./...
ok  	amadan.net/oficina/calls/callscore	7.464s
ok  	amadan.net/oficina/calls/cmd/calls	13.474s
?   	amadan.net/oficina/calls/cmd/calls-contract	[no test files]
ok  	amadan.net/oficina/calls/cmd/quality-summary	0.034s
?   	amadan.net/oficina/calls/gen	[no test files]
ok  	amadan.net/oficina/calls/gen/locales	0.006s
ok  	amadan.net/oficina/calls/internal/calls	14.408s
ok  	amadan.net/oficina/calls/internal/calls/apns	0.008s
ok  	amadan.net/oficina/calls/internal/calls/hub	1.124s
?   	amadan.net/oficina/calls/internal/calls/icons	[no test files]
?   	amadan.net/oficina/calls/internal/calls/keymailtest	[no test files]
ok  	amadan.net/oficina/calls/internal/calls/relay	0.005s
ok  	amadan.net/oficina/calls/internal/calls/seal	0.004s
?   	amadan.net/oficina/calls/internal/calls/teamstate	[no test files]
ok  	amadan.net/oficina/calls/internal/callstest	12.623s
ok  	amadan.net/oficina/calls/protocol	0.002s
?   	amadan.net/oficina/calls/scripts/writeestilo	[no test files]
=== migration-check ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo migration check
go: downloading golang.org/x/tools v0.48.0
rastrillo migration check: models and migrations agree
=== race ===
CGO_ENABLED=1 go test -race ./internal/...
ok  	amadan.net/oficina/calls/internal/calls	106.656s
ok  	amadan.net/oficina/calls/internal/calls/apns	1.024s
ok  	amadan.net/oficina/calls/internal/calls/hub	4.789s
?   	amadan.net/oficina/calls/internal/calls/icons	[no test files]
?   	amadan.net/oficina/calls/internal/calls/keymailtest	[no test files]
ok  	amadan.net/oficina/calls/internal/calls/relay	1.017s
ok  	amadan.net/oficina/calls/internal/calls/seal	1.012s
?   	amadan.net/oficina/calls/internal/calls/teamstate	[no test files]
ok  	amadan.net/oficina/calls/internal/callstest	49.407s
AGENTS.md

Loading diff…

Makefile

Loading diff…

api/v1.json

Loading diff…

gen/api.go

Loading diff…

gen/locales/packs.go

Loading diff…

gen/locales/packs_test.go

Loading diff…

gen/router.go

Loading diff…

go.mod

Loading diff…

go.sum

Loading diff…

internal/calls/app.go

Loading diff…

internal/calls/auth.go

Loading diff…

internal/calls/chrome.go

Loading diff…

internal/calls/credits/notices.json

Loading diff…

internal/calls/home.go

Loading diff…

internal/calls/home_connect_item_test.go

Loading diff…

internal/calls/home_consumer_test.go

Loading diff…

internal/calls/home_router_test.go

Loading diff…

internal/calls/keymail_signin_test.go

Loading diff…

internal/calls/native_auth_test.go

Loading diff…

internal/calls/render.go

Loading diff…

internal/calls/serving.go

Loading diff…

internal/calls/signin.go

Loading diff…

internal/calls/signin_admission.go

Loading diff…

internal/calls/signin_browser_test.go

Loading diff…

internal/calls/signin_door_calls_test.go

Loading diff…

internal/calls/signin_door_contract_test.go

Loading diff…

internal/calls/signin_door_forget_test.go

Loading diff…

internal/calls/signin_door_helpers_test.go

Loading diff…

internal/calls/signin_door_refusal_test.go

Loading diff…

internal/calls/signin_door_remember_test.go

Loading diff…

internal/calls/signin_door_return_test.go

Loading diff…

internal/calls/signin_door_states_test.go

Loading diff…

internal/calls/signin_door_team_test.go

Loading diff…

internal/calls/signin_equal_work_test.go

Loading diff…

internal/calls/signin_return.go

Loading diff…

internal/calls/signin_timing_test.go

Loading diff…

internal/calls/static/busy.js

Loading diff…

internal/calls/static/rastrillo.js

Loading diff…

internal/calls/static/select.js

Loading diff…

internal/calls/static/theme.css

Loading diff…

internal/calls/static/tokens.css

Loading diff…

internal/calls/team_access.go

Loading diff…

internal/calls/team_fixture_test.go

Loading diff…

internal/calls/team_home_only.go

Loading diff…

internal/calls/templates/agent_once.html

Loading diff…

internal/calls/templates/confirm.html

Loading diff…

internal/calls/templates/credits.html

Loading diff…

internal/calls/templates/errors.html

Loading diff…

internal/calls/templates/guest.html

Loading diff…

internal/calls/templates/home.html

Loading diff…

internal/calls/templates/index.html

Loading diff…

internal/calls/templates/join.html

Loading diff…

internal/calls/templates/layout.html

Loading diff…

internal/calls/templates/link_once.html

Loading diff…

internal/calls/templates/meeting_settings.html

Loading diff…

internal/calls/templates/native.html

Loading diff…

internal/calls/templates/partials/meeting-options.html

Loading diff…

internal/calls/templates/room.html

Loading diff…

internal/calls/templates/settings.html

Loading diff…

internal/calls/templates/share.html

Loading diff…

internal/calls/templates/signedout.html

Loading diff…

internal/calls/templates/signin.html

Loading diff…

internal/calls/templates/welcome.html

Loading diff…

internal/callstest/api_test.go

Loading diff…

internal/callstest/chrome_test.go

Loading diff…

internal/callstest/confirm_test.go

Loading diff…

internal/callstest/harness_test.go

Loading diff…

internal/callstest/join_test.go

Loading diff…

internal/callstest/signin_test.go

Loading diff…

internal/callstest/vendored_test.go

Loading diff…

test/browser/door.mjs

Loading diff…