UAT: [FA-02] agents resource add rich output missing spec-required panels (Resource, Auto-discovered Children, Capabilities) #7813

Open
opened 2026-04-12 04:20:29 +00:00 by HAL9000 · 3 comments
Owner

What Was Tested

Code analysis of src/cleveragents/cli/commands/resource.py resource_add() function against the specification for agents resource add rich output format.

Expected Behavior (from spec)

The spec (docs/specification.md, section ##### agents resource add) requires the rich output to show three panels plus a final status line:

  1. ╭─ Resource ─╮ panel with fields: Name, ID, Type, Physical/Virtual, Path, Branch, Created
  2. ╭─ Auto-discovered Children ─╮ panel listing child resources by type and count
  3. ╭─ Capabilities ─╮ panel with: Readable, Writable, Sandboxable, Checkpointable, Sandbox Strategy
  4. Final line: ✓ OK Resource registered (N child resources discovered)

Spec example:

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

╭─ 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 (395 child resources discovered)

Actual Behavior

The implementation (resource_add() in resource.py, lines ~700-760) only outputs:

[green]Added resource:[/green] {resource.name} (id: {resource.resource_id})

This is a single line with no panels, no capability information, no auto-discovered children summary, and no ✓ OK status line.

Code Location

  • File: src/cleveragents/cli/commands/resource.py
  • Function: resource_add()
  • Lines: ~700-760 (the success output block after service.register_resource() call)

Steps to Reproduce

  1. Run agents resource add git-checkout local/my-repo --path /tmp/repo
  2. Observe output is just Added resource: local/my-repo (id: <ULID>)
  3. Expected: Three panels with resource details, auto-discovered children, and capabilities

Impact

Users cannot see resource capabilities, auto-discovered children count, or sandbox strategy from the resource add output. This is a significant UX gap vs the specification.


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

## What Was Tested Code analysis of `src/cleveragents/cli/commands/resource.py` `resource_add()` function against the specification for `agents resource add` rich output format. ## Expected Behavior (from spec) The spec (docs/specification.md, section `##### agents resource add`) requires the rich output to show **three panels** plus a final status line: 1. **`╭─ Resource ─╮`** panel with fields: `Name`, `ID`, `Type`, `Physical/Virtual`, `Path`, `Branch`, `Created` 2. **`╭─ Auto-discovered Children ─╮`** panel listing child resources by type and count 3. **`╭─ Capabilities ─╮`** panel with: `Readable`, `Writable`, `Sandboxable`, `Checkpointable`, `Sandbox Strategy` 4. Final line: `✓ OK Resource registered (N child resources discovered)` Spec example: ``` ╭─ Resource ──────────────────────────────────────╮ │ Name: local/api-repo │ │ ID: 01HXR1A1B2C3D4E5F6G7H8J9K0 │ │ Type: git-checkout │ │ Physical/Virtual: physical │ │ Path: /home/user/projects/api-service │ │ Branch: main │ │ Created: 2026-02-09 10:20 │ ╰─────────────────────────────────────────────────╯ ╭─ 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 (395 child resources discovered) ``` ## Actual Behavior The implementation (`resource_add()` in `resource.py`, lines ~700-760) only outputs: ``` [green]Added resource:[/green] {resource.name} (id: {resource.resource_id}) ``` This is a single line with no panels, no capability information, no auto-discovered children summary, and no `✓ OK` status line. ## Code Location - **File**: `src/cleveragents/cli/commands/resource.py` - **Function**: `resource_add()` - **Lines**: ~700-760 (the success output block after `service.register_resource()` call) ## Steps to Reproduce 1. Run `agents resource add git-checkout local/my-repo --path /tmp/repo` 2. Observe output is just `Added resource: local/my-repo (id: <ULID>)` 3. Expected: Three panels with resource details, auto-discovered children, and capabilities ## Impact Users cannot see resource capabilities, auto-discovered children count, or sandbox strategy from the `resource add` output. This is a significant UX gap vs the specification. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Author
Owner

Verified — UAT bug: resource add rich output missing spec-required panels. MoSCoW: Should-have. Priority: Medium.


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

✅ **Verified** — UAT bug: resource add rich output missing spec-required panels. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: resource add rich output missing spec-required panels. MoSCoW: Should-have. Priority: Medium.


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

✅ **Verified** — UAT bug: resource add rich output missing spec-required panels. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: resource add rich output missing spec-required panels. MoSCoW: Should-have. Priority: Medium.


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

✅ **Verified** — UAT bug: resource add rich output missing spec-required panels. MoSCoW: Should-have. Priority: Medium. --- **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#7813
No description provided.