UAT: agents resource add rich output missing spec-required panels — Resource, Auto-discovered Children, Mounts, and Capabilities panels not rendered #4478

Open
opened 2026-04-08 13:22:44 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Devcontainer and execution environment — resource registration output
Spec References: Example 16 (spec lines 42559–42583), Example 17 (spec lines 42800–42823), spec §10603–10690
Severity: Medium — functional output is missing, user experience degraded


What Was Tested

The rich output format of agents resource add for git-checkout, container-instance, and devcontainer-instance resource types.

Expected Behavior (from spec)

The spec shows rich multi-panel output for agents resource add:

For git-checkout (spec §10603–10639):

╭─ 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)

For container-instance with mounts (spec §10672–10690):

╭─ Resource ──────────────────────────────────────╮
│ Name: local/api-dev                             │
│ ID: 01HXR3C4D5E6F7G8H9J0K1L2M3                  │
│ Type: container-instance                        │
│ State: created (not started)                    │
│ Created: 2026-02-09 10:25                       │
╰─────────────────────────────────────────────────╯

╭─ Mounts ──────────────────────────────────────────────────────────╮
│ Source                            Container Path   Kind           │
│ ────────────────────────────────  ───────────────  ───────────    │
│ local/api-repo                    /workspace       resource-ref   │
│ /home/user/.config/nvim           /home/dev/…      host-path      │
╰───────────────────────────────────────────────────────────────────╯

✓ OK Container resource registered (container will start on first access)

For git-checkout with devcontainer (Example 16, spec lines 42559–42583):

╭─ Resource ──────────────────────────────────────────╮
│ Name: local/webapp                                  │
│ ID: 01J0A1B2C3D4E5F6G7H8J9K0L1                      │
│ Type: git-checkout                                  │
│ Path: /home/user/projects/webapp                    │
│ Branch: main                                        │
╰─────────────────────────────────────────────────────╯

╭─ Auto-discovered Children ─────────────────────────────────────────╮
│ ID               Type                    Status                    │
│ ───────────────  ──────────────────────  ─────────────────         │
│ 01J0A1B2C3D5…   git                     created                    │
│ 01J0A1B2C3D6…   devcontainer-instance   detected (not built)       │
│ 01J0A1B2C3D7…   fs-directory            created                    │
│   + 38 git-commit, 205 git-tree-entry, 12 fs-file                  │
╰────────────────────────────────────────────────────────────────────╯

⚠ Devcontainer detected at .devcontainer/devcontainer.json
  Container will be built lazily on first access.

✓ OK Resource registered (259 child resources discovered)

Actual Behavior (from code)

In src/cleveragents/cli/commands/resource.py (lines 796–799):

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

The actual output is just a single line:

Added resource: local/webapp (id: 01J0A1B2C3D4E5F6G7H8J9K0L1)

Missing:

  1. Resource panel — name, ID, type, path, branch, created date
  2. Auto-discovered Children panel — table of child resources with IDs, types, and statuses
  3. Mounts panel — for container resources with --mount flags
  4. Capabilities panel — readable, writable, sandboxable, checkpointable, sandbox strategy
  5. Devcontainer warning — "⚠ Devcontainer detected at ..." message
  6. Summary line — "✓ OK Resource registered (N child resources discovered)"

Code Location

  • src/cleveragents/cli/commands/resource.py lines 782–799 (the resource_add command output section)

Impact

  • Example 16 Step 1 output is incorrect (no auto-discovered children table, no devcontainer warning)
  • Example 17 Step 1 output is incorrect (no Resource panel, no Mounts panel)
  • Users cannot see what child resources were discovered during registration
  • Users cannot see if a devcontainer was auto-detected

Definition of Done

  • agents resource add git-checkout shows Resource panel with name, ID, type, path, branch, created date
  • agents resource add git-checkout shows Auto-discovered Children panel when children exist
  • agents resource add git-checkout shows devcontainer warning when .devcontainer/devcontainer.json is found
  • agents resource add container-instance shows Resource panel with state
  • agents resource add container-instance --mount shows Mounts panel
  • agents resource add container-instance --clone-into shows Clone info in Resource panel
  • Summary line shows count of discovered child resources
  • All output matches spec format for Examples 16 and 17

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

