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 plusHOME_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); andhome-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 byinspect), 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 pluscredential.inspect. Say "engine unchanged, verbs wrapped". - §4
Oficina-Planheader is unsigned. With one open window per role it is redundant; either putplan_idin the signedoperation_inputor 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-seedoperation (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'sexpires_at, or step 3 refuses forever. - §5
<role>.inspect:Inspectrefuses when the state row's pins differ (inspect.go:105-110) and today returns no(sequence, head); the credential role has noInspectat all. Fine to add; note both are new code, and thatdirectory.inspectdoes not report label freedom (Alta §6 step 0 claims it does — either extend it or drop the claim). - §5
credential.retire-consumer+origin UNIQUEmakes an app's hostname dead at Home for good, so anadd-appsrun can never re-add a retired app to the same team. Either intended (say so beside "labels are never reused") orretired → activeneeds 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_configincluded, read the union. ThesignoutConfirmpage (a same-origin POST that redirects to a preview consumer) needs the same per-responseform-actionas 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_approvalson the credential role puts team labels in the credential database. Hostnames are plaintext by §3.2 andHOME_CONSUMERSalready 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_CONSUMERShold?" — 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_requestskeeps the sealedowner-seedrequest 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 onceseed-teamcommitted) or correct the claim. - §7:
activaterequiresapp_versionto be 40 hex (verification.go:149-158) andartifact_digest/environment_binding/credential_manifest_digestto be canonical 32-byte base64url — say how carlos's serving build digest is converted, and define the canonical bytes behindoficina/home/consumer-manifest/v1. - §5 label regex
^[a-z][a-z0-9-]{1,30}[a-z0-9]$is stricter than Home'sValidLabel(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/instancetokens. - §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 inheritsfresh-assertion.md's open rastrillo item: a Keymail session with no gesture signed within the last 300 s withoutmax_agecarriesauth_time = Atand passes a directory-sidesessions.Fresh. The step-up route (blocker 4) withmax_age=300refuses 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 pinsHOME_ASSERTION_KEYSand the operator/roster keys; this is a fourth) and add it toNewDirectory's key-inequality set. - §5: add
membership_namesto 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 withprovision-team.py; the Calls repo isoficina/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.