-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or requestfeature:phase2-governancePhase 2 Governance featuresPhase 2 Governance featuresphase:P2.1Core GovernanceCore Governance
Description
Task: Extend Rule struct with governance fields
Phase: 2.1 - Core Governance
Estimated: 0.5 day
File: cch_cli/src/models/mod.rs
Depends on: P2.1-T01, P2.1-T02
Description
Add mode, priority, and metadata fields to the Rule struct.
Acceptance Criteria
- Add
mode: Option<PolicyMode>field toRule - Add
priority: Option<i32>field toRule - Add
metadata: Option<RuleMetadata>field toRule - Use
#[serde(default)]for backward compatibility - Update existing tests to verify backward compatibility
- Add new tests for parsing rules with governance fields
Backward Compatibility
Existing v1.0 configs MUST continue to parse without changes. All new fields use Option<T> with sensible defaults.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfeature:phase2-governancePhase 2 Governance featuresPhase 2 Governance featuresphase:P2.1Core GovernanceCore Governance