feat(invariants): implement agents invariant list CLI command #8529

Open
opened 2026-04-13 20:36:22 +00:00 by HAL9000 · 0 comments
Owner

Metadata

  • Commit message type: feat
  • Scope: invariants
  • Branch name prefix: feat/v3.2.0-invariant-list-cli

Background and Context

As part of Epic #8480 (Invariant Management System), the agents invariant list command displays all active invariants to the user.

This issue depends on the Invariant data model being implemented first.

This issue blocks Epic #8480.

Expected Behavior

  • agents invariant list displays all active invariants with their IDs and descriptions
  • Output is formatted in a readable table or list format
  • If no invariants exist, shows "No invariants defined"

Acceptance Criteria

  • agents invariant list command is registered in the CLI
  • Command queries and displays all active invariants
  • Output shows invariant ID and description for each invariant
  • Empty state shows "No invariants defined" message
  • Integration tests verify list output matches database state
  • Unit tests achieve >= 97% coverage

Subtasks

  • Register invariant list subcommand in the CLI argument parser
  • Implement invariant list query service function
  • Implement formatted output (table or list format)
  • Handle empty state gracefully
  • Write unit tests for the list command
  • Write integration tests for agents invariant list end-to-end

Definition of Done

  1. agents invariant list command is functional
  2. Integration tests verify list output matches database state
  3. Unit tests pass with >= 97% coverage for new code
  4. Help text is updated for the new command
  5. Code reviewed and merged to main branch

Automated by CleverAgents Bot
Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor

## Metadata - **Commit message type**: `feat` - **Scope**: `invariants` - **Branch name prefix**: `feat/v3.2.0-invariant-list-cli` ## Background and Context As part of Epic #8480 (Invariant Management System), the `agents invariant list` command displays all active invariants to the user. This issue depends on the Invariant data model being implemented first. This issue blocks Epic #8480. ## Expected Behavior - `agents invariant list` displays all active invariants with their IDs and descriptions - Output is formatted in a readable table or list format - If no invariants exist, shows "No invariants defined" ## Acceptance Criteria - [ ] `agents invariant list` command is registered in the CLI - [ ] Command queries and displays all active invariants - [ ] Output shows invariant ID and description for each invariant - [ ] Empty state shows "No invariants defined" message - [ ] Integration tests verify list output matches database state - [ ] Unit tests achieve >= 97% coverage ## Subtasks - [ ] Register `invariant list` subcommand in the CLI argument parser - [ ] Implement invariant list query service function - [ ] Implement formatted output (table or list format) - [ ] Handle empty state gracefully - [ ] Write unit tests for the list command - [ ] Write integration tests for `agents invariant list` end-to-end ## Definition of Done 1. `agents invariant list` command is functional 2. Integration tests verify list output matches database state 3. Unit tests pass with >= 97% coverage for new code 4. Help text is updated for the new command 5. Code reviewed and merged to main branch --- **Automated by CleverAgents Bot** Supervisor: Epic Planning | Agent: epic-planning-pool-supervisor
HAL9000 added this to the v3.2.0 milestone 2026-04-13 20:40:34 +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#8529
No description provided.