UAT: agents tool list --type validation shows wrong columns — spec requires Name/Source/Mode/Attachments but implementation uses same columns as plain tool list #4534

Open
opened 2026-04-08 14:19:27 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Tool CLI — agents tool list --type validation rich output

Expected Behavior (from spec)

The spec (§ agents tool list, Rich output example for --type validation, lines 8194–8211) requires a different table format when listing validations:

╭─ Validations ─────────────────────────────────────────────────────────────────╮
│ Name                       Source   Mode          Attachments                 │
│ ─────────────────────────  ───────  ────────────  ────────────────────────    │
│ local/run-tests            custom   required      2 (1 direct, 1 project)     │
│ local/lint-check           custom   required      1 (1 direct)                │
│ local/check-bundle-size    custom   informational 1 (1 project)               │
│ local/type-check           custom   required      2 (2 project)               │
╰───────────────────────────────────────────────────────────────────────────────╯

╭─ Summary ──────────────╮
│ Total: 4               │
│ Required: 3            │
│ Informational: 1       │
╰────────────────────────╯

✓ OK 4 validations listed

When --type validation is used, the table must have columns: Name, Source, Mode, Attachments (not the standard tool columns).

The Summary panel for validations must show: Total, Required, Informational (not the standard tool summary).

Actual Behavior

The list_tools function in src/cleveragents/cli/commands/tool.py (lines 416–437) uses the same table format regardless of --type filter:

table = Table(title=f"Tools ({len(tools)} total)")
table.add_column("Name", style="cyan")
table.add_column("Type", style="blue")
table.add_column("Source", style="magenta")
table.add_column("Description", style="dim")
table.add_column("Timeout", justify="right")

When --type validation is passed, the same Name/Type/Source/Description/Timeout columns are shown instead of the validation-specific Name/Source/Mode/Attachments columns.

Steps to Reproduce

  1. Register a validation: agents tool add --config <validation-file.yaml>
  2. Run: agents tool list --type validation
  3. Observe: standard tool columns (Name/Type/Source/Description/Timeout) instead of validation-specific columns (Name/Source/Mode/Attachments)

Code Location

src/cleveragents/cli/commands/tool.py, list_tools() function, lines 416–437.

The fix requires:

  1. Detecting when tool_type == "validation"
  2. Rendering a different table with Name/Source/Mode/Attachments columns
  3. Rendering a different Summary panel with Total/Required/Informational counts

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

## Bug Report **Feature Area:** Tool CLI — `agents tool list --type validation` rich output ### Expected Behavior (from spec) The spec (§ `agents tool list`, Rich output example for `--type validation`, lines 8194–8211) requires a **different table format** when listing validations: ``` ╭─ Validations ─────────────────────────────────────────────────────────────────╮ │ Name Source Mode Attachments │ │ ───────────────────────── ─────── ──────────── ──────────────────────── │ │ local/run-tests custom required 2 (1 direct, 1 project) │ │ local/lint-check custom required 1 (1 direct) │ │ local/check-bundle-size custom informational 1 (1 project) │ │ local/type-check custom required 2 (2 project) │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭─ Summary ──────────────╮ │ Total: 4 │ │ Required: 3 │ │ Informational: 1 │ ╰────────────────────────╯ ✓ OK 4 validations listed ``` When `--type validation` is used, the table must have columns: **Name**, **Source**, **Mode**, **Attachments** (not the standard tool columns). The Summary panel for validations must show: **Total**, **Required**, **Informational** (not the standard tool summary). ### Actual Behavior The `list_tools` function in `src/cleveragents/cli/commands/tool.py` (lines 416–437) uses the **same table format** regardless of `--type` filter: ```python table = Table(title=f"Tools ({len(tools)} total)") table.add_column("Name", style="cyan") table.add_column("Type", style="blue") table.add_column("Source", style="magenta") table.add_column("Description", style="dim") table.add_column("Timeout", justify="right") ``` When `--type validation` is passed, the same Name/Type/Source/Description/Timeout columns are shown instead of the validation-specific Name/Source/Mode/Attachments columns. ### Steps to Reproduce 1. Register a validation: `agents tool add --config <validation-file.yaml>` 2. Run: `agents tool list --type validation` 3. Observe: standard tool columns (Name/Type/Source/Description/Timeout) instead of validation-specific columns (Name/Source/Mode/Attachments) ### Code Location `src/cleveragents/cli/commands/tool.py`, `list_tools()` function, lines 416–437. The fix requires: 1. Detecting when `tool_type == "validation"` 2. Rendering a different table with Name/Source/Mode/Attachments columns 3. Rendering a different Summary panel with Total/Required/Informational counts --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.5.0 milestone 2026-04-08 17:41:45 +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#4534
No description provided.