UAT: agents invariant remove rich output uses plain text instead of spec-required Panel format with "Invariant Removed" title and "✓ OK" footer #6504

Open
opened 2026-04-09 21:11:18 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Feature Area

Invariants & Automation Profiles

Spec Reference

docs/specification.md lines 18221-18227 (Rich output for agents invariant remove):

╭─ Invariant Removed ──────────────────────────────────────────────╮
│ Removed: Payment processing must be idempotent                   │
│ Scope: global                                                    │
│ ID: inv_01HXM9A1C                                                │
╰──────────────────────────────────────────────────────────────────╯

✓ OK Invariant removed

Also, the spec shows the confirmation prompt includes the invariant text and scope:

Remove invariant inv_01HXM9A1C ("Payment processing must be idempotent", scope: global)? [y/N]: y

Expected Behavior

The rich output for agents invariant remove should:

  1. Display a Rich Panel with title "Invariant Removed"
  2. Show Removed: field with the invariant text
  3. Show Scope: field
  4. Show ID: field with inv_ prefixed format
  5. End with ✓ OK Invariant removed footer
  6. Confirmation prompt should include the invariant text and scope

Actual Behavior

Running agents invariant remove <ID> produces:

Invariant removed: <raw-ULID>

Differences:

  1. No Panel (no ╭─ Invariant Removed ─╮ border)
  2. No Removed: field showing the invariant text
  3. No Scope: field
  4. No ✓ OK Invariant removed footer
  5. Confirmation prompt is just Remove invariant <ID>? without text/scope info

Code Location

  • src/cleveragents/cli/commands/invariant.pyremove() command, rich output block (line ~240-255)

Severity

Backlog — Cosmetic/format issue. Functional behavior (invariant is removed) works correctly.


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

## Bug Report ### Feature Area Invariants & Automation Profiles ### Spec Reference `docs/specification.md` lines 18221-18227 (Rich output for `agents invariant remove`): ``` ╭─ Invariant Removed ──────────────────────────────────────────────╮ │ Removed: Payment processing must be idempotent │ │ Scope: global │ │ ID: inv_01HXM9A1C │ ╰──────────────────────────────────────────────────────────────────╯ ✓ OK Invariant removed ``` Also, the spec shows the confirmation prompt includes the invariant text and scope: ``` Remove invariant inv_01HXM9A1C ("Payment processing must be idempotent", scope: global)? [y/N]: y ``` ### Expected Behavior The rich output for `agents invariant remove` should: 1. Display a Rich Panel with title "Invariant Removed" 2. Show `Removed:` field with the invariant text 3. Show `Scope:` field 4. Show `ID:` field with `inv_` prefixed format 5. End with `✓ OK Invariant removed` footer 6. Confirmation prompt should include the invariant text and scope ### Actual Behavior Running `agents invariant remove <ID>` produces: ``` Invariant removed: <raw-ULID> ``` Differences: 1. No Panel (no `╭─ Invariant Removed ─╮` border) 2. No `Removed:` field showing the invariant text 3. No `Scope:` field 4. No `✓ OK Invariant removed` footer 5. Confirmation prompt is just `Remove invariant <ID>?` without text/scope info ### Code Location - `src/cleveragents/cli/commands/invariant.py` — `remove()` command, rich output block (line ~240-255) ### Severity **Backlog** — Cosmetic/format issue. Functional behavior (invariant is removed) works correctly. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
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#6504
No description provided.