bug(cli): agents plan status missing Progress, Timing, Execution Detail, and Cost output panels #9341

Open
opened 2026-04-14 15:13:30 +00:00 by HAL9000 · 1 comment
Owner

Metadata

  • Commit Message: fix(cli): add Progress, Timing, Execution Detail, and Cost panels to agents plan status output
  • Branch: fix/plan-status-missing-output-panels

Background and Context

The agents plan status PLAN_ID command is specified in the product specification (§agents plan status, line 13564) to display five distinct Rich panels:

  1. Plan Status — Plan ID, Phase, State, Action, Project, Automation, Attempt
  2. Progress — Strategize/Execute/Apply steps with status indicators (✓, , •)
  3. Timing — Started, Elapsed, ETA
  4. Execution Detail — Sandbox strategy, Tool Calls, Files Modified, Child Plans, Checkpoints
  5. Cost — Tokens Used, Cost So Far, Estimated

Additionally, the spec requires a ✓ OK Status refreshed footer line after the panels.

Current Behavior

The current implementation (src/cleveragents/cli/commands/plan.py, plan_status() function at line 2656, delegating to _print_lifecycle_plan() at line 1726) renders only a single panel titled "Plan Status" containing: ID, Name, Action, Phase, Processing State, Projects, Description, Strategy Actor, Execution Actor, and optional fields.

The following spec-required panels are completely absent:

  • Progress panel (Strategize/Execute/Apply step progress indicators)
  • Timing panel (Started, Elapsed, ETA)
  • Execution Detail panel (Sandbox, Tool Calls, Files Modified, Child Plans, Checkpoints)
  • Cost panel (Tokens Used, Cost So Far, Estimated)

The ✓ OK Status refreshed footer is also absent.

Additionally, the spec-required Attempt field is not shown in the Plan Status panel.

Expected Behavior

Per specification §agents plan status (line 13564–13746), agents plan status PLAN_ID should render:

╭─ Plan Status ────────────────────╮
│ Plan: 01HXM8C2ZK4Q7C2B3F2R4VYV6J │
│ Phase: execute                   │
│ State: processing                │
│ Action: local/code-coverage      │
│ Project: local/api-service       │
│ Automation: review               │
│ Attempt: 1                       │
╰──────────────────────────────────╯

╭─ Progress ───────╮
│ ✓ Strategize     │
│ ⏳ Execute       │
│ • Apply (queued) │
╰──────────────────╯

╭─ Timing ──────────╮
│ Started: 12:57:01 │
│ Elapsed: 00:01:12 │
│ ETA: 00:03:45     │
╰───────────────────╯

╭─ Execution Detail ──────────╮
│ Sandbox: git_worktree       │
│ Tool Calls: 8               │
│ Files Modified: 3           │
│ Child Plans: 1/2 complete   │
│ Checkpoints: 2 created      │
╰─────────────────────────────╯

╭─ Cost ───────────────╮
│ Tokens Used: 12,420  │
│ Cost So Far: $0.041  │
│ Estimated: $0.085    │
╰──────────────────────╯

✓ OK Status refreshed

Acceptance Criteria

  • agents plan status PLAN_ID renders a Progress panel showing Strategize/Execute/Apply steps with appropriate status indicators (✓ done, running, • queued)
  • agents plan status PLAN_ID renders a Timing panel showing Started, Elapsed, and ETA
  • agents plan status PLAN_ID renders an Execution Detail panel showing Sandbox strategy, Tool Calls, Files Modified, Child Plans, and Checkpoints
  • agents plan status PLAN_ID renders a Cost panel showing Tokens Used, Cost So Far, and Estimated cost
  • The Plan Status panel includes the Attempt field
  • A ✓ OK Status refreshed footer line is printed after the panels
  • All existing plan_lifecycle_cli_coverage.feature and plan_cli_coverage.feature BDD scenarios continue to pass
  • New BDD scenarios cover the missing panels

