UAT: agents project context show missing "Current Usage" panel — spec requires hot/warm/cold tier counts and indexed resources #6479

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

Summary

agents project context show <PROJECT> does not display the "Current Usage" panel required by the specification. The panel should show current hot context token usage, warm/cold entry counts, and indexed resource count.

Spec Reference

docs/specification.md §CLI Commands — agents project context show (line ~3986–3991):

╭─ Current Usage ──────────────╮
│ Hot Context: 8,420 / 12,000  │
│ Warm Entries: 12 / 50        │
│ Cold Entries: 47 / 200       │
│ Indexed Resources: 1         │
╰──────────────────────────────╯

The JSON output (spec line ~4054–4062) requires:

"current_usage": {
  "hot_context_tokens": 8420,
  "hot_context_limit": 12000,
  "warm_entries": 12,
  "warm_limit": 50,
  "cold_entries": 47,
  "cold_limit": 200,
  "indexed_resources": 1
}

Observed Behavior

The context_show command in src/cleveragents/cli/commands/project_context.py (lines 761–915) does NOT query the ContextTierService at all. It only reads the policy and ACMS config from the database. No "Current Usage" panel is rendered in rich output, and no current_usage key is included in JSON/YAML output.

The data dict produced by context_show contains only:

  • default_view, strategize_view, execute_view, apply_view
  • acms_config

Missing: current_usage, context_policy (spec-named key), limits, summarization.

Expected Behavior

context show should:

  1. Query ContextTierService.get_scoped_metrics([project]) to get current tier counts
  2. Compute hot token usage from tier_service.get_scoped_view([project]) fragments
  3. Count indexed resources (distinct resource_id values in tier fragments)
  4. Render a "Current Usage" panel in rich output
  5. Include current_usage in JSON/YAML output

Code Location

  • src/cleveragents/cli/commands/project_context.pycontext_show() function (line 761)
  • src/cleveragents/application/services/context_tiers.pyContextTierService.get_scoped_metrics() (available but not called)

Steps to Reproduce

  1. Run agents project context show --format json <PROJECT>
  2. Observe: no current_usage key in output
  3. Run agents project context show <PROJECT> (rich)
  4. Observe: no "Current Usage" panel

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

## Summary `agents project context show <PROJECT>` does not display the "Current Usage" panel required by the specification. The panel should show current hot context token usage, warm/cold entry counts, and indexed resource count. ## Spec Reference `docs/specification.md` §CLI Commands — `agents project context show` (line ~3986–3991): ``` ╭─ Current Usage ──────────────╮ │ Hot Context: 8,420 / 12,000 │ │ Warm Entries: 12 / 50 │ │ Cold Entries: 47 / 200 │ │ Indexed Resources: 1 │ ╰──────────────────────────────╯ ``` The JSON output (spec line ~4054–4062) requires: ```json "current_usage": { "hot_context_tokens": 8420, "hot_context_limit": 12000, "warm_entries": 12, "warm_limit": 50, "cold_entries": 47, "cold_limit": 200, "indexed_resources": 1 } ``` ## Observed Behavior The `context_show` command in `src/cleveragents/cli/commands/project_context.py` (lines 761–915) does NOT query the `ContextTierService` at all. It only reads the policy and ACMS config from the database. No "Current Usage" panel is rendered in rich output, and no `current_usage` key is included in JSON/YAML output. The data dict produced by `context_show` contains only: - `default_view`, `strategize_view`, `execute_view`, `apply_view` - `acms_config` Missing: `current_usage`, `context_policy` (spec-named key), `limits`, `summarization`. ## Expected Behavior `context show` should: 1. Query `ContextTierService.get_scoped_metrics([project])` to get current tier counts 2. Compute hot token usage from `tier_service.get_scoped_view([project])` fragments 3. Count indexed resources (distinct `resource_id` values in tier fragments) 4. Render a "Current Usage" panel in rich output 5. Include `current_usage` in JSON/YAML output ## Code Location - `src/cleveragents/cli/commands/project_context.py` — `context_show()` function (line 761) - `src/cleveragents/application/services/context_tiers.py` — `ContextTierService.get_scoped_metrics()` (available but not called) ## Steps to Reproduce 1. Run `agents project context show --format json <PROJECT>` 2. Observe: no `current_usage` key in output 3. Run `agents project context show <PROJECT>` (rich) 4. Observe: no "Current Usage" panel --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
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#6479
No description provided.