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

Merged
HAL9000 merged 1 commit from feat/acms-scope-resolution-context-inheritance into master 2026-06-06 15:26:12 +00:00
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
Author
Owner

🌱 Grooming: proceed — PR cleared for processing.

(check no_duplicates, category no_duplicates)

PR #10774 implements a specific ACMS feature: pipeline scope resolution and context inheritance for child plans (Closes #10016). Scanning 373 open PRs found no topical overlap. While many ACMS-related (9663, 9671, 9672, 9673, 10663, 10778–10788) and context-strategy PRs (10590, 10618, 10619, 10623, 10658, 10669–10672) exist, none target the specific intersection of ACMS scope resolution + context inheritance + child plan propagation. The feature scope is sufficiently focused and unique.

**🌱 Grooming: proceed** — PR cleared for processing. (check `no_duplicates`, category `no_duplicates`) PR #10774 implements a specific ACMS feature: pipeline scope resolution and context inheritance for child plans (Closes #10016). Scanning 373 open PRs found no topical overlap. While many ACMS-related (9663, 9671, 9672, 9673, 10663, 10778–10788) and context-strategy PRs (10590, 10618, 10619, 10623, 10658, 10669–10672) exist, none target the specific intersection of ACMS scope resolution + context inheritance + child plan propagation. The feature scope is sufficiently focused and unique. <!-- controller:fingerprint:4d108488b5ed78f5 -->
Author
Owner

📋 Estimate: tier 1.

Pure addition of 1305 lines across 3 files implementing ACMS pipeline scope resolution and context inheritance for child plans. ACMS is a large, well-established subsystem (dozens of existing source, test, and robot files) with complex domain semantics. Scope resolution and context inheritance chains require cross-file understanding of the existing pipeline architecture. CI passes cleanly. No deletions suggests additive feature extension rather than refactor. Solidly Tier 1: too large and semantically complex for Tier 0, but additive (no architectural restructuring) so Tier 2 is not warranted.

**📋 Estimate: tier 1.** Pure addition of 1305 lines across 3 files implementing ACMS pipeline scope resolution and context inheritance for child plans. ACMS is a large, well-established subsystem (dozens of existing source, test, and robot files) with complex domain semantics. Scope resolution and context inheritance chains require cross-file understanding of the existing pipeline architecture. CI passes cleanly. No deletions suggests additive feature extension rather than refactor. Solidly Tier 1: too large and semantically complex for Tier 0, but additive (no architectural restructuring) so Tier 2 is not warranted. <!-- controller:fingerprint:eea26fce79d76502 -->
HAL9000 force-pushed feat/acms-scope-resolution-context-inheritance from 2a86708f05
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
to 90a49e9059
All checks were successful
CI / lint (pull_request) Successful in 39s
CI / push-validation (pull_request) Successful in 27s
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 37s
CI / typecheck (pull_request) Successful in 1m7s
CI / quality (pull_request) Successful in 1m5s
CI / security (pull_request) Successful in 1m21s
CI / unit_tests (pull_request) Successful in 7m9s
CI / docker (pull_request) Successful in 1m49s
CI / integration_tests (pull_request) Successful in 11m45s
CI / coverage (pull_request) Successful in 13m44s
CI / status-check (pull_request) Successful in 4s
2026-06-06 13:37:57 +00:00
Compare
Author
Owner

(attempt #3, tier 1)

🔧 Implementer attempt — rebased.

Pushed 1 commit: 90a49e9.

_(attempt #3, tier 1)_ **🔧 Implementer attempt — `rebased`.** Pushed 1 commit: `90a49e9`. <!-- controller:fingerprint:1060b2830caf0419 -->
HAL9001 approved these changes 2026-06-06 14:25:25 +00:00
HAL9001 left a comment

Approved

Reviewed at commit 90a49e9.

Confidence: high.

**✅ Approved** Reviewed at commit `90a49e9`. Confidence: high. <!-- controller:fingerprint:ce5dc8ea30e906c0 -->
Author
Owner

Claimed by merge_drive.py (pid 2321986) until 2026-06-06T16:38:26.757285+00:00.

This claim is advisory and will be released when the cycle ends, or after the TTL by a sibling driver's expired-claim sweep.

<!-- merge_drive.py: claim --> Claimed by `merge_drive.py` (pid 2321986) until `2026-06-06T16:38:26.757285+00:00`. This claim is advisory and will be released when the cycle ends, or after the TTL by a sibling driver's expired-claim sweep.
HAL9000 force-pushed feat/acms-scope-resolution-context-inheritance from 90a49e9059
All checks were successful
CI / lint (pull_request) Successful in 39s
CI / push-validation (pull_request) Successful in 27s
CI / helm (pull_request) Successful in 33s
CI / build (pull_request) Successful in 37s
CI / typecheck (pull_request) Successful in 1m7s
CI / quality (pull_request) Successful in 1m5s
CI / security (pull_request) Successful in 1m21s
CI / unit_tests (pull_request) Successful in 7m9s
CI / docker (pull_request) Successful in 1m49s
CI / integration_tests (pull_request) Successful in 11m45s
CI / coverage (pull_request) Successful in 13m44s
CI / status-check (pull_request) Successful in 4s
to 77fef24be6
All checks were successful
CI / push-validation (pull_request) Successful in 29s
CI / lint (pull_request) Successful in 42s
CI / build (pull_request) Successful in 40s
CI / helm (pull_request) Successful in 50s
CI / quality (pull_request) Successful in 58s
CI / typecheck (pull_request) Successful in 1m14s
CI / security (pull_request) Successful in 1m22s
CI / unit_tests (pull_request) Successful in 5m36s
CI / docker (pull_request) Successful in 1m39s
CI / integration_tests (pull_request) Successful in 9m15s
CI / coverage (pull_request) Successful in 11m22s
CI / status-check (pull_request) Successful in 4s
2026-06-06 15:08:32 +00:00
Compare
HAL9001 approved these changes 2026-06-06 15:26:10 +00:00
HAL9001 left a comment

Approved by the controller reviewer stage (workflow 322).

Approved by the controller reviewer stage (workflow 322).
HAL9000 merged commit 651eb2c9ea into master 2026-06-06 15:26:12 +00:00
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.