[BUG] automation-profile add rich output format does not match specification #9314

Open
opened 2026-04-14 14:40:59 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit Message: fix(cli): align automation-profile add rich output with spec
  • Branch: fix/automation-profile-add-output

Background and Context

The agents automation-profile add command's rich output format does not match the specification. The specification (docs/specification.md §agents automation-profile add) defines a specific two-panel layout for the rich output: a "Profile Registered" panel showing Name, Description, and Created timestamp, followed by a "Confidence Thresholds" panel showing all 11 thresholds plus 3 safety flags in a flat list.

The current implementation uses a single panel with grouped sections (Phase Transitions, Decision Automation, Self-Repair, Execution Controls) that does not match the spec's flat "Confidence Thresholds" layout.

Current Behavior

Running agents automation-profile add --config ./profile.yaml produces a single Rich panel titled "Profile Added" (or "Profile Updated") with grouped sections:

╭─ Profile Added ──────────────────────────────────────────────────╮
│ Name: local/careful-auto                                         │
│ Description: ...                                                 │
│ Source: custom                                                   │
│ Schema Version: 1.0                                              │
│                                                                  │
│ Phase Transitions (thresholds):                                  │
│   decompose_task: 0.0                                            │
│   create_tool: 0.0                                               │
│   select_tool: 1.0                                               │
│                                                                  │
│ Decision Automation (thresholds):                                │
│   edit_code: 0.0                                                 │
│   execute_command: 0.0                                           │
│                                                                  │
│ Self-Repair (thresholds):                                        │
│   ...                                                            │
│                                                                  │
│ Execution Controls (thresholds):                                 │
│   ...                                                            │
╰──────────────────────────────────────────────────────────────────╯

Code location: src/cleveragents/cli/commands/automation_profile.py _print_profile() function (lines 122-174).

Expected Behavior

Per the specification (§agents automation-profile add, Rich output example), the output should be two separate panels:

╭─ Profile Registered ─────────────────────────────────────────────╮
│ Name: local/careful-auto                                         │
│ Description: Autonomous execution with mandatory sandbox         │
│              and manual apply                                    │
│ Created: 2026-02-08 14:30                                        │
╰──────────────────────────────────────────────────────────────────╯

╭─ Confidence Thresholds ────────────────╮
│ decompose_task: 0.0                   │
│ create_tool: 0.0                      │
│ select_tool: 1.0                      │
│ edit_code: 0.0                        │
│ execute_command: 0.0                  │
│ create_file: 0.0                      │
│ delete_content: 1.0                   │
│ access_network: 1.0                   │
│ install_dependency: 0.0               │
│ modify_config: 0.0                    │
│ approve_plan: 0.0                     │
│ require_sandbox: true                 │
│ require_checkpoints: true             │
│ allow_unsafe_tools: false             │
╰────────────────────────────────────────╯

✓ OK Profile registered

Key differences:

  1. Panel title should be "Profile Registered" (not "Profile Added")
  2. First panel should show only Name, Description, Created (not Source, Schema Version)
  3. Second panel "Confidence Thresholds" should list all thresholds flat (not grouped)
  4. Safety flags (require_sandbox, require_checkpoints, allow_unsafe_tools) should appear in the Confidence Thresholds panel
  5. A "✓ OK Profile registered" status line should follow

Acceptance Criteria

  • agents automation-profile add rich output shows "Profile Registered" panel with Name, Description, Created
  • A separate "Confidence Thresholds" panel shows all 11 thresholds plus 3 safety flags in a flat list
  • Panel titles match the specification
  • A "✓ OK Profile registered" status line is printed after the panels
  • BDD tests in features/automation_profile_cli.feature pass
  • All existing BDD tests continue to pass

Supporting Information

  • Spec reference: docs/specification.md §agents automation-profile add (Rich output example, lines ~16824-16848)
  • Code location: src/cleveragents/cli/commands/automation_profile.py _print_profile() function (lines 122-174) and add_profile() function (lines 177-262)
  • Discovered during UAT testing of Automation Profile CLI feature area

Subtasks

  • Update _print_profile() or create a separate _print_profile_add() function to match spec layout
  • Panel 1: "Profile Registered" with Name, Description, Created timestamp
  • Panel 2: "Confidence Thresholds" with all 11 thresholds + 3 safety flags flat
  • Add "✓ OK Profile registered" status line
  • Update BDD tests if needed
  • Run nox -s unit_tests -- features/automation_profile_cli.feature and verify pass
  • Run nox (all default sessions), fix any errors
  • Verify coverage >=97% via nox -s coverage_report

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 about the implementation.
  • 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


Automated by CleverAgents Bot
Agent: new-issue-creator

