feat(acms): implement builtin/request-context, builtin/query-history, and builtin/get-context-budget CRP tool handlers #10014

Open
opened 2026-04-16 12:49:41 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit message: feat(acms): implement CRP tool handlers (request-context, query-history, get-context-budget)
  • Branch name: feat/acms-crp-tool-handlers

Background and Context

Epic #935 requires functional CRP tool handlers wired to the ACMS pipeline. Currently all three handlers raise NotImplementedError. Actors cannot request context during plan execution without these handlers, making the ACMS pipeline non-functional end-to-end.

Expected Behavior

The three CRP (Context Request Protocol) built-in tool handlers are fully implemented and wired to the ACMS pipeline, allowing actors to dynamically request context during reasoning: builtin/request-context, builtin/query-history, and builtin/get-context-budget.

Acceptance Criteria

  • builtin/request-context handler functional — accepts ContextRequest, returns AssembledContext
  • builtin/query-history handler functional — queries decision and plan history for context enrichment
  • builtin/get-context-budget handler functional — returns remaining token/size budget for the current context window
  • All three handlers wired into the A2A facade's tool dispatch table
  • BDD scenarios pass for all three handlers (happy path + error cases)
  • Coverage >= 97% via nox -s coverage_report

Subtasks

  • Implement builtin/request-context handler wired to ACMS pipeline — accepts ContextRequest, returns AssembledContext
  • Implement builtin/query-history handler — queries decision and plan history for context enrichment
  • Implement builtin/get-context-budget handler — returns remaining token/size budget for the current context window
  • Wire all three handlers into the A2A facade's tool dispatch table
  • Write Behave BDD scenarios for each handler (happy path + error cases)
  • Verify coverage >= 97% via nox -s coverage_report

Definition of Done

  • All three CRP tool handlers functional and wired to ACMS pipeline
  • Actors can call builtin/request-context during plan execution and receive assembled context
  • builtin/query-history returns relevant decision history
  • builtin/get-context-budget returns accurate remaining budget
  • BDD scenarios pass for all three handlers
  • Coverage >= 97%
  • PR reviewed and merged

Dependencies

Blocks: #935
Depends on: (none)


Automated by CleverAgents Bot
Agent: new-issue-creator

## Metadata - **Commit message**: `feat(acms): implement CRP tool handlers (request-context, query-history, get-context-budget)` - **Branch name**: `feat/acms-crp-tool-handlers` ## Background and Context Epic #935 requires functional CRP tool handlers wired to the ACMS pipeline. Currently all three handlers raise `NotImplementedError`. Actors cannot request context during plan execution without these handlers, making the ACMS pipeline non-functional end-to-end. ## Expected Behavior The three CRP (Context Request Protocol) built-in tool handlers are fully implemented and wired to the ACMS pipeline, allowing actors to dynamically request context during reasoning: `builtin/request-context`, `builtin/query-history`, and `builtin/get-context-budget`. ## Acceptance Criteria - [ ] `builtin/request-context` handler functional — accepts `ContextRequest`, returns `AssembledContext` - [ ] `builtin/query-history` handler functional — queries decision and plan history for context enrichment - [ ] `builtin/get-context-budget` handler functional — returns remaining token/size budget for the current context window - [ ] All three handlers wired into the A2A facade's tool dispatch table - [ ] BDD scenarios pass for all three handlers (happy path + error cases) - [ ] Coverage >= 97% via `nox -s coverage_report` ## Subtasks - [ ] Implement `builtin/request-context` handler wired to ACMS pipeline — accepts `ContextRequest`, returns `AssembledContext` - [ ] Implement `builtin/query-history` handler — queries decision and plan history for context enrichment - [ ] Implement `builtin/get-context-budget` handler — returns remaining token/size budget for the current context window - [ ] Wire all three handlers into the A2A facade's tool dispatch table - [ ] Write Behave BDD scenarios for each handler (happy path + error cases) - [ ] Verify coverage >= 97% via `nox -s coverage_report` ## Definition of Done - [ ] All three CRP tool handlers functional and wired to ACMS pipeline - [ ] Actors can call `builtin/request-context` during plan execution and receive assembled context - [ ] `builtin/query-history` returns relevant decision history - [ ] `builtin/get-context-budget` returns accurate remaining budget - [ ] BDD scenarios pass for all three handlers - [ ] Coverage >= 97% - [ ] PR reviewed and merged ## Dependencies **Blocks**: #935 **Depends on**: (none) --- **Automated by CleverAgents Bot** Agent: new-issue-creator
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#10014
No description provided.