Examples
Reference implementations for real ContractSpec surfaces. Use them to study adoption patterns, inspect generated artifacts, and validate the OSS workflow against runnable systems.
Source walkthroughs
Read a maintained example or fixture in its authored order, with what the review establishes and what it leaves open.
Contracts · Beginner · Define an operation
Write your first contract
Follow user.create from an email schema to a typed handler. Start with the smallest maintained example.
Execution · Intermediate · Control side effects
Stop a write before it runs
Trace a REST request through an approval gate and inspect the zero-handler-call denial assertion.
UI · Intermediate · Build an interface
Build a table from a data view
Compare a declarative account table with the shared client and server controller surfaces.
UI · Intermediate · Build an interface
Capture now, complete when ready
Use form contracts to accept a minimal intake while keeping missing readiness fields visible.
Governance · Advanced · Build an interface
Adapt the view. Preserve the boundary.
Inspect role-specific approval surfaces where adaptive hints cannot grant authority.
Composition · Advanced · Compose an application
Compose nine feature hubs
Inspect one application composition with matching semantic routes for web and native.
Agents · Intermediate · Control side effects
Draft freely. Send with approval.
Follow one contract boundary through a workflow and an in-memory MCP transport.
CompanyOS · Advanced · Inspect execution evidence
Trace a signal to a reviewable outcome
Walk a support-to-product scenario through permissions, correction replay, and an evidence receipt.
CompanyOS · Advanced · Inspect execution evidence
Turn a request into bounded technical proof
Inspect a fixed request, a reviewed plan, and a recorded or explicitly enabled loopback proof.
Agents · Advanced · Control side effects
Review an agent's migration proposal
Follow a deterministic release migration through scoped subagents, digest-bound approval, and a draft PR receipt.
Knowledge · Intermediate · Govern knowledge
Answer against a named knowledge snapshot
Trace a deterministic answer to approved rule versions, then inspect how citations change after review and publication.