oficina / alta Public

Clone
git clone https://amadan.net/oficina/alta

Plain git — no account needed to clone.

Download

Download this file

Add Base to the existing Oficina team

Status: approved by Paul, 2026-11-23 (relayed by the coordinating agent; oficina/alta discussion 5). 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), with one difference: its delivery check. That difference is the rule below, which Paul approved on 2026-11-23.

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. On a resume, preflight's exemption for a door that has already moved (both agent keys the journal's own) does not apply to Base: its door must still give the challenge.

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. The same holds for rollback-config: Reverted waits for the door's baseline shape, which Base's door never left, so a rollback also completes on its first probe. Both matter 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 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).