oficina / home Public

Resolve Fable round-2 review of the team provisioning designs

Discussion 92, Claude Fable 5.1, CHANGES REQUIRED (narrow). Round 3 is
scoped to amendment §4 steps 1-3 and team-members §2.

- Plan submit verifies, extracts the closed fields and never persists the
  signed plan bytes or the address; expired and refused plan rows are
  deleted; gate 2 asserts it on that path.
- The directory's fresh-only consumer needs a reviewed handoff change
  (ConsumerConfig.StartPath; guard at handoff/http.go:70-80,107), which
  lands before the Team page and the directory confirm page.
- Confirm pages take no query; /operator/confirm joins credentialReturn;
  a stale credential session gets a sealed MaxAge-300 fresh intent so the
  forced gesture does not loop; GET and POST re-check inside the write.
- Recovery-code sessions refused on the credential confirm; the
  directory's inherited gap stated. One plan_id across roles, shown on
  both pages. Display name bound by a digest in the directory plan. No
  cancel verb; the 15-minute block stated.
- Non-blocking notes applied in all three files.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 89448305cb0471c2fede08c9864806b2da482c35 parent 6db1780
3 files changed, +205 −95
  • implementation/team-members.md +42 −16
  • implementation/team-provisioning-amendment.md +141 −69
  • implementation/team-provisioning-app.md +22 −10

CI passed — run details

