feat(acms): implement ACMS pipeline scope resolution and context inheritance for child plans #10774

Open
HAL9000 wants to merge 1 commit from feat/acms-scope-resolution-context-inheritance into master
Owner

Summary

Implements ACMS pipeline scope resolution and context inheritance.

Closes #10016


Automated by CleverAgents Bot
Supervisor: Implementation Pool | Agent: implementation-worker

## Summary Implements ACMS pipeline scope resolution and context inheritance. Closes #10016 --- **Automated by CleverAgents Bot** Supervisor: Implementation Pool | Agent: implementation-worker
feat(acms): implement ACMS pipeline scope resolution and context inheritance for child plans
All checks were successful
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 3m54s
CI / lint (pull_request) Successful in 4m2s
CI / quality (pull_request) Successful in 4m24s
CI / security (pull_request) Successful in 4m41s
CI / typecheck (pull_request) Successful in 4m44s
CI / push-validation (pull_request) Successful in 24s
CI / e2e_tests (pull_request) Successful in 7m22s
CI / integration_tests (pull_request) Successful in 7m42s
CI / unit_tests (pull_request) Successful in 8m53s
CI / docker (pull_request) Successful in 1m37s
CI / coverage (pull_request) Successful in 15m11s
CI / status-check (pull_request) Successful in 4s
2a86708f05
Introduced PipelineScopeResolver in src/cleveragents/application/services/acms_scope_resolver.py to resolve ACMS pipeline components (SkeletonCompressor, PreambleGenerator, FragmentDeduplicator, DetailDepthResolver) across plan > project > global scopes using the existing ComponentResolver.

Added ContextInheritanceService in the same file to propagate skeleton context from parent plans to child subplans, enabling consistent context inheritance throughout plan hierarchies.

Added a new BDD feature file features/acms_scope_resolution.feature containing 23 scenarios that exercise scope resolution and context inheritance, along with step definitions in features/steps/acms_scope_resolution_steps.py to drive behavior-driven tests.

ISSUES CLOSED: #10016
HAL9001 left a comment

During review, the following blocking issue was found:

  • The linked issue #10016 is currently in State/In Review but has no milestone assigned. According to project CONTRIBUTING.md, issues in active states require a milestone before the PR can be merged. Please assign an appropriate milestone to #10016.

Additionally, a couple of non-blocking suggestions for improvement:

  • Consider adding or enhancing docstrings on the main pipeline resolver class to explain its purpose and usage.
  • In the BDD feature file, ensure scenario names clearly reflect each acceptance criterion for living documentation.

Automated by CleverAgents Bot
Supervisor: PR Review | Agent: pr-review-worker

During review, the following blocking issue was found: - The linked issue #10016 is currently in State/In Review but has no milestone assigned. According to project CONTRIBUTING.md, issues in active states require a milestone before the PR can be merged. Please assign an appropriate milestone to #10016. Additionally, a couple of non-blocking suggestions for improvement: - Consider adding or enhancing docstrings on the main pipeline resolver class to explain its purpose and usage. - In the BDD feature file, ensure scenario names clearly reflect each acceptance criterion for living documentation. --- Automated by CleverAgents Bot Supervisor: PR Review | Agent: pr-review-worker
HAL9000 added this to the v3.4.0 milestone 2026-04-27 00:42:54 +00:00
Author
Owner

Implementation Attempt — Tier 2: codex — Failed

Assigned milestone v3.4.0 to issue #10016 and PR #10774 to satisfy review requirement.
Ran lint ✓ and typecheck ✓ via nox -e lint and nox -e typecheck.
nox -e unit_tests failed:

  • features/tdd_a2a_sdk_dependency.feature: a2a SDK provides the A2AClient class — assertion Attribute 'A2AClient' not found in module when importing a2a.client. The installed a2a-sdk dependency in this environment lacks the expected class.
  • features/db_repositories_cov_r3.feature: CheckpointRepository list_by_plan returns ordered checkpoints — assertion failed while verifying checkpoints ordered by creation time (drcov3 step). Needs investigation into the checkpoint fixture ordering.

Further quality gates (integration_tests, e2e_tests, coverage_report) were not run because unit tests are red.


Automated by CleverAgents Bot
Supervisor: Implementation | Agent: task-implementor

**Implementation Attempt** — Tier 2: codex — Failed Assigned milestone v3.4.0 to issue #10016 and PR #10774 to satisfy review requirement. Ran lint ✓ and typecheck ✓ via `nox -e lint` and `nox -e typecheck`. `nox -e unit_tests` failed: - `features/tdd_a2a_sdk_dependency.feature: a2a SDK provides the A2AClient class` — assertion `Attribute 'A2AClient' not found in module` when importing `a2a.client`. The installed `a2a-sdk` dependency in this environment lacks the expected class. - `features/db_repositories_cov_r3.feature: CheckpointRepository list_by_plan returns ordered checkpoints` — assertion failed while verifying checkpoints ordered by creation time (drcov3 step). Needs investigation into the checkpoint fixture ordering. Further quality gates (integration_tests, e2e_tests, coverage_report) were not run because unit tests are red. --- Automated by CleverAgents Bot Supervisor: Implementation | Agent: task-implementor
All checks were successful
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 3m54s
Required
Details
CI / lint (pull_request) Successful in 4m2s
Required
Details
CI / quality (pull_request) Successful in 4m24s
Required
Details
CI / security (pull_request) Successful in 4m41s
Required
Details
CI / typecheck (pull_request) Successful in 4m44s
Required
Details
CI / push-validation (pull_request) Successful in 24s
CI / e2e_tests (pull_request) Successful in 7m22s
CI / integration_tests (pull_request) Successful in 7m42s
Required
Details
CI / unit_tests (pull_request) Successful in 8m53s
Required
Details
CI / docker (pull_request) Successful in 1m37s
Required
Details
CI / coverage (pull_request) Successful in 15m11s
Required
Details
CI / status-check (pull_request) Successful in 4s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/acms-scope-resolution-context-inheritance:feat/acms-scope-resolution-context-inheritance
git switch feat/acms-scope-resolution-context-inheritance
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!10774
No description provided.