exoDocs
Decisions (ADRs)

Decisions and roadmap

ADR 0024: The Exo Contract

  • Status: accepted (report mode)
  • Date: 2026-11-02
  • Decided by: Samir (owner), 22:27 EST: "spend a lot of time trying to get all of that live and working and integrating with each other in all the right ways"
  • Builds on: ADR 0016 (approved stack, no waivers), ADR 0017 (Render), ADR 0021 (names registry: fleet > ship > squad)
  • Spec: docs/contract/exo-contract.md

Context

ADR 0016 says which infrastructure an app may use (Convex data, Exo identity, Exo Secure secrets, Render). It does not say which squads of the fleet an app relies on, how those squads integrate, or whether a squad is really live. The fleet now has seven ships and about twenty-five squads, several of them only partly built, and the public site must never claim more than is true.

Decision

  1. One contract for the whole fleet. Every squad has a job, its approved vendor(s), the interface apps call, the squads it integrates through, and an honest status: live, wired-not-enabled, stub or not-started. The spec lives in docs/contract/exo-contract.md; the machine copy is EXO_CONTRACT in packages/exo-simulator/lib/level1/stack.mjs (embedded in every app's managed workflow).
  2. Every app declares what it uses in exo.contract.json (schema: schemas/exo-contract.schema.json). Preflight checks it: squad ids are real (registry ids), the five required squads are declared (identity, secrets, app-runtime, source-hosting, repo-checks), every vendor is approved for its squad, every squad it integrates through is declared too, and every file it says wires a squad exists.
  3. Two new stack layers (policy v5). models: model calls go only through Exo Infer (no provider SDKs or keys). analytics: no third-party analytics (keeps Exo's public claim true).
  4. Report mode first, exactly like the stack check (CONTRACT_ENFORCEMENT = 'report'), until Exo's own apps are clean. There is no waiver path; a finding is fixed.
  5. Exo declares itself first (exo.contract.json at the repo root) and must pass its own check (tests/int/exo-contract.int.spec.ts).

Consequences

  • A squad's status is written once, in the manifest, next to the files that wire it; the check fails a manifest that calls a squad live with no wiring.
  • New vendors still need a trust assessment and Samir's yes before they enter EXO_CONTRACT.
  • Display names stay in the names registry; the contract uses stable ids only.

Source: docs/adr/0024-exo-contract.md

On this page