Hub CI on 567381e passed (make ci: vet incl. both browser-tagged packages, gofmt, go test ./..., migration check). No estilo branch was needed (Calendar's credits are generated, not catalogued). Push token revoked. Not merged, not deployed; waiting on the highest-model review and copy review.
Smart door (Home step 6): Calendar adopts rastrillo's one-way sign-in screen in estilo's door open
On branch feat/smart-door
Home spec 2026-11-19-smart-door.md step 6 for Calendar (web only), following Docs (2e21630, #139), Sheets (66e5391, #71) and Slides (d2e830f, #49), with every fix those reviews asked for built in up front, each with a test. native/ and native.go are untouched. Not for merge: it needs the highest-model review (AGENTS.md §Review) and copy review.
The bump (one change)
- rastrillo v0.27.1 → v0.42.0; connect 14c83d7 + handoff ff16bf5 → Home main 150d94e; estilo 260f98c → main 468fab1.
go mod tidy(go line 1.25 → 1.26; chromedp v0.21 + cdproto v0.158.6; go-sdk 1.8.0; go-json-experiment c27c302; new indirect fiesta 1.5.0, tdewolff minify v2.24.19 + parse v2.8.16, x/tools).
The door
SigninScreen+SigninOneWay,SigninPath = connect.SigninPathin both modes (with Home it was/signin/local, MIGRATING item 3),ForgetPath = /signin/forget. Every state isestilo-signin-screenoverauth.SigninState(signin.go); tab title is rastrillo's (PageData.WholeTitle). Every door is drawn signed out (no nav/account), even for a session it has just refused.- With Home:
/signin→SigninDoor,/signin/local→SigninLocal(underLocalGuard),/signin/oficina→SigninOficina, all behindadmittedOnly; choose page mounted. Standalone:/signinis email only;/signin/local,/signin/oficina, choose answer 404. - Admission probe (signin_admission.go) replaces
homeSignin/teamSignin: requirePerson (Calendar's real gate: identity, allowlist recheck, Home link, roster) on a probeGET /. Any 5xx is undecided. Two Calendar-specific points: - requirePerson's Home branch answered 404 on a storage failure, which the probe would read as a refusal.homePersonnow classifies storage (linkstoreErrStorage, a non-not-found DB error) and requirePerson answers a no-store 503 (homeUnavailable). This changes what a page shows on that failure (404 → 503). - The probe is side-effect free for sign-out: team mode'soffboardrevoked the session even under the probe, sorememberOficina's strict probe killed a removed member's freshly minted session and they landed on a plain door with no reason. offboard now skips its sign-out under the probe (probing); the door's caller ends what it refuses. - The per-route standing gate is deliberately not in the probe: it sends an unlinked local account to/account/home, a way on, not a refusal. - Refusal / removal: refused session → refusal (Paul's wording); a session the roster says is off the team (probe saw offboard's redirect) → Calendar's existing removal sentence;
?err=removedkeeps working, team mode only. Both in the app-problem slot, plain door only; cookie cleared on the door's response; remembered Oficina ID forgotten, email way kept.?err=refusedtyped in shows nothing. - Remembering:
MintHomeSession→rememberOficina, strict admission of the session just minted (admittedAs),connect.MintedPersonaddress, none for a Home-only member, no carry-over. - Return memory (signinreturn.go, Home only, ported from Sheets: sealed under Home's DEK, `Host-oficina-calendar-home-return
, 10 min): Begin never seesreturnto(even on a parse error), a post without one resets to/, plain/signin/localkeeps and carries the page,/signed-outreads as/, Forget and Sign out clear it, landing at/auth/local/completeonce. Standalone, rastrillo carriesreturn_to` itself. - Signed out:
connect.PageFor("signedout")+.Forgetting; with Homechain=oficina→{issuer}/forget?return=<origin>/signed-out; standalone no chain.
API changes handled
- connect (14c83d7 → 150d94e):
Routes.Signinremoved → three routes;PageDataown struct +ForgetAction; link step-up is/signin/local?reauth=1;Config.Admitrequired withHomeOnly/Unlinked(connect.New refused team mode at boot) →teamAdmit, choose page (/account/home/choose) in connect's English (home.html);OAuthContinuation/renderKeymail/oauth.html gone (Keymail continues on the door at/signin?continue=);LocalLandingPathset to/. - rastrillo v0.27.1 → v0.42.0: English locale pack linked (serving.go; v0.29 refuses to boot without it); chromedp v0.21 port of 6 browser files (
browser_steps_test.go:evalInto,command,setCookie,deviceMetrics); v0.31 minified assets (no Calendar test pinned served bytes); v0.38 Sent'sattempt=(oracle tests mask it); v0.39 unknown subject (Calendar sets noSubjectFor). - rastrillo doctor: still refuses, documented rather than fixed: go.mod requires
github.com/carlosframework/rastrillov0.23.0 for native.go's bridge to rastrillo/native/server (native work, not mine). tokens.css (Fiesta 1.5.0), select.js and datetime.js re-copied by hand fromui.VendoredAssets; the library's newer scripts (fiesta, live, anchor, light, transition, copy) aren't linked by the layout and are recorded invendoredIsMineas absent (as Slides). Calendar keeps its own calendar.js; the new datetime.js looks upwindow.fiestaCalendarand falls back to the native picker when absent, as before.go run ./scripts/writeestilorewrote theme/chrome/busy/shim from estilo 468fab1. AGENTS.md updated. - Migrations: Home linkstore
0003_choice_proofs(additive, applied at boot with Home configured). None of Calendar's own;migration checkagrees.
Colophon
Calendar's /help/open-source is not estilo's colophon catalog: it's credits/notices.json from estilo's oficina-notices/credits/catalog over the production package graph (make credits, pinned by TestCreditsMatchProductionDependencies). No per-app "uses" notes exist, so no estilo branch. Regenerated: + Fiesta v1.5.0, minify v2.24.19, parse v2.8.16; rastrillo, go-sdk, json bumped.
Copy review
Changed
- Refusal → Paul's approved wording: "That email can’t sign in to Calendar. Use a different email, or ask whoever runs this team to add it." (was "That address can’t sign in to Calendar. Use a different address, or ask whoever runs this team to add it.").
Kept (Calendar's existing sentence, now in the app-problem slot): "You’re no longer on this team, so its calendar is closed to you. If that’s a mistake, ask a team owner." Not new, but not one of the approved door patterns: flagging so copy review can decide whether it should follow Slides' "Your access has been removed…".
Added (reused, already approved)
- "Oficina ID" (a name); rastrillo draws "Continue with Oficina ID".
- Team choose page, connect's English word for word: "Welcome to the team" / "Do you already have an account here that signs in with email? Connect it, and your Oficina ID will open it from now on. If you’re new here, continue with Oficina ID." / "Connect my existing account" / "I’m new here — continue with Oficina ID".
- Signed out: estilo's "Forget me on this device".
Removed (rastrillo's approved copy covers them)
- "Too many attempts. Wait a few minutes, then try again." · "That does not look like an email address." · "That link has expired. Ask for a new one." · "That link did not work. Ask for a new one." · "Your Keymail sign-in couldn’t be completed. Enter your email to get a link instead." · confirm lede "Select Sign in to finish signing in." · Keymail page body "Taking you to Keymail to finish signing in."
Now rastrillo's words where estilo's were: heading "Sign in" → "Sign in to Calendar"; label "Email address" → "Email"; help line "We’ll email you a link… 15 minutes." gone; submit "Sign in" → "Continue"; Sent "If that address can sign in here, we’ve sent it a link…" → "We sent a link to your inbox. The link works once and expires soon."; "Use a different address" → "Use a different email"; Keymail continuation → "Taking you to Keymail" / "Taking you to Keymail to confirm it's you." / "Continue to Keymail"; outside team mode ?err=removed now reads rastrillo's "Something went wrong. Try again." (was "That link did not work. Ask for a new one.").
Tab titles: "Sign in · Calendar" → "Sign in to Calendar"; "Check your email · Calendar" → "Check your email to sign in to Calendar"; new "Other ways to sign in to Calendar", "Problem signing in to Calendar", "Taking you to Keymail to sign in to Calendar"; "Signed out · Calendar" unchanged.
Tests
New in internal/calendar: signin_door_{states,refusal,remember,return,contract,team,helpers}_test.go and signin_browser_test.go (-tags browser, added to make vet and make browser):
- every route and state with Home (21 states, titles) and standalone; no Oficina ID standalone; 404s; signed-in shortcuts; confirm step both modes;
- refusal: wording; plain door only (chooser still has Oficina ID); cookie cleared on the response; Oficina ID forgotten, email kept; no loop; bar drawn signed out;
/signin/oficinafor a refused session starts the exchange; standalone refusal; auth'sRefused403 for a link confirmed after the allowlist changed; - undecided: people table unreadable → page 503,
/signinno refusal/no cookies/session and record kept, strict probe refuses; same in team mode; - remembering: resolved address, no carry-over, nothing for unknown or a refused linked person,
rememberOficinajudges the minted session not the request's, confirm leaves the record alone; - Forget chained to id.*, cross-site refused, standalone no chain, sign-out lands on /signed-out;
- return memory: landing (Home) and rastrillo's carry (standalone);
/signin/localkeeps; reset withoutreturn_to; parse error;//evil,https://evil,/\evil,/signed-out(?x),/signin,/auth/…; tampered/expired/duplicated cookies; Forget and Sign out clear it; - step-up:
reauth=1+return_tosurvive a bad address and Sent; link step-up end to end (stale →/signin/local?reauth=1→ email →/account/home); - estilo contract (
[estilo-signin-screen] > sectionholds only the door) over 9 states + refusal + removal + confirm + standalone; - team: member chooses ("new" → Home-only session remembered with no address; "connect" → email-only door; no proof → 403), stranger gets no choice, removed member at the door (removal, cookie cleared, record forgotten, re-sign-in remembers nothing and is offboarded on the first page).
- 22 mutations, one per protection, each seen to fail its test. One not caught on its own:
admittedOnly'swithoutCookie(the refused session is already revoked before connect looks, so it's belt-and-braces).
Existing tests updated for the door (Sent's attempt, the continuation on the door, choose page in the team fixture, /signin/oficina to start exchanges, reauth=1, the session cookie picked by name in signInOverHTTP).
Local: make ci passes (vet incl. both browser-tagged packages, gofmt, go test ./..., migration check). Browser, headless Chrome for Testing forced to light (RASTRILLO_CHROME wrapper with --blink-settings=preferredColorScheme=1; the door test also forces light via Emulation.setEmulatedMedia), TMPDIR=/tmp: make browser passes (Playwright quick add/booking/views/week, NoZoomOnTap, narrow screens, production CSP, and TestSmartDoorInABrowser: 16 states × 320/1280px, no sideways scroll, 24px targets, glyph drawn; screenshots checked). TestBrowserWalk (not in make browser) still fails at its first sign-in, as AGENTS.md records for main.
Not checked: how the bump's tokens.css (Fiesta 1.5.0) and estilo chrome re-copy change pages outside the door; Slides found small shifts (#49).
Calendar moves to the smart door, as Docs, Sheets and Slides did: rastrillo v0.42.0 + connect/handoff 150d94e + estilo 468fab1 in one bump; /signin is the door with Continue with Oficina ID, behind a probe of requirePerson; Oficina ID remembered for admitted sessions; Forget chained to id.*; team mode gains connect's Admit and choose page. Needs highest-model review + copy review; not for merge.
Fable's fixes are in 5dde63b. Hub CI passed on it. make ci and make browser pass locally (headless Chrome for Testing forced to light, TMPDIR=/tmp).
- Toolbar +18px (MEDIUM): fixed.
[cal-bar] > nav { margin-block-end: 0; }in calendar.css. It is the same element as[rst-seg-tabs], but the guardTestOurCSSDoesNotClaimAnotherPrefixforbidsrst-selectors in calendar.css, so it is targeted as the toolbar's one nav. Measured against origin/main on/day: - at 390 the grid starts at the same y (407 = 407); - at 1280 it starts 2.1px lower (199.6 → 201.75): that is the taller view tabs (32.75 → 36px, in the drift below), not the margin. - Visual drift from the bump, recorded for Paul (https://pauls-macbook-pro-2.tail76ffb7.ts.net:10006/calendar-bump/). All of it comes from rastrillo v0.42's tokens.css (Fiesta 1.5.0) and the estilo 468fab1 re-copy, not from the door: - form-foot buttons 44 → 42.4px at 1280, and 46.8 → 52.4px at 390; - the notes textarea is shorter; - the All day row and the date button are taller; - view tabs 28.8 → 32px, with a shadow on the current tab; - the account menu's Appearance is now a three-icon control; - Export links 27 → 32px; - Open source gains Fiesta (with minify and parse).
- Probe and session kinds: fixed by skipping.
doorJudgesonly judgeshome-assertion(web),magiclinkandkeymail, the methods requirePerson speaks for (homeSignin/teamSignin's set). Any other session (connect'shome-assertion-native/ native-web, a guest) is treated as signed in and never refused or ended by the web door. Test:TestTheDoorNeverJudgesANativeSession, Home and team mode; it fails with the skip removed. - Tests (
signin_door_gaps_test.go): - a removed member at/signin/local(removal shown, cookie cleared) and at/signin/oficina(session ended, exchange starts); - a team Home session for nobody (refusal, session ended); - an unlinked local account in team mode (/signin→/→/account/home, no refusal); - a refused session on/signin?sent=1and?err=expired(session ended, no refusal drawn). - Nits: - the blank line before Logs in AGENTS.md is back, and a stray one inside the rastrillo list is gone; - the stale
signin.goreferences are fixed; -App.Closeis back in app.go;NextDueandHandlermoved to serving.go to keep app.go under the 300-line cap. - Makefile:
RASTRILLO_CHROMEnow finds eitherChromium.apporGoogle Chrome for Testing.appthrough the shell, because the path has spaces and make'swildcard/firstwordsplit on them.
Also: TestNoZoomOnTap was intermittent (2 runs in 5) after the chromedp v0.21 port. The public booking page submits its own zone guess on load (booking.js setupZone), which raced the test's reload. v0.21 reports the aborted load; v0.14 hid it. The test now opens the page with ?zone=UTC, so nothing auto-submits. It passed 10 runs in 10.
Push token revoked. Not merged.
Review: Claude Fable (claude-fable-5-2). 567381e: APPROVE AFTER FIXES (no security findings; 18px toolbar gap; session-kind skip; team-mode tests; nits). 5dde63b: APPROVE. Copy: all approved patterns; the removal sentence is Calendar's existing wording, unchanged. The visual drift is recorded above; Paul's comparison is at :10006/calendar-bump/.