feat(context): implement sliding window, semantic chunking, priority-based, and recency-weighted context strategies #9624

Open
opened 2026-04-15 00:51:06 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Commit message: feat(context): implement four built-in context strategies for ACMS
  • Branch name: feat/v3.6.0-builtin-context-strategies

Background and Context

Four built-in context strategies are needed as part of the Advanced Context Management System (ACMS) v3.6.0 extension: sliding window, semantic chunking, priority-based selection, and recency-weighted retrieval. These strategies build on the ContextStrategy protocol established in the sibling issue and provide the core set of strategies available out-of-the-box.

This is a child of Epic #8505 (Advanced Context Strategies & LLM Provider Extensions (v3.6.0)).

Expected Behavior

When this issue is complete:

  • SlidingWindowStrategy is implemented with configurable window size and overlap
  • SemanticChunkingStrategy is implemented using embedding-based similarity
  • PriorityContextStrategy is implemented with configurable priority scoring
  • RecencyWeightedStrategy is implemented with time-decay scoring
  • All strategies have benchmark tests
  • Unit tests pass with coverage >= 97%

Acceptance Criteria

  • SlidingWindowStrategy implemented with configurable window size and overlap
  • SemanticChunkingStrategy implemented using embedding-based similarity
  • PriorityContextStrategy implemented with configurable priority scoring
  • RecencyWeightedStrategy implemented with time-decay scoring
  • All strategies have benchmark tests
  • Unit tests pass with coverage >= 97%

Subtasks

  • Implement SlidingWindowStrategy
  • Implement SemanticChunkingStrategy
  • Implement PriorityContextStrategy
  • Implement RecencyWeightedStrategy
  • Write benchmark tests for all strategies
  • Write unit tests
  • Verify coverage >= 97%

Definition of Done

This issue should be closed when:

  1. All acceptance criteria above are verified and checked off
  2. All subtasks are completed
  3. Unit tests pass with coverage >= 97% confirmed by CI
  4. Benchmark tests demonstrate performance characteristics for all strategies
  5. Code has passed peer review and been merged to the main branch
  6. Parent Epic #8505 has been updated to reflect this issue's completion

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor [AUTO-EPIC-4]

## Metadata - **Commit message**: `feat(context): implement four built-in context strategies for ACMS` - **Branch name**: `feat/v3.6.0-builtin-context-strategies` ## Background and Context Four built-in context strategies are needed as part of the Advanced Context Management System (ACMS) v3.6.0 extension: sliding window, semantic chunking, priority-based selection, and recency-weighted retrieval. These strategies build on the `ContextStrategy` protocol established in the sibling issue and provide the core set of strategies available out-of-the-box. This is a child of Epic #8505 (Advanced Context Strategies & LLM Provider Extensions (v3.6.0)). ## Expected Behavior When this issue is complete: - `SlidingWindowStrategy` is implemented with configurable window size and overlap - `SemanticChunkingStrategy` is implemented using embedding-based similarity - `PriorityContextStrategy` is implemented with configurable priority scoring - `RecencyWeightedStrategy` is implemented with time-decay scoring - All strategies have benchmark tests - Unit tests pass with coverage >= 97% ## Acceptance Criteria - [ ] `SlidingWindowStrategy` implemented with configurable window size and overlap - [ ] `SemanticChunkingStrategy` implemented using embedding-based similarity - [ ] `PriorityContextStrategy` implemented with configurable priority scoring - [ ] `RecencyWeightedStrategy` implemented with time-decay scoring - [ ] All strategies have benchmark tests - [ ] Unit tests pass with coverage >= 97% ## Subtasks - [ ] Implement `SlidingWindowStrategy` - [ ] Implement `SemanticChunkingStrategy` - [ ] Implement `PriorityContextStrategy` - [ ] Implement `RecencyWeightedStrategy` - [ ] Write benchmark tests for all strategies - [ ] Write unit tests - [ ] Verify coverage >= 97% ## Definition of Done This issue should be closed when: 1. All acceptance criteria above are verified and checked off 2. All subtasks are completed 3. Unit tests pass with coverage >= 97% confirmed by CI 4. Benchmark tests demonstrate performance characteristics for all strategies 5. Code has passed peer review and been merged to the main branch 6. Parent Epic #8505 has been updated to reflect this issue's completion --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor [AUTO-EPIC-4]
Author
Owner

[AUTO-OWNR-1] Triage complete.

Verified — Valid feature. Advanced context strategies (sliding window, semantic chunking, priority-based, recency-weighted) are part of the v3.6.0 advanced context strategies scope.

  • Type: Feature
  • Priority: Medium
  • MoSCoW: Should Have — advanced context strategies are v3.6.0 scope
  • Milestone: v3.6.0 — advanced context strategies

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

[AUTO-OWNR-1] Triage complete. **Verified** ✅ — Valid feature. Advanced context strategies (sliding window, semantic chunking, priority-based, recency-weighted) are part of the v3.6.0 advanced context strategies scope. - **Type**: Feature - **Priority**: Medium - **MoSCoW**: Should Have — advanced context strategies are v3.6.0 scope - **Milestone**: v3.6.0 — advanced context strategies --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#9624
No description provided.