## Bug Report **Feature Area:** Devcontainer and execution environment — resource registration output **Spec References:** Example 16 (spec lines 42559–42583), Example 17 (spec lines 42800–42823), spec §10603–10690 **Severity:** Medium — functional output is missing, user experience degraded --- ## What Was Tested The rich output format of `agents resource add` for `git-checkout`, `container-instance`, and `devcontainer-instance` resource types. ## Expected Behavior (from spec) The spec shows rich multi-panel output for `agents resource add`: **For `git-checkout` (spec §10603–10639):** ``` ╭─ 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) ``` **For `container-instance` with mounts (spec §10672–10690):** ``` ╭─ Resource ──────────────────────────────────────╮ │ Name: local/api-dev │ │ ID: 01HXR3C4D5E6F7G8H9J0K1L2M3 │ │ Type: container-instance │ │ State: created (not started) │ │ Created: 2026-02-09 10:25 │ ╰─────────────────────────────────────────────────╯ ╭─ Mounts ──────────────────────────────────────────────────────────╮ │ Source Container Path Kind │ │ ──────────────────────────────── ─────────────── ─────────── │ │ local/api-repo /workspace resource-ref │ │ /home/user/.config/nvim /home/dev/… host-path │ ╰───────────────────────────────────────────────────────────────────╯ ✓ OK Container resource registered (container will start on first access) ``` **For `git-checkout` with devcontainer (Example 16, spec lines 42559–42583):** ``` ╭─ Resource ──────────────────────────────────────────╮ │ Name: local/webapp │ │ ID: 01J0A1B2C3D4E5F6G7H8J9K0L1 │ │ Type: git-checkout │ │ Path: /home/user/projects/webapp │ │ Branch: main │ ╰─────────────────────────────────────────────────────╯ ╭─ Auto-discovered Children ─────────────────────────────────────────╮ │ ID Type Status │ │ ─────────────── ────────────────────── ───────────────── │ │ 01J0A1B2C3D5… git created │ │ 01J0A1B2C3D6… devcontainer-instance detected (not built) │ │ 01J0A1B2C3D7… fs-directory created │ │ + 38 git-commit, 205 git-tree-entry, 12 fs-file │ ╰────────────────────────────────────────────────────────────────────╯ ⚠ Devcontainer detected at .devcontainer/devcontainer.json Container will be built lazily on first access. ✓ OK Resource registered (259 child resources discovered) ``` ## Actual Behavior (from code) In `src/cleveragents/cli/commands/resource.py` (lines 796–799): ```python console.print( f"[green]Added resource:[/green] {resource.name} " f"(id: {resource.resource_id})" ) ``` The actual output is just a single line: ``` Added resource: local/webapp (id: 01J0A1B2C3D4E5F6G7H8J9K0L1) ``` Missing: 1. **Resource panel** — name, ID, type, path, branch, created date 2. **Auto-discovered Children panel** — table of child resources with IDs, types, and statuses 3. **Mounts panel** — for container resources with `--mount` flags 4. **Capabilities panel** — readable, writable, sandboxable, checkpointable, sandbox strategy 5. **Devcontainer warning** — "⚠ Devcontainer detected at ..." message 6. **Summary line** — "✓ OK Resource registered (N child resources discovered)" ## Code Location - `src/cleveragents/cli/commands/resource.py` lines 782–799 (the `resource_add` command output section) ## Impact - Example 16 Step 1 output is incorrect (no auto-discovered children table, no devcontainer warning) - Example 17 Step 1 output is incorrect (no Resource panel, no Mounts panel) - Users cannot see what child resources were discovered during registration - Users cannot see if a devcontainer was auto-detected ## Definition of Done - [ ] `agents resource add git-checkout` shows Resource panel with name, ID, type, path, branch, created date - [ ] `agents resource add git-checkout` shows Auto-discovered Children panel when children exist - [ ] `agents resource add git-checkout` shows devcontainer warning when `.devcontainer/devcontainer.json` is found - [ ] `agents resource add container-instance` shows Resource panel with state - [ ] `agents resource add container-instance --mount` shows Mounts panel - [ ] `agents resource add container-instance --clone-into` shows Clone info in Resource panel - [ ] Summary line shows count of discovered child resources - [ ] All output matches spec format for Examples 16 and 17 --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.5.0 milestone 2026-04-08 17:42:10 +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#4478
No description provided.