oficina / meet Public

Merge branch 'feat/smart-door' into main

Merge branch 'feat/smart-door' into main

Calls adopts the smart sign-in door (smart-door step 6), as Docs, Sheets,
Slides and Calendar did. Bumps: rastrillo v0.27.1 to v0.42.0, Home connect
150d94e, estilo 468fab1.
- The door: an admission probe of requirePerson (web sessions only;
  guests and native are never judged; 5xx means undecided).
- Refusals on the plain door; Oficina ID remembered only when admitted.
- Return memory, and Forget chained to id.oficina.works.
- Team mode: Config.Admit plus the choose page.
- Home storage failures answer 503.
- sameAnswer deleted.
- Paul's ruling 2026-11-22: on a pending invitation the door defaults to
  email, with Oficina ID under Other ways, and either way returns to the
  invitation (read from the join cookie, never the request).
- Guests joining by name and the native apps are untouched.
- Doctor clean; one additive migration (connect 0003_choice_proofs).

Reviewed by Claude Fable: APPROVE AFTER FIXES twice; final fix in
acac9d8. CI passed. Discussion 46.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 9220b0597ebf3f6e7175736afab5b2f1fdaa81ee parent 13e3383parent acac9d8
74 files changed, +6,153 −968
  • AGENTS.md +40 −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 +75 −242
  • internal/calls/chrome.go +7 −0
  • internal/calls/credits/notices.json +54 −5
  • internal/calls/handlers_join.go +47 −0
  • internal/calls/home.go +94 −43
  • 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 +321 −0
  • internal/calls/signin_admission.go +319 −0
  • internal/calls/signin_browser_test.go +185 −0
  • internal/calls/signin_door_calls_test.go +289 −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 +219 −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/call.mjs +12 −3
  • test/browser/door.mjs +62 −0
  • test/browser/native-auth.mjs +2 −1

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	(cached)
ok  	amadan.net/oficina/calls/cmd/calls	13.518s
?   	amadan.net/oficina/calls/cmd/calls-contract	[no test files]
ok  	amadan.net/oficina/calls/cmd/quality-summary	(cached)
?   	amadan.net/oficina/calls/gen	[no test files]
ok  	amadan.net/oficina/calls/gen/locales	0.003s
ok  	amadan.net/oficina/calls/internal/calls	15.289s
ok  	amadan.net/oficina/calls/internal/calls/apns	(cached)
ok  	amadan.net/oficina/calls/internal/calls/hub	(cached)
?   	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	(cached)
ok  	amadan.net/oficina/calls/internal/calls/seal	(cached)
?   	amadan.net/oficina/calls/internal/calls/teamstate	[no test files]
ok  	amadan.net/oficina/calls/internal/callstest	13.019s
ok  	amadan.net/oficina/calls/protocol	(cached)
?   	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	113.590s
ok  	amadan.net/oficina/calls/internal/calls/apns	(cached)
ok  	amadan.net/oficina/calls/internal/calls/hub	(cached)
?   	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	(cached)
ok  	amadan.net/oficina/calls/internal/calls/seal	(cached)
?   	amadan.net/oficina/calls/internal/calls/teamstate	[no test files]
ok  	amadan.net/oficina/calls/internal/callstest	51.668s
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/handlers_join.go

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/call.mjs

Loading diff…

test/browser/door.mjs

Loading diff…

test/browser/native-auth.mjs

Loading diff…