| 1 | # π€ Alta: the team provisioning app |
| 2 | |
| 3 | **Status:** APPROVED (design), 2026-10-27. Drafted by Claude Opus 5.5 for |
| 4 | Paul. **Reviewed by Claude Fable 5.1 (claude-fable-5-1), 2026-10-27, |
| 5 | discussion 92, APPROVED (design, round 3)** at `93f8209`, after rounds 1 |
| 6 | and 2 (CHANGES REQUIRED); round 3's notes are applied (Β§14). Not approved by |
| 7 | that verdict and gated separately: the CARLOS `team-scoped-credentials` |
| 8 | design and its floor release before Alta reaches production; Alta's own |
| 9 | implementation review, CI and canary; Paul's pre-flight confirmation |
| 10 | (amendment status, items 1β4). **Implementation needs its own whole-code review** (AGENTS.md). Facts read at origin/main: Home |
| 11 | `e2ec1ab`, carlos platform `57aec0a`, Docs `d867db1`, Sheets `af8deeb`, |
| 12 | Slides `ebbb08f`, Calendar `00d8e3d`, Calls (repo `oficina/meet`, |
| 13 | `cmd/calls`) `47afcb9`, Memoria `521ae24`. It replaces |
| 14 | `oficina/teams/provision-team.py` (Track 1, 2026-10-27). |
| 15 | **Paul's rulings, 2026-10-27, applied here:** ruling 8 re-ruled for Alta on |
| 16 | condition of CARLOS team-scoped credentials, and **Alta does not ship to |
| 17 | production until they exist** (Β§3); every run needs Paul's fresh sign-in, |
| 18 | now given on Home's own confirm pages; the owner must have signed in once; |
| 19 | labels β and retired app hostnames β are never reused; Slides ships without |
| 20 | uploads; team instances send mail through the platform relay, but with |
| 21 | **per-team credentials CARLOS mints** (Paul's CARLOS ruling, 2026-10-27, |
| 22 | "enforce in one place" β this replaces "share the mail relay"); team |
| 23 | dashboards stay blank; |
| 24 | Memoria is in the `oficina` account. |
| 25 | |
| 26 | --- |
| 27 | |
| 28 | ## 1. What it is |
| 29 | |
| 30 | A Paul-only web app that creates a **team**: one CARLOS instance per app, |
| 31 | each bound to its own **standalone** config environment with fresh keys, |
| 32 | attached at `<team>.<app>.oficina.works`, registered with Home, plus a Home |
| 33 | team with its first owner. First run: label `lagged`, owner |
| 34 | `till@lagged.biz`, apps docs, sheets, slides, calendar, calls, memoria. |
| 35 | |
| 36 | - **Name:** **Alta** (*dar de alta*, to enrol). Repo |
| 37 | `/Users/paulcampbell/amadan.net/oficina/alta`, module |
| 38 | `amadan.net/oficina/alta`, CARLOS app `alta`. |
| 39 | - **Host:** `https://alta.oficina.works` proposed (not ruled; alternative: |
| 40 | its `alta.bds.oncarlos.com` route only). Never in Home's app registry or |
| 41 | chooser. |
| 42 | - **Stack:** rastrillo (`amadan.net/rastrillo/rastrillo`), estilo chrome and |
| 43 | door, Calma rules, attribute spelling, scriptless except estilo's |
| 44 | `busy.js`. One binary, `CGO_ENABLED=0`, hibernates. |
| 45 | - **Not Home.** It holds CARLOS credentials Home must never hold (spec Β§7). |
| 46 | Home holds only Alta's public key. |
| 47 | |
| 48 | ## 2. Who can use it |
| 49 | |
| 50 | - **Sign-in:** Home sign-in only (an ordinary consumer, `ALTA_HOME_*` via |
| 51 | `home/connect`). No local magic link, no address allowlist. |
| 52 | - **Who:** exactly one person ref, `ALTA_OPERATOR_SUBJECT` (Paul's); any |
| 53 | other identity gets the same 404 as an unknown page. |
| 54 | - **Every run is confirmed on Home.** Alta submits signed plans; Paul then |
| 55 | opens each Home role's window on Home's own confirm pages, behind Home's |
| 56 | fresh sign-in, reading Home's copy of the plan and retyping the owner's |
| 57 | address on the credential origin (amendment Β§4). Alta never handles an |
| 58 | assertion beyond its own sign-in. Status pages need only an Alta session |
| 59 | (idle 30 min, absolute 12 h). |
| 60 | |
| 61 | ## 3. Credentials it holds, and their reach |
| 62 | |
| 63 | **Ruling 8 re-ruled for Alta β Paul, 2026-10-27.** A web-facing app other |
| 64 | than Home may hold CARLOS credentials **on condition** that CARLOS gains |
| 65 | team-scoped credentials acting **only** on named, non-default environments |
| 66 | and the instances bound to them. **Alta does not ship to production until |
| 67 | that credential exists.** Rejected: a separate CARLOS account; accepting |
| 68 | today's app-wide `instance` + `operate` reach. CARLOS design: |
| 69 | `carlos/platform` branch `team-scoped-credentials` β role **`team`**, scope |
| 70 | = the environments the scope owns, and **owned environments are |
| 71 | standalone**: they never inherit the app's default bundle. |
| 72 | |
| 73 | **In production**, one credential per app, minted by Paul: |
| 74 | |
| 75 | carlos services create --account oficina --role team --app docs --scope alta alta-docs |
| 76 | β¦ sheets, slides, calendar, calls, memoria (6 credentials) |
| 77 | |
| 78 | Stored as Alta secrets `ALTA_CARLOS_<APP>`, sent as `Authorization: Bearer` |
| 79 | to `https://console.carloku.com/api/cli/apps/oficina/<app>/β¦`. Memoria is in |
| 80 | the `oficina` account like the others (its `lagged` instance was provisioned |
| 81 | there on 2026-10-27; its README's `--account bds` is stale). |
| 82 | |
| 83 | **Before that credential exists** β development and previews only, against |
| 84 | a throwaway sandbox account. **The sandbox never holds production |
| 85 | `instance`, `operate` or `team` tokens**, and no Alta deployment with |
| 86 | production Home pins runs against it. Β§8's guards were written for this |
| 87 | period and remain defence in depth; they are not the fence (the fence is |
| 88 | CARLOS's scope and Home's provenance fence). |
| 89 | |
| 90 | **Home:** `ALTA_OPERATOR_KEY` (P-256; contexts |
| 91 | `oficina/home/operator-input/v1` and `β¦/operator-plan/v1`), |
| 92 | `ALTA_OPERATOR_PREFILTER` (32 bytes), `ALTA_OPERATOR_INSTALLATION`, |
| 93 | `_REGISTRY`, `_DEVICE` (random once, pinned on Home). **Its own:** |
| 94 | `ALTA_ORIGIN`, `ALTA_INSTANCE_KEY`, `ALTA_DEK`. |
| 95 | |
| 96 | **Alta never holds or copies a platform credential.** It never sees Paul's |
| 97 | SMTP password, `CARLOS_RELAY` or any TURN secret, and never writes one into |
| 98 | a team environment (a team credential *cannot* β CARLOS refuses team writes |
| 99 | of platform-managed keys). Under the CARLOS ruling (`team-scoped-credentials.md` |
| 100 | Β§3a, Paul 2026-10-27, "enforce in one place"), the platform's mail walk and |
| 101 | relay ops **mint a distinct mail credential and relay identity for each |
| 102 | team-owned environment** and write them there; releasing the environment |
| 103 | reaps them. The scan callback secret and the mail-events key are **not |
| 104 | delivered** to team environments. |
| 105 | |
| 106 | ## 4. What it stores |
| 107 | |
| 108 | SQLite, sealed where marked: |
| 109 | |
| 110 | - `teams` β label, sealed display name, team sqid, state; **every label ever |
| 111 | used** stays (labels are never reused; Alta refuses a plan naming one). |
| 112 | - `owner_inputs` β **sealed** owner address; used for the credential plan, |
| 113 | owner-seed and the stopgap allowlists (Β§5). |
| 114 | - `runs` / `steps` β the state machine (Β§6). |
| 115 | - `operator_requests` β **sealed** exact signed request bytes per Home |
| 116 | operation, kept so a lost result is recovered by exact replay (and so the |
| 117 | roster bearer is re-fetched by replay, never stored). |
| 118 | - `operator_streams` β per Home role: sequence and head; re-read through a |
| 119 | signed `<role>.inspect` if Alta's DB is lost. |
| 120 | |
| 121 | **Deleted at step 13** once `seed-team` has committed and every stopgap |
| 122 | allowlist is written: the `owner_inputs` row, the **credential plan** and |
| 123 | the **`owner-seed` request** rows (both contain the address; neither replay |
| 124 | is needed after the seed). After that Alta holds no address; the stopgap |
| 125 | allowlist edit for an unported app (`team-members.md` Β§7) has Paul retype |
| 126 | it, and Alta deletes it again once written. |
| 127 | |
| 128 | **Never stored:** generated app keys (sealed to the console's |
| 129 | `secrets_pubkey` and sent; existence is checked by name), CARLOS tokens (env |
| 130 | only), roster bearers, team content; no log line carries an address, label, |
| 131 | key or platform value. |
| 132 | |
| 133 | ## 5. Per-app recipes |
| 134 | |
| 135 | Each app gets an environment **owned by scope `alta`**, named `<team>` (for |
| 136 | `lagged`, `lagged-team`, Β§6). Owned environments are standalone, so **the |
| 137 | environment is the instance's entire config**: nothing reaches it from the |
| 138 | default bundle. Each key is one of: **GENERATED** by Alta (fresh keys), |
| 139 | **SET** by Alta (team values and env-kind, non-secret settings), or |
| 140 | **PLATFORM** β minted for this environment alone by a CARLOS walk, never |
| 141 | written by Alta. `audit` checks the environment holds exactly GENERATED βͺ SET |
| 142 | βͺ PLATFORM; an extra key is a refusal. |
| 143 | |
| 144 | Common to every app (`<P>` = DOCS, SHEETS, SLIDES, CALENDAR, CALLS, |
| 145 | MEMORIA): |
| 146 | |
| 147 | | Key | Treatment | |
| 148 | |---|---| |
| 149 | | `<P>_ORIGIN` | SET `https://<team>.<app>.oficina.works` | |
| 150 | | `<P>_INSTANCE_KEY` | GENERATED | |
| 151 | | `<P>_HOME_ISSUER` | SET `https://id.oficina.works` | |
| 152 | | `<P>_HOME_CONSUMER_ID` | SET `<team>-<app>` (the directory record's consumer) | |
| 153 | | `<P>_HOME_KEYS_BASE64` | SET from Alta's pinned copy of Home's public assertion keys | |
| 154 | | `<P>_HOME_DEK_BASE64` | GENERATED | |
| 155 | | `HOME_DIRECTORY_ORIGIN` | SET `https://oficina.works` | |
| 156 | | `OFICINA_DASHBOARD_TEAM` | not set β team dashboards stay blank (Paul) | |
| 157 | | `<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) | |
| 158 | |
| 159 | Per app (allowlist = the owner's address only, until the app has roster |
| 160 | mode β `team-members.md` Β§7): |
| 161 | |
| 162 | | App | GENERATED | SET | PLATFORM | Notes | |
| 163 | |---|---|---|---|---| |
| 164 | | 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 | |
| 165 | | Sheets | `SHEETS_DEK` | `SHEETS_OWNERS`=owner | β | | |
| 166 | | Slides | β | `SLIDES_ALLOWED_ADDRESSES`=owner | β | **No uploads** (Paul: object storage not approved on the account); no `CARLOS_STORE_*`, so uploads answer 503 | |
| 167 | | Calendar | `CALENDAR_DEK` | `CALENDAR_ALLOWED_ADDRESSES`=owner | β | `CARLOS_CONTROL_SOCKET`/`ADMIN_TOKEN` are platform-set | |
| 168 | | 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 | |
| 169 | | 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 | |
| 170 | |
| 171 | **AI for a team** stays off until that team's owner asks and Paul agrees; |
| 172 | TensorX's ZDR ruling (2026-09-19) covers Paul's data, not another owner's. |
| 173 | |
| 174 | **Label regex.** Alta uses `^[a-z][a-z0-9-]{1,30}[a-z0-9]$`, deliberately |
| 175 | tighter than Home's `ValidLabel` (1β63), so every derived host |
| 176 | (`<label>-<app>.bds.oncarlos.com`, `<label>.<app>.oficina.works`) stays |
| 177 | well inside DNS limits. |
| 178 | |
| 179 | ## 6. The state machine |
| 180 | |
| 181 | One **run** per (team, plan). Each step is **probe β act β verify β |
| 182 | record**; a crash resumes by probing; nothing is inferred from a timeout; |
| 183 | nothing is deleted to "clean up". |
| 184 | |
| 185 | | # | Step | Probe | Act | |
| 186 | |---|---|---|---| |
| 187 | | 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) | β | |
| 188 | | 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 | |
| 189 | | 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 | |
| 190 | | 3 | Owner | sealed receipt stored **and `expires_at` in the future**? | `credential.owner-seed` (`existing_only: true`); expired β a **new** operation | |
| 191 | | 4 | Team | team sqid stored? | `directory.seed-team` with the receipt (a taken label refuses here) | |
| 192 | | per app: | | | | |
| 193 | | 5 | Directory consumer | replay | `directory.provision-consumer` β signed record + bearer (pending) | |
| 194 | | 6 | Credential consumer | replay | `credential.register-consumer` **carrying step 5's record** | |
| 195 | | 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` | |
| 196 | | 8 | Instance | `GET /instances/<team>-<app>.bds.oncarlos.com`: bound to `<env>` | `POST /instances {host, environment}` (socket-backed kind); 409 β probe; bound elsewhere β stop | |
| 197 | | 9 | Domain | `GET /domains`: `state` (never legacy `status`) | `POST /domains {host:<team>.<app>.oficina.works, route}`; poll to `state=live` (β€ 30 min, then park) | |
| 198 | | 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 | |
| 199 | | 11 | Verify | roster-mode apps only | `directory.verify-consumer` (600 s); poll `GET /api/team` until `roster:"ok"` | |
| 200 | | 12 | Activate | roster-mode apps only | `directory.activate-consumer` with evidence (Β§7) | |
| 201 | | 13 | Audit | β | Β§5's exact-keys rule; delete Β§4's address-bearing rows | |
| 202 | |
| 203 | **PLATFORM keys arrive on the walks' cadence, not at `PUT /config`.** Step 7 |
| 204 | waits (parking if need be) until the PLATFORM names are present before step |
| 205 | 8 creates the instance; step 10's restart-if-config-changed covers a |
| 206 | delivery that lands after the instance started. |
| 207 | |
| 208 | Apps without roster mode stop after step 10 with their directory row |
| 209 | **pending** (not in the chooser β `roster-contract.md`), reachable at their |
| 210 | own URL with Home sign-in and the owner allowlist. When an app gains roster |
| 211 | mode, an **add-apps** run replays step 5 for the bearer and continues. |
| 212 | |
| 213 | **Windows last 15 minutes and admit any number of in-scope operations.** A |
| 214 | run that parks (domains, cold starts) resumes under a new plan of kind |
| 215 | `add-apps` for the same label and apps, confirmed again on Home. |
| 216 | |
| 217 | **Moving the `lagged` stopgap** (six instances bound to hand-made |
| 218 | environment `lagged`, which a record references and so can never become |
| 219 | owned): per app, Paul runs `carlos env fork --from lagged --to lagged-team |
| 220 | --scope alta` (copies only `lagged`'s own keys, so the DEKs Till's data is |
| 221 | sealed with survive; fork never carries `lagged`'s SMTP or relay keys); |
| 222 | the CARLOS walks mint `lagged-team`'s own mail and relay credentials; Alta's |
| 223 | step 7 sets its Home values; once every box is at the |
| 224 | CARLOS floor release, Paul rebinds each instance with `PATCH {environment: |
| 225 | lagged-team, scope: alta}`. Till's databases stay. Docs switching to team |
| 226 | mode then needs Till to **link** his local Docs account to his Home identity |
| 227 | (the existing account-link flow) or his Track 1 documents stay under the old |
| 228 | principal. Fallback if `env fork` is cut from the CARLOS slice: new hosts and |
| 229 | fresh keys, domains re-pointed, and Till's stopgap content is lost β Paul's |
| 230 | call at that point. |
| 231 | |
| 232 | ## 7. Activation evidence (step 12) |
| 233 | |
| 234 | `ActivationEvidence` fields, with their encodings (`verification.go`): |
| 235 | |
| 236 | - `app_version` β the token in `/api/version`'s body, exactly as Alta read |
| 237 | it: every app stamps `git describe --tags --always` |
| 238 | (`v0.1.0-63-gd867db1`, or a bare commit). Home admits any opaque, |
| 239 | bounded, printable-ASCII token, `^[A-Za-z0-9][A-Za-z0-9._+-]{0,127}$`, |
| 240 | and checks nothing more (`verification.go` `version()`). It was a |
| 241 | 40-hex commit until Fable's Alta review (oficina/alta discussion 1, |
| 242 | mismatch ruling 5) ruled that a leftover of the platform-attestation |
| 243 | design; stamping 40-hex into the apps instead was rejected, since it |
| 244 | takes away the human version Paul reads to confirm a deploy. |
| 245 | - `artifact_digest` β base64url (no padding) of SHA-256 over the exact |
| 246 | serving-build identifier string in the instance record's |
| 247 | `update_report.serving`. It is a digest of the build's **name**, not of |
| 248 | its bytes; Alta has no access to the artifact itself. |
| 249 | - `environment_binding` β base64url of SHA-256 over Alta's canonical recipe |
| 250 | JSON for this instance: sorted key names, each with kind and the SHA-256 of |
| 251 | its SET value (GENERATED and PLATFORM keys contribute their name and kind |
| 252 | only; Alta never sees PLATFORM values). |
| 253 | - `credential_manifest_digest` β returned by step 6: base64url of SHA-256 |
| 254 | over Go `encoding/json.Marshal` of `["oficina/home/consumer-manifest/v1", |
| 255 | [[id, origin], β¦]]`, entries sorted by unsigned UTF-8 byte order of |
| 256 | consumer ID (the compatibility checker's definition). |
| 257 | - `alias_host` β step 9's host. |
| 258 | |
| 259 | They mean "what Alta observed through the console", not a platform |
| 260 | attestation; the amendment Β§2 item 6 says so. |
| 261 | |
| 262 | ## 8. Guards in Alta's own code (defence in depth, not the fence) |
| 263 | |
| 264 | - One console client refuses: an empty environment; an environment not |
| 265 | owned per Alta's records; a host not `<label>-<app>.bds.oncarlos.com` or |
| 266 | `<label>.<app>.oficina.works` for a label in `teams`; any DELETE outside a |
| 267 | deprovision run. Mutation-tested. |
| 268 | - Logs carry step keys and fixed codes only. |
| 269 | - One run at a time (a lock row); Home serializes per role anyway. |
| 270 | |
| 271 | ## 9. Deprovisioning ("retire apps") |
| 272 | |
| 273 | Probe-first, in order: `directory.disable-consumer` β |
| 274 | `credential.retire-consumer` β `DELETE /domains/<team>.<app>.oficina.works` |
| 275 | (CARLOS does not detach a claim when its instance goes) β `DELETE |
| 276 | /instances/<host>`. What survives, stated on the confirm page: the parked |
| 277 | database replica (purged only by a CARLOS operator; the host cannot be |
| 278 | re-created until then), the owned environment (no delete verb exists), and |
| 279 | the Home team row, roster and label. **Labels and retired app hostnames are |
| 280 | never reused** (Paul, 2026-10-27; amendment Β§5). The confirm page names the |
| 281 | team, lists each app, and requires typing the label. |
| 282 | |
| 283 | ## 10. One-time setup (Paul, person-only) |
| 284 | |
| 285 | 1. When CARLOS ships team-scoped credentials and every box is at its floor: |
| 286 | mint the six `team` credentials; `carlos secrets set --app alta`. |
| 287 | 2. Confirm mail (with each app's declared prefix β `DOCS` for Docs) and, |
| 288 | for Calls, the relay are enabled on the apps, so the CARLOS walks mint |
| 289 | per-environment credentials. Alta is given no SMTP or relay value. |
| 290 | 3. Per app zone: wildcard DNS `*.<app>.oficina.works` β the deployment, and |
| 291 | per-name or wildcard certificates (check `CARLOS_HOST_CLAIM`; Alta uses |
| 292 | explicit per-host attach). |
| 293 | 4. Till signs in once at `https://oficina.works`. |
| 294 | 5. Home: add `alta` as the 8th `HOME_CONSUMERS` entry; set |
| 295 | `HOME_OPERATOR_HTTP` on both roles (credential role including the |
| 296 | directory provisioning public key); enable the directory roster endpoint |
| 297 | with its signing keys. |
| 298 | 6. Give the amendment Β§12 pre-flight confirmation; Alta's first run is the |
| 299 | `initialize` plan. |
| 300 | 7. For `lagged`: `env fork` per app, then the explicit rebinds (Β§6). |
| 301 | |
| 302 | ## 11. UI sketch (estilo, scriptless) |
| 303 | |
| 304 | ``` |
| 305 | Alta [Paul βΎ] |
| 306 | ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ |
| 307 | Teams [New team] |
| 308 | lagged Lagged 6 apps live 1 Β· pending 5 [Open] |
| 309 | |
| 310 | New team |
| 311 | Label [lagged ] β lagged.docs.oficina.works β¦ |
| 312 | Name [Lagged ] |
| 313 | Owner email [till@lagged.biz] (must have signed in at oficina.works once) |
| 314 | Apps [x] Docs [x] Sheets [x] Slides [x] Calendar [x] Calls [x] Memoria |
| 315 | [Submit plan to Home] |
| 316 | |
| 317 | Plan Β· lagged β confirm on Home |
| 318 | 1. Open oficina.works/operator/confirm (label, apps) β open |
| 319 | 2. Open id.oficina.works/operator/confirm (retype the owner) β· waiting |
| 320 | docs env lagged-team: set 12 Β· generate 4 Β· platform 5 [details] |
| 321 | |
| 322 | Run Β· lagged refresh to update |
| 323 | docs β consumer β env β instance β domain β serving β live |
| 324 | slides β β¦ β· domain issuing-cert (12 min) [Resume] |
| 325 | memoria β β¦ β serving Β· pending (no roster mode yet) |
| 326 | [Audit] [Retire appsβ¦] |
| 327 | ``` |
| 328 | |
| 329 | No live updates: plain GETs; refresh to see progress. |
| 330 | |
| 331 | ## 12. Tests before merge |
| 332 | |
| 333 | Recipe: for each app, the environment equals the recipe exactly (an extra |
| 334 | key refuses); generated keys never regenerate; Alta's console client |
| 335 | refuses to set or unset any PLATFORM key (CARLOS refuses it too); a |
| 336 | PLATFORM value never appears in Alta's DB, logs or plan displays. State machine: crash injection after every act, |
| 337 | against a fake console and a real Home on a preview β resume reaches the |
| 338 | same end state with no duplicate instance, consumer or team; an expired |
| 339 | owner receipt leads to a new owner-seed, not a stuck step 4. Guards: Β§8 |
| 340 | mutation tests. Privacy: no address after step 13 anywhere in Alta's DB |
| 341 | (scan for the canary owner address). End to end on previews: two synthetic |
| 342 | teams; each owner sees only their team; Paul's instances unchanged (config |
| 343 | digest before and after). |
| 344 | |
| 345 | ## 13. Still open |
| 346 | |
| 347 | 1. **Production gate:** CARLOS team-scoped credentials and their floor |
| 348 | release (`carlos/platform` branch `team-scoped-credentials`), including |
| 349 | `env fork` for the `lagged` move. |
| 350 | 2. Alta's host (not ruled). |
| 351 | 3. Paul's pre-flight confirmation (amendment Β§12). |
| 352 | |
| 353 | ## 14. Round-1 findings: disposition |
| 354 | |
| 355 | Approval moved to Home (Β§2, Β§6 step 2). Provision before register, record |
| 356 | carried (Β§6 steps 5β6). Initialize as the first run (Β§6 step 1). Receipt |
| 357 | expiry probed (Β§6 step 3). `inspect` no longer claims label freedom (Β§6 |
| 358 | step 0). Owner-seed request and credential plan rows deleted (Β§4). Activation |
| 359 | encodings (Β§7). Label regex tighter on purpose (Β§5). Sandbox never holds |
| 360 | production tokens (Β§3). Guards are defence in depth (Β§8). Calls repo named |
| 361 | (status). CARLOS round 1: standalone environments; `lagged` moves by fork + |
| 362 | explicit rebind (Β§6). **CARLOS round 2 (Paul's ruling on C):** the walks |
| 363 | mint per-team mail and relay credentials into owned environments; Alta holds |
| 364 | and copies no platform value; recipes mark those keys PLATFORM (Β§3, Β§5, Β§6, |
| 365 | Β§10). |
| 366 | **Round 2:** (relay exposure was recorded here, then withdrawn by Paul's |
| 367 | CARLOS ruling: Alta holds no platform credential β Β§3, Β§5); the stopgap allowlist edit |
| 368 | retypes the address (Β§4); `initialize` is directory-only and the credential |
| 369 | stream opens with `owner-seed` (Β§6 step 1); one `plan_id` across roles and |
| 370 | display name in the plan (Β§6 step 2); `artifact_digest` is a digest of a |
| 371 | name (Β§7). None declined. |
| 372 | **Round 3 (APPROVED, design):** forked environments unset Track 1's blank |
| 373 | keys before audit (Β§6 step 7); PLATFORM key timing (Β§6); Docs prefix is a |
| 374 | step-0 refusal (Β§5, Β§6). |
| 375 | |