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>
AGENTS.md+40 −17Makefile+8 −3api/v1.json+4 −0gen/api.go+19 −0gen/locales/packs.go+19 −0gen/locales/packs_test.go+28 −0gen/router.go+23 −0go.mod+10 −6go.sum+24 −24internal/calls/app.go+30 −7internal/calls/auth.go+75 −242internal/calls/chrome.go+7 −0internal/calls/credits/notices.json+54 −5internal/calls/handlers_join.go+47 −0internal/calls/home.go+94 −43internal/calls/home_connect_item_test.go+2 −2internal/calls/home_consumer_test.go+3 −1internal/calls/home_router_test.go+32 −15internal/calls/keymail_signin_test.go+37 −17internal/calls/native_auth_test.go+1 −1internal/calls/render.go+0 −4internal/calls/serving.go+7 −1internal/calls/signin.go+321 −0internal/calls/signin_admission.go+319 −0internal/calls/signin_browser_test.go+185 −0internal/calls/signin_door_calls_test.go+289 −0internal/calls/signin_door_contract_test.go+154 −0internal/calls/signin_door_forget_test.go+55 −0internal/calls/signin_door_helpers_test.go+222 −0internal/calls/signin_door_refusal_test.go+219 −0internal/calls/signin_door_remember_test.go+121 −0internal/calls/signin_door_return_test.go+208 −0internal/calls/signin_door_states_test.go+151 −0internal/calls/signin_door_team_test.go+130 −0internal/calls/signin_equal_work_test.go+1 −1internal/calls/signin_return.go+167 −7internal/calls/signin_timing_test.go+1 −1internal/calls/static/busy.js+154 −38internal/calls/static/rastrillo.js+197 −22internal/calls/static/select.js+188 −30internal/calls/static/theme.css+116 −0internal/calls/static/tokens.css+2,012 −273internal/calls/team_access.go+0 −38internal/calls/team_fixture_test.go+38 −1internal/calls/team_home_only.go+29 −5internal/calls/templates/agent_once.html+4 −4internal/calls/templates/confirm.html+4 −4internal/calls/templates/credits.html+1 −1internal/calls/templates/errors.html+1 −1internal/calls/templates/guest.html+3 −3internal/calls/templates/home.html+11 −1internal/calls/templates/index.html+8 −8internal/calls/templates/join.html+8 −8internal/calls/templates/layout.html+6 −4internal/calls/templates/link_once.html+3 −3internal/calls/templates/meeting_settings.html+5 −5internal/calls/templates/native.html+4 −4internal/calls/templates/partials/meeting-options.html+3 −3internal/calls/templates/room.html+10 −10internal/calls/templates/settings.html+7 −7internal/calls/templates/share.html+2 −2internal/calls/templates/signedout.html+1 −1internal/calls/templates/signin.html+14 −24internal/calls/templates/welcome.html+2 −2internal/callstest/api_test.go+2 −2internal/callstest/chrome_test.go+26 −15internal/callstest/confirm_test.go+2 −2internal/callstest/harness_test.go+15 −1internal/callstest/join_test.go+12 −12internal/callstest/signin_test.go+25 −24internal/callstest/vendored_test.go+57 −9test/browser/call.mjs+12 −3test/browser/door.mjs+62 −0test/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.mdLoading diff…
MakefileLoading diff…
api/v1.jsonLoading diff…
gen/api.goLoading diff…
gen/locales/packs.goLoading diff…
gen/locales/packs_test.goLoading diff…
gen/router.goLoading diff…
go.modLoading diff…
go.sumLoading diff…
internal/calls/app.goLoading diff…
internal/calls/auth.goLoading diff…
internal/calls/chrome.goLoading diff…
internal/calls/credits/notices.jsonLoading diff…
internal/calls/handlers_join.goLoading diff…
internal/calls/home.goLoading diff…
internal/calls/home_connect_item_test.goLoading diff…
internal/calls/home_consumer_test.goLoading diff…
internal/calls/home_router_test.goLoading diff…
internal/calls/keymail_signin_test.goLoading diff…
internal/calls/native_auth_test.goLoading diff…
internal/calls/render.goLoading diff…
internal/calls/serving.goLoading diff…
internal/calls/signin.goLoading diff…
internal/calls/signin_admission.goLoading diff…
internal/calls/signin_browser_test.goLoading diff…
internal/calls/signin_door_calls_test.goLoading diff…
internal/calls/signin_door_contract_test.goLoading diff…
internal/calls/signin_door_forget_test.goLoading diff…
internal/calls/signin_door_helpers_test.goLoading diff…
internal/calls/signin_door_refusal_test.goLoading diff…
internal/calls/signin_door_remember_test.goLoading diff…
internal/calls/signin_door_return_test.goLoading diff…
internal/calls/signin_door_states_test.goLoading diff…
internal/calls/signin_door_team_test.goLoading diff…
internal/calls/signin_equal_work_test.goLoading diff…
internal/calls/signin_return.goLoading diff…
internal/calls/signin_timing_test.goLoading diff…
internal/calls/static/busy.jsLoading diff…
internal/calls/static/rastrillo.jsLoading diff…
internal/calls/static/select.jsLoading diff…
internal/calls/static/theme.cssLoading diff…
internal/calls/static/tokens.cssLoading diff…
internal/calls/team_access.goLoading diff…
internal/calls/team_fixture_test.goLoading diff…
internal/calls/team_home_only.goLoading diff…
internal/calls/templates/agent_once.htmlLoading diff…
internal/calls/templates/confirm.htmlLoading diff…
internal/calls/templates/credits.htmlLoading diff…
internal/calls/templates/errors.htmlLoading diff…
internal/calls/templates/guest.htmlLoading diff…
internal/calls/templates/home.htmlLoading diff…
internal/calls/templates/index.htmlLoading diff…
internal/calls/templates/join.htmlLoading diff…
internal/calls/templates/layout.htmlLoading diff…
internal/calls/templates/link_once.htmlLoading diff…
internal/calls/templates/meeting_settings.htmlLoading diff…
internal/calls/templates/native.htmlLoading diff…
internal/calls/templates/partials/meeting-options.htmlLoading diff…
internal/calls/templates/room.htmlLoading diff…
internal/calls/templates/settings.htmlLoading diff…
internal/calls/templates/share.htmlLoading diff…
internal/calls/templates/signedout.htmlLoading diff…
internal/calls/templates/signin.htmlLoading diff…
internal/calls/templates/welcome.htmlLoading diff…
internal/callstest/api_test.goLoading diff…
internal/callstest/chrome_test.goLoading diff…
internal/callstest/confirm_test.goLoading diff…
internal/callstest/harness_test.goLoading diff…
internal/callstest/join_test.goLoading diff…
internal/callstest/signin_test.goLoading diff…
internal/callstest/vendored_test.goLoading diff…
test/browser/call.mjsLoading diff…
test/browser/door.mjsLoading diff…
test/browser/native-auth.mjsLoading diff…