UAT: agents resource type show panel missing "Auto-discover" and "Manual link" child type distinction — shows flat "Child Types" list instead #4832

Open
opened 2026-04-08 19:59:36 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Resource Registry — agents resource type show rich output

Severity: Medium — output is misleading; users cannot distinguish auto-discovered vs manually-linked child types


What Was Tested

_print_type_panel() in src/cleveragents/cli/commands/resource.py and the agents resource type show command.

Expected Behavior (from spec, lines 10485–10514)

The agents resource type show git-checkout JSON output should include:

"child_types": [
  { "type": "git", "auto": true, "manual_link": false, "description": "Repo object DB and history" },
  { "type": "fs-directory", "auto": true, "manual_link": false, "description": "Worktree root directory" }
]

The rich panel (from spec lines 9898–9924) should show:

│ Auto-discover: svn-revision, svn-file  │
│ Manual link: fs-mount                  │

Actual Behavior (from code)

_print_type_panel() shows:

f"[bold]Parent Types:[/bold] {', '.join(spec.parent_types) or '(none)'}\n"
f"[bold]Child Types:[/bold] {', '.join(spec.child_types) or '(none)'}"

This is a flat list of all child types with no distinction between:

  • Auto-discovered child types (created automatically when parent is registered)
  • Manual link child types (must be explicitly linked via agents resource link-child)

The _resource_type_dict() helper also uses flat child_types list instead of the spec-required child_types array with auto/manual_link flags.

Code Location

  • src/cleveragents/cli/commands/resource.py_print_type_panel() and _resource_type_dict()
  • src/cleveragents/domain/models/core/resource_type.pyResourceTypeSpec — has auto_discovery dict but no per-child-type auto/manual_link flags
  • src/cleveragents/application/services/_resource_registry_data.py — built-in type definitions have auto_discovery.rules with type patterns, but this isn't surfaced in the CLI output

Steps to Reproduce

agents resource type show git-checkout --format json

Expected: child_types array with auto/manual_link flags per child type
Actual: flat child_types list with no auto/manual distinction

agents resource type show git-checkout

Expected: "Auto-discover: git, fs-directory" and "Manual link: (none)" in panel
Actual: "Child Types: git, fs-directory, fs-file, devcontainer-instance, devcontainer-file" (flat list)


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

## Bug Report **Feature Area:** Resource Registry — `agents resource type show` rich output **Severity:** Medium — output is misleading; users cannot distinguish auto-discovered vs manually-linked child types --- ## What Was Tested `_print_type_panel()` in `src/cleveragents/cli/commands/resource.py` and the `agents resource type show` command. ## Expected Behavior (from spec, lines 10485–10514) The `agents resource type show git-checkout` JSON output should include: ```json "child_types": [ { "type": "git", "auto": true, "manual_link": false, "description": "Repo object DB and history" }, { "type": "fs-directory", "auto": true, "manual_link": false, "description": "Worktree root directory" } ] ``` The rich panel (from spec lines 9898–9924) should show: ``` │ Auto-discover: svn-revision, svn-file │ │ Manual link: fs-mount │ ``` ## Actual Behavior (from code) `_print_type_panel()` shows: ```python f"[bold]Parent Types:[/bold] {', '.join(spec.parent_types) or '(none)'}\n" f"[bold]Child Types:[/bold] {', '.join(spec.child_types) or '(none)'}" ``` This is a flat list of all child types with no distinction between: - **Auto-discovered** child types (created automatically when parent is registered) - **Manual link** child types (must be explicitly linked via `agents resource link-child`) The `_resource_type_dict()` helper also uses flat `child_types` list instead of the spec-required `child_types` array with `auto`/`manual_link` flags. ## Code Location - `src/cleveragents/cli/commands/resource.py` — `_print_type_panel()` and `_resource_type_dict()` - `src/cleveragents/domain/models/core/resource_type.py` — `ResourceTypeSpec` — has `auto_discovery` dict but no per-child-type `auto`/`manual_link` flags - `src/cleveragents/application/services/_resource_registry_data.py` — built-in type definitions have `auto_discovery.rules` with type patterns, but this isn't surfaced in the CLI output ## Steps to Reproduce ```bash agents resource type show git-checkout --format json ``` Expected: `child_types` array with `auto`/`manual_link` flags per child type Actual: flat `child_types` list with no auto/manual distinction ```bash agents resource type show git-checkout ``` Expected: "Auto-discover: git, fs-directory" and "Manual link: (none)" in panel Actual: "Child Types: git, fs-directory, fs-file, devcontainer-instance, devcontainer-file" (flat list) --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.5.0 milestone 2026-04-08 20:17:53 +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#4832
No description provided.