UAT: [FA-20] agents config get Rich output missing "Origin" panel and resolution chain always shown (not just with --verbose) #7808

Open
opened 2026-04-12 04:14:01 +00:00 by HAL9000 · 4 comments
Owner

What Was Tested

Code analysis of src/cleveragents/cli/commands/config.py — the config_get command Rich output.

Expected Behavior (from spec)

Per docs/specification.md §agents config get, the Rich output should show three panels (without requiring --verbose):

╭─ Config ──────────────────────────╮
│ Key: core.automation-profile      │
│ Value: trusted                    │
│ Source: config                    │
│ Overridden: no                    │
│ Type: string                      │
╰───────────────────────────────────╯

╭─ Origin ──────────────────────────╮
│ File: ~/.cleveragents/config.toml │
│ Line: 8                           │
│ Default: supervised               │
╰───────────────────────────────────╯

╭─ Resolution Chain ──────────────╮
│ 1. CLI flag: (not set)          │
│ 2. Env var: (not set)           │
│ 3. Config file: trusted         │
│ 4. Default: supervised          │
│ Winner: config file (level 3)   │
╰─────────────────────────────────╯

✓ OK Config read

Actual Behavior

The implementation at config.py lines 347-367 only renders one panel ("Configuration Value") and only shows the resolution chain when --verbose is passed:

console.print(
    Panel(
        f"[bold]Key:[/bold] {normalized}\n"
        f"[bold]Value:[/bold] {resolved.value}\n"
        f"[bold]Source:[/bold] {resolved.source.value}\n"
        "[bold]Type:[/bold] " + ...,
        title="Configuration Value",
        expand=False,
    )
)

if verbose and resolved.chain:  # Only shown with --verbose
    console.print("\n[bold]Resolution chain[/bold]...")

Specific Divergences

  1. Missing "Origin" panel: spec requires always showing File, Line, and Default fields
  2. Resolution chain requires --verbose: spec shows resolution chain in standard output without --verbose
  3. Missing Overridden field: spec shows Overridden: no in the Config panel
  4. Panel title mismatch: implementation uses "Configuration Value" but spec shows "Config"

Steps to Reproduce

agents config get core.automation-profile

Expected: Three panels (Config, Origin, Resolution Chain) without needing --verbose.
Actual: One panel (Configuration Value) only; resolution chain only shown with --verbose.

Code Location

src/cleveragents/cli/commands/config.py lines 347-367 (config_get function)


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

## What Was Tested Code analysis of `src/cleveragents/cli/commands/config.py` — the `config_get` command Rich output. ## Expected Behavior (from spec) Per `docs/specification.md` §agents config get, the Rich output should show **three panels** (without requiring `--verbose`): ``` ╭─ Config ──────────────────────────╮ │ Key: core.automation-profile │ │ Value: trusted │ │ Source: config │ │ Overridden: no │ │ Type: string │ ╰───────────────────────────────────╯ ╭─ Origin ──────────────────────────╮ │ File: ~/.cleveragents/config.toml │ │ Line: 8 │ │ Default: supervised │ ╰───────────────────────────────────╯ ╭─ Resolution Chain ──────────────╮ │ 1. CLI flag: (not set) │ │ 2. Env var: (not set) │ │ 3. Config file: trusted │ │ 4. Default: supervised │ │ Winner: config file (level 3) │ ╰─────────────────────────────────╯ ✓ OK Config read ``` ## Actual Behavior The implementation at `config.py` lines 347-367 only renders **one panel** ("Configuration Value") and only shows the resolution chain when `--verbose` is passed: ```python console.print( Panel( f"[bold]Key:[/bold] {normalized}\n" f"[bold]Value:[/bold] {resolved.value}\n" f"[bold]Source:[/bold] {resolved.source.value}\n" "[bold]Type:[/bold] " + ..., title="Configuration Value", expand=False, ) ) if verbose and resolved.chain: # Only shown with --verbose console.print("\n[bold]Resolution chain[/bold]...") ``` ## Specific Divergences 1. **Missing "Origin" panel**: spec requires always showing `File`, `Line`, and `Default` fields 2. **Resolution chain requires `--verbose`**: spec shows resolution chain in standard output without `--verbose` 3. **Missing `Overridden` field**: spec shows `Overridden: no` in the Config panel 4. **Panel title mismatch**: implementation uses "Configuration Value" but spec shows "Config" ## Steps to Reproduce ```bash agents config get core.automation-profile ``` Expected: Three panels (Config, Origin, Resolution Chain) without needing `--verbose`. Actual: One panel (Configuration Value) only; resolution chain only shown with `--verbose`. ## Code Location `src/cleveragents/cli/commands/config.py` lines 347-367 (`config_get` function) --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-12 04:20:17 +00:00
Author
Owner

Label compliance fix applied:

  • Added missing labels: Type/Bug, State/Unverified, Priority/Backlog
  • Reason: Per CONTRIBUTING.md, all issues require State/, Type/, and Priority/* labels

Automated by CleverAgents Bot
Supervisor: Backlog Grooming | Agent: backlog-groomer

Label compliance fix applied: - Added missing labels: Type/Bug, State/Unverified, Priority/Backlog - Reason: Per CONTRIBUTING.md, all issues require State/*, Type/*, and Priority/* labels --- **Automated by CleverAgents Bot** Supervisor: Backlog Grooming | Agent: backlog-groomer
Author
Owner

Verified — UAT bug: config get rich output missing panels. MoSCoW: Should-have. Priority: Medium.


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

✅ **Verified** — UAT bug: config get rich output missing panels. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: config get rich output missing panels. MoSCoW: Should-have. Priority: Medium.


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

✅ **Verified** — UAT bug: config get rich output missing panels. MoSCoW: Should-have. Priority: Medium. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: config get rich output missing panels. MoSCoW: Should-have. Priority: Medium.


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

✅ **Verified** — UAT bug: config get rich output missing panels. MoSCoW: Should-have. Priority: Medium. --- **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#7808
No description provided.