oficina / home Public
π€ The Oficina home
The suite's glue: identity, directory, provisioning, person preferences. Consumed by oficina/sheets and oficina/docs. It is not an application and holds no documents.
This file is binding. Where it disagrees with a general skill, this file wins. Where it disagrees with the design spec, the spec wins and this file is wrong β fix it in the same commit.
The design: docs/superpowers/specs/2026-08-30-home-design.md. Β§1 is the settled-decisions table: dated, attributed, with the rejected alternative beside each.
---
The one rule
> The home is glue: thin, blind, replaceable. It knows that you exist and > where your teams are. It never stores a readable address, and it never > retains what is in anything.
"Retains", amended from "learns" on 2026-09-05 β spec ruling 18 and design-activity-pull, approved that day. The falsifiable form is unchanged by that amendment β ruling 23 later changed it, and the form above is the current one. It means holds without a bound: the home does see titles and does keep them in RAM across requests, bounded by a TTL and a hard maximum; at rest is the unbounded case, and that is what it never does. "Blind" above is Factor XI's category label, not a claim it never sees one. Spec Β§0 carries the full gloss.
The falsifiable form: publish this database in full and the worst anyone learns is how many people exist, what their teams are called, which person refs belong to which team, and which of them own it. No document. No cell. No readable address.
"And which of them own it" arrived with ruling 23 and is the whole cost of the membership roster: an owner row names a person ref from one team plus a fact that is usually public, where the old wording needed several teams and an outside fact. Spec Β§0 and Β§3.3 carry the full reasoning.
Ruling 26 (Paul, 2026-11-19, smart-door spec) is the one place a readable address may leave Home, and it never comes to rest here:
> Home may seal the address this browser last proved (an opened link, a > Keymail callback) into a cookie on that person's own device, and render > it back only to the browser that presents it, on a no-store page. It > is never written at rest by Home: not to the database, a log, an error, a > metric or a queue. It is not evidence of identity, and the page that shows > it consults no store.
The falsifiable form above is unchanged by it. Under option (a) it also amends Β§4 and gate 5 (Identity, below) for exactly that one string: the door on id.* may render the address Home sealed itself (lastsignin's cookie, keyed from HOME_DEK under home/lastsignin/v1), shape-checked on read, escaped, as text and as a form field's value, and nothing else. It is not a licence to render a typed address, a query, a cookie Home did not seal, or any team, label or member name. A passkey sign-in keeps the remembered address only if its blind index resolves to the same person ref; otherwise it is blanked. Gates 1, 2, 5 and 9 are driven with a validly sealed canary cookie (door_gates_test.go). Only door.go holds the jar: every write goes through its narrow functions, and internal/guardstest refuses a .jar or a lastsignin name in any other production file. The pre-ship check that the carlos edge logs neither Cookie headers nor response bodies was done for this step (recorded on discussion #138); repeat it if the edge's logging changes.
Two absolutes were argued and lost, and stay lost: "never stores your address" β a magic link's address is at rest between send and click, sealed (Β§3.2), not absent β and "some unidentified person": a team-set fingerprint plus one outside fact names the row (Β§3.3).
Three gates enforce it (Β§12; Β§13 step 1 lists all three): a plaintext grep over the raw SQLite file and WAL plus this app's store objects, against a seeded corpus of known addresses; a no-address-at-rest test asserting the schema has no address column and that a full sign-in plus directory upsert plus rekey plus the roster seed verb leaves no readable address anywhere, WAL included; and no-content-in-logs (gate 9). Gate 9 needs no database β it scans strings, and cmd/home/main.go emits log lines β so it was never sequenced behind one, and it landed beside the skeleton. Gates 1 and 2 do need one, and it now exists: gate 1 scans the raw file, WAL and SHM for canaries, and gate 2 runs in two halves, a static read of every migration and a full sign-in asserted to leave no readable address anywhere. Gate 2's expensive half must be extended, not replaced, when the directory upsert, the rekey and the roster seed verb land β it asserts the sign-in third of its sentence today. A guard written after the code it guards is a guard written to pass. (Stated as the rule rather than as a status: which gates exist today is a question for git log, and a status line in a binding file is a sentence that goes stale without anyone noticing.)
---
The four things this service never does
Each of these is something somebody will propose, in good faith, as an improvement.
- *Never store content from an instance. No previews at rest, no sheet thumbnails, no cell values, no titles in a database, a log, an error string, a metric label or an on-disk cache. It may render, transiently and per request, and only to that person*, what an instance hands it for the person it hands it for β and nothing wider: no search over pulled content, no cross-person aggregation, no analytics, no operator view, and no retry queue holding a response body.
"Per request" does not forbid the cache the spec approves. design-activity-pull's Β§7 keeps pulled titles in RAM across requests, bounded by a refresh TTL and a hard maximum. Read alone, "transiently and per request" would rule that out, so read it with spec Β§0's gloss: retains means holds without a bound, at rest is the unbounded case, and the RAM hold is permitted because it is bounded and tested.
Amended 2026-09-05 from never render, on spec ruling 18. "Renders" was doing custody's work: the clause exists to stop the home becoming a place documents live, and storage is what makes it that. It also gained a test β spec Β§12's gates 1 and 9 grew a corpus of known titles, URLs and actor strings that day, so never stores has a grep behind it where never renders had none.
- Never hold a per-item grant. Which sheets you may edit, which document a guest may comment on: all instance-side, decided there on every request. The home does hold the membership roster β
(team, person_ref, role), ruling 23 β so it knows who is on a team and who owns it. It never knows what they may do with any particular thing. This replaced "never hold an authorization model" on 2026-09-05; the line moved from facts versus may-this-person to resources the home owns versus an instance's items, because the roster is a person-level entitlement the home now holds on purpose. - Never cross a team. Data does not cross a team label; a team's instances across apps are one trust domain (spec ruling 23, suite ruling 1). This replaced "never federate β data does not cross an instance boundary" on 2026-09-05: the boundary was drawn in the wrong place, since
acme.docsandacme.sheetsare the same team and always were. Sharing across teams is a guest grant on the instance, never a copy. Team standing is the roster, not a grant and not a directory row (spec Β§5.5, Β§6: a directory row never grants team standing whatever itskindsays). Β§6 keeps the two apart deliberately: "a row implying an org membership someone does not have is a lie the directory tells on the org's behalf". - Never become a support console. Reading someone's data to help them is precisely what rule 1 above forbids β "only to that person", "no operator view". It used to be the one rule; since the 2026-09-05 amendment "never retains" no longer reaches a console that displays without keeping, so the anchor moved and a reference left pointing at the one rule would rest on nothing.
And it stays small. Every proposed feature is weighed against "does this belong in an instance instead?" The answer is usually yes. This service has a suite-wide blast radius, and a home that grows features grows that radius.
---
Review β RULED 2026-08-30 by Paul
Every spec and every branch is reviewed by the highest-capability model available before it is approved or merged. Cheaper models draft; the most capable available reviews. A review by a weaker model than the author is not a review.
Record which model reviewed β in the spec's status line, and in the branch discussion for a branch. A review nobody can attribute is a review nobody can check. The model is discovered, not hardcoded; a session that cannot reach one at least as capable as the author's says so and waits.
---
Shipping cadence β RULED 2026-08-30 by Paul
Everything on a worktree, on a branch. Never directly on main.
- Branch per piece of work, cut from
main. - Commit regularly and push to the branch.
- Squash-merge to
mainonly when the work is done, it is approved (including the review pass above), and CI is actually green β checked, not assumed. Any one of the three missing means it does not merge.
Review on a deployed canary, never localhost.
Every branch gets a discussion, and that discussion is the review record β it survives a squash where a PR body does not. Tasks are a checklist, not a log. A refusal gets surfaced in the discussion, never routed around (amadan's own house rule, and the one most likely to be quietly ignored).
---
Mechanical rules
Identity
- The credential origin serves sign-in, WebAuthn, recovery and assertion minting, and never renders an account-authored string but one: ruling 26's carve-out (above, under option (a)), the address Home sealed into this browser's own cookie, on the door only. It is the relying party. This is a permanent constraint with its own test (gate 5, amended for the carve-out and still refusing every other string), not a naming choice.
- The RP ID is the full host β
id.oficina.worksβ asserted by a test. Never widen it to a registrable suffix. WebAuthn permits an RP ID that is a suffix of the origin's hostname, sooficina.workswould be accepted; it is also valid at every host in the zone, the directory and every team instance included, which collapses the very split the two origins exist to make (Β§4, rulings 2 and 13; the host itself is ruling 16). Note where the first door actually is:passkey.Confighas no RP ID field β the RP ID is alwaysOrigin's hostname β so the way to widen it is to widenOrigin, or to bypasspasskeyand build awebauthn.Configdirectly. The second door ispasskey.Config.LegacyRPID, passed straight through as an RP ID accepted for assertions only (registration never takes it), so it must stay empty unless a rename drill (Β§5.7) is actually running, and then hold a full host. The test asserts both:Origin's hostname is exactlyid.oficina.works, andLegacyRPIDis empty or a full host. Both are accepted silently, which is why neither can rest on care. - Assertions carry identity and display preferences, never authorization. The boundary test (Β§5.4) is two-sided: a claim may ride the assertion only if (a) the instance makes no trust decision based on it, validating against a closed enumerated set and treating a failed match as absent rather than as the raw value; and (b) the home already holds it for its own purposes, so carrying it adds nothing to what the home knows. Theme passes both. A role fails (a). "Which documents you can see" passes (a) and fails (b) β it hands the home a document-level graph it has no business holding.
- Do not restore "the instance would behave identically given a hostile value." Β§5.4 retracts it: a hostile theme gives an ugly page, which is different behaviour, so the test's own example fails it β and without (a)'s closed set, a free-string theme in CSS is an injection, not an ugly page.
- Assertion expiry is 120 seconds, not "seconds" β sized to worst-case cold wake plus clock skew, because the exchange request is what wakes a hibernating instance and a tighter window makes the first sign-in to any cold instance fail and loop. Widening it costs nothing against the threat model, because single-use
jtiis what stops replay, not brevity. The long-lived thing is the session the instance mints. - Every assertion names the app and instance host it is for. Without audience binding, team A's assertion replays against team B, and a deployment has thousands of siblings to replay against.
- Signed identity claims are trusted for identity; every other claim must be cosmetically failable. The subject flagrantly fails (a) β a hostile subject is account takeover β so the test must exempt identity by construction or it proves too much and gets argued around.
One narrow exception, added 2026-09-05 with ruling 23: roster_epoch. It is not a closed enumerated set and does not fail cosmetically, so it would fail test (a) as written. What admits it is that the instance decides nothing from it β an unparseable value is ignored, a differing value buys exactly one call-8 refetch, and call 8's answer is what is enforced. A builder following the test without this exception rejects a claim Β§5.3 now puts on every assertion. Spec Β§5.4 carries the reasoning.
- Any "prune when all consumers have caught up" is unbounded in a hibernating fleet. A dormant instance runs no timers to advance its cursor. Retention is a fixed horizon or a per-consumer TTL, never a slowest-consumer rule. This shipped twice in one spec before it was caught.
Data
- No address column exists, so there is none to accidentally populate. Addresses are learned transiently and hashed β and where one must survive a restart (a magic link between send and click), it is sealed before it is written, never cleaned up afterwards. Deleting a row does not erase bytes: SQLite leaves deleted pages and Litestream ships WAL frames continuously, so a transiently readable write reaches the bucket before any delete.
PRAGMA secure_deleteis on. - The session Subject is an opaque person ref, never an address. Corrected 2026-11-13, verified at pin
29e4491:rastrillo/auth.Config.SubjectForexists and can map a verified address to an opaque subject before session minting. Without that hook, auth defaults to the address insessions.subject;auth_sessionsstopped being written at v0.22.0 when rows moved to the shared sessions table. The hook does not fix link storage:auth.Newstill installsLinks: &linkStore{db: cfg.DB}, which writes readableauth_links.address. The older claim that no subject-remapping hook exists is stale; the sealed-link-store requirement from upstreamrastrillo/rastrillo#2 remains. Home keeps its sealed link store and opaque-subject session minting until both guarantees can be supplied upstream. Re-checked at v0.38.0:auth.Newstill defaults to&linkStore{db: cfg.DB}andauth.Schemastill has anaddresscolumn (its migrations are unchanged from v0.37.0); v0.36.0 addedauth.Config.BlindLinks, an app-supplied link store holding no address, aimed at #2. Home has not adopted it β switching is its own reviewed change, not a pin bump. Take classification and the Keymail upgrade fromkeymaildev/signindirectly, not fromauthβ corrected 2026-09-05:auth's classification is reachable only throughauth.Begin, which hardwiresLinks: &linkStore{db: cfg.DB}and writesauth_links.address, so "useauthonly for the parts that hold nothing" was never a thing that could be done.signin.Flowtakes aLinkStorethe app supplies, so the app seals what it stores. - The home hashes; instances never hold the pepper. A pepper on every instance makes one compromise an offline dictionary attack against the whole suite directory.
- Migrations are additive-only.
- No address, team name, queue payload, or pulled content β a title, a URL, an actor (added 2026-09-05 with Β§2.2's amendment) β in any log line, error string, job status message or metric label. Platform-held logs are storage we cannot grep.
Frontend
- Write the attribute spelling:
rst-btn, notclass="rst-btn"β spec ruling 20, 2026-09-05. Β§11 ruled the class vocabulary on 2026-08-30 and every reason it gave has since died, so it went back to Paul rather than being propped up with a third. rastrillo's design system rules "One spelling, not two. No permanent class fallback" and drops the class selectors before 1.0; this app has norst-markup yet, so it starts on the spelling that survives β free today, a sweep after the first template.
The seven utilities are the exception, and they are not a loophole. rst-sr-only, rst-mono, rst-m-hide, rst-grow, rst-nm, rst-danger and rst-cell-mut keep class=, because at v0.22.0 they have no attribute twin at all β five .rst-sr-only selectors, zero [rst-sr-only]. tokens.css's header says why ("Utilities keep the class spelling and are not pairedβ¦ they stay class after the move") and Β§6-v3 agrees ("class is for utilities and the app's own CSS"). Write <span rst-sr-only> and nothing matches, so screen-reader-only text renders visible. Kinds, variants and parts are attributes; these seven are classes. This is also what the 6 surviving class= occurrences in v0.22.0's partials are β utilities, not residue awaiting a flip.
Record the graveyard, so neither dead reason is revived: - "The attribute grammar is ruled but not released." Dead since v0.21.0, this repo's first pin. tokens.css there pairs every component rule with an attribute twin and says so in its own header: "TWO SPELLINGS, ON PURPOSE, FOR ONE RELEASE." The original claim β zero bare rst-* selectors against ~528 class occurrences β was verified on 2026-08-30 against v0.20.x, was true then, and was already false by the time the skeleton existed. No later bump falsified it. - "The partials we render alongside write classes." Dead at v0.22.0, the current pin, where the shipped partials flipped to the attribute spelling β rastrillo's design-system Β§6-v3 stage 2. Counted in ui/partials/ with template comments stripped, the class spelling falls from 124 occurrences at v0.21.0 to 6 at v0.22.0, replaced by the attribute spelling. (Count the class spelling, not the attribute one: class="rst-β¦" is unambiguous, while attribute-spelling totals move with how you treat valued attributes like rst-tone="β¦", and two careful counts of it disagreed.) callout.html at the pin is <div rst-callout rst-tone="β¦">. tokens.css's header still claims "the class spelling is what every app and every shipped partial writes today" β that sentence is stale upstream, and this file quoted it as evidence until it was checked. Re-check on every pin move, name the version you checked, and count both ui/tokens.css and ui/partials/ β checking one and not the other is how the second reason survived a pass that was looking for exactly this.
- rastrillo is
amadan.net/rastrillo/rastrillo(moved 2026-10-01), pinned at v0.38.0 in every module here β the root,connect,handoff,roster,dashboardandteammode(2026-11-20, from v0.26.1 and its 29e4491 pseudo-version by way of v0.37.0; smart-door spec step 3). v0.37.0 neededgo 1.26.0, so every module'sgoline moved with it; v0.38.0 needs the same.connectimports nolastsignin(check withgo list -deps ./...inconnect/). The old path,github.com/carlosframework/rastrillo, stops at v0.23.0: code importing it gets no fix, and its own checks cannot tell β Home's sign-in field zoomed iOS on every tap for a month that way (TestNoZoomOnTap,make test-browser).internal/guardstest'sTestNoPreMoveRastrilloforbids it in every module here; it stays in go.mod only as estilo's indirect requirement. Re-checked at v0.38.0 (tokens.css is Fiesta 1.5.0's; Fiesta since v0.34.0):ui/partials/has 13class="rst-β¦"occurrences, every one a utility from the seven (rst-m-hide,rst-nm,rst-danger,rst-sr-only,rst-mono); tokens.css still pairs the spellings (about 1,950 class selectors to 1,900 attribute ones, comments stripped) and still says "TWO SPELLINGS"; and none of the seven has an attribute twin. Nothing in the class-versus-attribute reasoning above moved. The CLI is a go.modtool: run it asgo tool rastrillo β¦, never arastrillofrom PATH.make releasestampsamadan.net/rastrillo/rastrillo.BuildVersion; the old symbol would leave/api/versionanswering "dev". rastrillo doctor.internal/home/static/tokens.cssis vendored, andTestVendoredAssetsMatchTheLibrary(noscript_test.go) is the standing gate: rungo tool rastrillo doctor --fixon every rastrillo upgrade rather than re-copying by hand. Since v0.34.0 doctor reads a tokens.css that differs from the library as a deliberate edit (this repo's test keeps novendoredIsMinelist) and leaves it alone, so rungo tool rastrillo doctor --fix --forceand check the gate. Then delete everything else it adds: at v0.37.0 and v0.38.0 that isshell.cssand twelve scripts (rastrillo.js,fiesta.js,live.js,busy.js,light.js,anchor.js,shell.js,transition.js,copy.js,select.js,datetime.js,calendar.js). Home serves none of them β its/static/busy.jsis estilo's β and rastrillo's shim still carries the old busy rule, which fights estilo'sbusy.jsover every submit.TestNoRastrilloShimBesideBusytakes its list fromui.VendoredAssets, so it fails if any is left on disk or served. Doctor's "Templates" section (the$Lrewrite) is about rastrillo's partials, which Home does not render; leave it.- What v0.37.0 changed under Home (each held by a test): passkey's recovery codes and Gate moved to
rastrillo/secondfactorat v0.27.1, which Home does not wire β Home mints, counts and redeems its codes itself on thepasskey_recovery_codestablepasskey.Schemastill creates, andsecondfactor.Schemamust never be merged (it copies those codes out and drops the table).webauthn.Config.Registerstopped requiring user verification, so Home refuses an attestation without it, on registration (TestIDRegistrationRefusesWithoutUserVerification) and on replacement (TestIDReplacementProofBinding/bad-uv).passkey.Schemagained0002_credential_details(ALTERspasskey_credentials); BootSchema is frozen in the admission and compatibility profiles, so it takespasskey/0001_initalone (passkeyFrozen, models.go), and the Linux-only profile tests are what catch a slip.rastrillo.Serverefuses to start without theenlanguage pack (internal/home/locales.go). rastrillo's default CSP allows no inline style since v0.27.0, so Home's policy matches it and the hop pages linkhandoff.css(andhandoff-noscript.cssinside<noscript>) instead of<style>blocks.db.Opendefaults tosynchronous(NORMAL)since v0.34.0;cmd/homeopens throughhome.OpenDatabase, which passesdb.DurableCommits()to keepFULL(TestOpenDatabaseCommitsDurablyreadsPRAGMA synchronous= 2). - What v0.38.0 changed under Home.
auth's andlastsignin's structs and one-way door are the release's API changes. Since smart-door step 5 the door (internal/home/door.go, withsignin.go) fills anauth.SigninStateitself and renders rastrillo'ssigninpartial in estilo'sestilo-signin-screen, and remembers the way in withlastsignin.New's jar; nothing else in Home imports either.passkey(for its Schema, Config and the door's module,passkey.JS()) linkslastsigninandsecondfactoritself. Home builds none of passkey's or auth's handlers (its ceremonies and sign-in are its own;passkeyCfgis kept only as the record the RP-ID guard reads), andinternal/guardstest'sTestHomeNeverMountsFrameworkSigninfails on a direct import ofsecondfactor; an import ofauthorlastsigninoutside the door's files, or any name of theirs beyond the state, its constants and the jar (doorImports: neverauth.New,auth.Configor a handler); or apasskey.New/passkey.Handlers, in production code.sessions,crypto,db,passkeyandwebauthn's Go are byte-identical,assertiononly moved its validators into an internal package,auth's migrations are unchanged, andkeymaildev/signinstays v0.1.1.webauthn.JS()gained conditional mediation, which a call withoutmediationnever uses. Fiesta 1.5.0's tokens.css declares the same day token names as 1.3.0, but moved two fallbacks Calma declares:--rst-focus-edgeto the accent (its one focus ring) and--rst-ghost-face-hoverto--rst-surface-2on the one-way door. estilo main487cadbdeclares both; Home pins it. Names are allTestVendoredAssetsMatchTheLibrarychecks, so a moved fallback passes here: re-check fallbacks in estilo on every bump (estilo AGENTS.md, Theme). Credits regenerated (make credits). v0.38.0's partials are bigger (signin.htmldoubled), and the renderer parsed every partial once per page, in every App the tests build: CI's race run ofinternal/homepassedgo test's 10-minute limit twice.newRenderernow parses the layout and the partials once and clones that tree per page (each clone carries its owndoorandhop); the race run fell from about 360 s to 150 s here. Keep it that way rather than raising the timeout (TestRendererClonesPerPageholds each page'sdoor,hop,layoutandcontentapart).rastrillo.Servegained endpoints outside Home's router:POST /_theme, which sets arastrillo_schemecookie without the__Host-prefix, andGET /_speculation-ruleswith aSpeculation-Rulesheader on every response, on both origins.home.ServeOptions(whatcmd/homehands Serve) setsNoSchemeSwitchandNoSpeculationRules;TestServeAddsNoFrameworkRoutesbuilds the handler Serve runs (rastrillo.Handler) and checks both hosts, with a control that turns them back on. CheckOptionsfor new defaults like these on every bump. - No script by default; script only to enhance, and always prefer none (Paul, 2026-09-29, replacing rulings 21/24's closed list of screens). Every screen works with scripts off β magic-link sign-in, recovery codes, the springboard, sign-out β and a script may be added to a page only to enhance it or to provide interaction HTML and CSS cannot: the passkey ceremonies (
webauthn.JS()plus a little glue, and on the door rastrillo's own module,passkey.JS()at/static/signin.mjs, which runs the passkey door and the email field's conditional UI against the direct ceremony's{ok,to}finish), the assertion handoff's auto-submit (its Continue button stays for script-off), and estilo's busy rule on every submit button (the spinner, the double-submit guard). Reach for HTML and CSS first; a script is the exception that has to earn its place, not a tool. Scripts are static same-origin files, never inline<script>, and every one Home serves is named innoscript_test.go's closed list β a rule with a list is checkable, a rule with an escape hatch is not. - The shared chrome (estilo spec shared-chrome, Β§12.1 row 8;
internal/home/chrome.go). Every page Home draws for a person sits under estilo's 52px bar, branded Oficina β except the public front page, which keeps its own design. On the directory a signed-in person has one account menu (Passkeys and Recovery codes on id., Appearance, Help β Open source, the one Sign out); id.'s pages are the door, with a brand-only bar: every one sits in the door's card, branded Oficina ID as its sign-in door is, its error page and hops included (Paul, 2026-11-20;doorPages,hopPages,id_error.html), Open source's long list being the one exception. Unknown routes get estilo's error page for a browser (Accept: text/html) and plain text otherwise. Calma's sky goes only on the door, the team home's header and the front page's hero. Home does not load estilo'schrome.js: its menus work without it, and the script rule above prefers none β the stated cost is that an open menu closes from its own trigger, not on Escape or a click outside.
Deploys
- One binary,
CGO_ENABLED=0, cgo-free SQLite. - A 200 is not a deploy verification. Only
X-Carlos-Versionon the canonical host, after the watch. - A promote is not a deploy. Until the process cycles, the old binary serves.
- Production is two carlos apps, neither called
home. The one binary runs asoficina(the directory, oficina.works) andoficina-id(the credential origin, id.oficina.works), both in accountoficina.homeis only the preview/canary app. A command written with--app homedeploys the canary and leaves production as it was, so every production command below names both apps, and both are checked afterwards (X-Carlos-Versionon oficina.works and id.oficina.works). - Ship with
--mail submit. It declares that the build sends through CARLOS mail submission (mail.FromCarlos,loadMailerininternal/home/keys.go, From$CARLOS_MAIL_FROM). Untilcarlos email submission onruns for an app, that app keeps sending overCARLOS_SMTP_*and still refuses to boot withoutCARLOS_SMTP_PASS; after it the agent setsCARLOS_MAIL=submit, the app holds no mail credential, and every instance must run a build shipped with the flag. Both production apps boot the sameloadMailer, so switch them together.carlos deployhas no--mailflag yet (carlos main 9eec0236), so ship and promote each app:
for app in oficina oficina-id; do carlos ship --app $app --account oficina --mail submit --version <v> \ --target linux-arm64 releases/home-linux-arm64 carlos promote --app $app --account oficina <v> done
(or carlos deploy --mail submit once that ships). For the canary, the same with --app home.
- The home may hibernate (Paul, 2026-11-21: "I think sleeping home is fine 600ms for signin is totally fine"). This supersedes the earlier "the home does not hibernate": the measured cold wake is about 0.6 s, which is acceptable on a sign-in. Home's own periodic sweeps run when it is awake, not on a wall clock, so nothing it does may assume a timer fired while it slept.
- A backup you have never restored is a hope, not a backup. Losing this database loses credentials and the roster, neither of which rebuilds β call 2 cannot write membership and no channel carries an instance's copy back, so roster recovery is an operator reading instances out and re-seeding (spec Β§10). The restore drill runs before launch.
---
Authorship
π€ / π¨ markers, Co-Authored-By: Claude β¦ trailers, published prompt and carbon ledgers. AI is a guest with a name tag: opt-in, disclosed, and every path works with it switched off.
Work in a worktree, and catch main up first
Take a worktree for the work. Do not work in the shared checkout.
git -C <repo> fetch origin git -C <repo> worktree add ../<repo>-<task> -b <branch> origin/main
Both halves matter, for different reasons.
The worktree, because several sessions share this machine and some share this repository, and a checkout has one HEAD, one index and one working tree between all of them. A branch switch under somebody else's uncommitted work destroys it with nothing on screen to say so, and two sessions editing the same paths disagree quietly instead of conflicting loudly. A worktree gives the work its own HEAD and its own files, and costs a directory.
From origin/main, after a fetch β not from whatever the checkout happens to be sitting on. A branch cut from a stale main is a merge conflict scheduled for later, against files somebody else has renamed in the meantime. A branch cut from another task's branch is worse: it carries that task's commits into yours, where they are reviewed as though you wrote them, and the two can only be separated by hand.
Remove it when the work has landed β git worktree remove β so that git worktree list keeps saying something true.
Written down because of 2026-09-17, in meet. The shared checkout was sitting on one task's branch while holding a different task's feature uncommitted on disk β some four hundred lines, a new migration among them β put there by a session nobody else knew was working in that tree. Two other sessions were meanwhile coordinating over the same checkout by asking each other not to touch it, which is the arrangement a worktree makes unnecessary. Nothing was lost. Nothing about the arrangement would have said so if it had been, and by then the same feature existed twice, once on each side of a rename, because the two sessions had branched from different starting points.