oficina / alta Public

Document Base's adoption and the held-door rule for Paul's ruling

Summary

docs/base-adoption.md states what the delivery check proves for the
other seven apps, why Base cannot pass it, the proposed held-door rule,
exactly what it keeps and gives up for Base, the rejected alternatives,
and the rollout differences from Equipo's. README counts eight canonical
apps and points at it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev b5afea8caf9097c1251372b527cd7500b76d5dfb parent 11ac4d9
2 files changed, +133 −3
  • README.md +10 −3
  • docs/base-adoption.md +123 −0

CI passed — run details

CI log
=== vet ===
go vet ./...
=== fmt ===
=== test ===
CGO_ENABLED=0 go test ./...
ok  	amadan.net/oficina/alta/adopt	24.046s
ok  	amadan.net/oficina/alta/carlosop	0.056s
?   	amadan.net/oficina/alta/carlosop/fakecarlos	[no test files]
ok  	amadan.net/oficina/alta/cmd/alta	0.173s
ok  	amadan.net/oficina/alta/cmd/alta-adopt	41.862s
ok  	amadan.net/oficina/alta/console	0.005s
?   	amadan.net/oficina/alta/console/fakeconsole	[no test files]
ok  	amadan.net/oficina/alta/homeop	0.004s
ok  	amadan.net/oficina/alta/homeop/fakehome	0.050s
ok  	amadan.net/oficina/alta/internal/web	0.119s
ok  	amadan.net/oficina/alta/provision	12.946s
=== compat ===
cd homecompat && go vet ./... && CGO_ENABLED=0 go test ./...
go: downloading amadan.net/oficina/home v0.1.1-0.20261123184145-9dd7fc0d3479
go: downloading amadan.net/oficina/home/handoff v0.0.0-20261123184145-9dd7fc0d3479
go: downloading amadan.net/oficina/home/roster v0.0.0-20261123184145-9dd7fc0d3479
ok  	amadan.net/oficina/home/altacompat	0.693s
diff --git a/README.md b/README.md
index caa67bc..20b0e96 100644
--- a/README.md
+++ b/README.md
@@ -219,8 +219,8 @@ recorded here instead (Fable's rulings on oficina/alta #1):
## Adopting the six existing apps (`alta-adopt`)
`alta-adopt` is a second binary, run on Paul's machine and never deployed.
-It joins the seven canonical apps (docs, sheets, slides, calendar, calls,
-memoria, equipo at `https://<app>.oficina.works`) to a Home directory team
+It joins the eight canonical apps (docs, sheets, slides, calendar, calls,
+memoria, equipo, base at `https://<app>.oficina.works`) to a Home directory team
labelled `oficina`, named "Oficina", so oficina-connect can route an
assistant's calls to them. On CARLOS it writes two keys per app,
`<P>_AGENT_ISSUER = https://connect.oficina.works` and
@@ -236,6 +236,12 @@ For adding Equipo to the already adopted `oficina` team, use
Alta does not yet offer a recipe for new Equipo instances. Its app-side
adoption contract must be deployed before `configure`.
+Base joins the same way, adoption-only, by
+[the Base rollout](docs/base-adoption.md). Its operations door already
+answers agent-access's challenge before adoption, so its delivery check
+holds that door instead of watching it move; that rule awaits Paul's
+ruling, and Base's adoption waits on it.
+
### Before the first run
The shared production keyset comes first, before the CARLOS credential
@@ -318,7 +324,8 @@ run it again if it stops (`status` shows where every run is).
would go to. `artifact-mismatch` means the app is not serving the
release reviewed in `artifacts`. `operations-<shape>` means its
`/api/v1/operations` does not answer as it should before adoption: a
- 404, or for Slides, Calls and Equipo their own 401.
+ 404, for Slides, Calls and Equipo their own 401, or for Base its own
+ agent-shaped 401.
5. **Initialize.** Run `alta-adopt initialize --apply` and type the
attestation. Confirm on
[https://oficina.works/operator/confirm](https://oficina.works/operator/confirm)
diff --git a/docs/base-adoption.md b/docs/base-adoption.md
new file mode 100644
index 0000000..b0bf271
--- /dev/null
+++ b/docs/base-adoption.md
@@ -0,0 +1,123 @@
+# Add Base to the existing Oficina team
+
+Status: **proposed, for Paul's ruling.** Implementer: Claude Opus 5.5,
+2026-11-23. Authority: Paul's 2026-11-23 decision that Base production is
+`https://base.oficina.works`, so Base's native app finds it in team
+`oficina`'s directory. Home's matching change is `base-in-directory`
+(`9dd7fc0`, review #157). Nothing here was run against production.
+
+Base joins canonical adoption exactly as Equipo did
+([the Equipo rollout](equipo-adoption.md)), with one difference: its
+delivery check. That difference is the rule below. Until Paul rules on it,
+do not run `configure` or `activate` for Base.
+
+## The rule: Base's operations door is held, not moved
+
+**What the delivery check proves for the other seven apps.** `configure`
+writes `<P>_AGENT_ISSUER` and `<P>_AGENT_TEAM`, restarts the canonical host,
+and records a check only if the app now serves the same reviewed release,
+healthy, with its identity and configuration exactly the after snapshot's,
+**and** `GET /api/v1/operations` has moved from its baseline (a 404, or the
+app's own 401) to agent-access's challenge. agent-access mounts only when
+the app reads both keys, so that move is the evidence, in place of 522
+Plan 2, that the running process holds the new keys. When Home then makes
+the directory row live, oficina-connect's delegated calls for the team
+reach an app that verifies them against connect.
+
+**Why Base cannot pass it.** Base's `/api/v1/operations` already answers
+agent-access's exact challenge (`WWW-Authenticate: Bearer`, `no-store`,
+`error.code = unauthenticated`): it is Base's own door for Equipo's
+Assistant, authenticated by a Base host token (carlos/base
+`internal/operations`, mounted outside the site middleware by
+`withOperations`). agent-access writes the same bare `Bearer`, so no
+unauthenticated probe can tell them apart. And Base reads neither
+`BASE_AGENT_ISSUER` nor `BASE_AGENT_TEAM`, so nothing could move anyway.
+Preflight would refuse Base with `operations-agent-401`.
+
+**The rule.** Base's baseline is agent-access's challenge, and the check
+requires the same challenge after the restart. Everything else in the
+check is unchanged. In code: `BaselineOps(base) = agent-401`
+(`adopt/delivery.go`); `Delivered` then admits only agent-401 to agent-401
+for Base, and refuses a 404, an app 401, any other answer, and a 200
+without a token.
+
+**What it keeps for Base.** The reviewed release, unchanged across the
+restart, with no redirect and `/healthz` 200; the instance, environment,
+storage and domain route unchanged; every other config key preserved and
+the config exactly the after snapshot's, with both agent keys stored as
+sent; Home identity (`BASE_HOME_ISSUER = https://id.oficina.works`,
+`BASE_HOME_CONSUMER_ID = base`); the door still closed to callers without a
+token. Preflight also refuses Base unless its door answers the challenge,
+so a host not serving Base's release is caught before anything is written.
+The check stays void on any later change, as for every app.
+
+**What it gives up for Base.**
+
+1. **No evidence that the process has the keys.** For Base this is moot:
+ Base never reads them. They are written, but they do nothing.
+2. **No evidence that the restart happened.** The old process answers the
+ same as the new one, so the first probe after the restart can pass.
+ This matters only for item 1, which is moot.
+3. **No delegated access through connect.** Once Base's row is live,
+ oficina-connect may route team `oficina`'s delegated calls to
+ `https://base.oficina.works/api/v1`. Base refuses them with its 401,
+ because it accepts only its own host tokens. It fails closed: nothing is
+ exposed, and Equipo's Assistant keeps reaching Base on host tokens as
+ today. What adoption buys Base is the directory listing that its native
+ app needs. It does not give Base connect-routed assistants.
+
+If Base later reads the two keys (agent-access's remote verifier on its
+door), the keys already stored would take effect at that release. That
+release needs its own review and its own evidence. This check cannot
+supply that evidence, because the challenge looks the same.
+
+**Alternatives rejected.**
+
+- *A per-app probe path* (a new Base door that answers only once the keys
+ are set). Base would have to build a door nobody calls, only so that Alta
+ has something to watch. The Equipo contract rules that out ("a fake
+ public list added only to satisfy Alta is not an integration"). It also
+ needs a Base change.
+- *Base reads the keys and gates something on them.* The only meaningful
+ gate is accepting connect's delegated bearer on its door: the real
+ integration, mapping a Home person to a Base member. That restores item 3
+ in substance. But agent-access's challenge is the same bare `Bearer`, so
+ the probe still sees no move. The evidence would need a new, configured-
+ only signal in Base's or agent-access's challenge. That is a Base design
+ change, and the right one only if Paul wants connect-routed assistants
+ in Base.
+- *Skip `configure` for Base* (write no inert keys). Honest, but the
+ activation gate, the observer and Home's signed `environment_binding` all
+ require a write, an after snapshot and a recorded check. That is a larger
+ change to a reviewed design.
+- *Make Base's own door answer an app 401 before adoption.* That breaks
+ Equipo's Assistant, which reads Base's operations today.
+
+**Home's design must say the same.** `implementation/existing-team-adoption.md`,
+"Delivery evidence", lists each app's move. It needs one more sentence for
+Base, the held door, as Paul rules it. This branch changes Alta only.
+
+## Rollout differences from Equipo's
+
+Follow [the Equipo rollout](equipo-adoption.md) with `base` for `equipo`
+and `BASE_` for `EQUIPO_`, and Base's own runbook (carlos/base
+`.superpowers/sdd/2026-11-23-base-native/base-oficina-works-runbook.md`,
+steps 1-9) for the order. In particular:
+
+- Home `base-in-directory` is merged and deployed to **both** `oficina` and
+ `oficina-id`. Alta's `homecompat` is re-pinned to Home's **merge commit**
+ (it pins `9dd7fc0` on this branch), and `make ci` passes, before this
+ branch merges.
+- Base serves `https://base.oficina.works`: domain attached, and
+ `BASE_ORIGIN` and `HOME_CONSUMERS_BASE64`'s `base` entry moved together
+ (the runbook's steps 2 and 4). `register-consumer` only verifies that entry.
+- Every Base env change (the runbook's steps 4 and 5) is made **before**
+ `configure`, which captures the immutable baseline.
+- Expected preflight: `base: ready`, with Base's door answering its
+ agent-shaped 401. `operations-absent` or `operations-app-401` means the
+ host is not serving Base's release.
+- `configure --app base --apply` writes `BASE_AGENT_ISSUER` and
+ `BASE_AGENT_TEAM`, restarts only the canonical Base host, and records the
+ held-door check. Base ignores both keys.
+- A plan naming all eight canonical apps exactly fills Home's eight-app plan
+ cap. A continuation plan names only the missing apps (`base`).