UAT: agents resource list missing Children and Projects columns and Summary section #5509

Open
opened 2026-04-09 07:07:34 +00:00 by HAL9000 · 2 comments
Owner

Bug Report

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

What Was Tested

agents resource list output format against the specification.

Expected Behavior (from spec)

Per docs/specification.md lines 11049–11090, agents resource list should display:

Table columns: Name, ID, Type, Phys/Virt, Children, Projects

Resources
---------
Name               ID                            Type          Phys/Virt  Children  Projects
-----------------  ----------------------------  -----------  ---------  --------  ----------------
local/api-repo     01HXR1A1B2C3D4E5F6G7H8J9K0   git-checkout  physical   395       local/api-service
local/docs         01HXR2B2C3D4E5F6G7H8J9K0L1   fs-mount      physical   32        local/api-service

Summary section:

Summary
  Total: 3
  Physical: 3
  Virtual: 0
  Total Children: 405

The JSON output (spec lines 11094–11135) includes children count and projects list per resource, plus a summary object.

Actual Behavior (from code analysis)

In src/cleveragents/cli/commands/resource.py lines 862–892, the implementation shows:

Table columns: ID, Name, Type, Status, Kind, Location, Description

table.add_column("ID", style="dim")
table.add_column("Name", style="cyan")
table.add_column("Type", style="blue")
table.add_column("Status", style="yellow")
table.add_column("Kind", style="magenta")
table.add_column("Location", style="dim")
table.add_column("Description", style="dim")

Missing:

  • Children column (count of auto-discovered child resources)
  • Projects column (list of projects this resource is linked to)
  • Summary section (Total, Physical, Virtual, Total Children)

Extra columns not in spec:

  • Status (lifecycle state — only relevant for container types)
  • Location (not in spec's list output)
  • Description (not in spec's list output)

The JSON output from _resource_dict also doesn't include children count or projects list.

Code Location

  • src/cleveragents/cli/commands/resource.py, lines 817–912 (resource_list function)
  • src/cleveragents/cli/commands/resource.py, lines 181–198 (_resource_dict)

Fix Required

  1. Add Children column (query child count from DAG edges)
  2. Add Projects column (query ProjectResourceLinkModel for linked projects)
  3. Add Summary panel after the table
  4. Update _resource_dict to include children and projects fields

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 list` output format against the specification. ### Expected Behavior (from spec) Per `docs/specification.md` lines 11049–11090, `agents resource list` should display: **Table columns**: Name, ID, Type, Phys/Virt, **Children**, **Projects** ``` Resources --------- Name ID Type Phys/Virt Children Projects ----------------- ---------------------------- ----------- --------- -------- ---------------- local/api-repo 01HXR1A1B2C3D4E5F6G7H8J9K0 git-checkout physical 395 local/api-service local/docs 01HXR2B2C3D4E5F6G7H8J9K0L1 fs-mount physical 32 local/api-service ``` **Summary section**: ``` Summary Total: 3 Physical: 3 Virtual: 0 Total Children: 405 ``` The JSON output (spec lines 11094–11135) includes `children` count and `projects` list per resource, plus a `summary` object. ### Actual Behavior (from code analysis) In `src/cleveragents/cli/commands/resource.py` lines 862–892, the implementation shows: **Table columns**: ID, Name, Type, Status, Kind, Location, Description ```python table.add_column("ID", style="dim") table.add_column("Name", style="cyan") table.add_column("Type", style="blue") table.add_column("Status", style="yellow") table.add_column("Kind", style="magenta") table.add_column("Location", style="dim") table.add_column("Description", style="dim") ``` **Missing:** - ❌ `Children` column (count of auto-discovered child resources) - ❌ `Projects` column (list of projects this resource is linked to) - ❌ Summary section (Total, Physical, Virtual, Total Children) **Extra columns not in spec:** - `Status` (lifecycle state — only relevant for container types) - `Location` (not in spec's list output) - `Description` (not in spec's list output) The JSON output from `_resource_dict` also doesn't include `children` count or `projects` list. ### Code Location - `src/cleveragents/cli/commands/resource.py`, lines 817–912 (`resource_list` function) - `src/cleveragents/cli/commands/resource.py`, lines 181–198 (`_resource_dict`) ### Fix Required 1. Add `Children` column (query child count from DAG edges) 2. Add `Projects` column (query `ProjectResourceLinkModel` for linked projects) 3. Add Summary panel after the table 4. Update `_resource_dict` to include `children` and `projects` fields --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 07:12:11 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels and/or milestone to bring issue into compliance with CONTRIBUTING.md --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Medium — agents resource list missing Children and Projects columns is a spec compliance gap in the CLI output.
  • Milestone: v3.2.0 (already assigned)
  • Story Points: 2 — S — Adding missing columns to the resource list table, 1-4 hours.
  • MoSCoW: MoSCoW/Should have — CLI output should match the spec. Missing columns reduce usability.

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

Issue triaged by project owner: - **State**: Verified - **Priority**: Medium — `agents resource list` missing `Children` and `Projects` columns is a spec compliance gap in the CLI output. - **Milestone**: v3.2.0 (already assigned) - **Story Points**: 2 — S — Adding missing columns to the resource list table, 1-4 hours. - **MoSCoW**: MoSCoW/Should have — CLI output should match the spec. Missing columns reduce usability. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: 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.

Dependencies

No dependencies set.

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