UAT: agents plan explain rich output is flat table instead of 6 spec-required named panels #6806

Open
opened 2026-04-10 02:11:22 +00:00 by HAL9000 · 0 comments
Owner

What Was Tested

agents plan explain [--show-context] [--show-reasoning] <DECISION_ID> rich output format (code analysis of src/cleveragents/cli/commands/plan.py, lines 4244–4257).

Expected Behavior (from Spec §agents plan explain, lines 14564–14610)

The rich output must render 6 named panels (some conditional):

  1. Decision — ID, Type, Question, Chosen, Confidence, Plan ID, Sequence ("N of M"), Created
  2. Alternatives Considered — numbered list with chosen indicator
  3. Impact — Downstream Decisions, Downstream Child Plans, Artifacts Produced, Correction Impact
  4. Context Snapshot — (when --show-context) context items + Hot Context Hash
  5. Rationale — (when --show-reasoning) rationale text
  6. Correctionagents plan correct <DECISION_ID> --mode revert --guidance "..." hint

Plus a footer ✓ OK Decision explained.

Actual Behavior

The implementation at lines 4244–4257 renders a single generic Rich Table (title: "Decision Details") with key-value rows showing raw dict data, wrapped in one Panel. No individual named panels, no structured impact, no correction hint, no alternatives as a numbered list.

# plan.py lines 4244–4257 — flat table, not spec panels
table = Table(title="Decision Details", show_header=False, expand=False)
table.add_column("Field", style="bold")
table.add_column("Value")
for key, val in data.items():
    ...
    table.add_row(key, ...)
console.print(Panel(table, expand=False))

This does not match the spec's multi-panel layout at all. Specifically missing:

  • Named Decision panel with specific field ordering/labelling
  • Named Alternatives Considered panel with numbered list + "(chosen)" marker
  • Named Impact panel with downstream metrics and correction impact assessment
  • Named Correction panel with a ready-to-use correction command hint
  • Panel title "Context Snapshot" (when --show-context) vs raw dict dump
  • Panel title "Rationale" (when --show-reasoning) vs raw dump

Steps to Reproduce

  1. Review src/cleveragents/cli/commands/plan.py lines 4240–4257
  2. Compare to spec §agents plan explain rich output example (lines 14564–14610)

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

## What Was Tested `agents plan explain [--show-context] [--show-reasoning] <DECISION_ID>` rich output format (code analysis of `src/cleveragents/cli/commands/plan.py`, lines 4244–4257). ## Expected Behavior (from Spec §agents plan explain, lines 14564–14610) The rich output must render **6 named panels** (some conditional): 1. **`Decision`** — ID, Type, Question, Chosen, Confidence, Plan ID, Sequence ("N of M"), Created 2. **`Alternatives Considered`** — numbered list with chosen indicator 3. **`Impact`** — Downstream Decisions, Downstream Child Plans, Artifacts Produced, Correction Impact 4. **`Context Snapshot`** — (when `--show-context`) context items + Hot Context Hash 5. **`Rationale`** — (when `--show-reasoning`) rationale text 6. **`Correction`** — `agents plan correct <DECISION_ID> --mode revert --guidance "..."` hint Plus a footer `✓ OK Decision explained`. ## Actual Behavior The implementation at lines 4244–4257 renders a **single generic Rich `Table`** (title: "Decision Details") with key-value rows showing raw dict data, wrapped in one Panel. No individual named panels, no structured impact, no correction hint, no alternatives as a numbered list. ```python # plan.py lines 4244–4257 — flat table, not spec panels table = Table(title="Decision Details", show_header=False, expand=False) table.add_column("Field", style="bold") table.add_column("Value") for key, val in data.items(): ... table.add_row(key, ...) console.print(Panel(table, expand=False)) ``` This does not match the spec's multi-panel layout at all. Specifically missing: - Named `Decision` panel with specific field ordering/labelling - Named `Alternatives Considered` panel with numbered list + "(chosen)" marker - Named `Impact` panel with downstream metrics and correction impact assessment - Named `Correction` panel with a ready-to-use correction command hint - Panel title "Context Snapshot" (when `--show-context`) vs raw dict dump - Panel title "Rationale" (when `--show-reasoning`) vs raw dump ## Steps to Reproduce 1. Review `src/cleveragents/cli/commands/plan.py` lines 4240–4257 2. Compare to spec §agents plan explain rich output example (lines 14564–14610) --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.4.0 milestone 2026-04-10 02:12:31 +00:00
HAL9000 self-assigned this 2026-04-10 06:06:40 +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#6806
No description provided.