oficina / home Public

Alta holds no platform credential: CARLOS mints per-team mail and relay

Paul's ruling on CARLOS round-2 P1 C (2026-10-27, "enforce in one
place"): the mail walk and relay ops mint a distinct credential per
team-owned environment. Alta no longer holds or copies Paul's SMTP
password, CARLOS_RELAY or any TURN secret; recipes mark those keys
PLATFORM; the scan callback secret and mail-events key are not delivered;
setup confirms each app's mail prefix instead of supplying values.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 93f820924b01e1905fe4060e992a7d4ec4dd6ac3 parent 8944830
1 file changed, +50 −33
  • implementation/team-provisioning-app.md +50 −33

CI cancelled — superseded by a newer push — run details

diff --git a/implementation/team-provisioning-app.md b/implementation/team-provisioning-app.md
index c47d0b5..5118474 100644
--- a/implementation/team-provisioning-app.md
+++ b/implementation/team-provisioning-app.md
@@ -4,8 +4,10 @@
**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
+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
`e2ec1ab`, carlos platform `57aec0a`, Docs `d867db1`, Sheets `af8deeb`,
Slides `ebbb08f`, Calendar `00d8e3d`, Calls (repo `oficina/meet`,
@@ -16,7 +18,10 @@ condition of CARLOS team-scoped credentials, and **Alta does not ship to
production until they exist** (§3); every run needs Paul's fresh sign-in,
now given on Home's own confirm pages; the owner must have signed in once;
labels — and retired app hostnames — are never reused; Slides ships without
-uploads; team instances share the mail relay; team dashboards stay blank;
+uploads; team instances send mail through the platform relay, but with
+**per-team credentials CARLOS mints** (Paul's CARLOS ruling, 2026-10-27,
+"enforce in one place" — this replaces "share the mail relay"); team
+dashboards stay blank;
Memoria is in the `oficina` account.
---
@@ -86,15 +91,18 @@ CARLOS's scope and Home's provenance fence).
**Home:** `ALTA_OPERATOR_KEY` (P-256; contexts
`oficina/home/operator-input/v1` and `…/operator-plan/v1`),
`ALTA_OPERATOR_PREFILTER` (32 bytes), `ALTA_OPERATOR_INSTALLATION`,
-`_REGISTRY`, `_DEVICE` (random once, pinned on Home). **Shared values** Paul
-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. **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`.
+`_REGISTRY`, `_DEVICE` (random once, pinned on Home). **Its own:**
+`ALTA_ORIGIN`, `ALTA_INSTANCE_KEY`, `ALTA_DEK`.
+
+**Alta never holds or copies a platform credential.** It never sees Paul's
+SMTP password, `CARLOS_RELAY` or any TURN secret, and never writes one into
+a team environment (a team credential *cannot* — CARLOS refuses team writes
+of platform-managed keys). Under the CARLOS ruling (`team-scoped-credentials.md`
+§3a, Paul 2026-10-27, "enforce in one place"), the platform's mail walk and
+relay ops **mint a distinct mail credential and relay identity for each
+team-owned environment** and write them there; releasing the environment
+reaps them. The scan callback secret and the mail-events key are **not
+delivered** to team environments.
## 4. What it stores
@@ -121,16 +129,18 @@ 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
only), roster bearers, team content; no log line carries an address, label,
-key or shared value.
+key or platform value.
## 5. Per-app recipes
Each app gets an environment **owned by scope `alta`**, named `<team>` (for
`lagged`, `lagged-team`, §6). Owned environments are standalone, so **the
-recipe is the instance's entire config**: nothing reaches it from the
-default bundle, and every value it needs is SET, GENERATED, or **COPIED IN**
-from Alta's sealed shared values. `audit` checks the environment holds
-exactly the recipe's keys; an extra key is a refusal.
+environment is the instance's entire config**: nothing reaches it from the
+default bundle. Each key is one of: **GENERATED** by Alta (fresh keys),
+**SET** by Alta (team values and env-kind, non-secret settings), or
+**PLATFORM** — minted for this environment alone by a CARLOS walk, never
+written by Alta. `audit` checks the environment holds exactly GENERATED ∪ SET
+∪ PLATFORM; an extra key is a refusal.
Common to every app (`<P>` = DOCS, SHEETS, SLIDES, CALENDAR, CALLS,
MEMORIA):
@@ -145,18 +155,18 @@ MEMORIA):
| `<P>_HOME_DEK_BASE64` | GENERATED |
| `HOME_DIRECTORY_ORIGIN` | SET `https://oficina.works` |
| `OFICINA_DASHBOARD_TEAM` | not set — team dashboards stay blank (Paul) |
-| `CARLOS_SMTP_HOST/PORT/USER/PASS/FROM` | COPIED IN from `ALTA_SHARED_SMTP_*` — the shared relay (Paul) |
+| `<PREFIX>_SMTP_HOST/PORT/USER/PASS/FROM` | PLATFORM — the mail walk's per-environment credential, under the prefix the app declared to `carlos email` (`CARLOS` by default) |
Per app (allowlist = the owner's address only, until the app has roster
mode — `team-members.md` §7):
-| App | GENERATED | SET | COPIED IN | Notes |
+| 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_*` from the shared relay (Docs reads no `CARLOS_SMTP_*`); `DOCS_SAMPLE_DOCUMENTS` 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` — 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 |
| 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 |
-| Calls | `CALLS_DEK` | `CALLS_ALLOWED_ADDRESSES`=owner; `CALLS_ZONE`; `CALLS_QUALITY_REPORTS` | `CARLOS_RELAY` from `ALTA_SHARED_CARLOS_RELAY` | APNs vars are not read by `main.go`; not set |
+| Calls | `CALLS_DEK` | `CALLS_ALLOWED_ADDRESSES`=owner; `CALLS_ZONE`; `CALLS_QUALITY_REPORTS` | `CARLOS_RELAY` — the relay walk's per-environment identity | APNs vars are not read by `main.go`; not set |
| Memoria | `MEMORIA_DEK` | `MEMORIA_OWNERS`=owner; `MEMORIA_TEAM`=label; `MEMORIA_ORIGIN` | — | **AI off**: `MEMORIA_AI`, `MEMORIA_TENSORX_KEY`, `MEMORIA_SIBLINGS`, `MEMORIA_SIBLING_TOKEN_*`, `MEMORIA_ALLOW_LOGGED_MAIL` simply absent — nothing to blank now. Memoria boots without an origin, so `audit` checks it |
**AI for a team** stays off until that team's owner asks and Paul agrees;
@@ -204,8 +214,9 @@ run that parks (domains, cold starts) resumes under a new plan of kind
environment `lagged`, which a record references and so can never become
owned): per app, Paul runs `carlos env fork --from lagged --to lagged-team
--scope alta` (copies only `lagged`'s own keys, so the DEKs Till's data is
-sealed with survive); Alta's step 7 completes `lagged-team` with the full
-recipe (shared values copied in, Home values set); once every box is at the
+sealed with survive; fork never carries `lagged`'s SMTP or relay keys);
+the CARLOS walks mint `lagged-team`'s own mail and relay credentials; Alta's
+step 7 sets its Home values; once every box is at the
CARLOS floor release, Paul rebinds each instance with `PATCH {environment:
lagged-team, scope: alta}`. Till's databases stay. Docs switching to team
mode then needs Till to **link** his local Docs account to his Home identity
@@ -226,8 +237,8 @@ call at that point.
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
- kind only).
+ its SET value (GENERATED and PLATFORM keys contribute their name and kind
+ only; Alta never sees PLATFORM values).
- `credential_manifest_digest` — returned by step 6: base64url of SHA-256
over Go `encoding/json.Marshal` of `["oficina/home/consumer-manifest/v1",
[[id, origin], …]]`, entries sorted by unsigned UTF-8 byte order of
@@ -262,8 +273,9 @@ team, lists each app, and requires typing the label.
1. When CARLOS ships team-scoped credentials and every box is at its floor:
mint the six `team` credentials; `carlos secrets set --app alta`.
-2. Supply the shared values (`ALTA_SHARED_SMTP_*`,
- `ALTA_SHARED_CARLOS_RELAY`) as Alta secrets.
+2. Confirm mail (with each app's declared prefix — `DOCS` for Docs) and,
+ for Calls, the relay are enabled on the apps, so the CARLOS walks mint
+ per-environment credentials. Alta is given no SMTP or relay value.
3. Per app zone: wildcard DNS `*.<app>.oficina.works` → the deployment, and
per-name or wildcard certificates (check `CARLOS_HOST_CLAIM`; Alta uses
explicit per-host attach).
@@ -294,7 +306,7 @@ team, lists each app, and requires typing the label.
Plan · lagged — confirm on Home
1. Open oficina.works/operator/confirm (label, apps) ✓ open
2. Open id.oficina.works/operator/confirm (retype the owner) ◷ waiting
- docs env lagged-team: set 12 · generate 4 · copied in 5 [details]
+ docs env lagged-team: set 12 · generate 4 · platform 5 [details]
Run · lagged refresh to update
docs ✓ consumer ✓ env ✓ instance ✓ domain ✓ serving ✓ live
@@ -308,8 +320,9 @@ No live updates: plain GETs; refresh to see progress.
## 12. Tests before merge
Recipe: for each app, the environment equals the recipe exactly (an extra
-key refuses); generated keys never regenerate; shared values never appear in
-logs or plan displays. State machine: crash injection after every act,
+key refuses); generated keys never regenerate; Alta's console client
+refuses to set or unset any PLATFORM key (CARLOS refuses it too); a
+PLATFORM value never appears in Alta's DB, logs or plan displays. State machine: crash injection after every act,
against a fake console and a real Home on a preview — resume reaches the
same end state with no duplicate instance, consumer or team; an expired
owner receipt leads to a new owner-seed, not a stuck step 4. Guards: §8
@@ -334,9 +347,13 @@ expiry probed (§6 step 3). `inspect` no longer claims label freedom (§6
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).
-**Round 2:** relay exposure recorded (§3); the stopgap allowlist edit
+(status). CARLOS round 1: standalone environments; `lagged` moves by fork +
+explicit rebind (§6). **CARLOS round 2 (Paul's ruling on C):** the walks
+mint per-team mail and relay credentials into owned environments; Alta holds
+and copies no platform value; recipes mark those keys PLATFORM (§3, §5, §6,
+§10).
+**Round 2:** (relay exposure was recorded here, then withdrawn by Paul's
+CARLOS ruling: Alta holds no platform credential — §3, §5); 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