UAT: agents automation-profile show JSON output includes schema_version and guards fields not present in spec, and messages format differs #6541

Open
opened 2026-04-09 21:16:38 +00:00 by HAL9000 · 1 comment
Owner

Bug Report

Feature Area

Invariants & Automation Profiles

Spec Reference

docs/specification.md lines 17266-17300 (JSON output for agents automation-profile show trusted):

{
  "command": "automation-profile show",
  "status": "ok",
  "exit_code": 0,
  "data": {
    "name": "trusted",
    "source": "built-in",
    "description": "Auto-exec, manual apply. Day-to-day development",
    "phase_transitions": {
      "decompose_task": 0.0,
      "create_tool": 0.0,
      "select_tool": 1.0
    },
    "decision_automation": {
      "edit_code": 0.0,
      "execute_command": 0.0
    },
    "self_repair": {
      "create_file": 0.0,
      "delete_content": 1.0,
      "access_network": 1.0,
      "modify_config": 0.0,
      "approve_plan": 1.0
    },
    "execution_controls": {
      "install_dependency": 0.0,
      "require_sandbox": true,
      "require_checkpoints": true,
      "allow_unsafe_tools": false
    }
  },
  "messages": ["Profile loaded"]
}

Expected Behavior

The JSON output for agents automation-profile show should:

  1. NOT include schema_version in data
  2. NOT include guards: null in data
  3. Have messages as an array of strings: ["Profile loaded"]
  4. Have command field set to "automation-profile show" (not empty string)

Actual Behavior

The implementation produces:

{
  "command": "",
  "data": {
    "name": "trusted",
    "description": "Auto for most, human for apply and revert",
    "source": "built-in",
    "schema_version": "1.0",    NOT in spec
    "phase_transitions": {...},
    "decision_automation": {...},
    "self_repair": {...},
    "execution_controls": {...},
    "guards": null               NOT in spec
  },
  "messages": [{"level": "ok", "text": "ok"}]   Should be ["Profile loaded"]
}

Code Location

  • src/cleveragents/cli/commands/automation_profile.py_profile_spec_dict() function (line ~60-90)

Severity

Backlog — JSON output format issue. The extra fields (schema_version, guards) are harmless but don't match the spec. The messages format issue is covered by a separate general bug.


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

## Bug Report ### Feature Area Invariants & Automation Profiles ### Spec Reference `docs/specification.md` lines 17266-17300 (JSON output for `agents automation-profile show trusted`): ```json { "command": "automation-profile show", "status": "ok", "exit_code": 0, "data": { "name": "trusted", "source": "built-in", "description": "Auto-exec, manual apply. Day-to-day development", "phase_transitions": { "decompose_task": 0.0, "create_tool": 0.0, "select_tool": 1.0 }, "decision_automation": { "edit_code": 0.0, "execute_command": 0.0 }, "self_repair": { "create_file": 0.0, "delete_content": 1.0, "access_network": 1.0, "modify_config": 0.0, "approve_plan": 1.0 }, "execution_controls": { "install_dependency": 0.0, "require_sandbox": true, "require_checkpoints": true, "allow_unsafe_tools": false } }, "messages": ["Profile loaded"] } ``` ### Expected Behavior The JSON output for `agents automation-profile show` should: 1. NOT include `schema_version` in `data` 2. NOT include `guards: null` in `data` 3. Have `messages` as an array of strings: `["Profile loaded"]` 4. Have `command` field set to `"automation-profile show"` (not empty string) ### Actual Behavior The implementation produces: ```json { "command": "", "data": { "name": "trusted", "description": "Auto for most, human for apply and revert", "source": "built-in", "schema_version": "1.0", ← NOT in spec "phase_transitions": {...}, "decision_automation": {...}, "self_repair": {...}, "execution_controls": {...}, "guards": null ← NOT in spec }, "messages": [{"level": "ok", "text": "ok"}] ← Should be ["Profile loaded"] } ``` ### Code Location - `src/cleveragents/cli/commands/automation_profile.py` — `_profile_spec_dict()` function (line ~60-90) ### Severity **Backlog** — JSON output format issue. The extra fields (`schema_version`, `guards`) are harmless but don't match the spec. The `messages` format issue is covered by a separate general bug. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
HAL9000 added this to the v3.2.0 milestone 2026-04-09 21:28:38 +00:00
Author
Owner

Verified — Valid UAT spec-alignment bug. JSON output includes schema_version and guards fields not in spec, and messages format differs. MoSCoW: Should Have — spec alignment is important for API consumers but not blocking core functionality.


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

✅ **Verified** — Valid UAT spec-alignment bug. JSON output includes `schema_version` and `guards` fields not in spec, and `messages` format differs. **MoSCoW: Should Have** — spec alignment is important for API consumers but not blocking core functionality. --- **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#6541
No description provided.