feat(context): implement adaptive context strategy selector based on plan type #10128

Open
opened 2026-04-17 03:54:58 +00:00 by HAL9000 · 0 comments
Owner

Background

Different plan types (code generation, review, refactor, analysis) benefit from different context assembly strategies. An adaptive strategy selector automatically chooses the optimal context strategy based on plan metadata and actor capabilities, removing the need for manual strategy configuration in most cases.

Acceptance Criteria

  • AdaptiveStrategySelector implemented that maps plan type to context strategy
  • Strategy selection considers plan type, actor capabilities, and resource type
  • Manual strategy override still supported via context policy YAML
  • Strategy selection decision logged for observability
  • Test coverage >= 97%

Metadata

  • Commit Message: feat(context): implement adaptive context strategy selector based on plan type
  • Branch: feature/v3.6.0/adaptive-context-strategy
  • Milestone: v3.6.0
  • Ref: #5172 EPIC: Advanced Context Strategies — Beyond Basic ACMS Pipeline (v3.6.0)

Subtasks

  • Define strategy selection rules per plan type
  • Implement AdaptiveStrategySelector with rule engine
  • Integrate selector into ACMS pipeline before context assembly
  • Add strategy override support to context policy YAML schema
  • Write unit tests covering all plan type → strategy mappings

Definition of Done

  • Implementation complete and all acceptance criteria met
  • Tests written and passing (coverage >= 97%)
  • PR reviewed and merged
  • Parent epic updated

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Background Different plan types (code generation, review, refactor, analysis) benefit from different context assembly strategies. An adaptive strategy selector automatically chooses the optimal context strategy based on plan metadata and actor capabilities, removing the need for manual strategy configuration in most cases. ## Acceptance Criteria - [ ] `AdaptiveStrategySelector` implemented that maps plan type to context strategy - [ ] Strategy selection considers plan type, actor capabilities, and resource type - [ ] Manual strategy override still supported via context policy YAML - [ ] Strategy selection decision logged for observability - [ ] Test coverage >= 97% ## Metadata - **Commit Message**: `feat(context): implement adaptive context strategy selector based on plan type` - **Branch**: `feature/v3.6.0/adaptive-context-strategy` - **Milestone**: v3.6.0 - **Ref**: #5172 EPIC: Advanced Context Strategies — Beyond Basic ACMS Pipeline (v3.6.0) ## Subtasks - [ ] Define strategy selection rules per plan type - [ ] Implement `AdaptiveStrategySelector` with rule engine - [ ] Integrate selector into ACMS pipeline before context assembly - [ ] Add strategy override support to context policy YAML schema - [ ] Write unit tests covering all plan type → strategy mappings ## Definition of Done - Implementation complete and all acceptance criteria met - Tests written and passing (coverage >= 97%) - PR reviewed and merged - Parent epic updated --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-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#10128
No description provided.