Skip to content
ContractSpec
Start here
AI index

Core model

Contracts are the durable system boundary.

ContractSpec uses explicit TypeScript specs to describe behavior before it spreads across APIs, UI, data models, events, and operator flows. The goal is not to hide implementation. The goal is to make the system boundary explicit enough that generation, validation, runtime enforcement, and regeneration can stay coherent.

System promise

one contract → many surfaces

Use the contract layer to keep surface behavior aligned, then let runtimes and generators do the repetitive work without inventing a closed platform.

What the contract layer owns

  • Behavior: operations, events, presentations, workflows.
  • Validation: input, output, and schema boundaries.
  • Governance: policy, auditability, and migration rules.
  • Surface alignment: generated or served behavior across API, UI, data, and agent-facing interfaces.