Platform Contracts
The registry of every enforced platform rule. Source of truth lives in governance/; this view is generated.
Platform Contracts
The machine-readable source of truth lives in governance/ (JSON/YAML). This page is generated from it; the governance/ scripts enforce that the source is never violated. Status: 🔒 locked · ✍️ drafting · ⏳ planned · ↗ elsewhere
Platform
| Contract | Status | Enforced by |
|---|---|---|
| Design system | ✍️ | ast-grep (derived from rules) |
| Frontend (shell, components, a11y) | ✍️ | dependency-cruiser + ast-grep |
| Backend & API | ⏳ | contract tests / OpenAPI |
| Multi-agent coordination | ✍️ | contract tests + server invariants |
Process & repo
| Contract | Status | Enforced by |
|---|---|---|
| Data | ⏳ | schema lint / CI |
| Repo & process | ✍️ | scripted scan + dependency-cruiser |
| Dependencies | 🔒 | governance/scripts/check-deps.mjs |
A new contract = a new JSON/YAML in governance/contracts/ + a matching enforcement script. This page regenerates from those.
kai-chattr
Governance and architecture for the kai-chattr coordination room.
Backend & API
The FastAPI surface and its conventions: endpoint definitions and routing, a single error-envelope shape, auth / session validation, pagination, the WebSocket event vocabulary, and telemetry / logging. Localhost-only security posture (session token + loopback registration + origin checks) carried forward from legacy chattr.