Pattern Proposal: Typed Compliance Synthesis Contract
Summary
Enforces strict Pydantic schemas on compliance evaluations produced during architectural reviews.
Candidate Pattern
- ID:
typed-compliance-synthesis-contract - Classification: governance
- Maturity: established
- Type: implemented
Observed Signals
No specific signals listed.
Evidence
Supporting Evidence
- src/cas_runner/governance/compliance_engine.py (ComplianceEngine) - Evaluates compliance against schema definitions
- src/cas_runner/governance/models.py (ComplianceFinding, ComplianceMetrics, TraceableMetric) - Strongly typed models for evaluation outputs
Scope Assessment
- Evidence Strength: high
- Confidence: high
- Applies to: ideas-to-life-cas
Rationale
- Intent: Convert subjective agent reviews into typed, actionable evaluation metrics.
- Context: Executed during automated pull request checks or scheduled governance reviews.
- Force: Free-form LLM evaluation reports cannot be parsed reliably by downstream CI tooling
- Force: Evaluation findings must trace to specific repository rules and severity levels
Traceability
Artifact source: proposed-patterns