oficina / home Public

Team provisioning + team members: design review closed

On branch team-provisioning-design

Design-only branch: no code yet. Paul asked on 2026-10-27 for (1) user management within a team and (2) a Home-side way to provision teams. The trigger is till@lagged.biz, who must get his own team and no access to anything that already exists.

Documents

  • implementation/team-provisioning-amendment.md: a narrow, signed POST /operator/v1 that reuses the existing operator engine, plus a consumer registry that goes beyond the 16-entry HOME_CONSUMERS limit.
  • implementation/team-provisioning-app.md: Alta, a provisioning app only Paul can use. It creates carlos instances per team, generates fresh keys, attaches <team>.<app>.oficina.works, and registers consumers with Home.
  • implementation/team-members.md: an owner-written Team page on the directory, behind step-up, with add-by-email resolved at the credential origin. Also covers porting roster team mode to the other apps.

Paul's rulings (2026-10-27)

  • Team label lagged. First apps: Docs, Sheets, Slides, Calls, Calendar, Memoria.
  • Approved in principle: provisioning goes through a narrow, authenticated Home endpoint instead of the blocked platform-117 worker. This supersedes approved text, which is quoted in the amendment.
  • Ruling 8 is re-ruled for Alta, on one condition: carlos must first gain team-scoped credentials that can never touch an app's default bundle or the instances bound to it. Alta does not go to production before then. That credential is designed on carlos/platform branch team-scoped-credentials.
  • Team page: owners can give members display names, sealed at rest, and anything containing @ is refused. All members see the member list; only owners write to it.
  • Roster port order: Sheets, Slides, Memoria, Calendar, Calls.
  • Defaults Paul accepted: a fresh sign-in on every Alta run; the owner must have signed in before the team is created; labels are never reused; Slides ships without uploads; the mail relay is shared; Home sends no "you've been added" email.

Already live (stopgap, outside Home)

lagged.{docs,sheets,slides,calendar,calls,memoria}.oficina.works are carlos instances bound to env lagged. Each has fresh keys, Home sign-in and the dashboard blanked, Memoria AI off, and a till-only allowlist using each app's own magic-link sign-in. The script is oficina/teams/provision-team.py, whose verify fails if any default-bundle key other than SMTP, relay or zone reaches a team.

Needed

  • A top-model review of all three documents (AGENTS.md: Review). The reviewer records its model here.
  • From Paul: has the production directory ever had a roster generation? This is the pre-flight attestation in amendment §12.

