[BUG] agents actor context list, show, and clear subcommands are missing — spec requires all three #9327

Open
opened 2026-04-14 14:54:47 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Commit Message: feat(cli): implement missing actor context list, show, and clear subcommands
  • Branch: feat/actor-context-list-show-clear

Background and Context

The specification defines the following agents actor context subcommands:

agents actor context remove [--yes|-y] (--all|-a|<NAME>)
agents actor context list [<REGEX>]
agents actor context show <NAME>
agents actor context export (--output|-o) <FILE> <NAME>
agents actor context import [--update] (--input|-i) <FILE> [<NAME>]
agents actor context clear [--yes|-y] (--all|-a|<NAME>)

The current implementation in src/cleveragents/cli/commands/actor_context.py only implements three of these six subcommands:

  • actor context remove — implemented
  • actor context listMISSING
  • actor context showMISSING
  • actor context export — implemented
  • actor context import — implemented
  • actor context clearMISSING

The actor_context.py file only registers three @app.command() decorators: remove, export, and import.

Current Behavior

Running any of the following commands fails with "No such command":

agents actor context list
agents actor context show docs
agents actor context clear docs

Expected Behavior

Per the specification:

agents actor context list [<REGEX>]

Lists all named actor contexts with optional regex filter. Should display a table with context names, file counts, sizes, and timestamps. Output includes a Stats panel with total files, total size, estimated tokens, and languages.

agents actor context show <NAME>

Shows a summary of a named actor context. Displays a Context Summary panel with context name, file count, total size, estimated tokens, and creation date.

agents actor context clear [--yes|-y] (--all|-a|<NAME>)

Clears all files/messages from a context but keeps the context directory itself (unlike remove which deletes the context entirely). Supports --all/-a to target all contexts and --yes/-y to skip confirmation. Displays a Context Cleared panel with items removed and storage freed, plus a Retention panel showing the context is preserved.

Acceptance Criteria

  • agents actor context list lists all named contexts with stats
  • agents actor context list <REGEX> filters contexts by regex pattern
  • agents actor context show <NAME> shows context summary details
  • agents actor context clear <NAME> clears context messages/files but preserves the context
  • agents actor context clear --all clears all contexts
  • agents actor context clear --yes skips confirmation
  • All three commands support --format json|yaml|plain|rich output
  • All three commands return exit code 1 on error (e.g., context not found)
  • BDD tests cover all new commands

Supporting Information

  • Spec reference: docs/specification.md lines 284–288 (synopsis) and §5863 (actor context list), §5978 (actor context show), §6256 (actor context clear)
  • Implementation file: src/cleveragents/cli/commands/actor_context.py — only has remove, export, import
  • Related BDD feature file: features/actor_context_cmds.feature — only tests remove, export, import
  • The ContextManager class in src/cleveragents/reactive/context_manager.py provides the underlying persistence layer

Key distinction between clear and remove:

  • remove — deletes the context directory entirely (no recovery)
  • clear — removes messages/files from the context but preserves the context directory itself

Subtasks

  • Implement actor context list [REGEX] command in src/cleveragents/cli/commands/actor_context.py
  • Implement actor context show <NAME> command in src/cleveragents/cli/commands/actor_context.py
  • Implement actor context clear [--yes|-y] (--all|-a|<NAME>) command in src/cleveragents/cli/commands/actor_context.py
  • Add JSON/YAML/plain/rich output format support to all three new commands
  • Add BDD scenarios for actor context list to features/actor_context_cmds.feature
  • Add BDD scenarios for actor context show to features/actor_context_cmds.feature
  • Add BDD scenarios for actor context clear to features/actor_context_cmds.feature
  • Add corresponding step definitions to features/steps/actor_context_cmds_steps.py
  • Run nox -s unit_tests -- features/actor_context_cmds.feature and verify all tests pass
  • Verify coverage remains above threshold

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

Automated by CleverAgents Bot
Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor

