Commit Graph

1 Commits

Author SHA1 Message Date
HAL9000 49ce9069be feat(context): implement PriorityContextStrategy with configurable priority scoring
Implements PriorityContextStrategy (issue #9997) with:
- PriorityRule dataclass with field, matcher, and score attributes
- Default role-based priority rules: system > tool > user > assistant
- Recency decay scoring using exponential half-life decay
- Explicit priority tag boost via metadata['priority_tag']
- Custom scoring function injection via score_fn parameter
- Custom PriorityRule list injection via rules parameter
- Greedy selection of highest-scoring messages within token budget
- Registration in ACMS pipeline under key 'priority_context'
- 18 BDD scenarios covering all acceptance criteria (100% coverage)

ISSUES CLOSED: #9997
2026-06-15 09:17:34 -04:00