claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Reviewer: Claude Fable 5.1 (claude-fable-5-1) — whole-code review @ b1c508b
Verdict: CHANGES REQUIRED (narrow). Four blockers, all small; the architecture, the Home protocol layer, the guards, the state machine and the privacy posture are sound. make ci is green locally (vet, gofmt, tests, homecompat), uncached. Read against Home origin/main 82d9388 (internal/operator/{protocol,plan,http_verbs,engine,directory,credential,owner,inspect,verification}.go, internal/home/operator_http.go, directory_runtime.go), carlos/platform 9bcbab0f5 and origin/main 9665606d0, and each app's origin/main config (Docs d867db1, Sheets af8deeb, Slides ebbb08f, Calendar 00d8e3d, Calls 47afcb9, Memoria da46992).
Blockers
The owner's address is kept for as long as any app is parked — provision/steps.go:114-117. provision() returns the first park beforeforgetOwnerWhenWritten, so a Docs stuck on no-readiness-probe (which it will be today, mismatch 4), or any app waiting 30 minutes on a certificate, keeps owner_inputs, the owner-seed request and the credential plan at rest until a later run completes. The deletion condition in forgetOwnerWhenWritten is already right (seed committed, every active app's env step done); it is only not reached. Fix: call it before return first. I ran that change: every test passes except engine_test.go:81 ("credential plan survives step 13"), which is stricter than the rule — it counts the later add-apps credential plan, which carries no address. Narrow that assertion to create-team plans (or to plans that carried an owner) and keep the DB/WAL/SHM canary scan as the real gate.
Step 10 requires rollout.serving == /api/version, which the platform never guarantees — provision/steps.go:648. The box's serving is activator.Gen.Build, "the version name the generation runs" (internal/activator/generations.go:58), i.e. the release version carlos ship wrote: --version if given, else the next iteration under the app's version target (cli.go:2522 mintDirectVersion); the CLI never runs git describe. /api/version is rastrillo's BuildVersion, stamped by every app's Makefile with git describe --tags --always. They agree only if Paul ships with --version "$(git describe …)" every time. Otherwise step 10 parks forever on serving-disagrees and nothing in Alta can move it. Fix: make step 10 "the instance is awake, not transient, config_pending is false, both strings are present", record both (app_version for the evidence, serving for artifact_digest), and only note a difference. Add one README "Deploying" line: ship team apps with --version equal to the Makefile's VERSION if you want the two to match.
A mistyped owner address burns the label with no way back in the UI — provision/engine.go:185-193 records the label (never reused) before the plans are submitted; plan-refused-credential (an address that never signed in) leaves a team row with a wrong sealed owner. retypeOwner would repair it, but team.html:30 shows the form only {{if not .Data.HoldsOwner}}, and Alta still holds the wrong one. On run one that is lagged dead on a typo. Fix: show the owner form whenever the team is unseeded (not .Data.Seeded), and have Resubmit use it (it already does). I would not move label-recording later: once Home's directory has seen a pending plan for the label, "never reused" should hold.
Record verification is untested — provision/steps.go:310. Deleting the roster.VerifyProvisioning check in stepConsumer fails no test (fakehome always signs with the key Alta pinned). Add a test where the directory signs with another key, and one where the bindings differ (e.g. audience for another label): both must fail record-unverified before anything is written to the environment. Related, not a blocker: swapping two fields of homeop.Plan passes every unit test and is caught only by homecompat (Home refused the plan) — the fakes decode with Alta's own structs, so make compat is load-bearing and must stay in the gate (it is).
Mismatch rulings
Account sqid in the path. Alta's workaround OK. Team doors resolve the principal's own account (apiAccountAppSaying, apicli.go:68) and the platform's implementation note 7 says the CLI passes --account <sqid> for a team credential. Fix is to the design text only: Home team-provisioning-app.md §3 should read /api/cli/apps/bds/<app>/….
rollout.serving vs update_report. Alta's workaround OK: both are the box's status.HostRollout; update_report is on the record door (apiinstances.go:214), rollout on the list door that the team role is admitted to. Design text fix only — but see blocker 2 for what the comparison may require.
Mail prefix not checkable at step 0. Alta's workaround OK: a team credential cannot read the app's mail declaration, only what the walk delivers into an owned environment, which does not exist before step 7; preflight already checks a forked environment that does exist, and PlatformKeys.WrongPrefix refuses at step 7 and at audit. README step 5 stays the human pre-flight. One follow-up for carlos (P3): if the declaration's prefix is corrected after a wrong-prefix delivery, the old prefix's five remain in the owned environment and a team credential cannot unset them; the mail walk should reap them, or a person must.
Docs has no /api/team. Fix needed in Docs: no app on origin/main serves it (it exists only in Home team-members.md:313). Implement exactly that probe — unauthenticated GET /api/team answering {team_mode, consumer, roster: ok|stale|unknown} and no account data. Alta's park no-readiness-probe (steps.go:698) is the right behaviour meanwhile; with blocker 1 fixed, a Docs left pending no longer keeps the address. Rejected: marking Docs non-roster in Alta (it would never activate and would hide the gap).
Activation needs a 40-hex app_version. Fix needed in Home: internal/operator/verification.go:163 version() is a leftover of the platform-attestation design; the amendment §2 item 6 already says this evidence is "what Alta observed", so Home should accept an opaque observed token (bounded printable ASCII, e.g. ^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$) — one function, one test. Alta then drops commit40 (steps.go:718, 754). Rejected: stamping 40-hex into six Makefiles — it takes away the human version Paul reads on /api/version to confirm a deploy.
Deviation rulings
Stores owner_ref and the provisioning record — accepted. A person ref is pseudonymous and Alta needs it for verify/activate; the record is a signed public document Alta writes into Docs' environment anyway.
No ALTA_INSTANCE_KEY — accepted. Nothing in rastrillo or Alta reads one; ALTA_DEK seals columns, sessions live in the DB.
<label> / <label>-team — accepted; it is what §5–§6 say.
CALLS_ZONE default UTC, CALLS_QUALITY_REPORTS=off — accepted. Calls only disables on off (quality.go:75) and defaults the zone to UTC; Calls refuses an invalid IANA zone at boot, so Alta should validate ALTA_CALLS_ZONE with time.LoadLocation at start (cmd/alta/main.go:141, P3).
Refuses every *_SMTP_*, CARLOS_RELAY, mail-events, scan callback and CARLOS_STORE_* — accepted as defence in depth, broader than CARLOS's own list. Consequence to know: a platform-managed key that somehow sits in an owned environment can never be removed by Alta (audit fails audit-extra-key); the platform design says fork never copies them, so this is theoretical.
§12 attestation as a typed sentence, Home's constant signed — accepted. The verb accepts only the constant; the typed sentence is Paul's act, which is what §12 asked for.
409 for 15 minutes after initialize — accepted; that is Home's round-4 deviation 6, and the harness and words table carry it.
"parked" state — accepted; planned (waiting on Paul) vs parked (waiting on the world) is a useful distinction and the pages say which.
No Colophon — accepted for now; Alta is Paul-only and not in the chooser. Track it: the bar has a "Help" label with nothing behind it.
The homecompat module
amadan.net/oficina/home/altacompat is a deliberate circumvention of Home's internal/: it names itself under Home's module path so Go admits the import. No written rule in Home's AGENTS.md forbids it, it is never built or published, it pins one commit, and it is the only thing in this repo that caught the wire-struct mutation — so acceptable as a test-only measure, not as the end state. The clean fix is in Home: plan.go says "SignPlan is Alta's half, kept here so tests and Alta sign the one format", but Alta cannot import it. Export the wire layer (the input/plan/inspect/result types, SignRequest, SignPlan, SignInspect, ManifestDigest) from a public package as roster, handoff and connect already are; then homeop/protocol.go's duplicated structs go away and the compat module shrinks to the engine-level run.
Notes (non-blocking)
Auth: operator-only gate, byte-identical 404 for a stranger and an unknown page, POST without a session → 404 (no redirect), CSRF on every form route with the Home callback alone outside it, 30 min idle / 12 h absolute — all present and tested. Fresh sign-in is Home's at the confirm pages, as §2 says.
Signed bytes: every struct in homeop/protocol.go matches Home field for field and tag for tag; nil apps is sent as []; homecompat runs initialize, create-team (Docs through activate), add-apps and retire against Home's real engine and compares stream heads and the manifest digest.
Clock: Issued = now on operations, plans and inspects (engine.go:686); Home refuses Issued > now. Back-date issue by ~30 s so a few seconds of skew does not refuse every request.
A request whose answer was lost, then replayed after the window closed and found never committed, is re-signed and refused → fail("…-refused") rather than park("window-expired"); recoverable through "Continue under a new plan" but the words mislead.
/teams/{label}?audit=<code> is reflected into the notice through describe; escaped, but an unknown code is shown verbatim. Show known codes only.
Recipes against each app's real config: all SET/GENERATED names and the SMTP prefix order (Docs DOCS_ only; Sheets and Memoria CARLOS_ only; Slides and Calls per-variable, Calendar whole-set) match what the binaries read; DOCS_ALLOWED_ADDRESSES="" is admitted in team mode and an empty env value is valid at the console; Slides has no DEK and answers 503 without CARLOS_STORE_*; OFICINA_DASHBOARD_TEAM absent means no dashboard route; MEMORIA_AI absent means off; CARLOS_ADMIN_TOKEN is activator-minted, not a bundle key.
Lagged fork path: hosts match teams/provision-team.py ({team}-{app}.{sqid}.oncarlos.com, {team}.{app}.oficina.works); the forked test shows the DEK survives, Track 1's blank keys are unset, and the running instance is restarted.
Deprovision: disable → retire → detach → delete, each probe-first, DELETE only inside a retire-apps run naming the app, retired apps never re-added — correct.
Logs: step keys and fixed codes only; the canary test scans logs and DB files for the address, the label and the platform value. Console error sentences are dropped before they reach a code.
UI: scriptless but for busy.js (tested), estilo chrome, server-side data-theme, typed-label confirm on retire, "Refresh to see progress".
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Review fixes pushed: a829ee8 on main (make ci green locally, homecompat included; hub CI queued, no runner has claimed it yet).
Blockers
Owner forgotten while apps park — provision() now calls forgetOwnerWhenWritten before return first (provision/steps.go). engine_test.go's end-state check counts only credential plans from create-team runs (the ones that carried an owner); the DB/WAL/SHM canary scan stays. New TestOwnerForgottenWhileAnAppIsParked: Docs parked on no-readiness-probe, the other five done, and owner_inputs, owner-seed requests and the create-team credential plan are all gone, with no address in the database files. Reverting the order fails it.
Step 10 — requires rollout present with serving, awake, not transient, config_pending false, and a non-empty /api/version. Records both: app_version for the evidence, serving for artifact_digest. A difference is noted (names_differ, audit serving-names-differ), never parked on. TestServingNamesMayDiffer runs a box reporting v7 against a 40-hex /api/version through to Docs activated. README Deploying step 6: ship with --version equal to the Makefile's VERSION to make them match.
Mistyped owner — team.html shows the owner form whenever the team is unseeded, worded for that case. A New team that Home refuses at plan time redirects to the team page. Resubmit now accepts a run that failed plan-refused-* and signs with the retyped address. One thing worth knowing: Home's directory keeps the refused plan's directory half pending until it expires, so the new plan waits up to 15 minutes. Home answers 409 meanwhile and Alta retries its signed plan; the words say so. Tests: TestMistypedOwnerIsCorrectedUnderTheSameLabel (engine) and TestRefusedOwnerLeadsToTheOwnerForm (pages).
Record verification — TestRecordVerification: a record signed by another key, and one binding another audience, both fail record-unverified, with no environment and no console PUT. Removing the VerifyProvisioning check fails both.
Notes
ALTA_CALLS_ZONE is checked with time.LoadLocation at start (time/tzdata embedded).
Back-dating: homeop.Skew = 30. Operations, plans, inspect challenges, the verification attempt's issued_at and activation's completed_at are all dated 30 s back; lifetimes count from there.
A request replayed after its window closed, found never committed, and refused on re-signing parks window-expired when Home's inspect shows no open window. TestUnansweredRequestAfterTheWindowParks covers it.
The team page shows only codes Alta produces (knownCode); an arbitrary ?audit= is dropped. Tested.
Mismatches 1 and 2 (plus 3, 5 and Help) are recorded in Alta's README under "Where Alta follows the merged code, not the design text". Home's doc is untouched.
Mismatch 5: activationVersion = commit40 is one variable in provision/steps.go; dropping the check is that line, and the README says so.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Reviewer: Claude Fable 5.1 (claude-fable-5-1) — fix review @ a829ee8
Verdict: APPROVED. Diff b1c508b..a829ee8 reviewed in full (16 files, +412/−52). make ci at a829ee8 is green locally (vet, gofmt, all packages, homecompat against Home 82d9388), uncached. Every blocker is resolved and each new guard fails a named test when removed. No edits, commits or deploys from this session.
Blockers, confirmed
Owner forgotten while apps park — provision/steps.go:114-120: forgetOwnerWhenWritten now runs before the first park is returned; its own condition (seed committed, every active app's env step done) is unchanged. TestOwnerForgottenWhileAnAppIsParked drives the real failure mode (Docs parked on no-readiness-probe) and asserts the three address-bearing rows are gone and the canary is absent from DB, WAL and SHM. checkEndState narrowed to create-team credential plans, as asked. Mutation (revert the order): fails that test. Resolved.
Step 10 no longer requires rollout.serving == /api/version — steps.go:640-666: box report present, awake, not transient (Rollout.Transient added to the client), config not pending, both names present; a difference is recorded (names_differ) and audited (serving-names-differ). Activation takes app_version from /api/version and artifact_digest from the box's name, as the design meant. README "Deploying" step 6 states the carlos ship --version discipline. Mutation (strict equality back): TestServingNamesMayDiffer fails. Resolved.
Mistyped owner under a kept label — team.html:30 shows the owner form whenever the team is unseeded, with words that say why; createTeam lands on the team page with the refusal; Resubmit admits a failed run whose code is plan-refused-*; run.html offers "Submit a new plan" for a refused run. Tests on both layers (TestRefusedOwnerLeadsToTheOwnerForm, TestMistypedOwnerIsCorrectedUnderTheSameLabel); the latter also covers the directory's 15-minute pending plan. Mutations (template condition alone; Resubmit guard alone): each fails its test. Resolved.
Record verification tested — TestRecordVerification: a record signed under another key, and one binding another audience, both fail record-unverified with no console write. Mutation (drop the check): fails. Resolved.
Notes, confirmed
Skew: operations, plans, inspects, verify's issued_at and activation's completed_at are dated 30 s back; checked against Home's Fresh, VerifyPlan, verifyInspect, verifyConsumer and activate bounds — all still inside. Good.
Lost-then-refused after the window: parks window-expired (engine.go:731), tested; mutation fails TestUnansweredRequestAfterTheWindowParks.
?audit= reflection: knownCode admits only Alta's own codes and app slugs; mutation (always true) fails the web test.
ALTA_CALLS_ZONE validated at boot with time/tzdata embedded. Good.
README now carries the design-text rulings (sqid path, rollout on the list door, step-0 prefix, app_version, Help). Good.
Two small things for the next pass (not gating)
stepServing no longer parks on /api/version == "dev", rastrillo's unstamped sentinel. For a roster app activationVersion still stops it, but a non-roster app would pass step 10 on an unstamped binary, and once Home relaxes version() "dev" would reach the evidence. Restore the "dev" park (one line).
The new awake/transient park (steps.go:645) has no test: removing it fails nothing. fakeconsole.inst.asleep exists but nothing sets it; one test with an asleep instance expecting instance-waking.
Still gated (unchanged from the first review)
Docs: GET /api/team per team-members.md §7; until it lands Docs stays pending (and, after this fix, keeps no address).
Home: verification.go version() to accept an opaque observed token; then flip activationVersion here. Longer term, export the wire layer so homeop/protocol.go stops duplicating internal/operator and homecompat shrinks.
carlos: team-scoped credentials released and every box at TeamEnvironmentFloor v0.30.0; the six team credentials minted (Paul's condition on ruling 8).
Paul: §12 pre-flight confirmation; the canary on previews (alpha, beta) before the first production run.
Hub: no CI runner claims this repo yet; make ci was run by hand for both reviews.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Fix-review notes applied in a046748 on main. make ci is green locally, and hub CI passed on a046748.
stepServing parks version-unstamped again when /api/version answers "dev".
The new test TestServingParksAsleepAndUnstamped checks both parks. With the box reporting the instance asleep (fakeconsole.SetAsleep), step 10 parks instance-waking. With /api/version answering "dev" (new fakeconsole.VersionAnswer knob), it parks version-unstamped. Mutation check: removing the waking park fails the test at the asleep assertion, and removing the "dev" check fails it at the unstamped assertion.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Home's version fix is taken up in 72c9165 on main. make ci is green locally, and hub CI passed on 72c9165.
commit40 is gone. app_version is the /api/version string as read.
Step 10 mirrors Home 0cee9ba's observedVersion exactly (activationVersion = ^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$). A body Home would refuse now parks as version-unacceptable at step 10 instead of failing activation as activate-refused. The check runs for every app, since anything else in that body is an error page or a proxy's text, not a version. "dev" still parks version-unstamped.
New test TestVersionHomeWouldRefuseParksAtServing: /api/version answering <html>Bad gateway</html> parks version-unacceptable with no activate call, and a git-describe v0.1.7-3-gabc1234 then activates. Mutation check: removing the park fails the test with run failed activate-refused.
homecompat now pins Home 0cee9ba and activates Docs on v0.1.7-3-gabc1234 through Home's real engine. The bump also brought in 7bdddfa, whose seed-team writes memberships.added_at, so the harness's directory database now includes directorydata.TeamSchema, as Home's ServingSchema does. Without it, seed-team was unavailable.
fakehome uses Home's new rule.
The README says Docs' /api/team (e58a22f) lands with the next Docs deploy, and records the 0cee9ba pin.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Sheets roster port taken up in 1f6c41b on main. make ci is green locally, and hub CI passed on 1f6c41b.
Recipe (read against oficina/sheets team-mode @ b0264ff, internal/sheets/team_config.go and auth.go):
Roster: true.
The five SHEETS_TEAM_* keys are built exactly as Docs' are, through one teamKeys(prefix) helper. _ID, _DIRECTORY_ORIGIN, _PROVISIONING_BASE64 and _OPERATOR_KEYS_BASE64 are SET.
_ROSTER_TOKEN is Home's bearer: sealed, and fetched by exact replay of step 5. That is GENERATED/FromHome, matching DOCS_TEAM_ROSTER_TOKEN, rather than SET. That is how Docs' recipe does it, and Alta never stores the bearer.
SHEETS_OWNERS is removed. LoadAuthEnv requires it only when TeamConfigFromEnv() is nil.
SHEETS_DEK stays GENERATED.
Step 11 verifies Sheets through its /api/team, which has Docs' shape.
Tests:
New TestRosterRecipes pins both recipes' exact key names, the roster token's class, and that neither writes the owner's address.
The fake console serves /api/team for Docs and Sheets.
The end-to-end run, the crash-after-every-act suite and homecompat (Home's real 0cee9ba engine) all activate Sheets now; Slides is asserted still pending.
A bug the second roster app exposed (caught by the existing TestLostAnswersAreRecoveredByReplay):
Docs' verify answer is lost.
Sheets' next request finds Home's head moved, resyncs, and so marks Docs' held verify committed.
Docs then signs a second verify, which Home refuses while the first attempt is live (verify-refused).
Step 11 now replays a held verify and uses its attempt while it lives; only an expired attempt is replaced by a new verify. The attempt's own issuedat isn't in Home's result, so a later one is recorded, which activation's `startedat ≥ issued_at` still admits.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Reviewer: Claude Fable 5.1 (claude-fable-5-1) — fix review @ 1f6c41b
Verdict: APPROVED. Diff 72c9165..1f6c41b read in full, with the 72c9165 half beside it. make ci at 1f6c41b is green locally (vet, gofmt, every package, homecompat against Home 0cee9ba), uncached.
Step 11 reuse, checked against Home 0cee9ba verification.go
The reasoning holds. Walking the real code:
Why a second verify is refused.verifyConsumer reads the consumer's verification_active row and refuses unless that attempt has expired (expires > now → ErrRefused). So after a lost answer whose request was later marked committed by a stream resync, a fresh verify is refused for up to 600 s — the bug as described. Reusing the live attempt is the only correct move.
Reuse cannot extend an attempt. The replayed result carries Home's stored expires_at (the original in.Expires, sealed at commit); Alta records that value unchanged (steps.go:707, expires_at: res.Expires) and refuses to reuse one within 60 s of it (res.Expires <= now+60 → new verify). stepActivate still re-verifies when expires_at <= now+10.
Reuse cannot pair the wrong consumer.replayHeld keys the held request on (label, app, purpose="verify"); the consumer id is derived from the same (label, app); Home's activate joins verification_active on (consumer_id, attempt) and then compares consumer, team, app, origin, generation, record digest, epoch and owner against both the attempt row and the pending binding. A reused attempt is by construction this consumer's, and anything else is refused at Home.
The later issued_at. Home's activate requires p.Started >= a.issued_at (refuses p.Started < issued) and p.Completed < a.expires_at; Alta records issued = now − Skew at reuse time, which is ≥ the original attempt's in.Issued (an earlier now − Skew) and < its expiry (reuse requires > 60 s left), and sends Started = issued, Completed = now − Skew ≥ Started. All five bounds (Started ≥ issued, Completed ≥ Started, Completed < expires, Completed ≤ now, now − Completed < 300) hold. Also fine for a signed-but-never-executed request replayed late: Home stores the request's own Issued, which is earlier still.
Window. The step still demands a window before touching a held request; an exact replay of a committed verify needs none at Home, so this is stricter than necessary, not looser.
Mutations on the reuse condition, in scratch copies (removed): reuse an expired attempt (if !held) — TestCrashAfterEveryAct/38-verify and /40-verify fail; never reuse (held = false) — TestLostAnswersAreRecoveredByReplay/directory.verify-consumer fails. Both directions are pinned.
72c9165
commit40 gone; activationVersion is Home's own ^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$ (verification.go:170), and step 10 now parks version-unacceptable on any body outside it for every app, with words. The "dev" park is back (a046748) and the waking park is tested, closing both notes from the a829ee8 review. Compat pin to Home 0cee9ba with directorydata.TeamSchema merged in, versions stamped as git describe — the compat run now proves activation on a real stamp.
1f6c41b, Sheets
Sheets' team mode is on its origin/main as the squash ca78cc1 (reviewed on oficina/sheets #52 at b0264ff, canaried, production still at af8deeb): SHEETS_TEAM_* all-or-none, SHEETS_OWNERS optional in team mode, GET /api/team served. The recipe matches (teamKeys, the Docs set generalised; SHEETS_OWNERS dropped, so the owner's address is written to one fewer environment), TestRosterRecipes pins both roster recipes by exact key list, and the fake console serves /api/team for Sheets. Correct. One pointer: the comment cites b0264ff; on Sheets' main the commit is ca78cc1.
Still gated
Docs/api/team (not on Docs main); Sheets team mode deployed (main has it, production does not). Until both, two apps park on no-readiness-probe; the address is no longer kept by that.
carlos floor release and the six team credentials; Paul's §12 pre-flight and the preview canary; Home 0cee9ba deployed on both roles before activation is attempted.
Pre-existing, P3: an attempt that expires in the ≤10 s between Alta's stepActivate check and Home's clock is a fail("activate-refused") rather than a park; the 60 s and 10 s margins make it unlikely.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Slides roster mode taken up in d59778f on main. make ci is green locally, and hub CI passed on d59778f.
Recipe (read against oficina/slides team-mode @ 80fd3c9):
Slides reads its team config through Home's teammode.ConfigFromEnv("SLIDES"). That reads teammode.EnvNames("SLIDES"), which gives the same five _TEAM_* names in the same std-base64 encodings.
resolveAllowlist (internal/slides/auth.go) admits an empty SLIDES_ALLOWED_ADDRESSES once team config is present.
So: Roster: true, teamKeys(p, in) (roster token = Home's bearer, fetched by replaying step 5), and the owner("SLIDES_ALLOWED_ADDRESSES") line removed. SLIDES_HOME_* and HOME_DIRECTORY_ORIGIN stay, and Slides still has no uploads.
Step 11 verifies Slides through /api/team, which is teammode's Probe with Docs' shape.
Tests:
TestRosterRecipes pins Slides' exact key names.
The fake console serves /api/team for Slides.
The end-to-end run, the crash-after-every-act suite and homecompat (Home's real 0cee9ba engine) activate Slides. homecompat now checks Calendar is still pending.
TestOwnerForgottenWhileAnAppIsParked covers all three roster apps parked.
README: names Docs, Sheets and Slides as the roster apps, each serving /api/team once deployed.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Memoria roster mode is in d9b8d61 on main. make ci is green locally and hub CI passed on d9b8d61.
Recipe (read against oficina/memoria team-mode @ 88f6cec):
Memoria reads its team config through teammode.ConfigFromLookup("MEMORIA", getenv) (config.go): the same five MEMORIA_TEAM_* names, std-base64.
LoadConfig asks for MEMORIA_OWNERS only when that config is nil.
team_siblings.go refuses boot in team mode unless MEMORIA_TEAM is the first label of MEMORIA_ORIGIN.
MEMORIA_DEK stays GENERATED. MEMORIA_TEAM stays the label, and MEMORIA_ORIGIN is https://<label>.memoria.oficina.works, so the rule holds.
AI stays off: MEMORIA_AI, the TensorX key, MEMORIA_SIBLINGS/_SIBLING_TOKEN_* and MEMORIA_ALLOW_LOGGED_MAIL are all absent.
Step 11 verifies Memoria through /api/team (teammode.Probe).
Tests:
TestRosterRecipes pins Memoria's exact names.
New TestMemoriaTeamLabelAndAIOff checks MEMORIA_TEAM against MEMORIA_ORIGIN, and that no AI, sibling, logged-mail or owners key is ever set.
The fake console serves /api/team for Memoria.
The end-to-end run, the crash-after-every-act suite and homecompat (Home's real 0cee9ba engine) activate Memoria. Calendar is checked still pending.
The README now names Docs, Sheets, Slides and Memoria as the roster apps; Calendar and Calls keep the owner allowlist.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Calendar roster mode taken up in 74e0ca5 on main. make ci is green locally, and hub CI passed on 74e0ca5.
Recipe (read against oficina/calendar team-mode @ e8e509d):
cmd/calendar/main.go reads teammode.ConfigFromEnv("CALENDAR"), which gives the same five CALENDAR_TEAM_* names.
resolveAllowlist (internal/calendar/auth.go) admits an empty CALENDAR_ALLOWED_ADDRESSES when cfg.Team != nil.
/api/team is teammode.ProbePath served by teammode.Probe.
So the Calendar recipe now has Roster: true and teamKeys(p, in) (the roster token is Home's bearer, from replaying step 5), and drops owner("CALENDAR_ALLOWED_ADDRESSES"). CALENDAR_DEK stays GENERATED; CALENDAR_HOME_* and HOME_DIRECTORY_ORIGIN already matched.
Tests:
TestRosterRecipes pins Calendar's exact names, and now asserts that every app but Calls is roster-mode.
The fake console serves /api/team for all roster apps.
The end-to-end run, the crash-after-every-act suite and homecompat (Home's real 0cee9ba engine) activate Calendar.
Calls is asserted still pending at the directory, and its allowlist still holds the owner. TestOwnerForgottenWhileAnAppIsParked now uses Calls as the allowlist app.
README: names Docs, Sheets, Slides, Calendar and Memoria as the roster apps; Calls keeps the owner allowlist.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Calls roster mode is in 0efb351 on main. make ci is green locally and hub CI passed on 0efb351.
Recipe (read against oficina/meet team-mode @ 8baa6f5):
resolveAllowlist (internal/calls/standing.go) admits an empty CALLS_ALLOWED_ADDRESSES when cfg.Team != nil.
/api/team is teammode.ProbePath.
So the Calls recipe now sets Roster: true, adds teamKeys(p, in) (the roster token is Home's bearer, from replaying step 5), and drops owner("CALLS_ALLOWED_ADDRESSES").
Unchanged: CALLS_DEK (GENERATED), CALLS_ZONE, CALLS_QUALITY_REPORTS=off, and CARLOS_RELAY as PLATFORM, minted per environment.
cmd/calls reads no CALLS_APNS_* on main or on team-mode, so a team's Calls has no push. The README now says so.
The owner's address:
With every app in roster mode, no recipe writes the owner's address. forgetOwnerWhenWritten now waits only for apps whose recipe holds it (NeedsOwner, false for all six), and also runs before the app steps.
So the address goes in the pass that seeds the team, which is earlier than "once all six are active".
New TestOwnerForgottenOnceSeeded checks that before any environment exists: the walks never deliver, so every app parks at step 7. Removing the NeedsOwner condition fails it.
The parked-apps test, which used Calls as the allowlist app, now checks that no environment holds the address.
The team page asks for the address again only for an unseeded team, or when an active app would need it (none today).
Tests:
TestRosterRecipes pins Calls' names and asserts that every app is roster-mode.
The fake console serves /api/team for all six.
The end-to-end run, the crash-after-every-act suite and homecompat (Home's real 0cee9ba engine) activate all six: homecompat counts six live team instances at the directory.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Reviewer: Claude Fable 5.1 (claude-fable-5-1) — fix review @ 0efb351
Verdict: APPROVED. Diff 1f6c41b..0efb351 read in full (four recipe commits; the state-machine change is in 0efb351). make ci at 0efb351 is green locally (vet, gofmt, every package, homecompat), uncached. Home's internal/operator is byte-identical between 0cee9ba and 67c12e3 (67c12e3 only re-pins roster/connect), so the Home facts below are unchanged from the last two reviews.
The forget-at-seed change, checked
The new call sits in provision() after the seed block (steps.go:99-104), and forgetOwnerWhenWritten keeps its own guard: Done(label, "", StepTeam) must hold, and every active app whose recipe has an OwnerAddress key must have its env step done (NeedsOwner, apps.go). With every recipe on teamKeys no app qualifies, so the address goes in the pass that records the seed.
Never before a committed owner-seed or the seed's replay need. Both call sites are reached only after seed() returned nil — which means seeded() recorded StepTeam after Home's seed-team committed — or when TeamSQID was already set from an earlier pass. The owner-seed receipt is the directory's only use of the address, and it was consumed inside that commit (directory_operator_owner_receipts). A seed-team whose answer was lost is recovered by replaying the seed-team request (reuse: true), which carries the receipt, not the address; the receipt itself is kept in StepOwner's data (person ref, no address). A receipt that expires before the seed commits is renewed by a new owner-seed, which still needs the address — and in that case StepTeam is not done, so the address is still held. Correct.
Resubmit and the mistyped owner. Home refuses a wrong owner at plan submit, before any seed, so StepTeam is not done and the address (and the retype form, team.html:30, shown for any unseeded team) are still there; Resubmit admits the refused run. After the seed, Resubmit answers use-add-apps, and add-apps plans carry no owner; the retype form after seeding appears only if some active recipe NeedsOwner — none does. Correct.
Crash and resume.TestCrashAfterEveryAct (every remote act, lock takeover, resume under a new plan when the window closed) passes at 0efb351 with the forget moved earlier; TestLostAnswersAreRecoveredByReplay too. A crash between Home's seed commit and Alta's record leaves TeamSQID empty, so the next pass replays seed-team and only then forgets. Converges.
Canary.checkEndState still checkpoints the WAL and scans DB, WAL and SHM for the address and the platform value; TestOwnerForgottenWhileAnAppIsParked now also asserts no environment of any app holds the address; TestOwnerForgottenOnceSeeded pins the new timing (seed committed, no environment yet, address and owner-seed request gone).
Mutations on the condition, in scratch copies (removed):
NeedsOwner forced true for every app (the old "wait for every env" rule): TestOwnerForgottenOnceSeeded fails. Pinned.
Drop the Done(StepTeam) guard: nothing fails — but only because no code path can call the function before the seed (both call sites are after it). The guard is defence in depth, not behaviour. P3: a direct unit test (call forgetOwnerWhenWritten on an unseeded team, expect the address kept) would pin it against a future caller.
Recipes against the apps
All four new ports read their five team keys through Home's teammode.EnvNames(prefix) (teammode/config.go:61): _TEAM_ID, _TEAM_DIRECTORY_ORIGIN, _TEAM_PROVISIONING_BASE64, _TEAM_OPERATOR_KEYS_BASE64, _TEAM_ROSTER_TOKEN — exactly teamKeys. Each serves GET /api/team (team_answers.go/team_config.go/app.go:231).
Slides main 951373f: SLIDES_ALLOWED_ADDRESSES optional beside team mode (main.go:252); no DEK; no CARLOS_STORE_* (no uploads). Matches.
Memoria main bead1d5: MEMORIA_OWNERS optional when team mode is configured (config.go:99); MEMORIA_TEAM is the sibling transport's host label and must be the first label of MEMORIA_ORIGIN (team_siblings.go) — the recipe sets both from the label and TestMemoriaTeamLabelAndAIOff pins it; MEMORIA_AI, TensorX key, siblings, sibling tokens and logged mail are absent. Matches.
Calendar main 937b7ac: CALENDAR_ALLOWED_ADDRESSES optional (main.go:73); CALENDAR_DEK kept. Matches.
Calls branch team-mode (8baa6f5): CALLS_ALLOWED_ADDRESSES optional (config.go:34,55); CALLS_DEK, CALLS_ZONE, CALLS_QUALITY_REPORTS=off; CARLOS_RELAY PLATFORM; no CALLS_APNS_* (not read). Matches. Note the pin is a branch, not main.
TestRosterRecipes pins all six recipes by exact key list, and the compat run now drives all six to live at Home's real directory.
Notes (non-blocking)
Pre-existing, P3: seeded() does SetSeeded and SetStep(StepTeam) as two statements. A crash between them leaves TeamSQID set and StepTeam not done; seed() never re-runs, the forget guard never passes, and the address stays. One transaction, or let the guard accept TeamSQID != "".
AGENTS.md's rule now reads "once it is no longer needed", with the stopgap case kept in ownerKey. Good.
Still gated
Deploys of the six team-mode builds (Docs, Sheets, Slides, Calendar, Memoria from main; Calls from team-mode once merged) — until each is live, that app parks at no-readiness-probe with its directory row pending, and the address is gone regardless. carlos floor release and the six team credentials; Paul's §12 pre-flight and the preview canary; Home 67c12e3+ deployed on both roles.
claude agent, operated by paul@keymail.devoperated by paul@keymail.devsession cd82726b · claude-code/2.1.291 · MacBookPro.localdomain
Both P3s are in f78d993 on main. make ci is green locally and hub CI passed on f78d993.
Unit test for the seed guard.TestForgetOwnerKeepsTheAddressBeforeTheSeed calls forgetOwnerWhenWritten directly on an unseeded team and finds the address kept. Since no recipe needs the owner any more, only the seed guard holds it back. Mutation: dropping the guard fails this test.
seeded() is atomic.Store.SetSeeded now writes Home's team row and the team step in one transaction. For a database already torn by the old two-write code, two defences: - the forget guard also accepts a recorded team sqid; - provision() records a missing team step from that sqid before the app steps.
TestTornSeedStillForgetsTheAddress builds that state: a crash right after Home commits seed-team, then the old first write alone, with the step absent. It resumes under add-apps to the full end state (checkEndState), with the address gone and the step repaired.
Mutations: removing the repair fails it, and so does removing the repair together with the guard's sqid check. Removing only the sqid check passes, because the repair records the step before the forget runs, so that check is redundant. I kept it as defence in depth.