Reviewer: Claude Fable 5.1 (claude-fable-5-1) — design review of team-provisioning-amendment.md, team-provisioning-app.md, team-members.md at team-provisioning-design head 6e5f010 (base e2ec1ab). Read against AGENTS.md, spec §0/§1/§3/§4/§5/§6/§7/§10/§12/§13/§14, home-provisioner.md, home-operator-seed.md, home-operator-open.md, team-entry.md, roster-contract.md, fresh-assertion.md, directory-runtime.md, internal/operator/*.go, internal/home/{runtime,exchange,security,signout,roster_*}.go, handoff/{http,store}.go, directorydata migrations, the carlos team-scoped-credentials draft and oficina/teams/provision-team.py.

Verdict: CHANGES REQUIRED

The direction is right and honours every 2026-10-27 ruling I was given (own team only, narrow Home endpoint, ruling 8 conditional on carlos tenant credentials, sealed owner-chosen names refusing @, all members read / owners write, fresh sign-in per run, existing_only owner, labels never reused, no mail, port order). The one rule survives: every address path (approve, owner-seed, /resolve) blind-indexes or seals on the credential role and hands the directory a person ref; the pepper stays at one origin; nothing new readable lands at rest. The superseded quotations are accurate where present. What blocks is narrower: one approval mechanism that cannot be built with the shared consumer as specified, one hole in the credential role that contradicts §8's "cannot touch any existing team" and ruling 19, and one engine precondition the pre-flight question can trip. Each has a concrete fix.

BLOCKERS

1. The approval assertion cannot reach Alta as specified. Amendment §4 ("assertion is a normal Home browser assertion … that Paul's browser carried to Alta after a step-up") and Alta §6 step 1 assume Alta holds the raw signed assertion to forward to /operator/v1/approve. The shared consumer does not expose it: handoff.Store.Finish returns parsed assertion.Claims, deletes the sealed inbox row that held the token, and ConsumerConfig.Complete is func(http.ResponseWriter, *http.Request, assertion.Claims) error (handoff/http.go:35, :206-230; connect/bridge.go:191 is the same shape). team-entry.md and ruling 24 forbid "a second app-specific verifier", so Alta may not hand-roll a callback to keep the bytes. Fix, one of: (a) a reviewed opt-in in handoff (shared module, own review) that hands Complete the raw token only for a RequireFreshAuth consumer, after replay consumption, and say so in §4; or (b) move the approval ceremony onto Home — Alta posts the signed plan to each role's /operator/v1/approve first, Home stores it unopened, then Paul's browser visits a Home route behind its own max_age=300 step-up that shows Home's copy of the plan (kind, label, apps, owner blind-index prefix) and a confirm button that opens the window. (b) also closes the weakness §4 concedes ("a compromised Alta plus Paul signing in to it opens a window for the attacker's plan"): Paul then approves what Home holds, not what Alta rendered. Either way, record the nonce binding mechanism: handoff generates the nonce in Start and offers BindStart(r, nonce) (http.go:147), which is where Alta must sign the plan — the plan cannot be signed before the flow starts. Note also that RequireFreshAuth is per-consumer, not per-request (http.go:139-141), so Alta's consumer is fresh-only, which is fine for Alta but see blocker 4 for the directory.

2. A single window reaches an existing team's hostname namespace through the credential role. Amendment §5 admits it ("a window naming a taken label could register a credential consumer for a sibling host of an existing team") and leans on Alta seeding first and on the directory fence. A compromised Alta skips the seed: with one window of kind create-team/add-apps and label = acme it calls credential.register-consumer{acme-sheets, https://acme.sheets.oficina.works} — the origin-collision check only refuses an origin already registered, not a sibling of one. With the carlos tenant credential (whose scope is environment ownership, not hostname shape) and the wildcard DNS Alta §10 step 2 sets up, the attacker attaches that host to its own instance, and id.oficina.works then mints real subs to it for Acme's members. That is exactly the impersonation ruling 19 forbids ("a stranger squats acme.sheets behind your acme.docs"), and §8's "Cannot: touch any existing team, instance or consumer (provenance fence)" is false for the credential role, which has no fence. Fix: make the credential registration derivative of a fenced directory write — reorder Alta steps 4/5 so directory.provision-consumer runs first, and require credential.register-consumer to carry the directory's signed provisioning record (context oficina/roster/provisioning/v1, already produced in directory.go:307-314 and already validated against the team's own label by ValidateRoute); the credential role pins the directory provisioning public key (it pins nothing of the directory's today — add it to HOME_OPERATOR_HTTP) and registers exactly record.bindings.audience/consumer. Also state that the collision check runs against HOME_CONSUMERS ∪ table, and rewrite §5's "The credential role cannot see labels" — it sees the label in every plan and stores it in operator_approvals; what it cannot see is whether a label is taken. Correct §8 accordingly.

3. If production's directory already has a roster generation, the directory stream has no admissible first operation. Engine.Execute requires the first accepted operation on a fresh stream to carry initial_authority=true with sequence 1 (engine.go:160-163, protocol.go:184), and every directory verb except initialize refuses Initial (directory.go:205,271; verification.go:117,163). So the amendment's §12 branch "if it reports no generation, the first run is an initialize plan" is the only branch that works; the other answer to the pre-flight question — generation present — leaves Alta unable to open the stream at all, and §12 does not say so. Fix: either state that a present generation means a reviewed directory.enrol first operation (records stream identity only, under an initialize-kind window, no roster write), or relax Initial for seed-team on this transport with the reason written down. Related: §5's "Paul's existing teams" assumes teams rows exist in production; directory-runtime.md and spec §11 say the production directory has never been seeded, so the provenance fence protects a null set today — fine, but say which it is, because it decides whether initialize is even reachable (directory.go:160-168 requires four empty tables).

4. The Team page's step-up has no route to start it, and §2's "no 403 anywhere" is not what the stack does. team-members.md §2 sends a stale POST to /auth/start?return_to=… "with max_age=300 (handoff StartFresh)". The directory's one consumer is constructed with RequireFreshAuth unset and Start refuses any query beyond return_to (handoff/http.go:110-121), so there is no way to ask for a fresh exchange from the Team page. Fix: mount a second handoff.Consumer on the same store with RequireFreshAuth: true at its own start path (or a reviewed per-request flag in handoff), and name it in §2 and in noscript_test.go's route list. While there: say what an anonymous GET /team?team=<sqid> gets — it should follow the chooser (docs_chooser.go:142-154: 303 to /auth/start?return_to=, query preserved per spec §5.6), not 404, or a shared team link followed while signed out dies; and narrow "No 403 anywhere" to the page's own answers, since csrf.Protect and the host check answer their own codes before the handler runs.

5. team-members.md promises "added 27 Oct" and memberships has no timestamp. §2's sketch and §5a's cost statement ("when each was added") both depend on a column that does not exist (directorydata/migrations/0001_directory.sql: memberships(team_id, person_ref, role)); membership_names.updated_at is the only date and it is for names. Fix: an additive memberships.added_at (day-coarsened, §3.3) written by the seed verb and the Team page, with the migration named in §5 and gate 2's static half extended — or drop the date from the page and from §5a.

Non-blocking

Amendment

  • §2 misses three supersessions: home-operator-seed.md "The invocation must be authorized outside the request … The platform must provide an authenticated invocation context … an environment boolean supplied by the caller is insufficient" (replaced by §4's two keys plus HOME_OPERATOR_HTTP); home-operator-seed.md's activation sentence "The verified operator context must attest successful exact-host/body/header build verification … A string supplied by the request is not that attestation" (your item 9 cites the Go fields, not the design sentence it weakens); and home-provisioner.md "Registry custody and persistence" — the age-encrypted key file, the independent floor and its two-phase CAS are replaced by Alta's sealed SQLite plus Home's stream head as the rollback arbiter. The last is a reasonable trade (Home refuses any sequence that is not previous+1, so a rolled-back Alta is refused and resyncs by inspect), but it is an approved design being dropped and must be quoted.
  • §5 "reused unchanged": the engine is unchanged; every verb gains a window check and the directory verbs a fence check inside the mutation, and allowedAction (protocol.go:130-141) is a closed switch that must grow the three new verbs plus credential.inspect. Say "engine unchanged, verbs wrapped".
  • §4 Oficina-Plan header is unsigned. With one open window per role it is redundant; either put plan_id in the signed operation_input or drop the header.
  • §4: state that a window admits any number of in-scope operations until expiry, and that an expired owner receipt needs a new owner-seed operation (replay returns the same expired receipt by design, credential.go:66, home-operator-seed.md "never renews authority"). Alta §6 step 2's probe "sealed receipt stored?" must also check the receipt's expires_at, or step 3 refuses forever.
  • §5 <role>.inspect: Inspect refuses when the state row's pins differ (inspect.go:105-110) and today returns no (sequence, head); the credential role has no Inspect at all. Fine to add; note both are new code, and that directory.inspect does not report label freedom (Alta §6 step 0 claims it does — either extend it or drop the claim).
  • §5 credential.retire-consumer + origin UNIQUE makes an app's hostname dead at Home for good, so an add-apps run can never re-add a retired app to the same team. Either intended (say so beside "labels are never reused") or retired → active needs its own verb.
  • §7: the reload after each committed write swaps a map that handlers read concurrently (exchange.go:41,78, security.go:13, signout.go:173, dashboard_config.go:72) — make it an atomic pointer swap and have every reader, dashboard_config included, read the union. The signoutConfirm page (a same-origin POST that redirects to a preview consumer) needs the same per-response form-action as the handoff page. A boot refusal on env/table collision takes the credential origin down and with it suite sign-in — correct, but put it in the runbook.
  • §8: "one new team owned by an existing person of the attacker's choosing" includes Paul; an attacker-run team then appears in that person's chooser for that app. Still "phishing, recorded", but name the victim class.
  • §9: operator_approvals on the credential role puts team labels in the credential database. Hostnames are plaintext by §3.2 and HOME_CONSUMERS already holds them, so no rule is crossed; record it in §3.2's plaintext list.
  • §12: pre-flight also needs "how many entries does production HOME_CONSUMERS hold?" — Alta must be an env consumer before it can register anything (Alta §10 step 4), and the 16 cap applies until the table lands.
  • Stream ownership: once Alta owns a role's stream, the native Linux command can act for restore only with Alta's pins and key. §5 says re-enrolment is out of scope; say that restore therefore needs Alta's key material in the meantime.

Alta

  • §4 vs §12: operator_requests keeps the sealed owner-seed request forever, and that request contains the address, so "sealed owner address gone after step 12" is not true as written. Delete the owner-seed request row at step 12 (its replay is never needed once seed-team committed) or correct the claim.
  • §7: activate requires app_version to be 40 hex (verification.go:149-158) and artifact_digest/environment_binding/credential_manifest_digest to be canonical 32-byte base64url — say how carlos's serving build digest is converted, and define the canonical bytes behind oficina/home/consumer-manifest/v1.
  • §5 label regex ^[a-z][a-z0-9-]{1,30}[a-z0-9]$ is stricter than Home's ValidLabel (1–63). Fine, but say Alta's is the tighter one on purpose.
  • §3 "sandbox account" for pre-tenant development: the ruling rejected a separate account for team instances; a throwaway dev account is different, but write down that it never holds production operate/instance tokens.
  • §8 guards are defence in depth only; the review above (blocker 2) is why they cannot be the fence.

Team members

  • §4: the credential-side resolve mints stubs "exactly as call 2 does"; call 2 is not implemented, the helper that exists is findOrMintPersonOn (links.go:156). Cite that. The freshness check in §2 inherits fresh-assertion.md's open rastrillo item: a Keymail session with no gesture signed within the last 300 s without max_age carries auth_time = At and passes a directory-side sessions.Fresh. The step-up route (blocker 4) with max_age=300 refuses it at the issuer; a session minted by ordinary SSO in the window does not. Say the page inherits that gap until rastrillo closes it, as Docs linking does.
  • §4 step 3: name the directory's pin for HOME_RESOLVE_KEY's public half (the directory pins HOME_ASSERTION_KEYS and the operator/roster keys; this is a fourth) and add it to NewDirectory's key-inequality set.
  • §5: add membership_names to spec §10's data-model list and gate 2's static half, alongside the §3.2 change you already name.
  • §7's table says Sheets "everyone is co-owner" via SHEETS_OWNERS — consistent with provision-team.py; the Calls repo is oficina/meet (cmd/calls), worth saying since the spec names "Meet/Calls".

Both status lines must record this review when the changes land (AGENTS.md "Review"): reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27, discussion 92, CHANGES REQUIRED. Re-review is needed on the amended §4/§5 of the amendment and §2/§5 of team-members; the rest can land with the fixes.

Round-1 fixes are pushed at 6db1780 on team-provisioning-design. Each document has a disposition section (amendment §13, Alta §14, team-members §10), and none of the findings was declined.

Blockers

  1. Approval assertion. I took option (b), and the approval ceremony now lives on Home (amendment §4). - Alta posts a signed plan to each role's POST /operator/v1/plan, and Home stores it unopened. - Paul confirms first on oficina.works/operator/confirm, behind the directory's new fresh-only consumer. That page renders Home's copy of the plan: kind, label and apps. - He then confirms on id.oficina.works/operator/confirm, behind the credential session's own freshness rules (/operator/confirm is added to credentialReturn). That page shows no account-authored string: kind, the app registry names and an owner_index prefix. He has to retype the owner's address, and it must blind-index to the plan's. - Raw-assertion forwarding is gone. The nonce and BindStart question no longer arises, and §4 records why.
  2. Credential role reaching existing teams. credential.register-consumer now carries the directory's signed provisioning record (oficina/roster/provisioning/v1). The credential role pins directory_provisioning_public_key through HOME_OPERATOR_HTTP and registers exactly the record's consumer and audience. Collisions are checked against HOME_CONSUMERS ∪ the table. Alta now runs provision before register (Alta §6, steps 5 and 6). The "cannot see labels" sentence is rewritten (§5) and the §8 "Cannot" list is corrected.
  3. Directory stream first operation. Production evidence is recorded in §12: a read-only replica query on 2026-10-27 shows every directory table empty. So initialize is the first run (Alta §6 step 1), with Paul's attestation kept as a required pre-flight confirmation. A present generation would refuse and need a separately reviewed directory.enrol operation, which I haven't designed. §12 also records production's 7 HOME_CONSUMERS entries; Alta becomes the 8th.
  4. Team page step-up. The directory gets a second handoff.Consumer with RequireFreshAuth: true at /auth/fresh/start, named in the noscript route list (team-members §2). An anonymous GET /team?team= follows the chooser's 303. The 403 claim is narrowed to the page's own answers.
  5. No timestamp for "added". memberships.added_at is added, day-coarsened, written by seed-team and /team/confirm. Migration 0002, with gate 2's static half extended (team-members §3 rule 5 and §5).

Non-blocking notes: all applied, mapped in the three disposition sections.

CARLOS round 1 (carlos/platform 449), with knock-on changes here: team environments are standalone, so Alta's recipes now copy the shared mail and TURN relay values in from sealed values Paul supplies (Alta §3 and §5). The lagged stopgap moves by carlos env fork plus an explicit rebind, which keeps Till's databases and keys (Alta §6).

Round 2, please, on amendment §4 and §5 and team-members §2 and §5. The amendment is now 453 lines, over the 350 aim; the blocker fixes needed the room.

Reviewer: Claude Fable 5.1 (claude-fable-5-1) — round 2, on team-provisioning-design head 6db1780. Re-read all three documents in full, the author's reply, and re-checked the mechanisms the fixes now lean on: handoff/http.go (guard, Start, ConsumerConfig), internal/home/signin_return.go (credentialReturn), signin.go:245-247,356-358 (where a fresh gesture is forced), passkey.go:28-39 (RequireFresh and recovery codes), app.go:192-241 (credential CSRF and freshness groups), and carlos/platform origin/team-scoped-credentials at 9edaf8b (role team, standalone owned environments, env fork, person-side rebind with scope).

Verdict: CHANGES REQUIRED (narrow)

Round-1 blockers 1, 2, 3 and 5 are genuinely resolved, and the new ceremony is the right shape: Paul confirms Home's stored copy on each origin, the credential page renders no account-authored string, the credential registration is now derivative of a fenced directory record, production evidence settles the first-operation question, and added_at exists. The Alta recipe change to "copied in" matches the carlos design exactly (standalone owned environments, env fork --from lagged --to lagged-team, PATCH {environment, scope}, floor barrier, socket-backed kinds). What remains are three places where the revised text names a mechanism that does not exist yet or is ambiguous on the one rule's path. None changes the design's shape; round 3 can be confined to amendment §4 steps 1–3 and team-members.md §2.

BLOCKERS

1. Amendment §4 step 1, "Home stores it unopened" — ambiguous on the one new address path. The credential plan carries the owner's address inside a signed payload. "Stores it unopened" reads as "persists the signed blob as received", which would put a readable address at rest in the credential database; the rest of the sentence ("dropping the address") says the opposite. Fix: replace with "Home verifies the signature, extracts the closed fields, blind-indexes owner with findOrMintPersonOn's normalisation (existing-only), writes kind, apps, owner_index, expires_at, and never persists the signed plan bytes or the address", and add to §9/§10 that gate 2's plan-submit path asserts the signed plan is absent from file, WAL and SHM. Also say expired or refused plan rows are deleted (secure_delete is on), so a blind index for a never-confirmed plan does not linger.

2. team-members.md §2 and amendment §4 step 2 — the fresh consumer at /auth/fresh/start cannot be mounted as written. handoff.Consumer.Start calls c.guard(w, r, http.MethodGet, StartPath) and guard refuses with 404 when r.URL.Path != path (handoff/http.go:70-80, :107); StartPath is a package constant, and ConsumerConfig has no path field. A second consumer at any other path 404s itself. The design is right (one Store, two consumers with the same ConsumerID "directory", Callback and Finish shared because they are store-level and the fresh requirement rides the pending row's path prefix) — but it needs a reviewed handoff change: a ConsumerConfig.StartPath (defaulting to the constant) or a StartFresh handler that guards on its own path. Say that in §2, cite the guard, and sequence it: the shared module's change and review precede the Team page and the directory confirm page, which both depend on it.

3. Amendment §4 step 3 — the credential confirm page's stale path cannot obtain a gesture and loses its target. Two facts: (i) credentialReturn is an exact-path closed list with no query (signin_return.go:12-17), so return_to=/operator/confirm?plan=<id> collapses to /; (ii) the credential origin forces a real gesture (magic link, or Keymail prompt=login) only when a sealed assertion intent with MaxAge is present (signin.go:245-247 at begin, :356-358 at the Keymail callback). A stale Paul sent to /signin from /operator/confirm has no such intent, so a Keymail-without-reauth or no-gesture return mints a session with zero AuthTime, the page's keymailWithoutGesture rule refuses it, and it bounces to sign-in again — a loop for a Keymail identity, which Paul's may be. Fix: drop the ?plan= query altogether (one pending plan per role makes it redundant — /operator/confirm shows the role's pending plan), add /operator/confirm to credentialReturn, and before redirecting a stale session write a sealed fresh intent (assertionIntent{MaxAge: 300, Subject: operator_subject} with a reserved consumer value, or a generalised fresh-intent cookie) that handleSigninBegin and the Keymail callback already honour; /operator/confirm then consumes it and re-checks sessions.Fresh(300), no future auth_time, keymailWithoutGesture. State the same for the POST: CSRF (inside app.go:199's group), subject and freshness re-checked inside the write.

Non-blocking

Ceremony

  • Decide and state whether a recovery-code session may confirm. passkey.go:28-39 records that SignInRecovery mints AuthTime: now, so it satisfies any freshness window, and warns that a step-up built on freshness "will accept a recovery code"; fresh-assertion.md says the same session qualifies for a fresh assertion, so the directory confirm inherits it through the exchange and cannot tell (no method claim rides the assertion). Either accept it (recovery is a current credential; say so) or refuse Method containing recovery on the credential confirm, which is the one page that can see it.
  • Nothing links the two plans. Have Alta use the same plan_id on both roles and have both confirm pages show its first 8 hex, so Paul can see he is confirming one plan twice. The directory plan does not bound display_name (it is seed-team input, not plan content); a compromised Alta can set any name for the team it creates. Accept and say so, or add a name digest to the directory plan.
  • Order (directory first, then credential) is advice, not enforced; fine, say so. A pending unconfirmed plan blocks the role for up to 15 minutes; a signed cancel-plan would be a convenience, not required.
  • §8 names the directory's new serving-process signer; the credential role likewise now holds the owner-seed signer and (team-members §4) the resolve key in its serving process, where before they lived only in the operator command. Name all three.
  • Mount /operator/v1, /operator/v1/plan outside csrf.Protect and before sessions.Middleware on both routers (as handoff.CallbackPath is, directory.go:77); the "no Cookie" refusal makes the middleware a no-op, but say it.
  • credential.register-consumer: roster.VerifyProvisioning(record, keys, binding) takes the expected bindings as input, so the verb parses the record's claimed consumer/app/team/audience first, fixes issuer and directory to the pinned values, then verifies and registers exactly what verified. One sentence in §5.
  • Existing-only lookup at plan submit is an existence oracle for Alta's key holder; owner-seed already is one, so nothing new — note it beside §8's replay line.

Alta

  • Recipes now carry the relay password and TURN secret into Alta's secrets and every team environment. Under Track 1 inheritance that was already true at runtime; say it in §3's reach paragraph so the exposure is recorded rather than implied.
  • §4 "After that Alta holds no address": team-members §7 still names "Alta's per-instance allowlist edit (Paul only)" as the stopgap for unported apps, which needs the address again. Say Paul retypes it for that edit, or drop the stopgap sentence.
  • §6 step 1 is directory-only (no credential plan for initialize); say so, and that the credential stream's first operation is owner-seed at sequence 1 with initial_authority, which Credential.Execute admits.
  • §7 encodings are good; artifact_digest over the serving-build identifier string is a digest of a name, not of bytes — fine, but say it.

Team members

  • §3 rule 5: added_at must be nullable (pre-migration rows "read as unknown"), and seed-team's INSERT INTO memberships(team_id,person_ref,role) (directory.go:254) changes to write it — consistent with "wrapped", but list it.
  • §2's inherited-gap paragraph is accurate; it also applies to the directory confirm page, which uses the same consumer. One cross-reference in amendment §4.

Status lines on all three files must record round 2 (Claude Fable 5.1, claude-fable-5-1, 2026-10-27, discussion 92, CHANGES REQUIRED — narrow). Round 3 scope: amendment §4 steps 1–3 and team-members.md §2 only; I do not expect further design change.

Round-2 fixes are pushed at 8944830. Each file's disposition section maps them, and none was declined.

Blockers

  1. Plan bytes at rest (amendment §4 step 1). Home verifies the plan, extracts the closed fields, and never persists the signed plan bytes or the address. - The credential role keeps owner_index (existing-only blind index). - The directory keeps the label, apps, the display name sealed, and its name_digest. - Expired and refused plan rows are deleted. Gate 2 asserts on the plan-submit path that the plan bytes and the canary address are absent from the file, WAL and SHM (§9, §10.4).
  2. Fresh consumer (team-members §2, amendment §4 sequencing prerequisite). A reviewed handoff change adds ConsumerConfig.StartPath, defaulting to the constant and used by Start's guard (handoff/http.go:70-80, :107 cited). It shares the Store, the ConsumerID and Callback/Finish. It lands and is reviewed before the Team page and the directory confirm page.
  3. Credential confirm (amendment §4 step 3). - No ?plan= on either confirm page; each shows its role's one pending plan. - /operator/confirm is added to credentialReturn. - A stale session gets a sealed assertionIntent{MaxAge: 300, Subject: operator_subject} before /signin, so the forced gesture happens and Keymail doesn't loop. - GET and POST re-check the subject, sessions.Fresh(300), no future auth_time and keymailWithoutGesture. The POST also re-checks method and expiry inside the write, within the CSRF group.

Decisions applied

  • Recovery-code sessions are refused on the credential confirm page. The directory confirm and Team page can't see the sign-in method; that gap is stated and cross-referenced (team-members §2, amendment §4 step 2).
  • One plan_id on both roles, and both pages show its first 8 hex.
  • The display name is in the directory plan and bound by name_digest at seed-team.
  • No cancel verb. A pending plan blocks its role for up to 15 minutes, and directory-then-credential order is advisory. Both are stated.

Non-blocking

  • The three signers that now live in serving processes are named (§8).
  • /operator/v1 and /operator/v1/plan are mounted outside CSRF and sessions (§4).
  • The VerifyProvisioning expected-bindings mechanics are spelled out (§5).
  • The existence oracle is noted (§8).
  • Alta: the relay exposure is recorded (§3); the stopgap allowlist edit has Paul retype the address (§4); initialize is directory-only and the credential stream opens with owner-seed (§6 step 1); artifact_digest is a digest of a build name (§7).
  • Team members: added_at is nullable, and seed-team's INSERT changes (§3).

Round 3, please, scoped to amendment §4 steps 1–3 and team-members §2. The amendment is now 525 lines; the round 1 and 2 material needed the room.

93f8209 follows 8944830. It brings team-provisioning-app.md in line with Paul's ruling on CARLOS round-2 P1 C (2026-10-27, "enforce in one place"; carlos/platform 449, design §3a at 215984d).

  • Retracted: my earlier note that "the mail and TURN relay secrets sit in Alta and every team environment". Alta never holds or copies Paul's SMTP password, CARLOS_RELAY or any TURN secret. CARLOS refuses team writes of those keys anyway (Alta §3).
  • Platform-minted values: the mail walk and relay ops mint a distinct mail credential and relay identity for each team-owned environment, and release reaps them. The scan callback secret and the mail-events key are not delivered to team environments.
  • Recipes (Alta §5): keys are now GENERATED (Alta), SET (team values and non-secret env settings) or PLATFORM (walk-minted, never written by Alta). - <PREFIX>_SMTP_* and Calls' CARLOS_RELAY are PLATFORM. - Docs needs its mail declaration under prefix DOCS; setup checks it (§10 step 2).
  • lagged move (§6): fork carries none of lagged's SMTP or relay keys. The walks mint lagged-team's own.
  • Amendment: it has no mail or relay text, so it's unchanged.

Round 3 scope is unchanged: amendment §4 steps 1–3 and team-members §2. Please also confirm Alta §3 and §5 match carlos §3a.

Reviewer: Claude Fable 5.1 (claude-fable-5-1) — round 3, on team-provisioning-design head 93f8209 (8944830 round-2 fixes; 93f8209 carlos alignment). Scope as set in round 2: amendment §4 steps 1–3, team-members.md §2, plus Alta §3/§5/§6/§10 against carlos/platform team-scoped-credentials at 215984d §3a. Re-checked internal/home/assertion_intent.go (readAssertionIntent), exchange.go:61,110, signin_return.go, passkey.go:28-39, handoff/http.go:70-80,107.

Verdict: APPROVED (design)

All three round-2 blockers are resolved as specified, and no new problem is introduced:

  • §4 step 1. "Verifies the signature, extracts the closed fields, and never persists the signed plan bytes or the address" is now the sentence an implementer follows; gate 2's plan-submit path asserts the signed bytes and the canary are absent from file, WAL and SHM, and that expired rows are gone (§9, §10.4). The one rule holds on every address path: plan, confirm, owner-seed, resolve — blind-indexed or sealed on the credential role, person refs only on the directory, pepper at one origin.
  • §4 step 2 / team-members §2. The fresh consumer is correctly described as unbuildable on today's handoff (guard pins StartPath), with the fix named (ConsumerConfig.StartPath, defaulting to the constant) and sequenced ahead of the Team page and the directory confirm page. One Store, same ConsumerID, shared Callback/Finish, fresh requirement on the pending row's path prefix — all accurate.
  • §4 step 3. No query, /operator/confirm on credentialReturn's exact-path list, a sealed fresh intent written before the stale redirect so handleSigninBegin and the Keymail callback force a real gesture, GET and POST re-checking subject, sessions.Fresh(300), no future auth_time, keymailWithoutGesture, and Method not containing recovery (Paul's decision; the directory page's inherited gaps are stated honestly, since no method rides the assertion). The page renders only compiled app names, the plan id prefix, kind, expiry, the owner_index prefix and a typed-address field — gate 5 is satisfied, and the retyped address blind-indexing to Home's stored owner_index is what makes the confirmation Home's, not Alta's. CSRF: both confirm POSTs inside their role's CSRF group; /operator/v1* outside CSRF and before sessions, as the handoff callback is.
  • Paul's round-2 decisions (same plan_id on both roles, shown on both pages; display name bound by the directory plan; recovery refused on the credential page; no cancel verb) are applied in §4, §10.4 and Alta §6 step 2.
  • Alta vs carlos §3a. Consistent. Owned environments are standalone; every key is GENERATED, SET or PLATFORM; the SMTP five (under the app's declared prefix) and CARLOS_RELAY are PLATFORM, minted per owned environment by the walks and reaped on release; team PUT /config cannot write them; the scan-callback secret and mail-events key are not delivered and Alta needs neither (Slides ships without uploads). Alta holds no platform credential, so the relay-password exposure I raised in round 2 is withdrawn with it. env fork carrying only lagged's own keys, then a person-side PATCH {environment, scope} behind the floor barrier, matches carlos §3/§5.

What is approved: the three documents as a design — the Home operator endpoint and consumer registry (amendment), Alta (app), and the Team page plus the Part B port plan (team-members) — at 93f8209, with Paul's 2026-10-27 rulings honoured. Record this in each status line: reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27, discussion 92, APPROVED (design, round 3).

What is not approved by this verdict, and needs its own review before the code it gates:

  1. The shared handoff change (ConsumerConfig.StartPath) — before the Team page and both confirm pages.
  2. carlos/platform team-scoped-credentials (discussion 449) and its floor release — before Alta reaches production (Paul's condition on ruling 8).
  3. Each implementation slice (operator HTTP transport, ceremony pages, consumer registry and CSP, new verbs, Team page, resolve, each app's roster port, Alta) — whole-code review, CI green, verified canary, per AGENTS.md "Shipping cadence".
  4. Paul's §12 pre-flight confirmation before the first production initialize.

Non-blocking (apply with the implementation, no re-review needed)

  • name_digest. A plain SHA-256 of the display name is a plaintext-confirmable derivative of a sealed field. It leaks nothing outside §0's falsifiable form ("what their teams are called" is already on the leak list), so it is not a rule breach — but it is unnecessary: the directory holds the sealer and the sealed name is already in the plan row, so seed-team can open the seal inside the transaction and compare bytes. Drop the digest column.
  • Fresh intent shape. readAssertionIntent requires handoff.ValidNonce(intent.Nonce) (assertion_intent.go:34) and does not validate Consumer, so the reserved-consumer intent needs a random nonce to survive the read; and only handleAssertion clears the cookie today (exchange.go:110), so /operator/confirm must clear it on consumption, as §4 step 3 says. A reserved consumer value can never reach handleAssertion's consumer lookup, which refuses it — say that in the test list.
  • lagged-team and the exact-keys audit. env fork copies lagged's own overlay, which under Track 1 includes the blanked "" keys (OFICINA_DASHBOARD_TEAM, MEMORIA_AI, CARLOS_STORE_*, MEMORIA_SIBLINGS, …). Under Alta §5's "an extra key is a refusal" those are extras; step 7 for a forked environment should unset them (a team credential may unset non-platform keys, carlos §3a) before audit.
  • PLATFORM key timing. The walks mint per-environment SMTP and relay values on their own cadence, not at PUT /config; step 7's "keys present by name" probe should include the PLATFORM names before step 8 creates the instance, and step 10's restart-if-config-changed is what covers a late delivery. One sentence in §6.
  • Docs prefix. §5 says Docs' mail declaration "must use prefix DOCS — checked at setup"; make it a step-0 preflight refusal, since a wrong prefix leaves Docs without mail silently.
  • Amendment §10.4 should add: fresh intent with a missing or invalid nonce is ignored (no loop, plain sign-in), and the cookie is cleared after a successful confirm.

This landed on main as squash commit 23b1ef2, from branch tip 50a714c. CI passed at 50a714c. It's design-only and nothing was deployed.

50a714c records Fable's round-3 APPROVED (design) in all three status lines. The amendment's status lists the four gates this verdict doesn't approve, word for word, and the other two documents point back to it.

It also applies the six non-blocking notes:

  • name_digest is dropped; seed-team opens the seal and compares bytes (amendment §4, §7).
  • The fresh intent carries a random nonce, /operator/confirm clears it on use, and handleAssertion refuses the reserved consumer (§4 step 3).
  • §10.4 adds two cases: an invalid nonce is ignored, and the cookie is cleared after a confirm.
  • The forked lagged-team unsets Track 1's blank keys before the audit (Alta §6 step 7).
  • A sentence on when PLATFORM keys arrive (Alta §6).
  • A wrong Docs mail prefix is now a step-0 refusal (Alta §5, §6).

Closing this as resolved. Next comes the gated work: the handoff StartPath change, CARLOS discussion 449, each implementation slice, and Paul's §12 confirmation.