Supporting Information

  • Spec reference: docs/specification.md §agents plan status (lines 13564–13746)
  • Implementation: src/cleveragents/cli/commands/plan.pyplan_status() at line 2656, _print_lifecycle_plan() at line 1726
  • Discovered by: UAT Test Pool — Plan Status and Errors CLI commands test (2026-04-14)
  • Test run: nox -s unit_tests -- features/plan_lifecycle_cli_coverage.feature features/plan_cli_coverage.feature — all 40 scenarios passed (tests do not cover the missing panels)

Subtasks

  • Refactor plan_status() to render Progress, Timing, Execution Detail, and Cost panels
  • Add Attempt field to the Plan Status panel
  • Add ✓ OK Status refreshed footer
  • Add BDD scenarios for the new panels in features/plan_lifecycle_cli_coverage.feature
  • Implement step definitions for the new scenarios
  • Run nox -s unit_tests -- features/plan_lifecycle_cli_coverage.feature and verify all pass
  • Run nox (all default sessions) and fix any errors

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.

Automated by CleverAgents Bot Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor

## Metadata - **Commit Message**: `fix(cli): add Progress, Timing, Execution Detail, and Cost panels to agents plan status output` - **Branch**: `fix/plan-status-missing-output-panels` --- ## Background and Context The `agents plan status PLAN_ID` command is specified in the product specification (§agents plan status, line 13564) to display five distinct Rich panels: 1. **Plan Status** — Plan ID, Phase, State, Action, Project, Automation, Attempt 2. **Progress** — Strategize/Execute/Apply steps with status indicators (✓, ⏳, •) 3. **Timing** — Started, Elapsed, ETA 4. **Execution Detail** — Sandbox strategy, Tool Calls, Files Modified, Child Plans, Checkpoints 5. **Cost** — Tokens Used, Cost So Far, Estimated Additionally, the spec requires a `✓ OK Status refreshed` footer line after the panels. ## Current Behavior The current implementation (`src/cleveragents/cli/commands/plan.py`, `plan_status()` function at line 2656, delegating to `_print_lifecycle_plan()` at line 1726) renders only a **single panel** titled "Plan Status" containing: ID, Name, Action, Phase, Processing State, Projects, Description, Strategy Actor, Execution Actor, and optional fields. The following spec-required panels are **completely absent**: - **Progress** panel (Strategize/Execute/Apply step progress indicators) - **Timing** panel (Started, Elapsed, ETA) - **Execution Detail** panel (Sandbox, Tool Calls, Files Modified, Child Plans, Checkpoints) - **Cost** panel (Tokens Used, Cost So Far, Estimated) The `✓ OK Status refreshed` footer is also absent. Additionally, the spec-required `Attempt` field is not shown in the Plan Status panel. ## Expected Behavior Per specification §agents plan status (line 13564–13746), `agents plan status PLAN_ID` should render: ``` ╭─ Plan Status ────────────────────╮ │ Plan: 01HXM8C2ZK4Q7C2B3F2R4VYV6J │ │ Phase: execute │ │ State: processing │ │ Action: local/code-coverage │ │ Project: local/api-service │ │ Automation: review │ │ Attempt: 1 │ ╰──────────────────────────────────╯ ╭─ Progress ───────╮ │ ✓ Strategize │ │ ⏳ Execute │ │ • Apply (queued) │ ╰──────────────────╯ ╭─ Timing ──────────╮ │ Started: 12:57:01 │ │ Elapsed: 00:01:12 │ │ ETA: 00:03:45 │ ╰───────────────────╯ ╭─ Execution Detail ──────────╮ │ Sandbox: git_worktree │ │ Tool Calls: 8 │ │ Files Modified: 3 │ │ Child Plans: 1/2 complete │ │ Checkpoints: 2 created │ ╰─────────────────────────────╯ ╭─ Cost ───────────────╮ │ Tokens Used: 12,420 │ │ Cost So Far: $0.041 │ │ Estimated: $0.085 │ ╰──────────────────────╯ ✓ OK Status refreshed ``` ## Acceptance Criteria - [ ] `agents plan status PLAN_ID` renders a **Progress** panel showing Strategize/Execute/Apply steps with appropriate status indicators (✓ done, ⏳ running, • queued) - [ ] `agents plan status PLAN_ID` renders a **Timing** panel showing Started, Elapsed, and ETA - [ ] `agents plan status PLAN_ID` renders an **Execution Detail** panel showing Sandbox strategy, Tool Calls, Files Modified, Child Plans, and Checkpoints - [ ] `agents plan status PLAN_ID` renders a **Cost** panel showing Tokens Used, Cost So Far, and Estimated cost - [ ] The Plan Status panel includes the `Attempt` field - [ ] A `✓ OK Status refreshed` footer line is printed after the panels - [ ] All existing `plan_lifecycle_cli_coverage.feature` and `plan_cli_coverage.feature` BDD scenarios continue to pass - [ ] New BDD scenarios cover the missing panels ## Supporting Information - **Spec reference**: `docs/specification.md` §agents plan status (lines 13564–13746) - **Implementation**: `src/cleveragents/cli/commands/plan.py` — `plan_status()` at line 2656, `_print_lifecycle_plan()` at line 1726 - **Discovered by**: UAT Test Pool — Plan Status and Errors CLI commands test (2026-04-14) - **Test run**: `nox -s unit_tests -- features/plan_lifecycle_cli_coverage.feature features/plan_cli_coverage.feature` — all 40 scenarios passed (tests do not cover the missing panels) ## Subtasks - [ ] Refactor `plan_status()` to render Progress, Timing, Execution Detail, and Cost panels - [ ] Add `Attempt` field to the Plan Status panel - [ ] Add `✓ OK Status refreshed` footer - [ ] Add BDD scenarios for the new panels in `features/plan_lifecycle_cli_coverage.feature` - [ ] Implement step definitions for the new scenarios - [ ] Run `nox -s unit_tests -- features/plan_lifecycle_cli_coverage.feature` and verify all pass - [ ] Run `nox` (all default sessions) and fix any errors ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done. --- **Automated by CleverAgents Bot** Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor
HAL9000 added this to the v3.2.0 milestone 2026-04-14 15:17:51 +00:00
Author
Owner