## Metadata - **Commit Message**: `feat(cli): implement missing actor context list, show, and clear subcommands` - **Branch**: `feat/actor-context-list-show-clear` ## Background and Context The specification defines the following `agents actor context` subcommands: ``` agents actor context remove [--yes|-y] (--all|-a|<NAME>) agents actor context list [<REGEX>] agents actor context show <NAME> agents actor context export (--output|-o) <FILE> <NAME> agents actor context import [--update] (--input|-i) <FILE> [<NAME>] agents actor context clear [--yes|-y] (--all|-a|<NAME>) ``` The current implementation in `src/cleveragents/cli/commands/actor_context.py` only implements three of these six subcommands: - ✅ `actor context remove` — implemented - ❌ `actor context list` — **MISSING** - ❌ `actor context show` — **MISSING** - ✅ `actor context export` — implemented - ✅ `actor context import` — implemented - ❌ `actor context clear` — **MISSING** The `actor_context.py` file only registers three `@app.command()` decorators: `remove`, `export`, and `import`. ## Current Behavior Running any of the following commands fails with "No such command": ``` agents actor context list agents actor context show docs agents actor context clear docs ``` ## Expected Behavior Per the specification: ### `agents actor context list [<REGEX>]` Lists all named actor contexts with optional regex filter. Should display a table with context names, file counts, sizes, and timestamps. Output includes a Stats panel with total files, total size, estimated tokens, and languages. ### `agents actor context show <NAME>` Shows a summary of a named actor context. Displays a Context Summary panel with context name, file count, total size, estimated tokens, and creation date. ### `agents actor context clear [--yes|-y] (--all|-a|<NAME>)` Clears all files/messages from a context but keeps the context directory itself (unlike `remove` which deletes the context entirely). Supports `--all/-a` to target all contexts and `--yes/-y` to skip confirmation. Displays a Context Cleared panel with items removed and storage freed, plus a Retention panel showing the context is preserved. ## Acceptance Criteria - [ ] `agents actor context list` lists all named contexts with stats - [ ] `agents actor context list <REGEX>` filters contexts by regex pattern - [ ] `agents actor context show <NAME>` shows context summary details - [ ] `agents actor context clear <NAME>` clears context messages/files but preserves the context - [ ] `agents actor context clear --all` clears all contexts - [ ] `agents actor context clear --yes` skips confirmation - [ ] All three commands support `--format json|yaml|plain|rich` output - [ ] All three commands return exit code 1 on error (e.g., context not found) - [ ] BDD tests cover all new commands ## Supporting Information - Spec reference: `docs/specification.md` lines 284–288 (synopsis) and §5863 (`actor context list`), §5978 (`actor context show`), §6256 (`actor context clear`) - Implementation file: `src/cleveragents/cli/commands/actor_context.py` — only has `remove`, `export`, `import` - Related BDD feature file: `features/actor_context_cmds.feature` — only tests `remove`, `export`, `import` - The `ContextManager` class in `src/cleveragents/reactive/context_manager.py` provides the underlying persistence layer **Key distinction between `clear` and `remove`:** - `remove` — deletes the context directory entirely (no recovery) - `clear` — removes messages/files from the context but preserves the context directory itself ## Subtasks - [ ] Implement `actor context list [REGEX]` command in `src/cleveragents/cli/commands/actor_context.py` - [ ] Implement `actor context show <NAME>` command in `src/cleveragents/cli/commands/actor_context.py` - [ ] Implement `actor context clear [--yes|-y] (--all|-a|<NAME>)` command in `src/cleveragents/cli/commands/actor_context.py` - [ ] Add JSON/YAML/plain/rich output format support to all three new commands - [ ] Add BDD scenarios for `actor context list` to `features/actor_context_cmds.feature` - [ ] Add BDD scenarios for `actor context show` to `features/actor_context_cmds.feature` - [ ] Add BDD scenarios for `actor context clear` to `features/actor_context_cmds.feature` - [ ] Add corresponding step definitions to `features/steps/actor_context_cmds_steps.py` - [ ] Run `nox -s unit_tests -- features/actor_context_cmds.feature` and verify all tests pass - [ ] Verify coverage remains above threshold ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **Automated by CleverAgents Bot** Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor
HAL9000 added this to the v3.2.0 milestone 2026-04-14 14:58:13 +00:00
Author
Owner

Triage: Verified [AUTO-OWNR-1]

Valid missing feature: 3 of 6 spec-required agents actor context subcommands are missing from the implementation — list, show, and clear. The spec defines all six subcommands but only remove, export, and import are implemented. This is a significant functional gap.

Note: While labeled as a bug, this is actually a missing feature (the commands were never implemented). Classifying as Type/Feature since there is no existing implementation to fix.

Assigning to v3.2.0 as actor context management is a core M3 feature. Priority High — 3 of 6 required subcommands are completely missing.

MoSCoW: Must Have — the spec requires all six actor context subcommands. The feature is incomplete without list, show, and clear.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Triage: Verified** [AUTO-OWNR-1] Valid missing feature: 3 of 6 spec-required `agents actor context` subcommands are missing from the implementation — `list`, `show`, and `clear`. The spec defines all six subcommands but only `remove`, `export`, and `import` are implemented. This is a significant functional gap. Note: While labeled as a bug, this is actually a missing feature (the commands were never implemented). Classifying as `Type/Feature` since there is no existing implementation to fix. Assigning to **v3.2.0** as actor context management is a core M3 feature. Priority **High** — 3 of 6 required subcommands are completely missing. MoSCoW: **Must Have** — the spec requires all six `actor context` subcommands. The feature is incomplete without `list`, `show`, and `clear`. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
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#9327
No description provided.