UAT: agents actor context clear missing --all/-a option and spec-required output panels (Context Cleared, Retention) #6069

Open
opened 2026-04-09 14:22:33 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: context-assembly-cli
Severity: Non-critical
Spec Reference: §agents actor context clear (spec lines 6256–6353)


What Was Tested

Code-level analysis of src/cleveragents/cli/commands/context.py context_clear command.

Expected Behavior (from spec)

agents actor context clear [--yes|-y] (--all|-a|<NAME>)
  • Requires either --all/-a OR <NAME> — one is mandatory
  • --all/-a: Target all contexts instead of a named one
  • Output includes Context Cleared and Retention panels:
╭─ Context Cleared ────╮
│ Context: docs        │
│ Items: 12 removed    │
│ Storage: 48 KB freed │
╰──────────────────────╯

╭─ Retention ────────╮
│ Context: preserved │
│ Files: removed     │
╰────────────────────╯

✓ OK Context cleared

Actual Behavior

The context_clear command in context.py:

  1. Missing --all/-a option: The command signature has no --all or -a flag. The spec requires (--all|-a|<NAME>) — either --all or a name must be provided.

  2. <NAME> is optional, not required: When no name is provided, the command clears the current project's context (not a named actor context). The spec requires either --all or <NAME> to be provided.

  3. Missing output panels: The implementation only prints [green]✓[/green] Cleared all files from context. — it does NOT render:

    • Context Cleared panel with Context name, Items removed, Storage freed
    • Retention panel with Context preserved/Files removed status
  4. Missing items count and storage freed: The implementation does not report how many items were removed or how much storage was freed.

Code Location

src/cleveragents/cli/commands/context.py lines 730–824 (context_clear function)

Steps to Reproduce

  1. Read src/cleveragents/cli/commands/context.py lines 730–824
  2. Note: no --all/-a option in the function signature
  3. Note: name parameter is optional (defaults to None)
  4. Note: output is just a single success line, not the spec-required panels

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

## Bug Report **Feature Area**: context-assembly-cli **Severity**: Non-critical **Spec Reference**: §agents actor context clear (spec lines 6256–6353) --- ## What Was Tested Code-level analysis of `src/cleveragents/cli/commands/context.py` `context_clear` command. ## Expected Behavior (from spec) ``` agents actor context clear [--yes|-y] (--all|-a|<NAME>) ``` - Requires either `--all/-a` OR `<NAME>` — one is mandatory - `--all/-a`: Target all contexts instead of a named one - Output includes **Context Cleared** and **Retention** panels: ``` ╭─ Context Cleared ────╮ │ Context: docs │ │ Items: 12 removed │ │ Storage: 48 KB freed │ ╰──────────────────────╯ ╭─ Retention ────────╮ │ Context: preserved │ │ Files: removed │ ╰────────────────────╯ ✓ OK Context cleared ``` ## Actual Behavior The `context_clear` command in `context.py`: 1. **Missing `--all/-a` option**: The command signature has no `--all` or `-a` flag. The spec requires `(--all|-a|<NAME>)` — either `--all` or a name must be provided. 2. **`<NAME>` is optional, not required**: When no name is provided, the command clears the current project's context (not a named actor context). The spec requires either `--all` or `<NAME>` to be provided. 3. **Missing output panels**: The implementation only prints `[green]✓[/green] Cleared all files from context.` — it does NOT render: - `Context Cleared` panel with Context name, Items removed, Storage freed - `Retention` panel with Context preserved/Files removed status 4. **Missing items count and storage freed**: The implementation does not report how many items were removed or how much storage was freed. ## Code Location `src/cleveragents/cli/commands/context.py` lines 730–824 (`context_clear` function) ## Steps to Reproduce 1. Read `src/cleveragents/cli/commands/context.py` lines 730–824 2. Note: no `--all/-a` option in the function signature 3. Note: `name` parameter is optional (defaults to `None`) 4. Note: output is just a single success line, not the spec-required panels --- **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#6069
No description provided.