UAT: agents resource add rich output missing spec-required structured panels (Resource, Auto-discovered Children, Capabilities) #1878

Open
opened 2026-04-03 00:04:28 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: fix/resource-add-rich-output-panels
  • Commit Message: fix(cli): render structured panels for agents resource add rich output
  • Milestone: v3.5.0
  • Parent Epic: #936

What Was Tested

The agents resource add command's rich output format in src/cleveragents/cli/commands/resource.py.

Expected Behavior (from spec)

Per docs/specification.md lines 10577-10750 (agents resource add section), the rich output should show:

╭─ 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                            │
│ 01HXR1A1B2C4…   git-remote      created                            │
│   + 47 git-commit resources                                        │
│   + 312 git-tree-entry resources                                   │
╰────────────────────────────────────────────────────────────────────╯

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

✓ OK Resource registered (395 child resources discovered)

Actual Behavior (from code)

In src/cleveragents/cli/commands/resource.py, the resource_add() function (line 729):

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

The implementation outputs a single one-liner: Added resource: <name> (id: <id>)

Missing:

  1. Resource panel with Name, ID, Type, Physical/Virtual, type-specific properties (Path, Branch, etc.), Created
  2. Auto-discovered Children panel with table of discovered child resources
  3. Capabilities panel with readable, writable, sandboxable, checkpointable, sandbox strategy
  4. "✓ OK Resource registered (N child resources discovered)" status message

Code Location

src/cleveragents/cli/commands/resource.py, resource_add() function, line 729

Spec References

  • docs/specification.md lines 10577-10750 (agents resource add section)

Subtasks

  • Implement Resource panel rendering: Name, ID, Type, Physical/Virtual, type-specific properties (Path, Branch, URL, etc.), Created timestamp
  • Implement Auto-discovered Children panel rendering: table with ID, Type, Status columns plus summary lines for large counts
  • Implement Capabilities panel rendering: Readable, Writable, Sandboxable, Checkpointable, Sandbox Strategy
  • Implement "✓ OK Resource registered (N child resources discovered)" status line
  • Replace existing one-liner console.print in resource_add() with the new structured panel output
  • Tests (Behave): Add/update scenarios for agents resource add rich output covering all three panels and status line
  • Tests (Robot): Add/update integration test for agents resource add rich output format
  • Verify coverage >=97% via nox -s coverage_report
  • Run nox (all default sessions), fix any errors

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • The agents resource add command renders all three spec-required panels (Resource, Auto-discovered Children, Capabilities) plus the status line in rich output mode, matching the format in docs/specification.md lines 10577-10750.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly (fix(cli): render structured panels for agents resource add rich output), 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 (fix/resource-add-rich-output-panels).
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.
  • All nox stages pass.
  • Coverage >= 97%.

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

## Metadata - **Branch**: `fix/resource-add-rich-output-panels` - **Commit Message**: `fix(cli): render structured panels for agents resource add rich output` - **Milestone**: v3.5.0 - **Parent Epic**: #936 ## What Was Tested The `agents resource add` command's rich output format in `src/cleveragents/cli/commands/resource.py`. ## Expected Behavior (from spec) Per `docs/specification.md` lines 10577-10750 (agents resource add section), the rich output should show: ``` ╭─ 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 │ │ 01HXR1A1B2C4… git-remote created │ │ + 47 git-commit resources │ │ + 312 git-tree-entry resources │ ╰────────────────────────────────────────────────────────────────────╯ ╭─ Capabilities ──────────────────────────────────────╮ │ Readable: yes Writable: yes Sandboxable: yes │ │ Checkpointable: yes Sandbox Strategy: git_worktree │ ╰─────────────────────────────────────────────────────╯ ✓ OK Resource registered (395 child resources discovered) ``` ## Actual Behavior (from code) In `src/cleveragents/cli/commands/resource.py`, the `resource_add()` function (line 729): ```python console.print( f"[green]Added resource:[/green] {resource.name} " f"(id: {resource.resource_id})" ) ``` The implementation outputs a single one-liner: `Added resource: <name> (id: <id>)` Missing: 1. **Resource panel** with Name, ID, Type, Physical/Virtual, type-specific properties (Path, Branch, etc.), Created 2. **Auto-discovered Children panel** with table of discovered child resources 3. **Capabilities panel** with readable, writable, sandboxable, checkpointable, sandbox strategy 4. **"✓ OK Resource registered (N child resources discovered)"** status message ## Code Location `src/cleveragents/cli/commands/resource.py`, `resource_add()` function, line 729 ## Spec References - `docs/specification.md` lines 10577-10750 (agents resource add section) ## Subtasks - [ ] Implement **Resource panel** rendering: Name, ID, Type, Physical/Virtual, type-specific properties (Path, Branch, URL, etc.), Created timestamp - [ ] Implement **Auto-discovered Children panel** rendering: table with ID, Type, Status columns plus summary lines for large counts - [ ] Implement **Capabilities panel** rendering: Readable, Writable, Sandboxable, Checkpointable, Sandbox Strategy - [ ] Implement **"✓ OK Resource registered (N child resources discovered)"** status line - [ ] Replace existing one-liner `console.print` in `resource_add()` with the new structured panel output - [ ] Tests (Behave): Add/update scenarios for `agents resource add` rich output covering all three panels and status line - [ ] Tests (Robot): Add/update integration test for `agents resource add` rich output format - [ ] Verify coverage >=97% via `nox -s coverage_report` - [ ] Run `nox` (all default sessions), fix any errors ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - The `agents resource add` command renders all three spec-required panels (Resource, Auto-discovered Children, Capabilities) plus the status line in rich output mode, matching the format in `docs/specification.md` lines 10577-10750. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly (`fix(cli): render structured panels for agents resource add rich output`), 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 (`fix/resource-add-rich-output-panels`). - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. - All nox stages pass. - Coverage >= 97%. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-new-issue-creator
freemo added this to the v3.5.0 milestone 2026-04-03 00:05:05 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • MoSCoW: MoSCoW/Should Have — bug or error handling improvement.

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

Issue triaged by project owner: - **State**: Verified - **MoSCoW**: MoSCoW/Should Have — bug or error handling improvement. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
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#1878
No description provided.