UAT: agents resource add output missing Auto-discovered Children and Capabilities sections #5513

Open
opened 2026-04-09 07:08:40 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area: projects-resources
Severity: Medium — spec output format deviation
Milestone: v3.0.0+

What Was Tested

agents resource add <type> <name> output format against the specification.

Expected Behavior (from spec)

Per docs/specification.md lines 10606–10639, agents resource add git-checkout should display:

  1. Resource panel — name, ID, type, physical/virtual, path, branch, created
  2. Auto-discovered Children panel — list of child resources created automatically (git, git-remote, git-branch, fs-directory, etc.)
  3. Capabilities panel — readable, writable, sandboxable, checkpointable, sandbox strategy
  4. Success message — "Resource registered (N child resources discovered)"
╭─ 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 (from code analysis)

In src/cleveragents/cli/commands/resource.py lines 796–799, the implementation only shows:

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

Missing:

  • Full Resource panel with all fields (type, physical/virtual, path, branch, created)
  • Auto-discovered Children panel
  • Capabilities panel
  • Child resource count in success message

Code Location

  • src/cleveragents/cli/commands/resource.py, lines 791–799 (resource_add function, rich output section)

Fix Required

After registering the resource, the command should:

  1. Display a full Resource panel with all relevant fields
  2. Query child resources (DAG edges where this resource is parent) and display them
  3. Look up the resource type's capabilities and display them
  4. Include child count in the success message

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

## Bug Report **Feature Area**: projects-resources **Severity**: Medium — spec output format deviation **Milestone**: v3.0.0+ ### What Was Tested `agents resource add <type> <name>` output format against the specification. ### Expected Behavior (from spec) Per `docs/specification.md` lines 10606–10639, `agents resource add git-checkout` should display: 1. **Resource panel** — name, ID, type, physical/virtual, path, branch, created 2. **Auto-discovered Children panel** — list of child resources created automatically (git, git-remote, git-branch, fs-directory, etc.) 3. **Capabilities panel** — readable, writable, sandboxable, checkpointable, sandbox strategy 4. **Success message** — "Resource registered (N child resources discovered)" ``` ╭─ 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 (from code analysis) In `src/cleveragents/cli/commands/resource.py` lines 796–799, the implementation only shows: ```python console.print( f"[green]Added resource:[/green] {resource.name} " f"(id: {resource.resource_id})" ) ``` **Missing:** - ❌ Full Resource panel with all fields (type, physical/virtual, path, branch, created) - ❌ Auto-discovered Children panel - ❌ Capabilities panel - ❌ Child resource count in success message ### Code Location - `src/cleveragents/cli/commands/resource.py`, lines 791–799 (`resource_add` function, rich output section) ### Fix Required After registering the resource, the command should: 1. Display a full Resource panel with all relevant fields 2. Query child resources (DAG edges where this resource is parent) and display them 3. Look up the resource type's capabilities and display them 4. Include child count in the success message --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Author
Owner

🏷️ Label Fix Applied by Backlog Groomer

The State/Verified label has been added to this issue.

Reason: During a routine backlog grooming pass, this issue was found to have Type/Bug and a Priority/ label but was missing a State/* label entirely — a violation of the CONTRIBUTING.md requirement that every issue must have exactly one State/ label.

Since this issue has been triaged with a priority and type, State/Verified is the appropriate state: the issue has been confirmed as legitimate and is now part of the active backlog.

No other changes were made.


Automated by CleverAgents Bot
Supervisor: Label Management | Agent: forgejo-label-manager

## 🏷️ Label Fix Applied by Backlog Groomer The `State/Verified` label has been added to this issue. **Reason**: During a routine backlog grooming pass, this issue was found to have `Type/Bug` and a `Priority/` label but was missing a `State/*` label entirely — a violation of the CONTRIBUTING.md requirement that every issue must have exactly one `State/` label. Since this issue has been triaged with a priority and type, `State/Verified` is the appropriate state: the issue has been confirmed as legitimate and is now part of the active backlog. No other changes were made. --- **Automated by CleverAgents Bot** Supervisor: Label Management | Agent: forgejo-label-manager
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#5513
No description provided.