Plan rev 2: answer Fable's plan review (fixed Base app list, Base last, unconditional cross-origins, no agent keys)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+37
−8
docs/superpowers/plans/2026-11-30-team-bundle-slices-1-3b.md+37 −8
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/plans/2026-11-30-team-bundle-slices-1-3b.md b/docs/superpowers/plans/2026-11-30-team-bundle-slices-1-3b.md| index 9e7e296..1be8f46 100644 |
| --- a/docs/superpowers/plans/2026-11-30-team-bundle-slices-1-3b.md |
| +++ b/docs/superpowers/plans/2026-11-30-team-bundle-slices-1-3b.md |
| @@ -8,7 +8,39 @@ revision 3. Fable approved it and Paul ruled every question as recommended |
| Paul's own-profile teams. Both reach `live` in the directory, and an |
| owner's own runner can run agents on the team's Equipo. |
| -**Status:** draft, not reviewed. Nothing is built. |
| +**Status:** revision 2, answering Fable's plan review (CHANGES REQUIRED: |
| +2 P1, 4 P2, 5 P3). E1 is built on Equipo `team-probe` (ed4c0e0e). |
| + |
| +**Revision 2 changes:** |
| +- **`BASE_OFICINA_APPS` is a fixed list, and Base comes last** (P1-1, P1-2). |
| + - The list holds every Alta-provisionable app except `base`. |
| + - Step 0 refuses Base (`base-needs-team-apps`) unless the team already |
| + has, or the run includes, every one of those apps, Equipo included. |
| + The value then never depends on the run, and no app can be added |
| + after Base. |
| +- **`EQUIPO_ASSISTANT_HOSTS` and `BASE_EQUIPO_ORIGIN` are unconditional**, |
| + pointing to the label's own Base and Equipo hosts (P1-2). |
| + - Equipo's list admits only that origin, so naming a Base that doesn't |
| + exist yet is harmless. |
| + - Base always has its Equipo, by the rule above. |
| +- **No agent keys on fresh instances** (P2): |
| + - `BASE_AGENT_*` is read by nothing in Base; |
| + - for `EQUIPO_AGENT_*`, whether connect routes to a fresh team |
| + instance without registration is unverified. |
| + |
| + Like the six fresh-team recipes, which carry no `<P>_AGENT_*` either, |
| + agent access for fresh teams is a follow-up. |
| +- **The team page's `addable` filters on `OwnOnly`** against the team's |
| + written profile, and never offers Equipo or Base on the adoption label |
| + (P2; `internal/web/app.go:464`). |
| +- **`BASE_NAME` is the label** (P2). `Inputs` carries no display name. |
| +- **P3s:** |
| + - `TeamProbe` gains `Seeded bool`; |
| + - the fake Home and console produce `owner-pending`; |
| + - the homecompat pin is checked for the Equipo and Base routes before |
| + A5. |
| +- **Slice 3's drop is confirmed by Fable**, pending Paul's OK. Strike |
| + `EQUIPO_HOUSE_CONNECTIONS` and slice 3's gates from the spec. |
| Facts below were read on 2026-11-30 from these commits: |
| @@ -110,9 +142,7 @@ Equipo: |
| | `EQUIPO_HOME_DEK_BASE64` | Generated | from the common header | |
| | `HOME_DIRECTORY_ORIGIN` | Set | from the common header | |
| | `EQUIPO_OWNERS` | `ownerKey` | owner's address; `OwnerAddress`, so the wait rule applies through `NeedsOwner` | |
| -| `EQUIPO_ASSISTANT_HOSTS` | Set | `PublicOrigin(label, "base")` when Base is in the run, otherwise `""` | |
| -| `EQUIPO_AGENT_ISSUER` | Set | `https://connect.oficina.works`, as adoption writes it | |
| -| `EQUIPO_AGENT_TEAM` | Set | the team SQID | |
| +| `EQUIPO_ASSISTANT_HOSTS` | Set | `PublicOrigin(label, "base")`, always | |
| Base: |
| @@ -126,11 +156,10 @@ Base: |
| | `BASE_HOME_DEK_BASE64` | Generated | from the common header | |
| | `HOME_DIRECTORY_ORIGIN` | Set | from the common header | |
| | `BASE_OWNER` | `ownerKey` | owner's address | |
| -| `BASE_NAME` | Set | the team's display name if the run has one; the label otherwise | |
| +| `BASE_NAME` | Set | the label | |
| | `BASE_SLUG` | Set | label | |
| -| `BASE_OFICINA_APPS` | Set | `<app>=<PublicOrigin>` for each app in the run, comma-joined, in Home's order. The format is read from Base `config.parseOficinaApps` | |
| -| `BASE_EQUIPO_ORIGIN` | Set | `PublicOrigin(label, "equipo")` when Equipo is in the run, otherwise `""` | |
| -| `BASE_AGENT_ISSUER`, `BASE_AGENT_TEAM` | Set | as for Equipo | |
| +| `BASE_OFICINA_APPS` | Set | `<app>=<PublicOrigin>` for every Alta-provisionable app except `base`, comma-joined, in registry order. The format is from Base `internal/config/oficina.go`. A `base` entry would refuse boot (`:73-75`) | |
| +| `BASE_EQUIPO_ORIGIN` | Set | `PublicOrigin(label, "equipo")`, always | |
| Base gets no `BASE_PLATFORM_*`, `BASE_APPS_DOMAIN` or |
| `BASE_ASSERTION_KEY`: no Store. |