Pattern Proposal: Declarative Rule Evaluation and Finding Aggregation
Summary
Runs rule-based audits against candidate architectural changes and aggregates findings into structured compliance metrics.
Candidate Pattern
- ID:
declarative-compliance-findings-aggregation - Classification: governance
- Maturity: established
- Type: implemented
Observed Signals
No specific signals listed.
Evidence
Supporting Evidence
- src/cas_runner/governance/compliance_engine.py (ComplianceEngine) - Evaluates architectural deltas against defined compliance criteria.
- src/cas_runner/governance/models.py (ComplianceFinding, ComplianceMetrics, GovernanceRisks) - Structured findings and aggregated metric models.
Scope Assessment
- Evidence Strength: high
- Confidence: high
- Applies to: ideas-to-life-cas
Rationale
- Intent: Detect architectural violations early in the agent execution loop and generate machine-readable findings.
- Context: Executing CAS automated run flows and GitHub workflow compliance validation checks.
- Force: Agents need clear feedback on why an architectural delta is rejected
- Force: Continuous steering requires quantitative health and risk metrics rather than subjective pass/fail
Traceability
Artifact source: proposed-patterns