Smart door (Home step 6): Memoria adopts rastrillo's one-way sign-in screen
Home spec 2026-11-19-smart-door.md step 6 for Memoria (web only), after
Docs (#139), Sheets (#71), Slides (#49), Calendar (#48) and Calls (#46),
with every fix their reviews asked for built in, each with a test.
native/, native.go and the rastrillo/native pin are untouched.
The bump, one change: rastrillo v0.27.1 -> v0.43.0; home/connect and
handoff 14c83d7/ff16bf5 -> Home main 150d94e; estilo 260f98c -> main
468fab1. chromedp v0.14 -> v0.21 (browser tests ported, Slides'
helpers), go-sdk 1.8.0, new indirect fiesta 1.5.0, tdewolff minify and
parse, x/tools.
- The door: SigninScreen + SigninOneWay, BeginPath /auth/begin,
ForgetPath /signin/forget, every state estilo-signin-screen over
auth.SigninState, drawn signed out, titled with rastrillo's words.
With Home: /signin SigninDoor, /signin/local SigninLocal (LocalGuard),
/signin/oficina SigninOficina, under Home's session middleware and
the admission probe; the member choice at /account/home/choose.
Standalone: /signin is the email door; the rest answer 404.
- Admission probe (signin_admission.go): requireSession on a probe
GET /, web sessions only (magiclink, keymail, home-assertion), any
5xx undecided; offboard skips its sign-out under the probe, and the
door ends what it refuses. A Home link that cannot be read is now a
no-store 503 (was a 404 the probe would read as a refusal).
- Refusal and removal in the app-problem slot, plain door only; the
refused session's cookie cleared on the door's response; Oficina ID
forgotten, an email way kept. Refusal reworded to Paul's approved
pattern.
- Remembering: MintHomeSession -> rememberOficina, strict probe of the
minted session, connect.MintedPerson's address, nothing carried over.
- Return memory: beginSignin takes return_to off Begin's form (even on
a parse error), keeps it, forgets on a post without one, and puts it
back on Begin's redirect; plain /signin/local carries the kept page;
/signed-out is never kept; landings spend it before answering;
Forget and Sign out clear it.
- beginGuard (gate 33) answers a stranger with rastrillo's
AnswerAsSent, Begin's own Sent without the mail (a plain ?sent=1 now
lacks the attempt an owner gets); its address check answers in
Begin's shape, keeping force and reauth. No sameAnswer existed here.
- Signed out: connect.PageFor + Forgetting, chained to id.* with Home;
/signed-out answers in both modes.
- Team mode: connect.Admit (teamAdmit) and the choose page.
- connect's OAuthContinuation and Memoria's Keymail page are gone
(Keymail continues on the door). English pack linked. Templates on
the localizer-first syntax (migrate-templates; 15 rendered pages
byte-identical but for timestamps); fragments get ui.Funcs. Sky v3.
tokens.css and estilo files re-vendored; credits regenerated (+
Fiesta, minify, parse). rastrillo doctor still refuses: native.go's
old-path import (AGENTS.md).
- Migrations: connect linkstore 0003_choice_proofs (additive, applied
at boot with Home configured).
Tests: signin_door_{states,refusal,remember,return,forget,contract,
team}_test.go and TestSmartDoorInABrowser (-tags browser, 17 states at
320/1280, forced light); existing tests moved to the door. 30
mutations, one per protection: 29 caught, 1 survives by design
(admittedOnly's cookie strip, belt-and-braces as on Calendar).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md+42 −9Makefile+8 −4go.mod+14 −14go.sum+26 −30internal/memoria/app.go+49 −10internal/memoria/auth.go+62 −60internal/memoria/chrome.go+14 −1internal/memoria/chrome_test.go+53 −18internal/memoria/credits/notices.json+54 −5internal/memoria/handlers.go+0 −228internal/memoria/home.go+30 −23internal/memoria/home_consumer_test.go+1 −1internal/memoria/home_linked_test.go+4 −4internal/memoria/home_render.go+39 −8internal/memoria/home_router_test.go+9 −7internal/memoria/native_exchange_test.go+1 −1internal/memoria/render.go+5 −3internal/memoria/return.go+170 −19internal/memoria/serving.go+5 −0internal/memoria/signin.go+323 −0internal/memoria/signin_admission.go+302 −0internal/memoria/signin_browser_test.go+226 −0internal/memoria/signin_door_contract_test.go+150 −0internal/memoria/signin_door_forget_test.go+83 −0internal/memoria/signin_door_helpers_test.go+304 −0internal/memoria/signin_door_refusal_test.go+307 −0internal/memoria/signin_door_remember_test.go+158 −0internal/memoria/signin_door_return_test.go+250 −0internal/memoria/signin_door_states_test.go+231 −0internal/memoria/signin_door_team_test.go+155 −0internal/memoria/signinoutcome_test.go+0 −33internal/memoria/static/busy.js+154 −38internal/memoria/static/chrome.css+470 −4internal/memoria/static/chrome.js+116 −1internal/memoria/static/rastrillo.js+197 −22internal/memoria/static/theme.css+116 −0internal/memoria/static/tokens.css+2,012 −273internal/memoria/team_access_test.go+8 −4internal/memoria/team_config_test.go+4 −2internal/memoria/team_fixture_test.go+32 −0internal/memoria/team_home_only.go+28 −4internal/memoria/team_survivors_test.go+6 −3internal/memoria/templates/credits.html+1 −1internal/memoria/templates/error.html+1 −1internal/memoria/templates/home.html+12 −1internal/memoria/templates/layout.html+6 −4internal/memoria/templates/results.html+5 −5internal/memoria/templates/signin.html+17 −21internal/memoria/templates/signin_oauth.html+0 −11internal/memoriatest/admission_test.go+1 −1internal/memoriatest/answer_browser_test.go+21 −21internal/memoriatest/browser_steps_test.go+132 −0internal/memoriatest/chrome_client_test.go+1 −1internal/memoriatest/chrome_test.go+26 −10internal/memoriatest/copy_browser_test.go+14 −16internal/memoriatest/csp_browser_test.go+14 −17internal/memoriatest/door_helpers_test.go+58 −0internal/memoriatest/errors_gate_test.go+2 −0internal/memoriatest/footer_model_test.go+5 −1internal/memoriatest/reflow_browser_test.go+4 −4internal/memoriatest/resultlink_browser_test.go+14 −14internal/memoriatest/routes_test.go+23 −13internal/memoriatest/rows_browser_test.go+24 −23internal/memoriatest/settle_browser_test.go+13 −13internal/memoriatest/signin_confirm_test.go+1 −1internal/memoriatest/signin_door_test.go+16 −11internal/memoriatest/signin_keymail_test.go+43 −36internal/memoriatest/signindial_test.go+6 −3internal/memoriatest/signinoutcome_test.go+64 −67internal/memoriatest/zoom_browser_test.go+27 −15
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/memoria/ ./internal/memoriatest/ === fmt === === test === go test ./... ? amadan.net/oficina/memoria/cmd/memoria [no test files] ? amadan.net/oficina/memoria/cmd/memoria-contract [no test files] ok amadan.net/oficina/memoria/internal/memoria 12.770s ok amadan.net/oficina/memoria/internal/memoria/chunk 0.004s ok amadan.net/oficina/memoria/internal/memoria/fact 0.686s ? amadan.net/oficina/memoria/internal/memoria/icons [no test files] ok amadan.net/oficina/memoria/internal/memoria/index 0.060s ok amadan.net/oficina/memoria/internal/memoria/notion 0.036s ok amadan.net/oficina/memoria/internal/memoria/provider 10.647s ok amadan.net/oficina/memoria/internal/memoria/query 0.003s ok amadan.net/oficina/memoria/internal/memoria/seal 0.002s ok amadan.net/oficina/memoria/internal/memoria/sibling 3.043s ? amadan.net/oficina/memoria/internal/memoria/teamstate [no test files] ok amadan.net/oficina/memoria/internal/memoriatest 5.202s ? amadan.net/oficina/memoria/scripts/writeestilo [no test files] ? amadan.net/oficina/memoria/tools/bench [no test files] ? amadan.net/oficina/memoria/tools/drive [no test files] ? amadan.net/oficina/memoria/tools/seed [no test files] ? amadan.net/oficina/memoria/tools/vendorassets [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
AGENTS.mdLoading diff…
MakefileLoading diff…
go.modLoading diff…
go.sumLoading diff…
internal/memoria/app.goLoading diff…
internal/memoria/auth.goLoading diff…
internal/memoria/chrome.goLoading diff…
internal/memoria/chrome_test.goLoading diff…
internal/memoria/credits/notices.jsonLoading diff…
internal/memoria/handlers.goLoading diff…
internal/memoria/home.goLoading diff…
internal/memoria/home_consumer_test.goLoading diff…
internal/memoria/home_linked_test.goLoading diff…
internal/memoria/home_render.goLoading diff…
internal/memoria/home_router_test.goLoading diff…
internal/memoria/native_exchange_test.goLoading diff…
internal/memoria/render.goLoading diff…
internal/memoria/return.goLoading diff…
internal/memoria/serving.goLoading diff…
internal/memoria/signin.goLoading diff…
internal/memoria/signin_admission.goLoading diff…
internal/memoria/signin_browser_test.goLoading diff…
internal/memoria/signin_door_contract_test.goLoading diff…
internal/memoria/signin_door_forget_test.goLoading diff…
internal/memoria/signin_door_helpers_test.goLoading diff…
internal/memoria/signin_door_refusal_test.goLoading diff…
internal/memoria/signin_door_remember_test.goLoading diff…
internal/memoria/signin_door_return_test.goLoading diff…
internal/memoria/signin_door_states_test.goLoading diff…
internal/memoria/signin_door_team_test.goLoading diff…
internal/memoria/signinoutcome_test.goLoading diff…
internal/memoria/static/busy.jsLoading diff…
internal/memoria/static/chrome.cssLoading diff…
internal/memoria/static/chrome.jsLoading diff…
internal/memoria/static/rastrillo.jsLoading diff…
internal/memoria/static/theme.cssLoading diff…
internal/memoria/static/tokens.cssLoading diff…
internal/memoria/team_access_test.goLoading diff…
internal/memoria/team_config_test.goLoading diff…
internal/memoria/team_fixture_test.goLoading diff…
internal/memoria/team_home_only.goLoading diff…
internal/memoria/team_survivors_test.goLoading diff…
internal/memoria/templates/credits.htmlLoading diff…
internal/memoria/templates/error.htmlLoading diff…
internal/memoria/templates/home.htmlLoading diff…
internal/memoria/templates/layout.htmlLoading diff…
internal/memoria/templates/results.htmlLoading diff…
internal/memoria/templates/signin.htmlLoading diff…
internal/memoria/templates/signin_oauth.htmlLoading diff…
internal/memoriatest/admission_test.goLoading diff…
internal/memoriatest/answer_browser_test.goLoading diff…
internal/memoriatest/browser_steps_test.goLoading diff…
internal/memoriatest/chrome_client_test.goLoading diff…
internal/memoriatest/chrome_test.goLoading diff…
internal/memoriatest/copy_browser_test.goLoading diff…
internal/memoriatest/csp_browser_test.goLoading diff…
internal/memoriatest/door_helpers_test.goLoading diff…
internal/memoriatest/errors_gate_test.goLoading diff…
internal/memoriatest/footer_model_test.goLoading diff…
internal/memoriatest/reflow_browser_test.goLoading diff…
internal/memoriatest/resultlink_browser_test.goLoading diff…
internal/memoriatest/routes_test.goLoading diff…
internal/memoriatest/rows_browser_test.goLoading diff…
internal/memoriatest/settle_browser_test.goLoading diff…
internal/memoriatest/signin_confirm_test.goLoading diff…
internal/memoriatest/signin_door_test.goLoading diff…
internal/memoriatest/signin_keymail_test.goLoading diff…
internal/memoriatest/signindial_test.goLoading diff…
internal/memoriatest/signinoutcome_test.goLoading diff…
internal/memoriatest/zoom_browser_test.goLoading diff…