Home spec 2026-11-19-smart-door.md step 6 for Equipo (web only), after Calls, Calendar, Slides, Sheets, Docs and Memoria, with every fix their reviews asked for built in up front, each with a test. native/ and the person API are untouched. Not for merge: it needs the highest-model review and copy review.
The bump (one change)
- rastrillo v0.30.3 → v0.43.0; connect + handoff e9829fd/e03a01a → Home main 150d94e; estilo (indirect 260f98c) → direct 468fab1.
go mod tidy also: x/crypto 0.55, x/sys 0.47, x/text 0.41, x/mod 0.38, x/sync 0.22, x/tools 0.48, go-sdk 1.8.0, fsnotify 1.10.1; new indirect fiesta 1.5.0, tdewolff minify v2.24.19 + parse v2.8.16, and github.com/carlosframework/rastrillo v0.23.0 (estilo chrome still imports the old path, as in every app). rastrillo doctor --fix: tokens.css, shell.css/js, rastrillo.js, live.js, busy.js, select.js, datetime.js, calendar.js re-copied; fiesta.js, transition.js, copy.js added. layout.html links fiesta.js right after rastrillo.js (v0.34). Doctor's other notes, not acted on: migrate-templates would add $L to 27 templates (old syntax still renders; left to avoid churn with the busy branches); "layout still has the old phone menu card or back strip" (one-header-row upgrade, a separate change).- Locale pack: Equipo already linked
locales/en. chromedp: already on v0.21. Minified assets: TestRastrilloUpgradeContract now compares each served file with what rastrillo.Assets serves for the library's copy. - Migrations: Home linkstore 0003choiceproofs (additive, in BootSchema). Nothing of Equipo's own.
The door (internal/equipo/door, a package of its own: internal/equipo had 3 lines of budget left)
SigninScreen + SigninOneWay, SigninPath /signin, ForgetPath /auth/forget. Every state is estilo-signin-screen over auth.SigninState, HideBrand, Equipo's estilo brand mark, the suite's sky; the tab title is rastrillo's. Drawn signed out: its own document, no sidebar, nav or account. The old stage-layout signin_page.html is gone.- Routes: Equipo's own, not connect's. Equipo never used connect's Routes/Bridge; it has its own Oficina ID flow (
oficinaid: /auth/home, the exchange, /auth/finish, the native exchange). So /signin, /signin/local, /signin/oficina are Equipo's handlers with connect's behaviour (door.go mirrors connect/door.go): /signin is the door (Oficina ID offered with Home), /signin/local email only, /signin/oficina?return_to= → /auth/home?return_to= (oficinaid's Start, which carries the page in the exchange), reauth → /signin/local?reauth=1. Standalone: email only; /signin/local and /signin/oficina not mounted. - The federated slot:
FederatedDoor{Provider: oficina, Href, Label: "Oficina ID", Icon: chrome.OficinaGlyph}, never on /signin/local or a step-up. The old "Sign in with Oficina ID" button is gone. - Admission probe (
door/routes.go) runs requireMember (Home Authenticate or rastrillo RequireSession, then the roster and session epoch) on a probe GET /: - web sessions only (magiclink, keymail, oficina-id); home-assertion-native and anything else never judged, refused, remembered or ended; - any 5xx is undecided: no refusal, nothing ended or forgotten, counts as signed in; - a 4xx is a refusal, except somebody no member yet with a pending invitation (MayVerify): left alone; an unreadable invitation store is undecided; - signed-in shortcut on /signin and /signin/oficina unless sent/err/force/reauth/continue. - Storage failures answer 503: oficinaid mapped every session-lookup error to ErrRefused, so a storage failure on an Oficina ID session answered the 400 "failed" page, indistinguishable from a refusal. New
ErrUnavailable → 503 + Retry-After (no rows/unlinked stay refused). - Removal at the door: the probe ends nothing; the door deletes the refused session's row and clears its cookie on its own response, forgets a remembered Oficina ID, keeps an email way, and draws the refusal on the plain door only (chooser and
?way= stay open). Never from the query. - Refusal: auth's
Refused (a link/Keymail that verified, Authorize said no) now draws the door with the refusal in a 403 instead of rastrillo's bare text. - Remembering: oficinaid
Finish gained a SignedIn hook (Equipo's MintHomeSession): strict probe of the minted session, federated record with the Equipo account's address from the guard, nothing carried over. - Return memory: Equipo keeps no cookie of its own; rastrillo v0.43 keeps the page across the email round trip (
rastrillo_return_to, spent at its own landing, reset by a post without one) and oficinaid carries it in the exchange. Added: the Oficina ID landing spends rastrillo's kept page (every landing that mints a session), Forget and both Sign outs clear it, a plain /signin forgets it, and /signed-out (and /account/home/* for Oficina ID) is never a page to land on. "Stripped even on a parse error" has no Equipo counterpart: Equipo never takes return_to off Begin's form (rastrillo forgets on a parse error itself). - Signed out:
/signed-out in both modes (standalone Sign out now lands there, not /signin), estilo's card plus "Forget me on this device"; with Home it posts chain=oficina → {issuer}/forget?return=<origin>/signed-out. After a Home sign-in it keeps Equipo's existing quiet "Sign out of Oficina ID too" link; without that link the card is estilo's estilo-signed-out byte for byte (tested). - Step-up:
/account/home/reauth now goes to /signin/local?force=1&reauth=1&…, never offering Oficina ID. Unlinked/failed Oficina ID pages link /signin/local?force=1. - No
sameAnswer: Equipo never had one; Begin's answers are rastrillo's own. [rst-seg-tabs]: no Equipo template uses seg-tabs, so v0.42's margin can't reach it.
Native
Untouched: native/, oficinaid/native.go, the native exchange and /api/v1. Native sessions (home-assertion-native) are never judged at the door (tested). The oficinaid change on a shared path: a storage failure while reading a web Oficina ID session is now 503; NativeSessionOn still maps every error to refused.
Credits
Equipo builds no credits page (no Colophon, no notices generator, no make credits), so there is nothing to regenerate. Fiesta, minify and parse arrive only as indirect modules.
Copy
- Added
signin.refused: "That email can’t sign in to Equipo. Use a different email, or ask whoever runs this team to add it." (Paul's approved Docs/Sheets pattern, Equipo's name). Marked COPY REVIEW PENDING with scripts/copy-status.py pending (row in the Plan 3 inventory). Equipo had no refusal copy before (rastrillo's bare text). - Reused:
id.title "Oficina ID" (rastrillo draws "Continue with Oficina ID"); id.home_signout "Sign out of Oficina ID too"; id.email "Sign in by email". - Removed:
id.door "Sign in with Oficina ID" (now rastrillo's "Continue with Oficina ID"); id.signed_out "You are signed out of Equipo." (now estilo's "You’re signed out" / "You’ve signed out of Equipo on this device."). - New from rastrillo/estilo (already approved): one-way door strings (Continue with Oficina ID, Continue as {address}, Other ways to sign in, Email, Back, Use a different email), "Forget me on this device". Tab titles: "Sign in to Equipo" (unchanged), new "Other ways to sign in to Equipo", "Problem signing in to Equipo", "Check your email to sign in to Equipo", "Signed out · Equipo".
- Nothing outside approved patterns. Known rastrillo nit: standalone
/signin?ways=1 typed by hand shows an empty chooser; nothing links to it.
Visual drift (main a883072e vs branch, Playwright Chromium forced light, 1280 and 390)
polish-audit/smart-door/equipo-bump/index.html. Outside the door nothing moves: /conversation, /work, /needs-you, /journey, /projects, /projects/new, /tasks, /connections, /people, /settings, /usage, /specialists/engineering are pixel-identical at both widths, apart from a sub-pixel difference in the composer's + button at 1280. The sign-in pages change on purpose, and every door state (Home) is in door/.
Tests
internal/equipo/door: probe classification over a stand-in guard (methods judged, 2xx/4xx/5xx/3xx, invitee, invitation error), the probe ends nothing, remembered only when admitted with the minted address and no carry-over, every landing and sign-out spends the kept page, the Oficina href rules, return paths, the chained Forget URL, static/estilo/ pinned to estilo's bytes, sky and mark served.internal/idtest/door_*_test.go through Equipo's real router and guard, both modes: every route/state with titles, /signin/local, /signin/oficina targets, signed-in shortcut, step-up local only, removed member ended at the door with the refusal and email record kept, refusal plain door only, refused Oficina ID session forgets the record, undecided (roster unreadable) → guard 503 and nothing ended, native never judged, verified stranger → 403 door, Oficina ID remembered with the Equipo address, confirm leaves the record, Forget (plain, chained, cross-site), signed out both modes, kept page, estilo contract over 9 states × 2 jars + refusal, signed-out card equals estilo's.TestBrowserSmartDoor (-tags browser, browser-rest lane): 12 states × 320/1280, forced light, no sideways scroll, 24px targets, glyph drawn. TestBrowserOficinaIDDoor follows the new /signin/oficina button.- 19 mutations, one per protection, each run against its test: all 19 caught.
- Updated:
TestIDDoorOffAndUnlinked, TestSigninNoProof (door, not stage), TestRastrilloUpgradeContract (v0.43, minified assets), oficinaid fixture gains linkstore 0003. Budget: equipotest test record 12013 → 12017. - Local (go1.26.11, macOS):
internal/equipo/..., idtest, thintest pass; staticcheck clean on the touched packages; govulncheck 0 affecting; budget size within. Known not mine (also fail on main a883072e on this Mac): team TestPublishCoreAuthorizationContract, equipotest runner/execution/release tests that need the Linux box, oficinaid TestNativeSessionAbsoluteLifetime (timing flake, 4/40 on main). Expected red: TestPlan3ReleaseBoundaries/inventory reads the new pending row as unreviewed: the copy gate, until Copy or Paul accepts signin.refused. Hub CI result follows.