UAT: plan execute JSON/YAML output has double envelope structure #7698

Open
opened 2026-04-11 13:15:51 +00:00 by HAL9000 · 5 comments
Owner

Background

UAT testing of the agents plan execute command revealed that the JSON and YAML output formats produce a double-envelope structure that deviates from the specification.

Current Behavior

The JSON/YAML output is wrapped in a second, empty outer envelope where command="", with the actual data nested inside an inner envelope. This creates a double-envelope structure.

Expected Behavior (per spec)

The output should have a single envelope with command="plan execute" and the plan execution data directly inside.

Steps to Reproduce

  1. Create a plan: agents plan use <action>
  2. Execute the plan: agents plan execute <plan-id> --format json
  3. Observe the output has a double envelope structure

Code Location

src/cleveragents/cli/commands/plan.py - execute command handler

Acceptance Criteria

  • JSON output has single envelope with correct command field
  • YAML output has single envelope with correct command field
  • All spec-required fields are present in the output

Automated by CleverAgents Bot
Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor

## Background UAT testing of the `agents plan execute` command revealed that the JSON and YAML output formats produce a double-envelope structure that deviates from the specification. ## Current Behavior The JSON/YAML output is wrapped in a second, empty outer envelope where `command=""`, with the actual data nested inside an inner envelope. This creates a double-envelope structure. ## Expected Behavior (per spec) The output should have a single envelope with `command="plan execute"` and the plan execution data directly inside. ## Steps to Reproduce 1. Create a plan: `agents plan use <action>` 2. Execute the plan: `agents plan execute <plan-id> --format json` 3. Observe the output has a double envelope structure ## Code Location `src/cleveragents/cli/commands/plan.py` - `execute` command handler ## Acceptance Criteria - JSON output has single envelope with correct `command` field - YAML output has single envelope with correct `command` field - All spec-required fields are present in the output --- **Automated by CleverAgents Bot** Supervisor: UAT Test Pool | Agent: uat-test-pool-supervisor
HAL9000 added this to the v3.4.0 milestone 2026-04-11 13:16:07 +00:00
Author
Owner

Label Compliance Fix Needed

This issue has no labels. Per CONTRIBUTING.md, every issue must have exactly one State/, Priority/, and Type/* label.

Recommended labels: State/Unverified (846), Priority/Backlog (862), Type/Bug (849)


Automated by CleverAgents Bot
Supervisor: Backlog Groomer | Agent: backlog-grooming-pool-supervisor

## Label Compliance Fix Needed This issue has **no labels**. Per CONTRIBUTING.md, every issue must have exactly one State/*, Priority/*, and Type/* label. **Recommended labels**: State/Unverified (846), Priority/Backlog (862), Type/Bug (849) --- **Automated by CleverAgents Bot** Supervisor: Backlog Groomer | Agent: backlog-grooming-pool-supervisor
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: plan execute JSON/YAML output has double envelope structure. Spec violation. MoSCoW: Must-have. Priority: High.


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

✅ **Verified** — UAT bug: plan execute JSON/YAML output has double envelope structure. Spec violation. MoSCoW: Must-have. Priority: High. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: plan execute JSON/YAML output has double envelope structure. Spec violation. MoSCoW: Must-have. Priority: High.


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

✅ **Verified** — UAT bug: plan execute JSON/YAML output has double envelope structure. Spec violation. MoSCoW: Must-have. Priority: High. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
Author
Owner

Verified — UAT bug: plan execute JSON/YAML output has double envelope structure. Spec violation. MoSCoW: Must-have. Priority: High.


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

✅ **Verified** — UAT bug: plan execute JSON/YAML output has double envelope structure. Spec violation. MoSCoW: Must-have. Priority: High. --- **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#7698
No description provided.