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

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

Bug Report

Feature Area

Invariants & Automation Profiles

Spec Reference

docs/specification.md lines 17909-17915 (Rich output for agents invariant add --global):

╭─ Invariant Added ──────────────────────────────────────────────────────╮
│ Invariant: All public APIs must maintain backward compatibility        │
│ Scope: global                                                          │
│ ID: inv_01HXM9A1B                                                      │
╰────────────────────────────────────────────────────────────────────────╯

✓ OK Invariant added

Expected Behavior

The rich output for agents invariant add should:

  1. Display a Rich Panel with title "Invariant Added"
  2. Show Invariant: (not Text:) as the field label
  3. Show ID: with the invariant ID
  4. Show Scope: field
  5. End with ✓ OK Invariant added footer

For project-scoped invariants, the panel should also include a Project: field. For plan-scoped, a Plan: field. For action-scoped, an Action: field.

Actual Behavior

Running agents invariant add --global "Test invariant" produces:

Invariant added: 01KNT0PZY22SJ8F1M2491AFMGE
  Text:   Test invariant
  Scope:  global
  Source: system

Differences:

  1. No Panel (no ╭─ Invariant Added ─╮ border)
  2. Field label is Text: instead of Invariant:
  3. Shows Source: system instead of ID: inv_XXXX
  4. No ✓ OK Invariant added footer
  5. ID format: raw ULID instead of inv_ prefixed format

Code Location

  • src/cleveragents/cli/commands/invariant.pyadd() command, rich output block (line ~130-140)

Severity

Backlog — Cosmetic/format issue. Functional behavior (invariant is created) 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 17909-17915 (Rich output for `agents invariant add --global`): ``` ╭─ Invariant Added ──────────────────────────────────────────────────────╮ │ Invariant: All public APIs must maintain backward compatibility │ │ Scope: global │ │ ID: inv_01HXM9A1B │ ╰────────────────────────────────────────────────────────────────────────╯ ✓ OK Invariant added ``` ### Expected Behavior The rich output for `agents invariant add` should: 1. Display a Rich Panel with title "Invariant Added" 2. Show `Invariant:` (not `Text:`) as the field label 3. Show `ID:` with the invariant ID 4. Show `Scope:` field 5. End with `✓ OK Invariant added` footer For project-scoped invariants, the panel should also include a `Project:` field. For plan-scoped, a `Plan:` field. For action-scoped, an `Action:` field. ### Actual Behavior Running `agents invariant add --global "Test invariant"` produces: ``` Invariant added: 01KNT0PZY22SJ8F1M2491AFMGE Text: Test invariant Scope: global Source: system ``` Differences: 1. No Panel (no `╭─ Invariant Added ─╮` border) 2. Field label is `Text:` instead of `Invariant:` 3. Shows `Source: system` instead of `ID: inv_XXXX` 4. No `✓ OK Invariant added` footer 5. ID format: raw ULID instead of `inv_` prefixed format ### Code Location - `src/cleveragents/cli/commands/invariant.py` — `add()` command, rich output block (line ~130-140) ### Severity **Backlog** — Cosmetic/format issue. Functional behavior (invariant is created) 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#6499
No description provided.