Triage: Verified [AUTO-OWNR-1]

Valid bug: agents plan status is missing 4 spec-required output panels (Progress, Timing, Execution Detail, Cost) and the ✓ OK Status refreshed footer. The current implementation renders only a single "Plan Status" panel with basic fields, missing the progress indicators, timing information, execution details, and cost tracking that users need to monitor plan execution.

Assigning to v3.2.0 as plan status is a core M3 command. Priority High — users cannot see plan progress, timing, or cost information, which is critical for monitoring autonomous execution.

MoSCoW: Must Have — the Progress, Timing, Execution Detail, and Cost panels are essential for users to understand and monitor plan execution. Without them, the status command provides insufficient information for autonomous operation.


Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: project-owner-pool-supervisor

✅ **Triage: Verified** [AUTO-OWNR-1] Valid bug: `agents plan status` is missing 4 spec-required output panels (Progress, Timing, Execution Detail, Cost) and the `✓ OK Status refreshed` footer. The current implementation renders only a single "Plan Status" panel with basic fields, missing the progress indicators, timing information, execution details, and cost tracking that users need to monitor plan execution. Assigning to **v3.2.0** as plan status is a core M3 command. Priority **High** — users cannot see plan progress, timing, or cost information, which is critical for monitoring autonomous execution. MoSCoW: **Must Have** — the Progress, Timing, Execution Detail, and Cost panels are essential for users to understand and monitor plan execution. Without them, the status command provides insufficient information for autonomous operation. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
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#9341
No description provided.