UAT: agents resource type show output missing "Source" field and "Checkpointable" in sandbox section #5631

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

Bug Report

Feature Area: Resource Types — agents resource type show CLI output

Severity: Non-critical (backlog)

What Was Tested

Code-level analysis of src/cleveragents/cli/commands/resource.py (_print_type_panel function) against the specification's documented output format for agents resource type show.

Expected Behavior (from spec §agents resource type show)

The spec shows the following output for agents resource type show git-checkout:

╭─ Resource Type ──────────────────────────────────────────────────────╮
│ Name: git-checkout                                                   │
│ Source: built-in                                                     │
│ Description: A locally checked-out git repository with worktree      │
│ Physical/Virtual: physical                                           │
│ User Addable: yes                                                    │
╰──────────────────────────────────────────────────────────────────────╯

╭─ CLI Arguments (agents resource add git-checkout) ─────────────────╮
│ Argument    Required  Type    Description                          │
│ ──────────  ────────  ──────  ──────────────────────────────       │
│ --path      yes       path    Local checkout directory             │
│ --branch    no        string  Default branch (default: main)       │
╰────────────────────────────────────────────────────────────────────╯

╭─ Parent Types ───────────────╮
│ Allowed: (any, top-level OK) │
╰──────────────────────────────╯

╭─ Child Types ────────────────────────────────────────────────────╮
│ Type           Auto  Manual Link  Description                    │
│ ─────────────  ────  ───────────  ──────────────────────────     │
│ git            yes   no           Repo object DB and history     │
│ fs-directory   yes   no           Worktree root directory        │
╰──────────────────────────────────────────────────────────────────╯

╭─ Sandbox ──────────────────────╮
│ Strategy: git_worktree         │
│ Checkpointable: yes            │
│ Handler: GitCheckoutHandler    │
╰────────────────────────────────╯

✓ OK Resource type details loaded

Key elements missing from implementation:

  1. "Source: built-in" field in the Resource Type panel (distinguishes built-in vs custom types)
  2. "Checkpointable: yes/no" in the Sandbox panel (from capabilities.checkpoint)
  3. Separate panels for CLI Arguments, Parent Types, Child Types, Sandbox (implementation uses a single combined panel)
  4. "✓ OK Resource type details loaded" success message
  5. CLI Arguments panel shows the type column for each argument

Actual Behavior

The _print_type_panel function in src/cleveragents/cli/commands/resource.py (lines 448-501) renders a single panel with all information combined, and is missing:

  • The "Source: built-in" / "Source: custom" field
  • The "Checkpointable: yes/no" field in the sandbox section
  • The "✓ OK Resource type details loaded" success message
  • Separate panels for different sections

Code Location

  • src/cleveragents/cli/commands/resource.py lines 448-501 (_print_type_panel function)
  • src/cleveragents/cli/commands/resource.py lines 407-445 (type_show function)

Fix Required

  1. Add "Source: built-in" or "Source: custom" field to the Resource Type panel (based on spec.built_in).
  2. Add "Checkpointable: yes/no" to the Sandbox section (from spec.capabilities.get("checkpoint", False)).
  3. Add "✓ OK Resource type details loaded" success message after the panel.
  4. Optionally refactor to use separate panels matching the spec layout.

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

## Bug Report **Feature Area**: Resource Types — `agents resource type show` CLI output **Severity**: Non-critical (backlog) ### What Was Tested Code-level analysis of `src/cleveragents/cli/commands/resource.py` (`_print_type_panel` function) against the specification's documented output format for `agents resource type show`. ### Expected Behavior (from spec §agents resource type show) The spec shows the following output for `agents resource type show git-checkout`: ``` ╭─ Resource Type ──────────────────────────────────────────────────────╮ │ Name: git-checkout │ │ Source: built-in │ │ Description: A locally checked-out git repository with worktree │ │ Physical/Virtual: physical │ │ User Addable: yes │ ╰──────────────────────────────────────────────────────────────────────╯ ╭─ CLI Arguments (agents resource add git-checkout) ─────────────────╮ │ Argument Required Type Description │ │ ────────── ──────── ────── ────────────────────────────── │ │ --path yes path Local checkout directory │ │ --branch no string Default branch (default: main) │ ╰────────────────────────────────────────────────────────────────────╯ ╭─ Parent Types ───────────────╮ │ Allowed: (any, top-level OK) │ ╰──────────────────────────────╯ ╭─ Child Types ────────────────────────────────────────────────────╮ │ Type Auto Manual Link Description │ │ ───────────── ──── ─────────── ────────────────────────── │ │ git yes no Repo object DB and history │ │ fs-directory yes no Worktree root directory │ ╰──────────────────────────────────────────────────────────────────╯ ╭─ Sandbox ──────────────────────╮ │ Strategy: git_worktree │ │ Checkpointable: yes │ │ Handler: GitCheckoutHandler │ ╰────────────────────────────────╯ ✓ OK Resource type details loaded ``` Key elements missing from implementation: 1. **"Source: built-in"** field in the Resource Type panel (distinguishes built-in vs custom types) 2. **"Checkpointable: yes/no"** in the Sandbox panel (from `capabilities.checkpoint`) 3. **Separate panels** for CLI Arguments, Parent Types, Child Types, Sandbox (implementation uses a single combined panel) 4. **"✓ OK Resource type details loaded"** success message 5. **CLI Arguments panel** shows the type column for each argument ### Actual Behavior The `_print_type_panel` function in `src/cleveragents/cli/commands/resource.py` (lines 448-501) renders a **single panel** with all information combined, and is missing: - The "Source: built-in" / "Source: custom" field - The "Checkpointable: yes/no" field in the sandbox section - The "✓ OK Resource type details loaded" success message - Separate panels for different sections ### Code Location - `src/cleveragents/cli/commands/resource.py` lines 448-501 (`_print_type_panel` function) - `src/cleveragents/cli/commands/resource.py` lines 407-445 (`type_show` function) ### Fix Required 1. Add "Source: built-in" or "Source: custom" field to the Resource Type panel (based on `spec.built_in`). 2. Add "Checkpointable: yes/no" to the Sandbox section (from `spec.capabilities.get("checkpoint", False)`). 3. Add "✓ OK Resource type details loaded" success message after the panel. 4. Optionally refactor to use separate panels matching the spec layout. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 08:05:56 +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
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#5631
No description provided.