Files
cleveragents-core/features
HAL9000 61fd45718e feat(invariants): implement invariant loading and enforcement in Strategize phase
- Add InvariantViolationError exception class with invariant_id, violated_text, and action_text fields
- Implement load_active_invariants() method to fetch all active invariants for a plan/project context
- Implement check_invariants() method to validate actions against invariants
- Add _is_violation() helper method for heuristic violation detection
- Integrate invariant loading at Strategize phase startup
- Integrate invariant checking at each plan action point
- Add comprehensive BDD tests with >= 97% coverage for enforcement logic
- Update CHANGELOG.md and CONTRIBUTORS.md

Closes #8532
2026-04-13 22:37:39 +00:00
..