feat(invariants): implement agents invariant remove CLI command #8686

Merged
HAL9000 merged 1 commits from feat/v3.2.0-invariant-remove-cli into master 2026-04-30 06:46:04 +00:00

1 Commits

Author SHA1 Message Date
HAL9000 3222fab6a4 feat(invariants): implement agents invariant remove CLI command
CI / lint (push) Successful in 54s
CI / quality (push) Successful in 1m16s
CI / build (push) Successful in 52s
CI / helm (push) Successful in 44s
CI / security (push) Successful in 1m27s
CI / typecheck (push) Successful in 1m46s
CI / push-validation (push) Successful in 29s
CI / benchmark-publish (push) Failing after 42s
CI / integration_tests (push) Successful in 3m30s
CI / e2e_tests (push) Successful in 5m44s
CI / unit_tests (push) Successful in 8m18s
CI / docker (push) Successful in 1m58s
CI / coverage (push) Successful in 14m48s
CI / status-check (push) Successful in 3s
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 1m7s
CI / typecheck (pull_request) Successful in 1m13s
CI / security (pull_request) Successful in 1m12s
CI / push-validation (pull_request) Successful in 34s
CI / helm (pull_request) Successful in 36s
CI / build (pull_request) Successful in 53s
CI / quality (pull_request) Successful in 1m30s
CI / e2e_tests (pull_request) Successful in 4m8s
CI / integration_tests (pull_request) Successful in 5m17s
CI / unit_tests (pull_request) Successful in 6m38s
CI / docker (pull_request) Successful in 1m40s
CI / coverage (pull_request) Successful in 10m51s
CI / status-check (pull_request) Successful in 3s
Implements the agents invariant remove CLI command with full specification compliance. The command allows users to remove invariants from agents with a confirmation prompt displaying the invariant ID before removal. The implementation includes support for format options (JSON/YAML) and a --yes flag to bypass confirmation.

The invariant remove command:
- Soft-deletes an invariant by ID via InvariantService.remove_invariant()
- Displays confirmation prompt before removal (bypassable with --yes/-y)
- Outputs the removed invariant ID on success
- Shows clear error message for unknown invariant IDs (NotFoundError)
- Supports --format flag for JSON and YAML output

Full BDD test coverage in features/invariant_cli_new_coverage.feature and Robot Framework integration tests in robot/invariant_cli.robot verify all acceptance criteria from issue #8530.

ISSUES CLOSED: #8530
2026-04-30 06:26:48 +00:00