UAT: agents resource add output format missing spec-required panels — shows one-liner instead of Resource, Auto-discovered Children, and Capabilities panels #4113

Open
opened 2026-04-06 10:26:28 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: fix/cli/resource-add-output-panels
  • Commit Message: fix(cli): add spec-required Resource, Auto-discovered Children, and Capabilities panels to agents resource add output
  • Milestone: None (backlog)
  • Parent Epic: #3374

Summary

The agents resource add command outputs a simple one-liner instead of the three rich panels required by the specification.

Backlog note: This issue was discovered during autonomous operation
on milestone . It does not block milestone completion and has been
placed in the backlog for human review and future milestone assignment.

What Was Tested

Reviewed src/cleveragents/cli/commands/resource.py, the resource_add() function (line 540), and compared its output against the specification's Example 1 workflow (spec lines 36282–36319).

Expected Behavior (from spec)

The spec (lines 36282–36319) requires three panels:

╭─ Resource ──────────────────────────────────────────╮
│ Name: local/api-repo                                │
│ ID: 01HXR1A1B2C3D4E5F6G7H8J9K0                      │
│ Type: git-checkout                                  │
│ Physical/Virtual: physical                          │
│ Path: /home/dev/projects/api-service                │
│ Branch: main                                        │
│ Created: 2026-02-11 09:15                           │
╰─────────────────────────────────────────────────────╯

╭─ Auto-discovered Children ─────────────────────────────────────────╮
│ ID               Type            Status                            │
│ ───────────────  ──────────────  ─────────────────                 │
│ 01HXR1A1B2C3…   git             created                            │
│ ...                                                                │
╰────────────────────────────────────────────────────────────────────╯

╭─ Capabilities ─────────────────╮
│ Readable: yes                  │
│ Writable: yes                  │
│ Sandboxable: yes               │
│ Checkpointable: yes            │
│ Sandbox Strategy: git_worktree │
╰────────────────────────────────╯

✓ OK Resource registered (270 child resources discovered)

Actual Behavior

The code at src/cleveragents/cli/commands/resource.py lines 728–731 outputs:

console.print(
    f"[green]Added resource:[/green] {resource.name} "
    f"(id: {resource.resource_id})"
)

Which produces:

Added resource: local/api-repo (id: 01HXR1A1B2C3D4E5F6G7H8J9K0)

Code Location

  • File: src/cleveragents/cli/commands/resource.py
  • Function: resource_add() at line 540
  • Output section: lines 723–731

Steps to Reproduce

  1. Register a git-checkout resource: agents resource add git-checkout local/api-repo --path /some/path --branch main
  2. Observe the output — only a single line is printed instead of three panels

Impact on Workflow Examples

This blocks the visual fidelity of all 18 workflow examples in the spec that use agents resource add. The command functions correctly (resource is registered), but the output does not match the spec, making it impossible to verify the workflow examples end-to-end as documented.

Subtasks

  • Add Resource panel with Name, ID, Type, Physical/Virtual, Path, Branch, Created fields
  • Add Auto-discovered Children table (if resource type supports child discovery)
  • Add Capabilities panel with Readable, Writable, Sandboxable, Checkpointable, Sandbox Strategy fields
  • Change confirmation line to ✓ OK Resource registered (N child resources discovered)

Definition of Done

  • agents resource add git-checkout local/api-repo --path /path --branch main outputs three panels matching the spec format
  • Auto-discovered children count is shown in the confirmation line
  • Capabilities panel shows correct values for the resource type
  • All nox stages pass
  • Coverage >= 97%

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: ca-new-issue-creator

