UAT: agents project context set rich output shows only success banner instead of spec-required Context Policy/Limits/Summarization/Other Views panels #6561

Open
opened 2026-04-09 21:21:26 +00:00 by HAL9000 · 0 comments
Owner

Summary

agents project context set displays only a simple "Context Policy Updated" success banner instead of the spec-required multi-panel output showing the configured policy, limits, summarization settings, and other views.

Spec Reference

docs/specification.md §CLI Commands — agents project context set rich output (line ~3808–3835):

╭─ Context Policy ────────────╮
│ Project: local/api-service  │
│ View: strategize            │
│ Include: repo               │
│ Exclude: **/node_modules/** │
╰─────────────────────────────╯

╭─ Limits ─────────────────────╮
│ Hot Tokens: 12000 (soft cap) │
│ Warm Decisions: 50           │
│ Cold Decisions: 200          │
│ Query Limit: 20              │
│ Max File Size: 1 MB          │
│ Max Total Size: 50 MB        │
╰──────────────────────────────╯

╭─ Summarization ─╮
│ Enabled: yes    │
│ Max Tokens: 800 │
╰─────────────────╯

╭─ Other Views ────────╮
│ execute: (default)   │
│ apply: (default)     │
│ default: (unset)     │
╰──────────────────────╯

✓ OK Context policy updated

The JSON output (spec line ~3875–3940) requires:

{
  "command": "project context set",
  "data": {
    "context_policy": { "project": ..., "view": ..., "include_resources": [...], "exclude_paths": [...] },
    "limits": { "hot_max_tokens": ..., "warm_max_decisions": ..., ... },
    "summarization": { "enabled": ..., "max_tokens": ... },
    "other_views": { "execute": "default", "apply": "default", "default": "unset" }
  }
}

Observed Behavior

The context_set command (src/cleveragents/cli/commands/project_context.py, line 395) displays:

╭─ Context Policy Updated ──────────────────────────────────────────────────────────────╮
│ ✓ Context policy 'strategize' view updated for project 'local/api-service'.           │
╰───────────────────────────────────────────────────────────────────────────────────────╯

The JSON output contains:

{
  "default_view": {...},
  "strategize_view": {...},
  "execute_view": null,
  "apply_view": null,
  "acms_config": {...}
}

Missing: "Context Policy", "Limits", "Summarization", "Other Views" panels in rich output; context_policy, limits, summarization, other_views keys in JSON output.

Expected Behavior

After setting a context policy, the command should display:

  1. "Context Policy" panel — project, view, include/exclude resources/paths
  2. "Limits" panel — hot tokens, warm/cold decisions, query limit, max file/total size
  3. "Summarization" panel — enabled flag, max tokens
  4. "Other Views" panel — status of other phase views (default/configured/unset)
  5. ✓ OK Context policy updated confirmation line

Code Location

  • src/cleveragents/cli/commands/project_context.pycontext_set() function (line 395)
  • Lines 745–758 — only renders a simple success panel, not the spec-required multi-panel output

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Summary `agents project context set` displays only a simple "Context Policy Updated" success banner instead of the spec-required multi-panel output showing the configured policy, limits, summarization settings, and other views. ## Spec Reference `docs/specification.md` §CLI Commands — `agents project context set` rich output (line ~3808–3835): ``` ╭─ Context Policy ────────────╮ │ Project: local/api-service │ │ View: strategize │ │ Include: repo │ │ Exclude: **/node_modules/** │ ╰─────────────────────────────╯ ╭─ Limits ─────────────────────╮ │ Hot Tokens: 12000 (soft cap) │ │ Warm Decisions: 50 │ │ Cold Decisions: 200 │ │ Query Limit: 20 │ │ Max File Size: 1 MB │ │ Max Total Size: 50 MB │ ╰──────────────────────────────╯ ╭─ Summarization ─╮ │ Enabled: yes │ │ Max Tokens: 800 │ ╰─────────────────╯ ╭─ Other Views ────────╮ │ execute: (default) │ │ apply: (default) │ │ default: (unset) │ ╰──────────────────────╯ ✓ OK Context policy updated ``` The JSON output (spec line ~3875–3940) requires: ```json { "command": "project context set", "data": { "context_policy": { "project": ..., "view": ..., "include_resources": [...], "exclude_paths": [...] }, "limits": { "hot_max_tokens": ..., "warm_max_decisions": ..., ... }, "summarization": { "enabled": ..., "max_tokens": ... }, "other_views": { "execute": "default", "apply": "default", "default": "unset" } } } ``` ## Observed Behavior The `context_set` command (`src/cleveragents/cli/commands/project_context.py`, line 395) displays: ``` ╭─ Context Policy Updated ──────────────────────────────────────────────────────────────╮ │ ✓ Context policy 'strategize' view updated for project 'local/api-service'. │ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ``` The JSON output contains: ```json { "default_view": {...}, "strategize_view": {...}, "execute_view": null, "apply_view": null, "acms_config": {...} } ``` Missing: "Context Policy", "Limits", "Summarization", "Other Views" panels in rich output; `context_policy`, `limits`, `summarization`, `other_views` keys in JSON output. ## Expected Behavior After setting a context policy, the command should display: 1. "Context Policy" panel — project, view, include/exclude resources/paths 2. "Limits" panel — hot tokens, warm/cold decisions, query limit, max file/total size 3. "Summarization" panel — enabled flag, max tokens 4. "Other Views" panel — status of other phase views (default/configured/unset) 5. `✓ OK Context policy updated` confirmation line ## Code Location - `src/cleveragents/cli/commands/project_context.py` — `context_set()` function (line 395) - Lines 745–758 — only renders a simple success panel, not the spec-required multi-panel output --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 21:28:37 +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.

Dependencies

No dependencies set.

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