Pattern Proposal: Pydantic governance domain modeling
Summary
Governance entities, metrics, findings, and actions are represented as typed record models in a dedicated models module.
Candidate Pattern
- ID:
pydantic-governance-domain-modeling - Classification: architectural
- Maturity: emerging
- Type: emerging
Observed Signals
No specific signals listed.
Evidence
Supporting Evidence
- src/cas_runner/governance/models.py (ResolutionResult, TraceableMetric, GovernanceInventory, GovernanceHealth, GovernanceThroughput, GovernanceRisks, ComplianceFinding, ComplianceMetrics, GovernanceException, GovernanceAction) - Defines the core governance domain vocabulary.
- pyproject.toml - Declares pydantic>=2.12.5 as a dependency.
Scope Assessment
- Evidence Strength: high
- Confidence: high
- Applies to: ideas-to-life-cas
Rationale
- Intent: Provide validated, serializable, and consistent representations of governance state.
- Context: The governance subsystem needs stable contracts for inventory, health, throughput, risk, compliance, and actions.
- Force: Data must be validated at boundaries
- Force: Domain concepts need a shared vocabulary
- Force: Models should be usable for metrics, findings, and persistence
Traceability
Artifact source: proposed-patterns