feat(context): wire ACMS context into plan execution LLM calls #5223

Open
opened 2026-04-09 03:36:36 +00:00 by HAL9000 · 1 comment
Owner

Background

Part of Epic #5166 (Context Assembly Pipeline). Wires the ACMS context assembly pipeline into the plan execution flow so that LLM calls during plan execution receive properly assembled context views instead of raw file dumps.

Expected Behavior

  • PlanExecutor calls ContextAssembler.assemble() before each LLM call
  • Context view is passed to the actor's LLM provider as system context
  • Context assembly uses plan-level scope
  • Context assembly errors are handled gracefully (fallback to no context)

Subtasks

  • Inject ContextAssembler into PlanExecutor via dependency injection
  • Call ContextAssembler.assemble() before each LLM call in executor
  • Pass assembled context view to actor's LLM provider
  • Add graceful fallback when context assembly fails
  • Write Robot Framework integration test for context-aware plan execution

Definition of Done

  • Plan execution uses ACMS context for LLM calls
  • Context assembly errors don't crash plan execution
  • Integration test verifies context is passed to LLM
  • All nox stages pass
  • Coverage >= 97%

Metadata

  • Branch: feat/v3.4.0/acms-wire-plan-execution
  • Commit Message: feat(context): wire ACMS context assembly into plan execution LLM calls
  • Milestone: v3.4.0
  • Parent Epic: #5166
  • Depends on: #5222 (context scoping must exist first)

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planner

## Background Part of Epic #5166 (Context Assembly Pipeline). Wires the ACMS context assembly pipeline into the plan execution flow so that LLM calls during plan execution receive properly assembled context views instead of raw file dumps. ## Expected Behavior - `PlanExecutor` calls `ContextAssembler.assemble()` before each LLM call - Context view is passed to the actor's LLM provider as system context - Context assembly uses plan-level scope - Context assembly errors are handled gracefully (fallback to no context) ## Subtasks - [ ] Inject `ContextAssembler` into `PlanExecutor` via dependency injection - [ ] Call `ContextAssembler.assemble()` before each LLM call in executor - [ ] Pass assembled context view to actor's LLM provider - [ ] Add graceful fallback when context assembly fails - [ ] Write Robot Framework integration test for context-aware plan execution ## Definition of Done - [ ] Plan execution uses ACMS context for LLM calls - [ ] Context assembly errors don't crash plan execution - [ ] Integration test verifies context is passed to LLM - [ ] All nox stages pass - [ ] Coverage >= 97% ## Metadata - **Branch**: `feat/v3.4.0/acms-wire-plan-execution` - **Commit Message**: `feat(context): wire ACMS context assembly into plan execution LLM calls` - **Milestone**: v3.4.0 - **Parent Epic**: #5166 - **Depends on**: #5222 (context scoping must exist first) --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planner
HAL9000 added this to the v3.4.0 milestone 2026-04-09 03:36:54 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: High — ACMS context assembly and budget enforcement are required for v3.4.0 milestone
  • Story Points: 5 (L) — substantial implementation work
  • MoSCoW: Must Have — context assembly is the core of ACMS functionality
  • Parent Epic: EPIC #5166 (Context Assembly Pipeline) or #5167 (Context Budget Enforcement)
  • Assignee: HAL9000 — default assignment to maintain velocity

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

Issue triaged by project owner: - **State**: Verified - **Priority**: High — ACMS context assembly and budget enforcement are required for v3.4.0 milestone - **Story Points**: 5 (L) — substantial implementation work - **MoSCoW**: Must Have — context assembly is the core of ACMS functionality - **Parent Epic**: EPIC #5166 (Context Assembly Pipeline) or #5167 (Context Budget Enforcement) - **Assignee**: HAL9000 — default assignment to maintain velocity --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner
HAL9000 self-assigned this 2026-04-09 03:42:46 +00:00
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.

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