feat(cli): add automation-profile commands #251

Closed
opened 2026-02-22 23:40:33 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit: feat(cli): add automation-profile commands
  • Branch: feature/m4-automation-profiles-cli

Subtasks

  • Implement agents automation-profile add/remove/list/show commands with YAML config input, schema_version guard, and namespaced name validation.
  • Add --update behavior with conflict errors; preserve original created_at on update, and surface source (built-in/custom) in outputs.
  • Ensure automation-profile list supports --namespace and regex filters with deterministic ordering; add --format json|yaml|plain output.
  • Extend plan use with --automation-profile and show profile name + threshold summary in plan status output.
  • Deprecate --automation-level and plan set-automation-level (keep as alias mapping to built-in profiles with warning).
  • Update CLI reference with automation-profile examples, built-in profiles list, and deprecation notes.
  • Tests (Behave): Add CLI scenarios for profile add/list/show/remove/update and invalid name/threshold validation errors.
  • Tests (Behave): Add output snapshot assertions for automation-profile list --format json and show --format yaml.
  • Tests (Robot): Add Robot CLI tests for automation-profile commands (add/show/remove + format outputs).
  • Tests (ASV): Add benchmarks/automation_profile_cli_bench.py for CLI parsing.
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across entire code base, do not ignore any failure even if it seems unrelated to this commit, fix it.

Section: #### Section 3 Notes
Status: Completed

## Metadata - **Commit**: `feat(cli): add automation-profile commands` - **Branch**: `feature/m4-automation-profiles-cli` ## Subtasks - [x] Implement `agents automation-profile add/remove/list/show` commands with YAML config input, schema_version guard, and namespaced name validation. - [x] Add `--update` behavior with conflict errors; preserve original created_at on update, and surface `source` (built-in/custom) in outputs. - [x] Ensure `automation-profile list` supports `--namespace` and regex filters with deterministic ordering; add `--format json|yaml|plain` output. - [x] Extend `plan use` with `--automation-profile` and show profile name + threshold summary in `plan status` output. - [x] Deprecate `--automation-level` and `plan set-automation-level` (keep as alias mapping to built-in profiles with warning). - [x] Update CLI reference with automation-profile examples, built-in profiles list, and deprecation notes. - [x] Tests (Behave): Add CLI scenarios for profile add/list/show/remove/update and invalid name/threshold validation errors. - [x] Tests (Behave): Add output snapshot assertions for `automation-profile list --format json` and `show --format yaml`. - [x] Tests (Robot): Add Robot CLI tests for automation-profile commands (add/show/remove + format outputs). - [x] Tests (ASV): Add `benchmarks/automation_profile_cli_bench.py` for CLI parsing. - [x] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across **entire** code base, do not ignore any failure even if it seems unrelated to this commit, fix it. **Section**: #### Section 3 Notes **Status**: Completed
freemo added this to the v3.3.0 milestone 2026-02-22 23:40:33 +00:00
freemo self-assigned this 2026-02-22 23:40:33 +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.

Reference
cleveragents/cleveragents-core#251
No description provided.