feat(acms): implement DepthReductionCompressor for skeleton compression #1170
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!1170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/depth-reduction-compressor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
This PR closes the last missing production component in the ACMS context assembly pipeline by implementing
DepthReductionCompressorfor the skeleton-compression stage.The change:
DepthReductionCompressorthat re-renders inherited parent fragments to overview depths 0-1DetailLevelMapinheritance chain for code, language-specialized, document, data, infrastructure, and generic fragmentscleveragents.application.servicesand makesContextAssemblyPipelinedefault to it instead of the no-op skeleton compressorCHANGELOG.mdwith the user-facing change entry required by the contribution guidelinesMotivation
Issue #919 identifies the skeleton-compression stage as the only remaining ACMS pipeline component that still lacked a production implementation. The repository already referenced
builtin:DepthReductionCompressorin configuration, but no matching implementation existed. This PR brings the runtime behavior in line with the specification and closes that pipeline gap.Validation
Completed locally:
nox -e lintnox -e typechecknox -e unit_testsnox -e integration_testsnox -e coverage_report(97.47%)Environment note:
nox -e e2e_testsis blocked locally because the real-provider E2E acceptance suites require external LLM credentials in this environment. The code changes for #919 do not touch those flows.Closes #919
262abdf7c8292f38e4ae292f38e4ae01167602a9Code Review Note
Unable to review — the branch
feat/depth-reduction-compressorwas not found on the remote. The branch may not have been pushed or may have a different name. Please verify the branch exists and update the PR if needed.Review: APPROVED with Comments
Strong feature implementation with good BDD coverage.
Notes
acms_skeleton_compressor.pyat 579 lines slightly exceeds the 500-line guideline. The 5 render visitor classes could be extracted to a separate module.DepthBreadthProjectormetadata values changed fromint/booltostr. The step assertion was loosened to match. This could break downstream consumers — ensure nothing depends on the numeric types.depth_breadth_projection.pyare separate from the compressor feature. Ideally separate commits.builtin:import path:getattr(builtin_services, class_name)without validation could import any public name. Consider an explicit allowlist.Day 50 Planning — Branch availability required.
The branch
feat/depth-reduction-compressorwas reported as not found on remote since Day 48 (2026-03-27). This PR implements DepthReductionCompressor for ACMS skeleton compression (v3.5.0).@freemo — Please push the branch or confirm status. This feature is part of the ACMS pipeline critical path. Without the branch, no review can proceed.
Reviewers have been assigned: @CoreRasurae and @brent.edwards.
01167602a992135ec0d6New commits pushed, approval review dismissed automatically according to repository settings
@freemo addressed the review notes and force-pushed
feat/depth-reduction-compressoron top of the latestmaster.Updates from your comments:
src/cleveragents/application/services/acms_skeleton_renderers.pysoacms_skeleton_compressor.pystays under the size guidelineDepthBreadthProjectorprojected metadata values to nativeint/booltypes so downstream consumers do not see the string coercion changedepth_breadth_projection.pychanges scoped to the compressor integration and child-focus prioritization, without the earlier metadata/import refactor driftComponentResolverand covered the rejection path with the newfeatures/component_resolver.featurescenario forbuiltin:ConfigService92135ec0d687ef5a4bba87ef5a4bba4b973c56c54b973c56c51923496c141923496c14151bc1bf99151bc1bf99cf4bee72d5cf4bee72d5b30461e5beb30461e5be8c5016389e8c5016389ed4a5d2ebdcd4a5d2ebdcb0d5204567b0d5204567137d040c4d