Spec rev 3: answer Fable round 2; execution-on returns as slice 3b, seeded probe replaces NoRoster
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+108
−26
docs/superpowers/specs/2026-11-29-team-bundle-design.md+108 −26
CI passed — run details
CI log
=== vet === go vet ./... === fmt === === test === CGO_ENABLED=0 go test ./... ok amadan.net/oficina/alta/adopt (cached) ok amadan.net/oficina/alta/carlosop (cached) ? amadan.net/oficina/alta/carlosop/fakecarlos [no test files] ok amadan.net/oficina/alta/cmd/alta (cached) ok amadan.net/oficina/alta/cmd/alta-adopt (cached) ok amadan.net/oficina/alta/console (cached) ? amadan.net/oficina/alta/console/fakeconsole [no test files] ok amadan.net/oficina/alta/homeop (cached) ok amadan.net/oficina/alta/homeop/fakehome (cached) ok amadan.net/oficina/alta/internal/web (cached) ok amadan.net/oficina/alta/provision (cached) === compat === cd homecompat && go vet ./... && CGO_ENABLED=0 go test ./... ok amadan.net/oficina/home/altacompat (cached)
diff --git a/docs/superpowers/specs/2026-11-29-team-bundle-design.md b/docs/superpowers/specs/2026-11-29-team-bundle-design.md| index 28ceb47..9213e6b 100644 |
| --- a/docs/superpowers/specs/2026-11-29-team-bundle-design.md |
| +++ b/docs/superpowers/specs/2026-11-29-team-bundle-design.md |
| @@ -1,4 +1,4 @@ |
| -# The team bundle: Equipo, Base, a house model and a hosted runner |
| +# The team bundle: Equipo, Base and a house model (the hosted runner is specified separately) |
| Status: draft for Paul, 2026-11-29. Written by Claude (Opus 5.5) from |
| Alta main 43bf19d, Equipo origin/main 57f370c5, Base origin/main 5105b89, |
| @@ -11,6 +11,11 @@ MicroVMs**, if the separate session already working on MicroVMs gets them |
| working. §4.4 records what this changes and what that session has to |
| answer first. |
| +**Revision 3, 2026-11-30.** This answers Fable's round 2 (CHANGES |
| +REQUIRED: 1 P1, 4 P2, 4 P3). **Turning Equipo's execution on is back in |
| +scope** as slice 3b, because without it no runner, hosted or the owner's |
| +own, receives work. The round-2 table is at the end. |
| + |
| **Revision 2, 2026-11-30.** This answers Fable's round 1 (CHANGES REQUIRED: |
| 4 P1, 8 P2, 4 P3); the table of changes is at the end. **The scope is |
| narrower.** This spec now asks approval only for: |
| @@ -102,8 +107,16 @@ The shape in short: |
| `EQUIPO_EXECUTION_MARKER_PATH` in a different directory from the |
| database. Per the code comment, that storage must survive independently |
| of database backup and restore (Equipo |
| - `internal/equipo/execution_startup.go:26-36`). Whether a CARLOS instance |
| - has such storage is **unverified**. |
| + `internal/equipo/execution_startup.go:26-36`). Production Equipo already |
| + runs execution on CARLOS: `EQUIPO_EXECUTION_MARKER_PATH=/data/instances/equipo.bds.oncarlos.com/execution/witness` |
| + (`carlos env list --app equipo`, read 2026-11-30). A team instance |
| + follows the same precedent with its own host. That path survives a |
| + database restore. Whether it survives the loss of the box is |
| + **unverified**, and it is the same for the canonical instance. |
| +- With execution off, Equipo gives nobody a primary runner, enrolled or |
| + not (`internal/equipo/chat_wiring.go:33-35`; `store.go:79-80`), and it |
| + skips the placement sweep (`app.go:104-106`). **A team without |
| + execution has no agents at all** (Fable round 2, P1-A). |
| ### 1.2 Proposed design |
| @@ -118,8 +131,8 @@ An Equipo recipe in `provision/apps.go`, with these keys: |
| | `EQUIPO_OWNERS` | set | the owner's address (see question 2) | |
| | `EQUIPO_ASSISTANT_HOSTS` | set | the team's Base origin, if Base is in the run | |
| | `EQUIPO_AGENT_ISSUER`, `EQUIPO_AGENT_TEAM` | set | as adoption writes them | |
| -| `EQUIPO_HOUSE_CONNECTIONS` | set | `on` under profile `own` only, never written under `outside`. Equipo offers the house-connection form only when it is set (§3.2, §5.1 rule 3). | |
| -| `EQUIPO_EXECUTION_ENABLED` | not written | Execution stays off in slice 1. Turning it on, with `EQUIPO_EXECUTION_MARKER_PATH` and its storage, belongs to the runner spec (§4.5), as an `OperatorKeys` post-run group the audit admits, like Memoria's AI. | |
| +| `EQUIPO_HOUSE_CONNECTIONS` | set | `on` under profile `own` only. Equipo offers the house-connection form only when it is set (§3.2). Today it repeats the recipe's own `outside` refusal; it matters once 6c admits outside teams. The adopted canonical Equipo needs it set by hand. | |
| +| `EQUIPO_EXECUTION_ENABLED`, `EQUIPO_EXECUTION_MARKER_PATH` | post-run (slice 3b) | `1` and `/data/instances/<instance host>/execution/witness`, as an `OperatorKeys` group under profile `own`. The audit admits both or neither, as it does Memoria's AI pair (`provision/apps.go:379`). Paul sets them with `carlos env set` after the run; Alta never writes them. | |
| - Mail comes from CARLOS submission, under `CARLOS_SMTP`, as the registry |
| already declares (`apps.go:107`). |
| @@ -134,10 +147,22 @@ An Equipo recipe in `provision/apps.go`, with these keys: |
| The roster gate is Alta's own step: verify waits for `GET /api/team` |
| (`provision/steps.go:786-791`), and adoption bypasses it at `:780-785`. |
| - Route (a) is therefore an **Alta change**: a recipe flag, `NoRoster`, |
| - that takes the adoption path through verify for a fresh instance. Paul |
| - must also rule whether a non-roster app may claim policy |
| - `oficina/team-activation/v1` (question 2). |
| + Adoption's bypass is justified by the Observer's re-observation at |
| + activation (`stepActivateAdopted`, `:818`). A fresh instance has no |
| + such stand-in, so it does **not** borrow the bypass (Fable round 2, |
| + P2-2). Route (a) instead is: |
| + - **Equipo and Base answer `GET /api/team`** in a `seeded` mode. They |
| + report the consumer id they hold, which must equal |
| + `ConsumerID(label, app)`, and whether the owner seed committed. They |
| + report no roster generation. |
| + - **Alta accepts `seeded` only for recipes flagged `Seeded`**, and |
| + otherwise treats them as roster apps. In `provision/steps.go` that |
| + touches three places: |
| + - `AppSteps` (`:43`) keeps verify and activate, unlike `!Roster`; |
| + - `inputs` (`:422`) keeps the consumer record; |
| + - `stepAudit` (`:996`) records `live`, not `directory_pending`. |
| + - **Paul rules** whether a seeded app may claim policy |
| + `oficina/team-activation/v1` (question 2). |
| - **Owner address.** `EQUIPO_OWNERS` and `BASE_OWNER` are recipes that |
| write the address, so Alta's wait rule applies again (AGENTS.md "No |
| address at rest"). The owner's sealed inputs are deleted only after |
| @@ -154,7 +179,8 @@ An Equipo recipe in `provision/apps.go`, with these keys: |
| six apps' recipes avoid doing that now, but the lagged stopgap did it. |
| Alta's AGENTS.md rule "no address at rest once it is no longer needed" |
| allows it only for a recipe that needs it. |
| - The directory row needs Alta's `NoRoster` verify path (§1.2). Home |
| + The directory row needs the `seeded` probe and Alta's `Seeded` flag |
| + (§1.2). Home |
| already accepts the activation. The cost is membership divergence |
| (§5.1). |
| @@ -251,7 +277,11 @@ A Base recipe with **no Store** in the first cut: |
| - the balance kept small, with top-up confirmed off; |
| - the key installed as a **house connection** by Paul, signed in to the |
| team's Equipo as an owner, with Equipo's soft budget pre-filled. It is |
| - sealed to a runner as any metered connection is. **Neither Alta nor |
| + sealed to **one runner**, as any metered connection is: the runner it |
| + is added on (`internal/wire/metered.go:10-11`). Until the hosted runner |
| + exists, that is an owner's own machine. One paste serves one runner. |
| + Each owner who should have it needs it added on their runner, and the |
| + key then sits on that machine (question 3). **Neither Alta nor |
| `alta-runner` ever holds the key** (README Profiles; |
| `provision/apps.go:225-226`). Paul pastes it, exactly as he sets |
| `MEMORIA_TENSORX_KEY`; |
| @@ -440,7 +470,8 @@ These come from Fable's round 1; they are requirements, not designs. |
| holds its credential (ruling 8 is relaxed only for CARLOS team |
| credentials; Home `implementation/team-provisioning-app.md:63-70`) |
| (P1-2). |
| -3. **Turning execution on.** `EQUIPO_EXECUTION_ENABLED`, |
| +3. **Turning execution on** is now this spec's slice 3b. The runner spec |
| + only reuses it. What remains for the runner spec: `EQUIPO_EXECUTION_ENABLED`, |
| `EQUIPO_EXECUTION_MARKER_PATH` and the marker's storage are written as |
| an `OperatorKeys` post-run group (`provision/apps.go:379`) that the |
| exact-keys audit admits. Say which credential writes it: Alta's team |
| @@ -492,8 +523,20 @@ These come from Fable's round 1; they are requirements, not designs. |
| - `EQUIPO_INSTANCE_KEY`; |
| - Base's sealed Equipo keys (Base `README.md:52`). |
| - A retired team is closed only after `carlos env release` for each app, |
| - plus these steps outside Alta: |
| + `carlos env release` does **not** delete that material. It releases |
| + the environment from scope `alta` and revokes its platform credentials |
| + (CARLOS `appconfig_cli.go:1738-1760`), and after it Alta can no longer |
| + reach the keys (Fable round 2, P2-1). Closing a team therefore means, |
| + in order: |
| + - before the release, Paul unsets each Equipo and Base secret and |
| + environment key with `carlos secrets unset` and `carlos env unset`; |
| + - each GitHub connection is revoked at GitHub; |
| + - the parked replica is deleted. The command for that is |
| + **unverified**; until one is named, the replica stays, sealed, and |
| + the team is recorded as "retired, replica kept"; |
| + - then `carlos env release` runs. |
| + |
| + These steps sit outside Alta: |
| - Memoria's copy of the house key revoked at TensorX; |
| - the team's Amadan agent account revoked; |
| - each owner told to sign their subscriptions out at the provider. |
| @@ -546,9 +589,9 @@ The design's rules: |
| 2. **How do a fresh Equipo and Base get their owner and join the |
| directory?** Both read the owner's address from their environment |
| (`EQUIPO_OWNERS`, `BASE_OWNER`). Two routes: |
| - - (a) seed the owner from the environment, and add Alta's `NoRoster` |
| - verify path (§1.2). The non-roster apps then claim policy |
| - `oficina/team-activation/v1`; |
| + - (a) seed the owner from the environment, answer a `seeded` |
| + `/api/team` probe, and add Alta's `Seeded` flag (§1.2). The seeded |
| + apps then claim policy `oficina/team-activation/v1`; |
| - (b) port Equipo to roster team mode first. |
| The consequence of (a) is §5.1 rule 1: Home's roster and the apps' |
| @@ -557,7 +600,13 @@ The design's rules: |
| removal step on the Team page; (b) before any outside team.* |
| 3. **House TensorX, phase A: one key per team on your account, small |
| balance, no top-up, Paul's teams only?** *Recommend: yes,* bound to |
| - profile `own` in code (§5.1 rule 3). The risk is a shared balance. |
| + profile `own` in code (§5.1 rule 3). The accepted risks: |
| + - the balance is shared; |
| + - before the hosted runner, the key sits on every owner machine it |
| + is added to. |
| + |
| + For `campbells`, *recommend:* add it only on runners of adults you |
| + name. |
| 4. **Phase B gateway: may Memoria and Equipo accept our gateway's |
| address, reversing Memoria decision 13?** *Recommend: yes, with the |
| gateway forbidden to keep request bodies,* because it is the only |
| @@ -598,13 +647,21 @@ account with who holds its credential (§4.5 items 2 and 7). |
| Every slice gets a Fable review of the design and of the whole branch, |
| hub CI green, and Paul's go before anything is deployed. |
| -1. **Equipo recipe and the `NoRoster` verify path (Alta).** |
| - - Execution is not written. It is refused under profile `outside`. |
| +1. **Equipo recipe, the `seeded` probe (Equipo and Base), Alta's |
| + `Seeded` flag, and the Team page copy (Home).** |
| + - The recipe is refused under profile `outside`. |
| - The owner address follows the wait rule. |
| - - Gate: a canary team on a throwaway label reaches `live` for Equipo, |
| - and the audit shows no key beyond the recipe. Its owner signs in |
| - through Oficina ID. A second canary under `outside` is refused at |
| - step 0. The owner's sealed inputs are gone after the run. |
| + - The Team page gets two additions, through copy review: |
| + - the manual-removal line for seeded apps (§5.1 rule 1); |
| + - the operator-access sentence (Q11). |
| + - Gate: |
| + - a canary team on a throwaway label reaches `live` for Equipo |
| + through the probe, with the probe's consumer id checked; |
| + - the audit shows no key beyond the recipe; |
| + - its owner signs in through Oficina ID; |
| + - a second canary under `outside` is refused at step 0; |
| + - the owner's sealed inputs are gone after the run; |
| + - a probe answering the wrong consumer id parks verify. |
| 2. **Base recipe (Alta), no Store.** |
| - Gate: the canary team's Base signs in with Oficina ID and lists only |
| its own team's app hosts, and Ask reports "no runner" rather than an |
| @@ -618,6 +675,17 @@ hub CI green, and Paul's go before anything is deployed. |
| - tests that a non-owner member can neither add nor use it; |
| - tests that the form is absent unless the profile is `own`; |
| - a probe that a healthy subscription is preferred. |
| +3b. **Execution on for team Equipos.** |
| + - The `OperatorKeys` group (§1.2), set by Paul by hand, admitted both |
| + or neither by the audit. |
| + - The marker path follows production's precedent. |
| + - Gates: |
| + - on the canary team, an owner enrols their own machine and a chat |
| + turn runs on it; |
| + - a new Equipo build deploys over the execution-on team instance |
| + under the app's swap hold, with no duplicate execution owner; |
| + - the audit refuses the pair set half-way. |
| + |
| 4. **Paul's three teams, without a hosted runner.** |
| - Run Alta with Equipo and Base for `carlos`, `tito` and `campbells` |
| (profile `own`), after the six-app rollout. |
| @@ -634,8 +702,9 @@ hub CI green, and Paul's go before anything is deployed. |
| - **6c.** Equipo roster team mode, which closes §5.1 rule 1. It is |
| the long pole for outside teams. |
| -Slices 1 and 2 depend on the six-app rollout (mail submission on, Alta |
| -deployed). Slice 3 does not, and can be built now. |
| +Slices 1, 2 and 3b depend on the six-app rollout (mail submission on, |
| +Alta deployed) for their canaries; their code can be built now. Slice 3 |
| +does not depend on it. |
| ## 8. Unknowns |
| @@ -686,3 +755,16 @@ deployed). Slice 3 does not, and can be built now. |
| | P3 swap hold | It is app-wide (§1.1) | |
| | Missing questions | Q9–Q11 added. Provider terms and the AWS account moved to the runner spec | |
| +## Revision 3: Fable round 2 → changes |
| + |
| +| Finding | Change | |
| +|---|---| |
| +| P1-A Teams without execution have no agents | Execution-on comes back into scope as slice 3b, before slice 4. The marker path follows production's precedent (§1.1). The pair is an `OperatorKeys` group set by Paul. §4.5 item 3 is reduced to reuse | |
| +| P2-1 `env release` deletes nothing | The real closing steps are in §5.1 rule 4: unset first, revoke at GitHub, then delete the replica (command unverified) or record "replica kept" | |
| +| P2-2 `NoRoster` borrows adoption's bypass | Replaced by a `seeded` `/api/team` probe that checks the consumer id and owner seed, plus Alta's `Seeded` flag (§1.2). The slice 1 gate covers a wrong id | |
| +| P2-3 where the house key lives | It is sealed to one runner; per-owner pastes; Q3's risks widened, with a recommendation for `campbells` | |
| +| P2-4 the Team page copy had no slice | Added to slice 1, through copy review | |
| +| P3 `NoRoster` touches three places | Listed for `Seeded`: `AppSteps`, `inputs`, `stepAudit` | |
| +| P3 `EQUIPO_HOUSE_CONNECTIONS` redundant | Kept for 6c, with a note; the canonical Equipo needs it set by hand | |
| +| P3 stale title | Fixed | |
| + |