oficina / home Public

Record Fable's round-3 approval and apply its notes

Discussion 92, Claude Fable 5.1, APPROVED (design, round 3) at 93f8209.
Status lines record the verdict and the four gates it does not approve.
Notes applied: name_digest dropped (seed-team opens the seal and compares
bytes); the fresh intent carries a random nonce, is cleared on
consumption, and its reserved consumer is refused by handleAssertion;
forked lagged-team environments unset Track 1's blank keys before audit;
PLATFORM key timing in Alta §6; Docs mail prefix is a step-0 refusal;
amendment §10.4 additions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 50a714ca6e995d8cbddef05985293cd3f516bfba parent 93f8209
3 files changed, +73 −39
  • implementation/team-members.md +7 −6
  • implementation/team-provisioning-amendment.md +47 −21
  • implementation/team-provisioning-app.md +19 −12

CI passed — run details

diff --git a/implementation/team-members.md b/implementation/team-members.md
index 1b1fc49..240f4dd 100644
--- a/implementation/team-members.md
+++ b/implementation/team-members.md
@@ -1,11 +1,12 @@
# 🤖 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: 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.**
+**Status:** APPROVED (design), 2026-10-27. Drafted by Claude Opus 5.5 for
+Paul. **Reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27,
+discussion 92, APPROVED (design, round 3)** at `93f8209`, after rounds 1
+and 2 (CHANGES REQUIRED). Not approved by that verdict and gated separately:
+the shared `handoff` change (`ConsumerConfig.StartPath`) before the Team
+page; each slice (Team page, resolve, each app's roster port) — whole-code
+review, CI green, verified canary (amendment status, items 1 and 3).
Base: Home origin/main `e2ec1ab`; Docs `d867db1`, Sheets `af8deeb`, Slides
`ebbb08f`, Calendar `00d8e3d`, Calls (repo `oficina/meet`, `cmd/calls`)
`47afcb9`, Memoria `521ae24`.
diff --git a/implementation/team-provisioning-amendment.md b/implementation/team-provisioning-amendment.md
index 435047a..938c6b6 100644
--- a/implementation/team-provisioning-amendment.md
+++ b/implementation/team-provisioning-amendment.md
@@ -1,13 +1,23 @@
# 🤖 Amendment: the operator endpoint (teams without the maintenance worker)
-**Status:** PROPOSED, 2026-10-27. Drafted by Claude Opus 5.5 for Paul.
-**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,
+**Status:** APPROVED (design), 2026-10-27. Drafted by Claude Opus 5.5 for
+Paul. **Reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27,
+discussion 92, APPROVED (design, round 3)** at `93f8209`, after round 1
+(CHANGES REQUIRED, 5 blockers) and round 2 (CHANGES REQUIRED, narrow, 3
+blockers); round 3's six non-blocking notes are applied (§13).
+**Not approved by this verdict, and needing its own review before the code
+it gates** (Fable, round 3, verbatim):
+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`. Direction approved in principle by Paul,
2026-10-27: "the provisioning app creates teams, owners and consumer
registrations through a narrow, authenticated Home endpoint, instead of the
blocked platform-117 maintenance worker."
@@ -172,8 +182,8 @@ review land **before** the directory confirm page and the Team page.
**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
+ **sealed** (the team-name helper). No digest of the name is kept (round
+ 3): `seed-team` opens the seal inside its transaction and compares 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
@@ -205,11 +215,15 @@ review land **before** the directory confirm page and the Team page.
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
+ a reserved consumer value and a **random nonce** (`readAssertionIntent`
+ requires `handoff.ValidNonce`, `assertion_intent.go:34`, and does not
+ validate `Consumer`) — 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, **clears the cookie**
+ (today only `handleAssertion` does, `exchange.go:110`), and re-checks
+ everything above. The reserved consumer value can never reach an
+ assertion: `handleAssertion`'s consumer lookup refuses it. **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".
@@ -236,7 +250,8 @@ 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`,
-and `seed-team`'s `display_name` hashes to the plan's `name_digest`.
+and `seed-team`'s `display_name` equals, byte for byte, the plan's sealed
+display name (opened inside the transaction).
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
@@ -369,7 +384,7 @@ here: `team_instances` and `roster_consumers` are rows already.
**New tables (additive):** credential `consumers`, `operator_plans`
(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
+name, expiry), `operator_http_teams`; both keep
`<role>_operator_state` / `_results` unchanged. No table ever holds signed
plan bytes or an address.
@@ -444,8 +459,12 @@ credentials.
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.
+ after plan expiry; `seed-team` with a display name not matching the
+ plan's sealed name byte for byte; expired plan rows deleted; a fresh
+ intent with a missing or invalid nonce is ignored (no loop — plain
+ sign-in); the fresh-intent cookie is cleared after a successful confirm;
+ the reserved consumer value in a fresh intent is refused by
+ `handleAssertion`'s consumer lookup (it can never mint an assertion).
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
@@ -518,8 +537,15 @@ runbook §7; victim class §8; §3.2 list §9; stream ownership and restore §5;
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
+shown on both pages (§4). Display name bound by the directory plan (§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.
+
+**Round 3 (APPROVED, design).** Non-blocking notes applied: `name_digest`
+dropped, byte comparison in `seed-team` (§4, §7); fresh intent with random
+nonce, cleared on consumption, reserved consumer refused by
+`handleAssertion` (§4 step 3, §10.4); §10.4 additions (invalid nonce
+ignored, cookie cleared). The `lagged-team` blank keys, PLATFORM timing and
+Docs prefix preflight are applied in `team-provisioning-app.md` §6.
diff --git a/implementation/team-provisioning-app.md b/implementation/team-provisioning-app.md
index 5118474..3b97244 100644
--- a/implementation/team-provisioning-app.md
+++ b/implementation/team-provisioning-app.md
@@ -1,14 +1,13 @@
# 🤖 Alta: the team provisioning app
-**Status:** PROPOSED, 2026-10-27. Drafted by Claude Opus 5.5 for Paul.
-**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), plus the CARLOS round-2 ruling
-(per-team platform credentials, §3, §5); round 3 is scoped to the amendment
-§4 and `team-members.md` §2, and should confirm §3/§5 here match the CARLOS
-§3a. **No code until a top-model review approves this file and
-`team-provisioning-amendment.md`.** Facts read at origin/main: Home
+**Status:** APPROVED (design), 2026-10-27. Drafted by Claude Opus 5.5 for
+Paul. **Reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27,
+discussion 92, APPROVED (design, round 3)** at `93f8209`, after rounds 1
+and 2 (CHANGES REQUIRED); round 3's notes are applied (§14). Not approved by
+that verdict and gated separately: the CARLOS `team-scoped-credentials`
+design and its floor release before Alta reaches production; Alta's own
+implementation review, CI and canary; Paul's pre-flight confirmation
+(amendment status, items 1–4). **Implementation needs its own whole-code review** (AGENTS.md). Facts read at origin/main: Home
`e2ec1ab`, carlos platform `57aec0a`, Docs `d867db1`, Sheets `af8deeb`,
Slides `ebbb08f`, Calendar `00d8e3d`, Calls (repo `oficina/meet`,
`cmd/calls`) `47afcb9`, Memoria `521ae24`. It replaces
@@ -162,7 +161,7 @@ mode — `team-members.md` §7):
| App | GENERATED | SET | PLATFORM | Notes |
|---|---|---|---|---|
-| Docs | `DOCS_CONTENT_KEY`; `DOCS_TEAM_ROSTER_TOKEN` (Home's bearer) | `DOCS_ALLOWED_ADDRESSES=""`; `DOCS_TEAM_ID`, `_DIRECTORY_ORIGIN`, `_PROVISIONING_BASE64` (signed record), `_OPERATOR_KEYS_BASE64` (directory provisioning public key) | `DOCS_SMTP_*` (Docs reads no `CARLOS_SMTP_*`, so its mail declaration must use prefix `DOCS` — checked at setup); `DOCS_SAMPLE_DOCUMENTS` is SET only if Paul wants it | Team mode writes a fingerprint marker; no way back to allowlist mode |
+| Docs | `DOCS_CONTENT_KEY`; `DOCS_TEAM_ROSTER_TOKEN` (Home's bearer) | `DOCS_ALLOWED_ADDRESSES=""`; `DOCS_TEAM_ID`, `_DIRECTORY_ORIGIN`, `_PROVISIONING_BASE64` (signed record), `_OPERATOR_KEYS_BASE64` (directory provisioning public key) | `DOCS_SMTP_*` (Docs reads no `CARLOS_SMTP_*`, so its mail declaration must use prefix `DOCS` — a step-0 refusal otherwise); `DOCS_SAMPLE_DOCUMENTS` is SET only if Paul wants it | Team mode writes a fingerprint marker; no way back to allowlist mode |
| Sheets | `SHEETS_DEK` | `SHEETS_OWNERS`=owner | — | |
| Slides | — | `SLIDES_ALLOWED_ADDRESSES`=owner | — | **No uploads** (Paul: object storage not approved on the account); no `CARLOS_STORE_*`, so uploads answer 503 |
| Calendar | `CALENDAR_DEK` | `CALENDAR_ALLOWED_ADDRESSES`=owner | — | `CARLOS_CONTROL_SOCKET`/`ADMIN_TOKEN` are platform-set |
@@ -185,7 +184,7 @@ 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 | — |
+| 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; **each app's mail is declared under the prefix it reads — `DOCS` for Docs — else refuse the run, naming the app** (a wrong prefix leaves the app silently without mail) | — |
| 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 |
@@ -193,7 +192,7 @@ nothing is deleted to "clean up".
| per app: | | | |
| 5 | Directory consumer | replay | `directory.provision-consumer` → signed record + bearer (pending) |
| 6 | Credential consumer | replay | `credential.register-consumer` **carrying step 5's record** |
-| 7 | Environment | `GET /config?environment=<env>`: owned, keys present by name | `PUT /config` with the recipe; **never regenerate** an existing key |
+| 7 | Environment | `GET /config?environment=<env>`: owned; GENERATED, SET **and PLATFORM** keys present by name | `PUT /config` with the recipe; **never regenerate** an existing key; for a **forked** environment, `unset` every non-platform key not in the recipe (Track 1's blanked `""` keys — `OFICINA_DASHBOARD_TEAM`, `MEMORIA_AI`, `CARLOS_STORE_*`, `MEMORIA_SIBLINGS`, …) before `audit` |
| 8 | Instance | `GET /instances/<team>-<app>.bds.oncarlos.com`: bound to `<env>` | `POST /instances {host, environment}` (socket-backed kind); 409 → probe; bound elsewhere → stop |
| 9 | Domain | `GET /domains`: `state` (never legacy `status`) | `POST /domains {host:<team>.<app>.oficina.works, route}`; poll to `state=live` (≤ 30 min, then park) |
| 10 | Serving | `/api/version` body on the public origin = the app's release, and `update_report.serving` agrees | `POST /restart/scope {host}` if config changed after start |
@@ -201,6 +200,11 @@ nothing is deleted to "clean up".
| 12 | Activate | roster-mode apps only | `directory.activate-consumer` with evidence (§7) |
| 13 | Audit | — | §5's exact-keys rule; delete §4's address-bearing rows |
+**PLATFORM keys arrive on the walks' cadence, not at `PUT /config`.** Step 7
+waits (parking if need be) until the PLATFORM names are present before step
+8 creates the instance; step 10's restart-if-config-changed covers a
+delivery that lands after the instance started.
+
Apps without roster mode stop after step 10 with their directory row
**pending** (not in the chooser — `roster-contract.md`), reachable at their
own URL with Home sign-in and the owner allowlist. When an app gains roster
@@ -358,3 +362,6 @@ 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.
+**Round 3 (APPROVED, design):** forked environments unset Track 1's blank
+keys before audit (§6 step 7); PLATFORM key timing (§6); Docs prefix is a
+step-0 refusal (§5, §6).