fix(cli): add --depth-gradient flag to project context set #1186

Merged
freemo merged 1 commits from feature/m4-context-depth-gradient into master 2026-03-30 17:34:56 +00:00
Owner

Summary

Adds the missing --depth-gradient repeatable flag to project context set per specification. The flag controls how context detail depth degrades with graph distance from focus nodes in the ACMS pipeline.

Changes

  • src/cleveragents/cli/commands/project_context.py: Added --depth-gradient repeatable List[str] option to context_set with HOP:INT_OR_NAME parsing and validation. Updated context_show to display configured depth gradients.
  • features/project_context_depth_gradient.feature: 6 new BDD scenarios (single int, named level, multiple gradients, invalid formats, display in show)
  • features/steps/project_context_depth_gradient_steps.py: Step definitions

Approach

Parses HOP:INT_OR_NAME format (e.g., 0:9, 1:SIGNATURES, 2:outline), validates hop as non-negative integer and value as integer or recognized detail level name, then stores in the ACMS config depth_gradient dict.

Closes #889

## Summary Adds the missing `--depth-gradient` repeatable flag to `project context set` per specification. The flag controls how context detail depth degrades with graph distance from focus nodes in the ACMS pipeline. ## Changes - `src/cleveragents/cli/commands/project_context.py`: Added `--depth-gradient` repeatable `List[str]` option to `context_set` with `HOP:INT_OR_NAME` parsing and validation. Updated `context_show` to display configured depth gradients. - `features/project_context_depth_gradient.feature`: 6 new BDD scenarios (single int, named level, multiple gradients, invalid formats, display in show) - `features/steps/project_context_depth_gradient_steps.py`: Step definitions ## Approach Parses `HOP:INT_OR_NAME` format (e.g., `0:9`, `1:SIGNATURES`, `2:outline`), validates hop as non-negative integer and value as integer or recognized detail level name, then stores in the ACMS config `depth_gradient` dict. Closes #889
freemo added this to the v3.4.0 milestone 2026-03-29 03:36:13 +00:00
freemo added the
Type
Task
label 2026-03-29 03:36:13 +00:00
freemo force-pushed feature/m4-context-depth-gradient from 4a48e4f299 to 532ac186cb 2026-03-30 01:06:54 +00:00 Compare
freemo force-pushed feature/m4-context-depth-gradient from 532ac186cb to 39821feac2 2026-03-30 01:15:53 +00:00 Compare
freemo force-pushed feature/m4-context-depth-gradient from 39821feac2 to 62fea74658 2026-03-30 01:49:01 +00:00 Compare
freemo reviewed 2026-03-30 04:22:59 +00:00
freemo left a comment
Author
Owner

Review: Looks Good (self-authored — posted as comment)

Clean feature addition. Step helper _read_stored_acms hard-codes "local/ctx-app" — consider making it dynamic. No integration/Robot test included — CONTRIBUTING requires multi-level tests. Otherwise well-structured with 6 BDD scenarios.

## Review: Looks Good (self-authored — posted as comment) Clean feature addition. Step helper `_read_stored_acms` hard-codes `"local/ctx-app"` — consider making it dynamic. No integration/Robot test included — CONTRIBUTING requires multi-level tests. Otherwise well-structured with 6 BDD scenarios.
freemo requested review from CoreRasurae 2026-03-30 05:14:16 +00:00
freemo requested review from brent.edwards 2026-03-30 05:14:16 +00:00
freemo force-pushed feature/m4-context-depth-gradient from 62fea74658 to 4eddbcf489 2026-03-30 17:12:22 +00:00 Compare
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-30 17:12:34 +00:00
freemo merged commit 4eddbcf489 into master 2026-03-30 17:34:56 +00:00
freemo deleted branch feature/m4-context-depth-gradient 2026-03-30 17:34:57 +00:00
Sign in to join this conversation.
No Label
Type
Task
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#1186