Contracts register
Verifiable assertions with thresholds across engineering, product, UX, and data. The rules agents validate their output against before proposing a merge.
What does Contracts contain?
Each Contracts entry is a verifiable assertion, associated with a threshold, that can be evaluated without human judgment. This criterion — automatable verifiability — defines what belongs to Contracts rather than Intent or Knowledge.
Quality gates · Mutation scoring rules · Code coverage thresholds · Definition of Done · Security policies · Performance SLAs · Review & merge rules
Acceptance criteria linked to specs · Product metric thresholds (conversion, retention, activation) · A/B significance thresholds · Feature flag rules
Design system compliance (tokens, components, patterns) · Accessibility standards (WCAG target level) · Core Web Vitals thresholds · User validation criteria
Completeness (acceptable missing data rates) · Freshness (pipeline latency SLA) · Accuracy (schema validation rules) · Traceability (data lineage requirements)
The fundamental invariant
Humans vs AI Agents
Defines contracts by domain, evolves thresholds as product matures, arbitrates exceptions.
Validates its own output before proposing a merge, self-corrects when a contract is not met, executes the verification tools.
Asymmetry: definition vs. compliance.
Consumption modes
All verifiable assertions (always applicable) go in the system prompt.
Verification tools (run tests, check accessibility, validate schema) are exposed as MCP Skills.
Extension vs. exception vs. override
Three situations arise when a lower-level contract touches the same scope as a parent contract:
Extension: adds assertions on a scope not covered by the parent. Always allowed, no validation required.
Exception: explicitly deviates from a parent assertion, with exception-to set and exception-approved-by validated by the parent level owner.
Undeclared override: contradicts a parent assertion without exception-to. Detected by the Context Assembler, blocked, and flagged.
Contracts artifact structure
---
register: contracts
level: team
owner: tech-lead
status: active
consumption-mode: system-prompt
last-validated: 2026-06-03
exception-to: null
exception-approved-by: null
---
# Contract — Search Indexation SLA
## Performance
- P95 results page (standard query): ≤ 200ms
- P95 bulk writer (Elasticsearch flush): ≤ 80ms
- Kafka consumer lag: alert threshold 5,000 messages
## Quality gate
- Mutation score ≥ 80% on indexation pipeline
- No synchronous catalogue write to Elasticsearch (see Intent/directives/event-driven)
## Verification tools
- performance-test.mcp: run load test, return P95 metrics
- mutation-score.mcp: run mutation testing, return score Artifact with declared exception
---
register: contracts
level: team
owner: tech-lead
status: active
exception-to: org/contracts/performance.md
exception-approved-by: bu-digital-quality-lead
exception-approved-date: 2026-05-28
---
# Contract — Search Boosting Exception
## Scope
Multi-criteria boosting queries only (relevance score computation > 3 factors).
## Exception
P95 threshold for boosted queries: ≤ 350ms (vs 200ms org standard).
## Justification
Relevance precision > 0.75 drives 3.4x higher conversion.
Accepted trade-off: latency for relevance on complex queries.