-
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.3CLI EnhancementsCLI Enhancements
Description
Task: Add activity statistics to cch explain rule
Phase: 2.3 - CLI Enhancements
Estimated: 0.5 day
File: cch_cli/src/cli/explain.rs
Depends on: P2.3-T01, P2.2-T03
Description
Parse recent log entries to display activity statistics for a rule.
Acceptance Criteria
- Parse recent log entries for the rule
- Count total triggers
- Count blocks/warns/audits
- Find last trigger timestamp
- Display in
cch explain ruleoutput - Add
--no-statsflag to skip log parsing
Output Format
Recent Activity:
Triggered: 14 times
Blocked: 3 times
Warned: 2 times
Audited: 9 times
Last trigger: 2025-01-20 14:32
Performance Note
Add size check to skip log parsing if log file > 10MB, or use --no-stats flag.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfeature:phase2-governancePhase 2 Governance featuresPhase 2 Governance featuresphase:P2.3CLI EnhancementsCLI Enhancements