UAT: agents plan tree rich output missing Tree Summary, Child Plans, and Decision IDs panels #5183

Open
opened 2026-04-09 03:01:41 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area: Plan Lifecycle — agents plan tree CLI command
Severity: Medium — command is functional but output is incomplete vs spec
Source: src/cleveragents/cli/commands/plan.py lines 3994–4121


What Was Tested

Code-level analysis of the tree_decisions_cmd CLI command to verify that its rich output format matches the specification.

Expected Behavior (from spec §agents plan tree, lines 14322–14421)

The spec defines a rich output with four distinct panels after the decision tree:

  1. Decision Tree — the hierarchical tree of decisions (currently implemented)
  2. Tree Summary panel — showing:
    • Nodes: N
    • Depth: N
    • Child Plans: N+
    • Invariants: N
    • Superseded: N (hidden)
  3. Child Plans table — showing child plan IDs, phases, and states:
    ID          Phase    State
    ----------  -------  ---------
    01HXM9F1A   execute  processing
    01HXM9F2B   execute  queued
    
  4. Decision IDs (for correction) panel — listing decision IDs by type (Root, Invariant 1, Strategy, etc.) for easy use with agents plan correct

The spec also requires a final ✓ OK Decision tree rendered success message.

Actual Behavior

The implementation (lines 4075–4121) only renders the Rich Tree widget itself. None of the three additional panels (Tree Summary, Child Plans, Decision IDs) are rendered. The ✓ OK success message is also missing.

# Current implementation (lines 4075-4121) — only renders the tree:
rich_tree = RichTree(f"[bold]Plan {plan_id[:8]}...[/bold]")
# ... builds tree ...
console.print(rich_tree)
# END — no summary, no child plans, no decision IDs, no OK message

Code Location

  • src/cleveragents/cli/commands/plan.py lines 3994–4121 — tree_decisions_cmd() function
  • The build_decision_tree() helper at lines 3918–3991 builds the tree data but doesn't extract summary stats

Steps to Reproduce

  1. Create a plan with agents plan use <action> <project>
  2. Execute the plan: agents plan execute <plan_id>
  3. Run agents plan tree <plan_id>
  4. Observe: only the tree is shown, no Tree Summary, Child Plans, or Decision IDs panels

Impact

  • Users cannot quickly see how many nodes/invariants/child plans are in the tree
  • Users cannot easily find decision IDs for use with agents plan correct
  • Child plan status is not visible from the tree command
  • Downstream automation that parses the ✓ OK message will fail

Parent Epic

Part of #4958 (EPIC: Decision Recording & Tree Visualization)


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

## Bug Report **Feature Area:** Plan Lifecycle — `agents plan tree` CLI command **Severity:** Medium — command is functional but output is incomplete vs spec **Source:** `src/cleveragents/cli/commands/plan.py` lines 3994–4121 --- ## What Was Tested Code-level analysis of the `tree_decisions_cmd` CLI command to verify that its rich output format matches the specification. ## Expected Behavior (from spec §agents plan tree, lines 14322–14421) The spec defines a rich output with **four distinct panels** after the decision tree: 1. **Decision Tree** — the hierarchical tree of decisions (currently implemented) 2. **Tree Summary panel** — showing: - `Nodes: N` - `Depth: N` - `Child Plans: N+` - `Invariants: N` - `Superseded: N (hidden)` 3. **Child Plans table** — showing child plan IDs, phases, and states: ``` ID Phase State ---------- ------- --------- 01HXM9F1A execute processing 01HXM9F2B execute queued ``` 4. **Decision IDs (for correction) panel** — listing decision IDs by type (Root, Invariant 1, Strategy, etc.) for easy use with `agents plan correct` The spec also requires a final `✓ OK Decision tree rendered` success message. ## Actual Behavior The implementation (lines 4075–4121) only renders the Rich Tree widget itself. None of the three additional panels (Tree Summary, Child Plans, Decision IDs) are rendered. The `✓ OK` success message is also missing. ```python # Current implementation (lines 4075-4121) — only renders the tree: rich_tree = RichTree(f"[bold]Plan {plan_id[:8]}...[/bold]") # ... builds tree ... console.print(rich_tree) # END — no summary, no child plans, no decision IDs, no OK message ``` ## Code Location - `src/cleveragents/cli/commands/plan.py` lines 3994–4121 — `tree_decisions_cmd()` function - The `build_decision_tree()` helper at lines 3918–3991 builds the tree data but doesn't extract summary stats ## Steps to Reproduce 1. Create a plan with `agents plan use <action> <project>` 2. Execute the plan: `agents plan execute <plan_id>` 3. Run `agents plan tree <plan_id>` 4. Observe: only the tree is shown, no Tree Summary, Child Plans, or Decision IDs panels ## Impact - Users cannot quickly see how many nodes/invariants/child plans are in the tree - Users cannot easily find decision IDs for use with `agents plan correct` - Child plan status is not visible from the tree command - Downstream automation that parses the `✓ OK` message will fail ## Parent Epic Part of #4958 (EPIC: Decision Recording & Tree Visualization) --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 03:12:56 +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.

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