diff --git a/implementation/team-members.md b/implementation/team-members.md
index ecdc59e..1b1fc49 100644
--- a/implementation/team-members.md
+++ b/implementation/team-members.md
@@ -1,9 +1,11 @@
# 🤖 Team members: the Team page, and roster mode in every app
**Status:** PROPOSED, 2026-10-27. Drafted by Claude Opus 5.5 for Paul.
-**Round 1: reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27,
-discussion 92 — CHANGES REQUIRED.** Round-1 fixes applied (§10); round 2
-pending on §2 and §5. **No code until a top-model review approves it.**
+**Round 1: Claude Fable 5.1 (claude-fable-5-1), 2026-10-27, discussion 92
+— CHANGES REQUIRED.** **Round 2: Claude Fable 5.1 (claude-fable-5-1),
+2026-10-27, discussion 92 — CHANGES REQUIRED (narrow).** Fixes for both
+rounds applied (§10); **round 3 pending, scoped to §2** (and amendment §4
+steps 1–3). **No code until a top-model review approves it.**
Base: Home origin/main `e2ec1ab`; Docs `d867db1`, Sheets `af8deeb`, Slides
`ebbb08f`, Calendar `00d8e3d`, Calls (repo `oficina/meet`, `cmd/calls`)
`47afcb9`, Memoria `521ae24`.
@@ -45,12 +47,23 @@ that app ignores the Team page and keeps admitting by its own allowlist.
- **Who writes:** owners only. A member sees no write controls, and a
member's POST to any write route gets the same 404 (gate 21).
- **Reading needs a session; writing needs a fresh one (round 1, blocker
- 4).** The directory gains a **second `handoff.Consumer`** on the same
- store, with `RequireFreshAuth: true`, mounted at its own start path
- **`/auth/fresh/start`** (the existing consumer at `/auth/start` stays
- ordinary; `RequireFreshAuth` is per consumer, `handoff/http.go:139-141`).
- It asks the issuer for `max_age=300` and enforces the five-minute window
- itself on finish. Every Team-page POST checks the directory session's
+ 4; round 2, blocker 2).** The directory gains a **second
+ `handoff.Consumer`** on the same `Store`, same `ConsumerID` (`directory`),
+ with `RequireFreshAuth: true`, at its own start path
+ **`/auth/fresh/start`**; `Callback` and `Finish` stay shared because they
+ are store-level and the fresh requirement rides the pending row's path
+ prefix. The existing consumer at `/auth/start` stays ordinary
+ (`RequireFreshAuth` is per consumer, `handoff/http.go:139-141`). **This
+ cannot be mounted on today's `handoff`:** `Start` calls `c.guard(w, r,
+ http.MethodGet, StartPath)` and `guard` 404s when `r.URL.Path != path`
+ (`handoff/http.go:70-80`, `:107`), with `StartPath` a package constant and
+ no path field in `ConsumerConfig`. So it needs a **reviewed change to the
+ shared `handoff` module**: `ConsumerConfig.StartPath`, defaulting to the
+ constant, used by `Start`'s guard. **Sequencing:** that change, its tests
+ and its review land first; the Team page and the directory operator
+ confirm page (amendment §4) both depend on it and come after. The fresh
+ consumer asks the issuer for `max_age=300` and enforces the five-minute
+ window itself on finish. Every Team-page POST checks the directory session's
`auth_time` is within 300 s and not in the future; if not, it renders the
existing continuation page to
`/auth/fresh/start?return_to=%2Fteam%3Fteam%3D<sqid>`, and the person
@@ -67,7 +80,13 @@ that app ignores the Team page and keeps admitting by its own allowlist.
`auth_time = At` and passes a directory-side freshness check. The page
inherits that gap until rastrillo lets an assertion carry an absent
`auth_time`, exactly as Docs linking does. Writes that arrive through
- `/auth/fresh/start` are not affected.
+ `/auth/fresh/start` are not affected. **Recovery codes:** a recovery-code
+ sign-in mints `AuthTime: now` (`passkey.go:28-39`) and no method claim
+ rides the assertion, so a fresh exchange from such a session passes here.
+ For the Team page that is accepted — recovery is a current credential.
+ The directory operator confirm page inherits the same two gaps; the
+ credential confirm page is where Paul's method is visible and refused
+ (amendment §4 step 3).
- **Scriptless.** Every action is a plain form POST with CSRF; estilo's
`busy.js` is the only script, already on Home's closed list.
- **Shape (estilo, Calma door rules — sky only on the team header):**
@@ -98,10 +117,12 @@ that app ignores the Team page and keeps admitting by its own allowlist.
4. **Epoch bumps** come from the existing `memberships_epoch_*` triggers; no
second increment. Instances see a change within the roster lease
(refresh due 30 s, hard expiry 60 s — `roster-contract.md`).
-5. **`added_at`** (round 1, blocker 5): `memberships` gains `added_at`
- (integer day, coarsened per §3.3), written by `directory.seed-team` for
- the first owner and by `/team/confirm`; rows from before the migration
- read as unknown and show no date. Additive migration
+5. **`added_at`** (round 1, blocker 5): `memberships` gains a **nullable**
+ `added_at` (integer day, coarsened per §3.3), written by
+ `directory.seed-team` for the first owner — its `INSERT INTO
+ memberships(team_id,person_ref,role)` (`directory.go:254`) changes to
+ write it, part of "verbs wrapped" — and by `/team/confirm`; pre-migration
+ rows hold NULL and show no date. Additive migration
`directorydata/migrations/0002_membership_added_at.sql`; gate 2's static
half reads it.
6. **Bounds:** 500 members per team (well inside the roster's 10,000 and
@@ -283,7 +304,8 @@ as a credential consumer so Home sign-in works, but leaves its directory
`team_instances` row **pending**: `roster-contract.md` forbids marking an
instance live in the chooser before TeamMode passes its gates. Adding someone
on the Team page therefore does nothing in that app until it is ported;
-Alta's per-instance allowlist edit (Paul only) is the stopgap.
+Alta's per-instance allowlist edit (Paul only, retyping the address — Alta
+keeps none after a team is live) is the stopgap.
**Acceptance per port:** Docs' existing roster test list (two teams, removal
within 60 s under failing refresh, grant-only vs owner shortcut, stream
@@ -313,4 +335,8 @@ narrowed to the page's own answers. Blocker 5 (no `added_at`) → §3 rule 5,
§5 spec-text list. Notes: `findOrMintPersonOn` cited (§4 step 3); freshness
gap inherited and stated (§2); `HOME_RESOLVE_PUBLIC_KEY` pinned and in the
inequality set (§4 step 3); `membership_names` in §10 and gate 2 (§5);
-Calls repo named (status). None declined.
+Calls repo named (status). **Round 2:** blocker 2 (fresh consumer not
+mountable) → §2: reviewed `handoff` change (`ConsumerConfig.StartPath`),
+guard cited, sequenced first; recovery-code acceptance stated and
+cross-referenced; `added_at` nullable and the seed INSERT change (§3); the
+stopgap allowlist edit retypes the address (§7). None declined.
diff --git a/implementation/team-provisioning-amendment.md b/implementation/team-provisioning-amendment.md
index a2b2bbe..435047a 100644
--- a/implementation/team-provisioning-amendment.md
+++ b/implementation/team-provisioning-amendment.md
@@ -1,10 +1,11 @@
# 🤖 Amendment: the operator endpoint (teams without the maintenance worker)
**Status:** PROPOSED, 2026-10-27. Drafted by Claude Opus 5.5 for Paul.
-**Round 1: reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27,
-discussion 92 — CHANGES REQUIRED (5 blockers, non-blocking notes).** Round-1
-fixes are applied below (§13 maps each finding); **round 2 is pending** on
-§4 and §5 here and §2/§5 of `team-members.md`. **No code until a top-model
+**Round 1: Claude Fable 5.1 (claude-fable-5-1), 2026-10-27, discussion 92 —
+CHANGES REQUIRED (5 blockers).** **Round 2: Claude Fable 5.1
+(claude-fable-5-1), 2026-10-27, discussion 92 — CHANGES REQUIRED (narrow,
+3 blockers).** Fixes for both rounds are applied (§13); **round 3 is
+pending, scoped to §4 steps 1–3 here and `team-members.md` §2.** **No code until a top-model
review approves this file** (AGENTS.md "Review") and Paul gives the
pre-flight confirmation in §12. Direction approved in principle by Paul,
2026-10-27: "the provisioning app creates teams, owners and consumer
@@ -121,7 +122,8 @@ credential role only); ruling 19; ruling 23; `home-operator-seed.md`'s
credential verbs, `oficina.works` for directory verbs):
`POST /operator/v1` (signed operation or signed inspect challenge),
`POST /operator/v1/plan` (Alta submits a signed plan, §4),
- `GET` + `POST /operator/confirm?plan=<id>` (Paul's browser, §4).
+ `GET` + `POST /operator/confirm` (Paul's browser, §4; no query — one
+ pending plan per role).
- **Off unless configured.** `HOME_OPERATOR_HTTP` (JSON ≤ 8 KiB, closed
fields) per role: `version`, `role`, `origin`, `installation`, `registry`,
`device`, `public_key`, `key_id`, `actions` (≤ 8), `operator_subject`
@@ -150,52 +152,91 @@ An operation is accepted only if **all** hold, in order, before any write:
role/origin/installation/registry/device, sequence = previous + 1.
4. **An open window on this role admitting the verb and its input** (below).
-**The ceremony (round 1, blocker 1 — option (b)).**
+**The ceremony (round 1, blocker 1 — option (b); round 2, blockers 1 and
+3).**
+
+**Sequencing prerequisite.** Step 2 needs the directory's fresh-only
+consumer, which needs a **reviewed change to the shared `handoff` module**
+(`team-members.md` §2: today `guard` 404s any start path but the
+`StartPath` constant, `handoff/http.go:70-80`, `:107`). That change and its
+review land **before** the directory confirm page and the Team page.
1. **Alta submits a plan to each role**, `POST /operator/v1/plan` (same
transport checks 1–2), signed by Alta's key under context
- `oficina/home/operator-plan/v1`: `plan_id` (32 random bytes), `role`,
- `kind` (`initialize` | `create-team` | `add-apps` | `retire-apps`),
- `apps` (registry slugs), `issued_at`, `expires_at` (≤ 900 s); the
- **directory** plan adds `label`; the **credential** plan adds `owner`
- (the address, private, never stored). Home stores it **unopened**:
- directory keeps `label`, `apps`, `kind`; credential keeps `kind`, `apps`
- and `owner_index` = the blind index (`findOrMintPersonOn`'s normalisation
- and index, `links.go:156`; existing-only lookup), dropping the address.
- One pending and one open plan per role; a third refuses.
-2. **Paul's browser confirms on the directory first**:
- `https://oficina.works/operator/confirm?plan=<id>`. It sits behind the
- directory's **fresh consumer** (the second `handoff.Consumer` with
- `RequireFreshAuth: true`, `team-members.md` §2): a session whose
- `auth_time` is older than 300 s or in the future is sent through the
- fresh exchange first. Subject ≠ `operator_subject` → 404. The page renders
- **Home's copy**: kind, label, each app as `<label>.<app>.oficina.works`,
- expiry. [Open window] POST (CSRF, freshness re-checked) opens the
- directory window for 15 minutes. The page then links on.
-3. **Then on the credential origin**:
- `https://id.oficina.works/operator/confirm?plan=<id>`, behind the
- credential session's own freshness — `sessions.Fresh(300)` plus the
- `fresh-assertion.md` rules (no future `auth_time`; a Keymail session with
- no reported gesture never counts); stale sends Paul through sign-in with
- `/operator/confirm` added to `credentialReturn`'s closed list. Subject ≠
- `operator_subject` → 404. **The page renders no account-authored
- string** (gate 5): kind, app registry names (compiled constants), expiry,
- the first 8 hex of `owner_index`, and a field "Type the owner's email to
- confirm". The POST opens the window only if the typed address
- blind-indexes to `owner_index` — so a compromised Alta cannot swap the
- owner under Paul's nose.
-
-**Nonce and `BindStart`.** The raw-assertion forwarding of round 0 is
-removed: Home never receives an assertion from Alta, so nothing binds a plan
-to an assertion nonce. (Recorded because round 1 found it unbuildable:
-`handoff.Store.Finish` hands `Complete` parsed claims and deletes the token,
-`handoff/http.go:206-230`; `RequireFreshAuth` is per consumer, not per
-request, `http.go:139-141`.) Alta's own Home sign-in is an ordinary
-consumer.
+ `oficina/home/operator-plan/v1`. **Both roles' plans carry the same
+ `plan_id`** (32 random bytes), plus `role`, `kind` (`initialize` |
+ `create-team` | `add-apps` | `retire-apps`), `apps` (registry slugs),
+ `issued_at`, `expires_at` (≤ 900 s). The **directory** plan adds `label`
+ and `display_name` (round 2: so a compromised Alta cannot choose the
+ team's name after Paul confirms); the **credential** plan adds `owner`.
+ **Home verifies the signature, extracts the closed fields, and never
+ persists the signed plan bytes or the address.** Directory writes
+ `plan_id`, `kind`, `label`, `apps`, `expires_at`, the display name
+ **sealed** (the team-name helper) and `name_digest` = SHA-256 of its exact
+ bytes. Credential blind-indexes `owner` with `findOrMintPersonOn`'s
+ normalisation (`links.go:156`, existing-only lookup) and writes
+ `plan_id`, `kind`, `apps`, `owner_index`, `expires_at`. One pending and
+ one open plan per role; a further submit refuses until the pending one is
+ confirmed or expires (**up to 15 minutes; no cancel verb** — a convenience
+ we skip). **Expired and refused plan rows are deleted** (`secure_delete`
+ is on), so a blind index for a never-confirmed plan does not linger.
+2. **Paul's browser confirms on the directory**:
+ `https://oficina.works/operator/confirm` — **no query**; the page shows
+ the role's one pending plan. It sits behind the directory's fresh-only
+ consumer (`/auth/fresh/start`, `team-members.md` §2): a session whose
+ `auth_time` is older than 300 s or in the future goes through the fresh
+ exchange first and returns to `/operator/confirm`. Subject ≠
+ `operator_subject` → 404. The page renders **Home's copy**: the first 8
+ hex of `plan_id`, kind, label, display name, each app as
+ `<label>.<app>.oficina.works`, expiry. [Open window] POST — inside the
+ directory's CSRF group — re-checks subject, freshness and plan expiry
+ **inside the write**, then opens the directory window for 15 minutes.
+ **Inherited gap:** the directory session carries no sign-in method, so a
+ recovery-code session and the Keymail no-gesture case of
+ `team-members.md` §2 pass here exactly as they pass the Team page; the
+ credential page below is where the method is visible and refused.
+3. **Then on the credential origin**: `https://id.oficina.works/operator/confirm`
+ — **no query**, the role's one pending plan. `/operator/confirm` joins
+ `credentialReturn`'s closed list (`signin_return.go:12-17`, exact paths,
+ no query). On **GET and POST** it requires: subject = `operator_subject`
+ (else 404); `sessions.Fresh(300)`; no future `auth_time`; not
+ `keymailWithoutGesture`; and **`Method` not containing `recovery`** (Paul,
+ round 2: recovery codes mint `AuthTime: now`, `passkey.go:28-39`, so they
+ would satisfy any freshness window; this page refuses them). **A stale
+ session** gets a sealed **fresh intent** written before the redirect to
+ `/signin` — `assertionIntent{MaxAge: 300, Subject: operator_subject}` with
+ a reserved consumer value — which `handleSigninBegin` and the Keymail
+ callback already honour (`signin.go:245-247`, `:356-358`), so the sign-in
+ forces a real gesture (magic link, or Keymail `prompt=login`) instead of
+ looping; `/operator/confirm` consumes the intent on return and re-checks
+ everything above. **The page renders no account-authored string** (gate
+ 5): the first 8 hex of `plan_id` (the same plan Paul just opened on the
+ directory), kind, app registry names (compiled constants), expiry, the
+ first 8 hex of `owner_index`, and "Type the owner's email to confirm".
+ The POST — inside the credential CSRF group (`app.go:199`) — re-checks
+ subject, freshness, method and expiry **inside the write**, and opens the
+ window only if the typed address blind-indexes to `owner_index`.
+
+**Order is advice, not enforced.** Paul is told directory first, then
+credential; nothing breaks if he reverses it. An `initialize` plan is
+directory-only.
+
+**Mounting.** `/operator/v1` and `/operator/v1/plan` are mounted outside
+`csrf.Protect` and before `sessions.Middleware` on both routers, as
+`handoff.CallbackPath` is (`directory.go:77`); the no-`Cookie` refusal makes
+session middleware a no-op there anyway. `/operator/confirm` is the
+opposite: inside each role's session and CSRF groups.
+
+**Nonce and `BindStart`.** Round 0's raw-assertion forwarding is removed:
+Home never receives an assertion from Alta, so nothing binds a plan to an
+assertion nonce (round 1 found it unbuildable: `handoff.Store.Finish` hands
+`Complete` parsed claims and deletes the token, `handoff/http.go:206-230`).
+Alta's own Home sign-in is an ordinary consumer.
**Window semantics.** A window admits **any number** of operations whose
verb is allowed for its `kind` (§5) and whose input is inside it, until it
-expires; it never widens or extends. Directory: label matches, app ∈ `apps`.
+expires; it never widens or extends. Directory: label matches, app ∈ `apps`,
+and `seed-team`'s `display_name` hashes to the plan's `name_digest`.
Credential: `owner-seed`'s address blind-indexes to `owner_index`;
`register-consumer`'s record app ∈ `apps`. **An expired owner receipt needs a
new `owner-seed` operation** under a live window — replay returns the same
@@ -241,7 +282,11 @@ by two pages; that is the cost of not trusting Alta's rendering.
`directory_provisioning_public_key`, checks `issuer` = itself and
`directory` = the configured directory, requires the record's app ∈ the
window's `apps`, and registers **exactly** the record's consumer ID and
- audience. The audience was produced by the directory's `ValidateRoute`
+ audience. Mechanics: `roster.VerifyProvisioning(record, keys, binding)`
+ takes the *expected* bindings, so the verb first parses the record's
+ claimed consumer, app, team and audience, fixes `issuer` and `directory`
+ to the pinned values, verifies with those, and registers only what
+ verified. The audience was produced by the directory's `ValidateRoute`
against the team's own stored label, under the provenance fence. Collision
is checked against **`HOME_CONSUMERS` ∪ table**, on ID and origin. Returns
the registry digest (§7). So Alta's order is provision first, register
@@ -322,9 +367,11 @@ Production `HOME_CONSUMERS` holds 7 entries today (§12); **Alta becomes the
here: `team_instances` and `roster_consumers` are rows already.
**New tables (additive):** credential `consumers`, `operator_plans`
-(pending/open, kind, apps, owner_index, expiry); directory `operator_plans`
-(kind, label, apps, expiry), `operator_http_teams`; both keep
-`<role>_operator_state` / `_results` unchanged.
+(plan_id, pending/open, kind, apps, owner_index, expiry); directory
+`operator_plans` (plan_id, pending/open, kind, label, apps, sealed display
+name, name_digest, expiry), `operator_http_teams`; both keep
+`<role>_operator_state` / `_results` unchanged. No table ever holds signed
+plan bytes or an address.
## 8. Threat model: a compromised provisioner
@@ -348,11 +395,18 @@ credentials.
to it, handing that instance their `sub` and whatever they then type
there. Phishing, recorded, bounded by Paul having confirmed that label.
- **Replay:** single-sequence requests; plans single-use and expiring.
-- **Compromised Home origins** are as in §13a of the spec; the directory
- role now holds the provisioning signer in its serving process (before,
- only in the operator command) — a directory compromise could sign
- provisioning records, but registration still needs Alta's key and a
- credential window Paul opened.
+ **Existence oracle:** the existing-only lookup at plan submit tells
+ Alta's key holder whether an address has a person — `owner-seed` already
+ does, so nothing new.
+- **Compromised Home origins** are as in §13a of the spec. **Three signers
+ move into serving processes** (before, they lived only in the operator
+ command): the directory's provisioning signer; the credential role's
+ owner-seed signer; and the credential role's resolve key
+ (`team-members.md` §4). A directory compromise could sign provisioning
+ records and a credential compromise could sign owner receipts or member
+ resolutions — but each origin's compromise already concedes more (§13a),
+ and registration or seeding still needs Alta's key and a window Paul
+ opened.
## 9. The one rule and gates
@@ -369,7 +423,9 @@ credentials.
- **Gate 1** drives the whole sequence (plan, both confirms, every verb)
with canary addresses and names; scans both databases, WAL and SHM.
**Gate 2** gains plan-submit, confirm and owner-seed-over-HTTP as address
- paths — *extended, not replaced*. **Gate 5** scans the credential confirm
+ paths — *extended, not replaced*; on the plan-submit path it asserts the
+ **signed plan bytes and the canary address are absent** from the file, WAL
+ and SHM, and that an expired plan's row is gone. **Gate 5** scans the credential confirm
page with canary labels present. **Gate 9** captures every log line,
hostile refusals included. **Gate 10** covers every new route.
@@ -381,10 +437,15 @@ credentials.
3. **Signature:** wrong key/context, expired, sequence gap, changed input
under a used sequence; exact replay after expiry returns the stored
result and mutates nothing.
-4. **Ceremony:** plan signed by another key; third plan refused; confirm by
+4. **Ceremony:** plan signed by another key; a second pending plan
+ refused; differing `plan_id`s across roles refused at confirm; confirm by
a non-operator subject → 404; directory confirm with stale or future
- `auth_time`; credential confirm with a stale session, a Keymail session
- with no gesture, a mistyped owner address; confirm after plan expiry.
+ `auth_time`; credential confirm with a stale session (a fresh intent is
+ written and the forced sign-in returns to `/operator/confirm` — no loop
+ for a Keymail identity), a Keymail session with no gesture, a
+ **recovery-code session** (refused), a mistyped owner address; confirm
+ after plan expiry; `seed-team` with a display name not matching
+ `name_digest`; expired plan rows deleted.
5. **Scope:** other label, app outside `apps`, verb outside `kind`, window
expiring mid-run, expired owner receipt then a fresh `owner-seed`.
6. **Blocker 2:** `register-consumer` without a record, with a record signed
@@ -440,14 +501,25 @@ reviewed `directory.enrol` first operation; it is **not designed here**.
docs, memoria, sheets, slides. Alta is added as the 8th env consumer before
§7's table lands; the 16 cap applies until then.
-## 13. Round-1 findings: disposition
-
-Blocker 1 → §4 (option b). Blocker 2 → §3, §5, §8. Blocker 3 → §5, §12.
-Blocker 4 → `team-members.md` §2. Blocker 5 → `team-members.md` §3, §5; §9.
-Non-blocking: supersessions §2 items 3, 5, 6; "verbs wrapped" §1, §5;
-`allowedAction` §3; header dropped §4; window semantics and receipt renewal
-§4; inspect is new code and reports no label freedom §5; retired hostnames
-dead for good §5; atomic swap, union readers, `signoutConfirm`, runbook §7;
-victim class §8; §3.2 list §9; stream ownership and restore §5;
-`HOME_CONSUMERS` count §12. Alta and Team-page notes are applied in those
-files. None declined.
+## 13. Review findings: disposition
+
+**Round 1.** Blocker 1 → §4 (option b). Blocker 2 → §3, §5, §8. Blocker 3 →
+§5, §12. Blocker 4 → `team-members.md` §2. Blocker 5 → `team-members.md` §3,
+§5; §9. Non-blocking: supersessions §2 items 3, 5, 6; "verbs wrapped" §1,
+§5; `allowedAction` §3; header dropped §4; window semantics and receipt
+renewal §4; inspect is new code and reports no label freedom §5; retired
+hostnames dead for good §5; atomic swap, union readers, `signoutConfirm`,
+runbook §7; victim class §8; §3.2 list §9; stream ownership and restore §5;
+`HOME_CONSUMERS` count §12.
+
+**Round 2.** Blocker 1 (plan bytes) → §4 step 1, §9 gate 2, §10.4. Blocker
+2 (fresh consumer not mountable) → §4 sequencing prerequisite,
+`team-members.md` §2. Blocker 3 (credential confirm loop, lost target) → §4
+step 3 (no query, `credentialReturn`, sealed fresh intent, GET and POST
+re-checks). Recovery-code sessions refused on the credential page; the
+directory's inherited gap stated (§4 step 2). Same `plan_id` on both roles,
+shown on both pages (§4). Display name bound by `name_digest` (§4, window
+semantics). Order advisory; 15-minute block, no cancel (§4). Three signers
+in serving processes (§8). Mounting outside CSRF and sessions (§4).
+`VerifyProvisioning` mechanics (§5). Existence oracle (§8). Alta and Team
+page notes applied in those files. None declined.
diff --git a/implementation/team-provisioning-app.md b/implementation/team-provisioning-app.md
index 41d02f1..c47d0b5 100644
--- a/implementation/team-provisioning-app.md
+++ b/implementation/team-provisioning-app.md
@@ -1,9 +1,11 @@
# 🤖 Alta: the team provisioning app
**Status:** PROPOSED, 2026-10-27. Drafted by Claude Opus 5.5 for Paul.
-**Round 1: reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27,
-discussion 92 — CHANGES REQUIRED.** Round-1 fixes are applied (§14);
-round 2 pending. **No code until a top-model review approves this file and
+**Round 1: Claude Fable 5.1 (claude-fable-5-1), 2026-10-27, discussion 92 —
+CHANGES REQUIRED.** **Round 2: Claude Fable 5.1 (claude-fable-5-1),
+2026-10-27, discussion 92 — CHANGES REQUIRED (narrow; no blocker in this
+file).** Fixes for both rounds applied (§14); round 3 is scoped to the
+amendment §4 and `team-members.md` §2. **No code until a top-model review approves this file and
`team-provisioning-amendment.md`.** Facts read at origin/main: Home
`e2ec1ab`, carlos platform `57aec0a`, Docs `d867db1`, Sheets `af8deeb`,
Slides `ebbb08f`, Calendar `00d8e3d`, Calls (repo `oficina/meet`,
@@ -88,7 +90,10 @@ CARLOS's scope and Home's provenance fence).
supplies at setup because owned environments inherit nothing (§5):
`ALTA_SHARED_SMTP_*` (relay host, port, user, password, from) and
`ALTA_SHARED_CARLOS_RELAY` — Alta secrets, sealed again at rest when copied
-into its plan records. **Its own:** `ALTA_ORIGIN`, `ALTA_INSTANCE_KEY`,
+into its plan records. **Exposure, recorded:** the relay password and the
+TURN secret therefore sit in Alta's secrets and in every team environment.
+Under Track 1's inheritance they already reached every team instance at
+runtime; standalone environments make the copy explicit rather than new. **Its own:** `ALTA_ORIGIN`, `ALTA_INSTANCE_KEY`,
`ALTA_DEK`.
## 4. What it stores
@@ -109,7 +114,9 @@ SQLite, sealed where marked:
**Deleted at step 13** once `seed-team` has committed and every stopgap
allowlist is written: the `owner_inputs` row, the **credential plan** and
the **`owner-seed` request** rows (both contain the address; neither replay
-is needed after the seed). After that Alta holds no address.
+is needed after the seed). After that Alta holds no address; the stopgap
+allowlist edit for an unported app (`team-members.md` §7) has Paul retype
+it, and Alta deletes it again once written.
**Never stored:** generated app keys (sealed to the console's
`secrets_pubkey` and sent; existence is checked by name), CARLOS tokens (env
@@ -169,8 +176,8 @@ nothing is deleted to "clean up".
| # | Step | Probe | Act |
|---|---|---|---|
| 0 | Preflight | label regex; never used before; signed `inspect` on both roles (generation, stream heads); console: environment and instance absent, or already bound to this team's owned environment | — |
-| 1 | Initialize (first production run only) | `inspect` reports a generation? | `initialize` plan with Paul's typed baseline attestation (amendment §12); Paul confirms on Home; `directory.initialize` |
-| 2 | Plan | open window on both roles? | sign and `POST /operator/v1/plan` to each role; show Paul the two Home confirm links; poll each role's `inspect` (it reports the open plan's id and expiry) until both windows are open |
+| 1 | Initialize (first production run only) | `inspect` reports a generation? | **directory-only** `initialize` plan with Paul's typed baseline attestation (amendment §12); Paul confirms on `oficina.works/operator/confirm`; `directory.initialize` at directory sequence 1. The credential stream's first operation is later `owner-seed` at credential sequence 1 with `initial_authority`, which `Credential.Execute` admits |
+| 2 | Plan | open window on both roles? | sign a plan per role **with one shared `plan_id`** (the directory's carries label and display name, the credential's the owner) and `POST /operator/v1/plan`; show Paul the two Home confirm links (`/operator/confirm`, no query) and the plan id's first 8 hex to match on both pages; poll each role's `inspect` until both windows are open |
| 3 | Owner | sealed receipt stored **and `expires_at` in the future**? | `credential.owner-seed` (`existing_only: true`); expired → a **new** operation |
| 4 | Team | team sqid stored? | `directory.seed-team` with the receipt (a taken label refuses here) |
| per app: | | | |
@@ -215,7 +222,8 @@ call at that point.
reporting anything else cannot be activated until it does.
- `artifact_digest` — base64url (no padding) of SHA-256 over the exact
serving-build identifier string in the instance record's
- `update_report.serving`.
+ `update_report.serving`. It is a digest of the build's **name**, not of
+ its bytes; Alta has no access to the artifact itself.
- `environment_binding` — base64url of SHA-256 over Alta's canonical recipe
JSON for this instance: sorted key names, each with kind and the SHA-256 of
its SET value (generated and copied-in secrets contribute their name and
@@ -327,5 +335,9 @@ step 0). Owner-seed request and credential plan rows deleted (§4). Activation
encodings (§7). Label regex tighter on purpose (§5). Sandbox never holds
production tokens (§3). Guards are defence in depth (§8). Calls repo named
(status). CARLOS round 1: standalone environments → recipes copy shared
-values in (§3, §5); `lagged` moves by fork + explicit rebind (§6). None
-declined.
+values in (§3, §5); `lagged` moves by fork + explicit rebind (§6).
+**Round 2:** relay exposure recorded (§3); the stopgap allowlist edit
+retypes the address (§4); `initialize` is directory-only and the credential
+stream opens with `owner-seed` (§6 step 1); one `plan_id` across roles and
+display name in the plan (§6 step 2); `artifact_digest` is a digest of a
+name (§7). None declined.