Fix CLI extensions action show JSON invariants list test failure #4362

Open
opened 2026-04-08 05:09:22 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit Message: fix(cli): action show JSON includes invariants list when present
  • Branch: fix/cli-action-show-json-invariants

Background and Context

The CLI extensions test "Action show in JSON includes invariants list when present" (features/cli_extensions.feature:336) is failing. This test verifies that when an action has invariants, the JSON output includes an "invariants" key with a list of length 2.

Current Behavior

The test is failing, indicating an issue with the JSON serialization of actions that have invariants.

Expected Behavior

The agents action show --format json command should include an "invariants" key when the action has invariants, and the list should have the correct length.

Acceptance Criteria

  • The test "features/cli_extensions.feature:336" passes
  • No regression in related functionality
  • All quality gates pass

Subtasks

  • Investigate the root cause of the test failure
  • Implement the necessary fix
  • Verify the test passes after the fix
  • Run full test suite to ensure no regressions
  • Verify coverage ≥97% via nox -s coverage_report

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off
  • The failing test now passes
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly
  • 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
## Metadata - **Commit Message**: `fix(cli): action show JSON includes invariants list when present` - **Branch**: `fix/cli-action-show-json-invariants` ## Background and Context The CLI extensions test "Action show in JSON includes invariants list when present" (features/cli_extensions.feature:336) is failing. This test verifies that when an action has invariants, the JSON output includes an "invariants" key with a list of length 2. ## Current Behavior The test is failing, indicating an issue with the JSON serialization of actions that have invariants. ## Expected Behavior The `agents action show --format json` command should include an "invariants" key when the action has invariants, and the list should have the correct length. ## Acceptance Criteria - The test "features/cli_extensions.feature:336" passes - No regression in related functionality - All quality gates pass ## Subtasks - [ ] Investigate the root cause of the test failure - [ ] Implement the necessary fix - [ ] Verify the test passes after the fix - [ ] Run full test suite to ensure no regressions - [ ] Verify coverage ≥97% via `nox -s coverage_report` ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off - The failing test now passes - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly - 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**
HAL9000 self-assigned this 2026-04-08 11:41:41 +00:00
HAL9000 added this to the v3.5.0 milestone 2026-04-08 11:41:41 +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#4362
No description provided.