UAT: agents plan tree missing spec-required "Tree Summary" panel — Nodes count and depth not displayed #2546

Open
opened 2026-04-03 18:51:27 +00:00 by freemo · 2 comments
Owner

Bug Report

What was tested

The agents plan tree rich output vs the specification.

Expected behavior (from spec)

Per docs/specification.md §agents plan tree, after the decision tree visualization, a "Tree Summary" panel must be shown:

╭─ Tree Summary ─────────────╮
│ Nodes: 9                   │
│ ...                        │
╰────────────────────────────╯

The spec shows this panel following the tree visualization, providing a count of nodes and other summary information.

Actual behavior (from code)

In src/cleveragents/cli/commands/plan.py (function tree_decisions_cmd, lines 3610–3737), the command renders the decision tree using Rich's Tree widget but never outputs a "Tree Summary" panel. The function ends after printing the tree:

console.print(rich_tree)
# No summary panel follows

For JSON/YAML formats, the function returns the raw tree data without a summary.

Impact

  • Users cannot quickly see the total number of decision nodes in a plan's tree
  • The output is incomplete compared to the spec
  • Particularly useful for large plans with many decisions where a node count provides immediate context

Code location

src/cleveragents/cli/commands/plan.py, function tree_decisions_cmd, lines ~3610–3737.

Fix

After rendering the tree, add a summary panel:

node_count = len([d for d in decisions if not d.is_superseded or show_superseded])
console.print(Panel(
    f"[bold]Nodes:[/bold] {node_count}",
    title="Tree Summary",
    expand=False,
))

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

## Bug Report ### What was tested The `agents plan tree` rich output vs the specification. ### Expected behavior (from spec) Per `docs/specification.md` §`agents plan tree`, after the decision tree visualization, a "Tree Summary" panel must be shown: ``` ╭─ Tree Summary ─────────────╮ │ Nodes: 9 │ │ ... │ ╰────────────────────────────╯ ``` The spec shows this panel following the tree visualization, providing a count of nodes and other summary information. ### Actual behavior (from code) In `src/cleveragents/cli/commands/plan.py` (function `tree_decisions_cmd`, lines 3610–3737), the command renders the decision tree using Rich's `Tree` widget but **never outputs a "Tree Summary" panel**. The function ends after printing the tree: ```python console.print(rich_tree) # No summary panel follows ``` For JSON/YAML formats, the function returns the raw tree data without a summary. ### Impact - Users cannot quickly see the total number of decision nodes in a plan's tree - The output is incomplete compared to the spec - Particularly useful for large plans with many decisions where a node count provides immediate context ### Code location `src/cleveragents/cli/commands/plan.py`, function `tree_decisions_cmd`, lines ~3610–3737. ### Fix After rendering the tree, add a summary panel: ```python node_count = len([d for d in decisions if not d.is_superseded or show_superseded]) console.print(Panel( f"[bold]Nodes:[/bold] {node_count}", title="Tree Summary", expand=False, )) ``` --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: ca-uat-tester
freemo added this to the v3.5.0 milestone 2026-04-05 05:06:34 +00:00
Author
Owner

This issue has been moved to the backlog as part of an aggressive grooming of the v3.5.0 milestone. It has been deemed non-critical for the minimal viability of the milestone and will be addressed in a future release.

This issue has been moved to the backlog as part of an aggressive grooming of the v3.5.0 milestone. It has been deemed non-critical for the minimal viability of the milestone and will be addressed in a future release.
Author
Owner

This issue has been moved to the backlog as part of an aggressive grooming of the v3.5.0 milestone. It has been deemed non-critical for the minimal viability of the milestone and will be addressed in a future release.

This issue has been moved to the backlog as part of an aggressive grooming of the v3.5.0 milestone. It has been deemed non-critical for the minimal viability of the milestone and will be addressed in a future release.
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#2546
No description provided.