exoDocs
Decisions (ADRs)

Decisions and roadmap

ADR 0027: Exo is a headless control plane; every harness is a client

  • Status: accepted. Direction approved by Samir on 2026-11-01 ("yeah that's great", relayed from the Rampart project). Decisions 1-4 below approved by Samir on 2026-11-07 as proposed (relayed by Overwatch). Decision 5 is still open. Numbered 0027 because 0024 went to the Exo Contract ADR while this was in draft (it was drafted as 0024 in PR #268).
  • Date: 2026-11-01
  • Decided by: Samir (owner)
  • Builds on: ADR 0009 (Exo Key device flow and personal keys), ADR 0010 (Exo Key OAuth for MCP clients), ADR 0014 (Exo Secure, secrets from Bitwarden), ADR 0016 (approved stack), ADR 0017 (Render runtime), ADR 0023 (Exo Deploy Simulator Gate, draft #267), and the existing MCP server and exo CLI in docs/agents.md
  • Roadmap: exo-headless-control-plane
  • 2026-11-13: secrets provider changed to Bitwarden. The runner's secrets credential is a Bitwarden Secrets Manager machine account (sections 4 and "What Samir sets up once").

Context

Getting Rampart's staging gateway working kept turning into terminal scripts on Samir's Mac. The credentials that can change a deployment (the secrets-manager credential, the Convex deploy keys, the Render API key) only work there, and Exo has no place that holds them and acts on a request. Samir is not a developer, and in his words "running bash scripts is not scalable." Exo's own customers will hit the same wall.

Exo already has most of the front door:

  • an MCP server at POST /mcp on the Exo Convex HTTP surface, with read and key-management tools (exo_whoami, exo_list_apps, exo_list_agents, exo_revoke_agent and others);
  • an exo CLI (packages/exo-cli) that calls the same endpoint;
  • Exo Key's device authorization grant (RFC 8628) and OAuth for MCP clients (CIMD, DCR, PKCE, RFC 8707 resource indicators), with a "Connected agents" list and per-agent revoke.

What it lacks is the back half: typed operations that change something, a policy engine, approval outside the agent, a runner that holds provider credentials server-side, and an audit trail. Today the control-plane writes are explicitly "Not exposed" (docs/agents.md).

Decision

1. Exo is a headless control plane, not an agent

Exo builds almost no agent of its own. Every harness (Codex, Claude Code, Hermes Agent, OpenCode, T3 Code, Hark, ChatGPT and the rest) is a client of one Exo API. Overwatch, the control plane and access point, becomes headless: it is where any agent connects and where Samir sees what every agent is doing, not a chat agent Exo has to keep up with the frontier.

2. One API, three doors

All three call the same operations, with the same policy, grants and audit. Nothing is reachable from one door that the others cannot reach.

DoorForWhere
MCP server (primary)every harnessthe existing POST /mcp, extended with the operations below
HTTP APIthe Exo dashboard, the Exo mobile app, third-party clients/v1/* on the same Convex HTTP origin
exo CLIpeople and scripts who prefer a terminalthe existing thin wrapper; no logic of its own

Operations have dotted IDs in the spec, the policy and the audit log (exo.deploy.request). The MCP wire name replaces dots with underscores (exo_deploy_request), which matches the existing exo_* tools and works with clients whose model APIs only accept letters, digits, _ and - in tool names.

OperationKindDefault policy
exo.statusread: apps, environments, deployed commit, healthallow
exo.logs.readread: deploy and runtime logs for one app and environment, time-boxed, redactedallow
exo.grants.listread: this ship's own grant and manifestallow
exo.deploy.plandry run: what a deploy of commit X to env Y would do, and which gates applyallow
exo.deploy.requestwrite: deploy an exact commit to an exact environmentask (pending approval)
exo.env.setwrite: set a non-secret config valueask; secrets are never set through this
exo.secret.rotatewrite: generate a new secret into Bitwarden and propagate italways ask, never pre-approvable
exo.dns.changewritealways ask, never pre-approvable

3. Connecting a harness: Exo Key device flow, approved by passkey

  1. The harness calls Exo (MCP, HTTP or CLI) and starts an Exo Key device flow (ADR 0009). MCP clients that speak OAuth use the ADR 0010 path; the grant screen is the same.
  2. Samir opens the link on his phone and approves with a passkey (WebAuthn). The grant screen is where he picks the scope: which apps, which environments, which operations, and for how long (duration, with a short default).
  3. The harness receives a short-lived, scoped Exo Key token. It never receives a provider key (no Render, Convex, Bitwarden or DNS credential ever leaves the control plane).
  4. The grant shows up in Connected agents and the dashboard. Revoke is one tap and takes effect on the next call: tokens carry their grant ID (the existing sid check in admitMcpCall), and the grant is checked on every operation, not only at token refresh.

4. Deploys: request, gate, approve out of band, run server-side

  1. exo.deploy.request names an exact commit SHA and an exact environment. Branch names and "latest" are refused.
  2. The control plane runs the gates for that commit: Preflight (tests, security scanners, security claims, approved stack) and, where ADR 0023 requires it, the Exo Deploy Simulator Gate. The request comes back as pending_approval with the gate results attached, or rejected with the failing gate.
  3. Approval happens out of band: a push to Samir's phone, approved with a passkey. The harness has no approve operation and its token has no scope that can approve anything, so a harness can never approve itself, even if it is prompt-injected.
  4. Exo's own runner executes the approved plan with credentials held server-side (Render API key, Convex deploy keys, the Bitwarden machine account, DNS) and streams logs back to the harness (exo.logs.read on the request ID) and the dashboard.
  5. Standing pre-approval is allowed for low-risk work, for example "this ship may deploy any commit that passes Preflight to Rampart staging for 7 days." It is a grant Samir creates with a passkey, visible and revocable like any other. Production, secrets and DNS always need a tap; the policy engine refuses to create a standing approval that covers them.

Staging note: Render already deploys every update to a staging branch automatically (AGENTS.md), so for staging exo.deploy.request is for what auto-deploy does not cover: a Convex functions deploy, config changes, redeploying or rolling back to a pinned commit, and runbooks such as the Rampart gateway wiring below.

5. Controls

  • Typed operations only. No arbitrary shell against production. Every write is one of the operations above, with typed arguments, validated before it runs.
  • Full audit trail. One append-only record per operation: who (the person), which harness, which ship and grant, which commit and environment, the gate results, who approved and how, and the result. Secrets and tokens never appear in it.
  • Kill switches per harness, per app and global. The global switch puts every write into deny until Samir lifts it with a passkey.
  • Policy lives in the control plane, never in prompts. Instructions to an agent are advice; the allow/ask/deny decision is made by Exo on every call.

6. Borrow, don't fork

Both projects below are MIT licensed (checked on GitHub, 2026-11-01). We borrow designs and, where it is worth it, code with attribution; we fork neither.

FromWhatSource and license
OpenCodethe client/server split (a headless server any client drives), and the allow / ask / deny permission model with pattern rules where the last match wins, as the shape of Exo's policy engineanomalyco/opencode (MIT); permissions docs
Hermes Agentthe pluggable terminal backend interface (where commands run is a backend choice), for an isolated Exo console, and the skills pattern (a markdown runbook loaded on demand) for deploy runbooksNousResearch/hermes-agent (MIT); tools and terminal backends

Exo's policy rules are written in the OpenCode style ("exo.deploy.request": {"*": "ask", "rampart/staging": "allow"}) but evaluated server-side against the grant. The console backend is a Render one-off job or a Render Sandbox (beta), so it stays on the approved stack; we do not adopt Hermes's third-party sandbox vendors.

7. Dashboard

The dashboard is a client of the same HTTP API, with no private endpoints:

  • apps and environments, with health and the deployed commit;
  • approvals: pending requests with their gate results, approve or reject with a passkey;
  • access and grants: every connected ship, its scope and expiry, one-click revoke;
  • components in use, measured against the approved stack;
  • logs and analytics (operations, deploys, failures, usage per ship);
  • a sandboxed console (later; see section 6).

The exo CLI covers the same views.

8. The Squadron Standard (part of the protocol, not only the UI)

These are first-class objects in the API, the grant model and the audit log.

  • Ship. One agent with one identity (an Exo Imprint identity, acting for the person who granted it), one grant (Exo Key) and one audit trail. Inside, a ship may run any number of role sub-agents; outside, it is one ship with a capability manifest (apps, environments, operations) that Exo enforces. A harness session that connects is a ship.
  • Squadron. Ships assigned to one mission, sharing typed mission state (goal, steps, who holds which step, what each is waiting on) through the API, not through prompts.
  • Overwatch. The battlefield view: every ship and mission, its status, what it is waiting on, and what it can touch.
  • Grants, approvals and kill switches work at ship level, never per sub-agent. Sub-agents are the ship's own business; Exo sees and governs the ship.
  • Reference client. One small Exo mobile app, in the spirit of Pixel and Nexus for Android: it uses only the public API and has no special powers. Dropship and Squadron live in it. Exo publishes an open spec and SDK and encourages others to build clients.
  • Overwatch becomes a headless access point and a connector to other people's agents, not an agent Exo builds.

Protocol objects (names final, fields indicative):

Ship      { id, harness, personId, grantId, manifest: { apps[], envs[], ops[] }, status }
Squadron  { id, missionId, shipIds[] }
Mission   { id, goal, state: { steps[], holder, waitingOn }, status }
Grant     { id, shipId, apps[], envs[], ops[], expiresAt, standingApprovals[], revokedAt? }
Request   { id, shipId, op, args, commit?, env?, gates[], approval, result }

First slice (proposed)

Smallest end-to-end path that retires the Mac script.

  1. MCP tools exo_status, exo_logs_read and exo_deploy_request, scoped to Render staging only. exo_deploy_request also accepts a named runbook (below).
  2. Harness connection through the Exo Key device flow, producing a ship with a scoped, short-lived grant.
  3. Phone approval screen with a passkey: approve or reject a pending request; create, view and revoke a grant.
  4. Audit log page listing every operation with its full record.
  5. Exo runner: a dedicated Render background worker that holds the provider credentials and runs approved plans, separate from the web service so the web app never holds a deploy key.

First real use: finish the Rampart staging gateway wiring without a Mac script. One runbook, one request, one tap:

  1. generate the gateway client secret into Bitwarden (EXO_GATEWAY_CLIENT_SECRET in the Exo Staging project, per ADR 0014);
  2. compute its SHA-256 (base64url) and set EXO_GATEWAY_CLIENT_SECRET_SHA256 on the staging Convex deployment frugal-eel-930;
  3. set the gateway values on the Render exo-staging service and redeploy it;
  4. verify a request through staging.exo.now/rampart carries a valid gateway token, and stream the result back.

Because step 1 creates a secret, this request always needs a tap, even on staging.

Acceptance criteria

  • A harness Samir has never used before can be connected from his phone in under two minutes, with no terminal.
  • The harness never sees a provider credential: no Render, Convex, Bitwarden or DNS value appears in any MCP response, log line or audit record (checked by a test that scans responses for the Preflight secret patterns).
  • A deploy request for a commit that fails Preflight is rejected before it reaches approval.
  • No token held by a harness can approve a request (tested by calling every approval path with a harness token and getting 403).
  • Revoking a grant blocks the next call from that ship within one request.
  • Each kill switch (harness, app, global) blocks writes on the next call.
  • The Rampart gateway runbook completes on staging from one request and one passkey tap, and the audit log shows the full record.
  • Every operation in the slice has a row in the audit log.

What Samir sets up once

  1. A server-side Bitwarden machine account for the Exo runner: read access to the Exo Staging project and write access only where the runbooks rotate secrets, its token stored as a sync: false secret on the runner service in the Render dashboard (ADR 0014 shape).
  2. Render and Convex credentials held server-side: a Render API key and the staging Convex deploy key, stored in Bitwarden and loaded by the runner, never on his Mac and never given to a harness.
  3. Passkey enrolment on his phone (and a second device as backup) for approvals.

Unit economics (estimates)

Prices are list prices; every figure is an estimate until the slice runs.

  • Runner hosting: one Render background worker on starter (0.5 CPU, 512 MB) at $7/month, under the existing Render Pro workspace. Staging-only in the first slice.
  • MCP and HTTP API hosting: on the existing Exo Convex deployment; the new tools add Convex function calls and audit writes, about $0/month at current volume (inside the plan's included usage; estimate).
  • Cost per deploy request: a few Convex calls, gate time already paid by Preflight, and about 3-5 minutes of runner work, which on an always-on worker is under $0.01 per deploy (estimate: $7 / ~43,000 minutes per month ≈ $0.00016 per minute). If work moves to Render one-off jobs, they bill per second at the plan rate, about the same per run.
  • Simulator Gate, when required, is its own line (ADR 0023: about $0.018 per run, billed at $0.10).
  • Price (approved 2026-11-07): included in every tier, with a usage line in Exo Pay of $0.05 per executed write operation (deploys, config changes, runbooks); reads free. Margin per write at an estimated $0.01 cost: 80%.
  • Break-even: the $7/month runner is covered by about 175 billed writes a month ($7 / ($0.05 - $0.01)). For Interspace's own apps it is a cost line, justified by removing the Mac-only deploy path.

Risks

  • A compromised harness token. Mitigated by short TTLs, scope per grant, no approve scope, revoke on the next call, and kill switches. Standing pre-approval is the main exposure, so it is staging-only and time-boxed.
  • The runner becomes the crown jewel. It holds every provider credential. It runs as its own Render service with no public route, takes work only from the approved-request queue, and its Bitwarden machine account is scoped to the projects the runbooks need.
  • Passkey loss or a lost phone blocks approvals. Mitigated by a second enrolled device.
  • Approval fatigue. Too many taps lead to tapping without reading. The approval screen shows commit, environment, gate results and a one-line diff summary, and standing pre-approval covers routine staging work.
  • Scope creep toward a shell. The sandboxed console is the pressure point; it stays a later slice, isolated, and never points at production.
  • Protocol churn. Publishing a spec early invites clients we must keep working. The spec is versioned and marked draft until the reference app ships.

Decisions (approved by Samir 2026-11-07, as proposed)

  1. Names for the CLI and MCP server: keep exo for both (the CLI already ships as exo and the MCP server answers at /mcp on Exo); the experience is presented as Overwatch.
  2. Scope of standing pre-approval: staging only, per ship and per app, operations limited to deploy and non-secret config, commits must pass Preflight, 7-day maximum. Production, secrets and DNS always need a passkey tap.
  3. Default grant duration when connecting a harness: 8 hours, renewable.
  4. Usage price: $0.05 per executed write operation (deploys, config changes, runbooks), reads free, as in Unit economics above.

Still open

  1. Who besides Samir can approve. Recommendation: only Samir until Exo has outside customers.

Consequences

  • The control-plane writes listed as "Not exposed" in docs/agents.md become exposed, but only as typed, gated, approved operations.
  • No Mac script is needed to deploy, wire secrets or change staging config.
  • Any harness Samir picks next works on day one, with no Exo-side agent to maintain.
  • The Squadron Standard is in the protocol, so third-party clients inherit the same ship-level grants, approvals and kill switches.

Source: docs/adr/0027-exo-headless-control-plane.md

On this page