## Metadata - **Commit Message**: `fix(cli): align automation-profile add rich output with spec` - **Branch**: `fix/automation-profile-add-output` ## Background and Context The `agents automation-profile add` command's rich output format does not match the specification. The specification (docs/specification.md §agents automation-profile add) defines a specific two-panel layout for the rich output: a "Profile Registered" panel showing Name, Description, and Created timestamp, followed by a "Confidence Thresholds" panel showing all 11 thresholds plus 3 safety flags in a flat list. The current implementation uses a single panel with grouped sections (Phase Transitions, Decision Automation, Self-Repair, Execution Controls) that does not match the spec's flat "Confidence Thresholds" layout. ## Current Behavior Running `agents automation-profile add --config ./profile.yaml` produces a single Rich panel titled "Profile Added" (or "Profile Updated") with grouped sections: ``` ╭─ Profile Added ──────────────────────────────────────────────────╮ │ Name: local/careful-auto │ │ Description: ... │ │ Source: custom │ │ Schema Version: 1.0 │ │ │ │ Phase Transitions (thresholds): │ │ decompose_task: 0.0 │ │ create_tool: 0.0 │ │ select_tool: 1.0 │ │ │ │ Decision Automation (thresholds): │ │ edit_code: 0.0 │ │ execute_command: 0.0 │ │ │ │ Self-Repair (thresholds): │ │ ... │ │ │ │ Execution Controls (thresholds): │ │ ... │ ╰──────────────────────────────────────────────────────────────────╯ ``` Code location: `src/cleveragents/cli/commands/automation_profile.py` `_print_profile()` function (lines 122-174). ## Expected Behavior Per the specification (§agents automation-profile add, Rich output example), the output should be two separate panels: ``` ╭─ Profile Registered ─────────────────────────────────────────────╮ │ Name: local/careful-auto │ │ Description: Autonomous execution with mandatory sandbox │ │ and manual apply │ │ Created: 2026-02-08 14:30 │ ╰──────────────────────────────────────────────────────────────────╯ ╭─ Confidence Thresholds ────────────────╮ │ decompose_task: 0.0 │ │ create_tool: 0.0 │ │ select_tool: 1.0 │ │ edit_code: 0.0 │ │ execute_command: 0.0 │ │ create_file: 0.0 │ │ delete_content: 1.0 │ │ access_network: 1.0 │ │ install_dependency: 0.0 │ │ modify_config: 0.0 │ │ approve_plan: 0.0 │ │ require_sandbox: true │ │ require_checkpoints: true │ │ allow_unsafe_tools: false │ ╰────────────────────────────────────────╯ ✓ OK Profile registered ``` Key differences: 1. Panel title should be "Profile Registered" (not "Profile Added") 2. First panel should show only Name, Description, Created (not Source, Schema Version) 3. Second panel "Confidence Thresholds" should list all thresholds flat (not grouped) 4. Safety flags (require_sandbox, require_checkpoints, allow_unsafe_tools) should appear in the Confidence Thresholds panel 5. A "✓ OK Profile registered" status line should follow ## Acceptance Criteria - [ ] `agents automation-profile add` rich output shows "Profile Registered" panel with Name, Description, Created - [ ] A separate "Confidence Thresholds" panel shows all 11 thresholds plus 3 safety flags in a flat list - [ ] Panel titles match the specification - [ ] A "✓ OK Profile registered" status line is printed after the panels - [ ] BDD tests in `features/automation_profile_cli.feature` pass - [ ] All existing BDD tests continue to pass ## Supporting Information - Spec reference: `docs/specification.md` §agents automation-profile add (Rich output example, lines ~16824-16848) - Code location: `src/cleveragents/cli/commands/automation_profile.py` `_print_profile()` function (lines 122-174) and `add_profile()` function (lines 177-262) - Discovered during UAT testing of Automation Profile CLI feature area ## Subtasks - [ ] Update `_print_profile()` or create a separate `_print_profile_add()` function to match spec layout - [ ] Panel 1: "Profile Registered" with Name, Description, Created timestamp - [ ] Panel 2: "Confidence Thresholds" with all 11 thresholds + 3 safety flags flat - [ ] Add "✓ OK Profile registered" status line - [ ] Update BDD tests if needed - [ ] Run `nox -s unit_tests -- features/automation_profile_cli.feature` and verify pass - [ ] Run `nox` (all default sessions), fix any errors - [ ] Verify coverage >=97% via `nox -s coverage_report` ## 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 about the implementation. - 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 --- **Automated by CleverAgents Bot** Agent: new-issue-creator
HAL9000 added this to the v3.5.0 milestone 2026-04-14 14:43:01 +00:00
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#9314
No description provided.