[BUG] agents action archive output missing Impact and History panels #9127

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

Metadata

  • Commit Message: fix(cli): add Impact and History panels to action archive output
  • Branch: fix/action-archive-output-panels

Background and Context

The agents action archive CLI command is implemented in src/cleveragents/cli/commands/action.py. The spec (docs/specification.md §agents action archive, line 16659) defines a rich output format with three distinct panels.

Current Behavior

When agents action archive <ACTION_NAME> is run, the implementation (action.py line 462) only outputs a single line:

✓ Action archived: {action.namespaced_name}

No panels are rendered. The archive command in action.py only prints a simple confirmation message.

Expected Behavior

Per docs/specification.md (§agents action archive), the command should render three panels:

  1. "Action Archived" panel containing: Name, State transition (available → archived), Archived timestamp
  2. "Impact" panel containing: Availability (hidden from list), Existing Plans (unchanged), Active Plans affected count
  3. "History" panel containing: Total Plans, Completed, Failed, Last Used

Example from spec:

╭─ Action Archived ───────────╮
│ Name: local/old-action      │
│ State: available → archived │
│ Archived: 2026-02-08 12:22  │
╰─────────────────────────────╯

╭─ Impact ───────────────────────╮
│ Availability: hidden from list │
│ Existing Plans: unchanged      │
│ Active Plans: 0 affected       │
╰────────────────────────────────╯

╭─ History ─────────────────╮
│ Total Plans: 5            │
│ Completed: 4              │
│ Failed: 1                 │
│ Last Used: 2026-02-06     │
╰───────────────────────────╯

✓ OK Action archived

Steps to Reproduce

  1. Create an action: agents action create --config ./actions/test.yaml
  2. Archive it: agents action archive local/test-action
  3. Observe: Only a single confirmation line is shown, no panels

Acceptance Criteria Impact

  • Violates the output format specification for agents action archive (docs/specification.md §agents action archive)
  • Users cannot see the impact on existing plans or the action's usage history after archiving

Subtasks

  • Update archive command in src/cleveragents/cli/commands/action.py to render "Action Archived" panel with Name, State transition, and Archived timestamp
  • Add "Impact" panel showing Availability, Existing Plans, and Active Plans affected
  • Add "History" panel showing Total Plans, Completed, Failed, Last Used (requires service layer support)
  • Update non-rich format output to include impact and history data
  • Tests (Behave): Add scenarios for archive output format with panels
  • Run nox (all default sessions), 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.

Feature Area: Action Templates & LSP Integration
Spec Reference: docs/specification.md — §agents action archive (line 16659)
Automated by CleverAgents Bot
Supervisor: UAT Test Pool | Agent: AUTO-UAT-10

## Metadata - **Commit Message**: `fix(cli): add Impact and History panels to action archive output` - **Branch**: `fix/action-archive-output-panels` ## Background and Context The `agents action archive` CLI command is implemented in `src/cleveragents/cli/commands/action.py`. The spec (docs/specification.md §agents action archive, line 16659) defines a rich output format with three distinct panels. ## Current Behavior When `agents action archive <ACTION_NAME>` is run, the implementation (action.py line 462) only outputs a single line: ``` ✓ Action archived: {action.namespaced_name} ``` No panels are rendered. The `archive` command in `action.py` only prints a simple confirmation message. ## Expected Behavior Per `docs/specification.md` (§agents action archive), the command should render three panels: 1. **"Action Archived"** panel containing: Name, State transition (`available → archived`), Archived timestamp 2. **"Impact"** panel containing: Availability (hidden from list), Existing Plans (unchanged), Active Plans affected count 3. **"History"** panel containing: Total Plans, Completed, Failed, Last Used Example from spec: ``` ╭─ Action Archived ───────────╮ │ Name: local/old-action │ │ State: available → archived │ │ Archived: 2026-02-08 12:22 │ ╰─────────────────────────────╯ ╭─ Impact ───────────────────────╮ │ Availability: hidden from list │ │ Existing Plans: unchanged │ │ Active Plans: 0 affected │ ╰────────────────────────────────╯ ╭─ History ─────────────────╮ │ Total Plans: 5 │ │ Completed: 4 │ │ Failed: 1 │ │ Last Used: 2026-02-06 │ ╰───────────────────────────╯ ✓ OK Action archived ``` ## Steps to Reproduce 1. Create an action: `agents action create --config ./actions/test.yaml` 2. Archive it: `agents action archive local/test-action` 3. Observe: Only a single confirmation line is shown, no panels ## Acceptance Criteria Impact - Violates the output format specification for `agents action archive` (docs/specification.md §agents action archive) - Users cannot see the impact on existing plans or the action's usage history after archiving ## Subtasks - [ ] Update `archive` command in `src/cleveragents/cli/commands/action.py` to render "Action Archived" panel with Name, State transition, and Archived timestamp - [ ] Add "Impact" panel showing Availability, Existing Plans, and Active Plans affected - [ ] Add "History" panel showing Total Plans, Completed, Failed, Last Used (requires service layer support) - [ ] Update non-rich format output to include impact and history data - [ ] Tests (Behave): Add scenarios for archive output format with panels - [ ] Run `nox` (all default sessions), 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. --- **Feature Area:** Action Templates & LSP Integration **Spec Reference:** docs/specification.md — §agents action archive (line 16659) **Automated by CleverAgents Bot** Supervisor: UAT Test Pool | Agent: AUTO-UAT-10
HAL9000 added this to the v3.2.0 milestone 2026-04-14 08:23:05 +00:00
Author
Owner

🔍 Triage Decision

Status: VERIFIED

MoSCoW: Must have
Priority: High
Milestone: v3.2.0

Reasoning: The agents action archive output is missing required Impact and History panels per the CLI output spec; this is a spec compliance bug that must be fixed in v3.2.0.


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

## 🔍 Triage Decision **Status:** ✅ VERIFIED **MoSCoW:** Must have **Priority:** High **Milestone:** v3.2.0 **Reasoning:** The `agents action archive` output is missing required Impact and History panels per the CLI output spec; this is a spec compliance bug that must be fixed in v3.2.0. --- **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.

Dependencies

No dependencies set.

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