feat(context): implement ContextStrategy protocol and plugin registration system #9623

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

Metadata

  • Commit message: feat(context): implement ContextStrategy protocol and plugin registration system
  • Branch name: feat/v3.6.0-context-strategy-protocol

Background and Context

A pluggable context strategy interface is needed to allow custom strategies to be registered and selected per-actor or per-plan. Currently the context strategy is hardcoded in the ACMS pipeline delivered in v3.4.0. This issue implements the foundational ContextStrategy protocol and plugin registration system that all built-in and third-party strategies will depend on.

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

Expected Behavior

When this issue is complete:

  • A ContextStrategy protocol is defined and fully documented
  • A plugin registration system allows strategies to be registered by name
  • Strategy selection is configurable at actor and plan levels
  • Entry-point-based plugin loading works for external packages
  • All unit tests pass with coverage >= 97%

Acceptance Criteria

  • ContextStrategy protocol is defined and documented
  • Plugin registration system allows strategies to be registered by name
  • Strategy selection is configurable at actor/plan levels
  • Entry-point-based plugin loading works for external packages
  • Unit tests pass with coverage >= 97%

Subtasks

  • Design ContextStrategy protocol interface
  • Implement plugin registration system
  • Implement strategy selection configuration
  • Implement entry-point-based plugin loading
  • 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. Code has passed peer review and been merged to the main branch
  5. 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 ContextStrategy protocol and plugin registration system` - **Branch name**: `feat/v3.6.0-context-strategy-protocol` ## Background and Context A pluggable context strategy interface is needed to allow custom strategies to be registered and selected per-actor or per-plan. Currently the context strategy is hardcoded in the ACMS pipeline delivered in v3.4.0. This issue implements the foundational `ContextStrategy` protocol and plugin registration system that all built-in and third-party strategies will depend on. This is a child of Epic #8505 (Advanced Context Strategies & LLM Provider Extensions (v3.6.0)). ## Expected Behavior When this issue is complete: - A `ContextStrategy` protocol is defined and fully documented - A plugin registration system allows strategies to be registered by name - Strategy selection is configurable at actor and plan levels - Entry-point-based plugin loading works for external packages - All unit tests pass with coverage >= 97% ## Acceptance Criteria - [ ] `ContextStrategy` protocol is defined and documented - [ ] Plugin registration system allows strategies to be registered by name - [ ] Strategy selection is configurable at actor/plan levels - [ ] Entry-point-based plugin loading works for external packages - [ ] Unit tests pass with coverage >= 97% ## Subtasks - [ ] Design `ContextStrategy` protocol interface - [ ] Implement plugin registration system - [ ] Implement strategy selection configuration - [ ] Implement entry-point-based plugin loading - [ ] 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. Code has passed peer review and been merged to the main branch 5. 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. ContextStrategy protocol and plugin registration system are the foundation for advanced context strategies in v3.6.0.

  • Type: Feature
  • Priority: Medium
  • MoSCoW: Should Have — context strategy plugin system is v3.6.0 scope
  • Milestone: v3.6.0 — context strategy plugin system

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

[AUTO-OWNR-1] Triage complete. **Verified** ✅ — Valid feature. ContextStrategy protocol and plugin registration system are the foundation for advanced context strategies in v3.6.0. - **Type**: Feature - **Priority**: Medium - **MoSCoW**: Should Have — context strategy plugin system is v3.6.0 scope - **Milestone**: v3.6.0 — context strategy plugin system --- **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#9623
No description provided.