## Metadata - **Branch**: `fix/cli/resource-add-output-panels` - **Commit Message**: `fix(cli): add spec-required Resource, Auto-discovered Children, and Capabilities panels to agents resource add output` - **Milestone**: None (backlog) - **Parent Epic**: #3374 ## Summary The `agents resource add` command outputs a simple one-liner instead of the three rich panels required by the specification. > **Backlog note:** This issue was discovered during autonomous operation > on milestone <M>. It does not block milestone completion and has been > placed in the backlog for human review and future milestone assignment. ## What Was Tested Reviewed `src/cleveragents/cli/commands/resource.py`, the `resource_add()` function (line 540), and compared its output against the specification's Example 1 workflow (spec lines 36282–36319). ## Expected Behavior (from spec) The spec (lines 36282–36319) requires three panels: ``` ╭─ Resource ──────────────────────────────────────────╮ │ Name: local/api-repo │ │ ID: 01HXR1A1B2C3D4E5F6G7H8J9K0 │ │ Type: git-checkout │ │ Physical/Virtual: physical │ │ Path: /home/dev/projects/api-service │ │ Branch: main │ │ Created: 2026-02-11 09:15 │ ╰─────────────────────────────────────────────────────╯ ╭─ Auto-discovered Children ─────────────────────────────────────────╮ │ ID Type Status │ │ ─────────────── ────────────── ───────────────── │ │ 01HXR1A1B2C3… git created │ │ ... │ ╰────────────────────────────────────────────────────────────────────╯ ╭─ Capabilities ─────────────────╮ │ Readable: yes │ │ Writable: yes │ │ Sandboxable: yes │ │ Checkpointable: yes │ │ Sandbox Strategy: git_worktree │ ╰────────────────────────────────╯ ✓ OK Resource registered (270 child resources discovered) ``` ## Actual Behavior The code at `src/cleveragents/cli/commands/resource.py` lines 728–731 outputs: ```python console.print( f"[green]Added resource:[/green] {resource.name} " f"(id: {resource.resource_id})" ) ``` Which produces: ``` Added resource: local/api-repo (id: 01HXR1A1B2C3D4E5F6G7H8J9K0) ``` ## Code Location - File: `src/cleveragents/cli/commands/resource.py` - Function: `resource_add()` at line 540 - Output section: lines 723–731 ## Steps to Reproduce 1. Register a git-checkout resource: `agents resource add git-checkout local/api-repo --path /some/path --branch main` 2. Observe the output — only a single line is printed instead of three panels ## Impact on Workflow Examples This blocks the visual fidelity of all 18 workflow examples in the spec that use `agents resource add`. The command functions correctly (resource is registered), but the output does not match the spec, making it impossible to verify the workflow examples end-to-end as documented. ## Subtasks - [ ] Add Resource panel with Name, ID, Type, Physical/Virtual, Path, Branch, Created fields - [ ] Add Auto-discovered Children table (if resource type supports child discovery) - [ ] Add Capabilities panel with Readable, Writable, Sandboxable, Checkpointable, Sandbox Strategy fields - [ ] Change confirmation line to `✓ OK Resource registered (N child resources discovered)` ## Definition of Done - [ ] `agents resource add git-checkout local/api-repo --path /path --branch main` outputs three panels matching the spec format - [ ] Auto-discovered children count is shown in the confirmation line - [ ] Capabilities panel shows correct values for the resource type - [ ] All nox stages pass - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
freemo added this to the v3.6.0 milestone 2026-04-06 18:07:50 +00:00
Author
Owner

Milestone Triage Decision: Moved to Backlog (Belongs in Earlier Milestone)

This CLI output format fix has been moved out of v3.6.0 during aggressive milestone triage. Basic CLI format fixes belong in earlier milestones, not in Advanced Concepts.

Reasoning:

  • v3.6.0 focus: Advanced concepts that extend beyond core MVP
  • This issue: Resource add output format - basic CLI functionality
  • Impact: Basic CLI polish, not advanced conceptual capability

Should be addressed in v3.4.0 alongside resource management core functionality.

**Milestone Triage Decision: Moved to Backlog (Belongs in Earlier Milestone)** This CLI output format fix has been moved out of v3.6.0 during aggressive milestone triage. Basic CLI format fixes belong in earlier milestones, not in Advanced Concepts. **Reasoning:** - v3.6.0 focus: Advanced concepts that extend beyond core MVP - This issue: Resource add output format - basic CLI functionality - Impact: Basic CLI polish, not advanced conceptual capability Should be addressed in v3.4.0 alongside resource management core functionality.
freemo removed this from the v3.6.0 milestone 2026-04-06 20:41:35 +00:00
HAL9000 added this to the v3.5.0 milestone 2026-04-09 03:10:51 +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.

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