feat(cli): align actor commands to YAML #288

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

Metadata

  • Commit Message: feat(cli): align actor commands to YAML
  • Branch: feature/m3-actor-cli

Background

CLI commands agents actor add/remove/list/show are aligned to YAML-first configuration with namespaced names and consistent --format json|yaml|plain outputs.

Acceptance Criteria

  • Align agents actor add/remove/list/show to YAML-first configs, namespaced names, and --format json|yaml|plain outputs.
  • Update CLI reference with actor YAML usage and examples.

Definition of Done

This issue is complete when:

  • All subtasks below are completed and checked off.
  • A Git commit is created where the first line of the commit message matches
    the Commit Message in Metadata exactly, followed by a blank line, then
    additional lines providing relevant details about the implementation. The
    commit body should be appropriate in size for a commit message and relatively
    complete in describing what was done.
  • 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 before this issue is marked done.

Subtasks

  • Align agents actor add/remove/list/show to YAML-first configs, namespaced names, and --format json|yaml|plain outputs.
  • Update CLI reference with actor YAML usage and examples.
  • Tests (Behave): Add CLI scenarios for actor add/list/show/remove.
  • Tests (Robot): Add Robot CLI test for actor show output fields.
  • Tests (ASV): Add benchmarks/actor_cli_bench.py for CLI parsing overhead.
  • 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 5: Actors, Skills & Tool Execution [WORKSTREAM C - Aditya Lead]
Status: Open

## Metadata - **Commit Message**: `feat(cli): align actor commands to YAML` - **Branch**: `feature/m3-actor-cli` ## Background CLI commands `agents actor add/remove/list/show` are aligned to YAML-first configuration with namespaced names and consistent `--format json|yaml|plain` outputs. ## Acceptance Criteria - [ ] Align `agents actor add/remove/list/show` to YAML-first configs, namespaced names, and `--format json|yaml|plain` outputs. - [ ] Update CLI reference with actor YAML usage and examples. ## Definition of Done This issue is complete when: - All subtasks below are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation. The commit body should be appropriate in size for a commit message and relatively complete in describing what was done. - 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** before this issue is marked done. ## Subtasks - [ ] Align `agents actor add/remove/list/show` to YAML-first configs, namespaced names, and `--format json|yaml|plain` outputs. - [ ] Update CLI reference with actor YAML usage and examples. - [ ] Tests (Behave): Add CLI scenarios for actor add/list/show/remove. - [ ] Tests (Robot): Add Robot CLI test for actor show output fields. - [ ] Tests (ASV): Add `benchmarks/actor_cli_bench.py` for CLI parsing overhead. - [ ] 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 5: Actors, Skills & Tool Execution [WORKSTREAM C - Aditya Lead] **Status**: Open
freemo added this to the v3.1.0 milestone 2026-02-22 23:40:56 +00:00
freemo self-assigned this 2026-02-22 23:40:56 +00:00
Author
Owner

Expected completion (Day 15 rebaseline): Day 22 / 2026-03-02

**Expected completion (Day 15 rebaseline):** Day 22 / 2026-03-02
freemo added the due date 2026-02-24 2026-02-23 18:41:50 +00:00
Author
Owner

PR #412 submitted for this issue.

Changes implemented:

  • Aligned agents actor add/remove/list/show to YAML-first configs with --format json|yaml|plain output support
  • Added --update flag to add command
  • Added _actor_spec_dict() for structured output serialization
  • Updated CLI reference docs (docs/reference/actor_cli.md)
  • Added Behave tests (11 scenarios in features/actor_cli_yaml.feature)
  • Added Robot test (robot/actor_cli_show.robot) for show output fields
  • Added ASV benchmark (benchmarks/actor_cli_bench.py)

Quality gates passed: lint, typecheck (0 errors), unit tests (58 actor scenarios pass)

PR #412 submitted for this issue. **Changes implemented:** - Aligned `agents actor add/remove/list/show` to YAML-first configs with `--format json|yaml|plain` output support - Added `--update` flag to `add` command - Added `_actor_spec_dict()` for structured output serialization - Updated CLI reference docs (`docs/reference/actor_cli.md`) - Added Behave tests (11 scenarios in `features/actor_cli_yaml.feature`) - Added Robot test (`robot/actor_cli_show.robot`) for show output fields - Added ASV benchmark (`benchmarks/actor_cli_bench.py`) **Quality gates passed:** lint, typecheck (0 errors), unit tests (58 actor scenarios pass)
Author
Owner

Implementation Notes

Design Decisions

  • Added --format option (json|yaml|plain|table|rich) to actor list, show, add, and update commands in src/cleveragents/cli/commands/actor.py.
  • Added --update flag to actor add for updating existing actors via YAML config.
  • Created _actor_spec_dict() helper for consistent structured output serialization (matching the pattern from action CLI).
  • Updated _print_actor() to delegate to format_output for non-rich formats.
  • Used existing OutputFormat and format_output from cli.formatting.

Files Changed

  • src/cleveragents/cli/commands/actor.py - Core CLI changes
  • features/actor_cli_yaml.feature - 11 new Behave scenarios
  • features/steps/actor_cli_yaml_steps.py - Step definitions
  • robot/actor_cli_show.robot - 3 Robot integration tests
  • robot/helper_actor_cli_show.py - Robot helper
  • benchmarks/actor_cli_bench.py - ASV benchmarks
  • docs/reference/actor_cli.md - Full CLI reference

Quality Gates

Lint, typecheck (0 errors), unit_tests, integration_tests all passed.

PR

PR #412 from feature/m3-actor-cli to master.

## Implementation Notes ### Design Decisions - Added `--format` option (json|yaml|plain|table|rich) to `actor list`, `show`, `add`, and `update` commands in `src/cleveragents/cli/commands/actor.py`. - Added `--update` flag to `actor add` for updating existing actors via YAML config. - Created `_actor_spec_dict()` helper for consistent structured output serialization (matching the pattern from action CLI). - Updated `_print_actor()` to delegate to `format_output` for non-rich formats. - Used existing `OutputFormat` and `format_output` from `cli.formatting`. ### Files Changed - `src/cleveragents/cli/commands/actor.py` - Core CLI changes - `features/actor_cli_yaml.feature` - 11 new Behave scenarios - `features/steps/actor_cli_yaml_steps.py` - Step definitions - `robot/actor_cli_show.robot` - 3 Robot integration tests - `robot/helper_actor_cli_show.py` - Robot helper - `benchmarks/actor_cli_bench.py` - ASV benchmarks - `docs/reference/actor_cli.md` - Full CLI reference ### Quality Gates Lint, typecheck (0 errors), unit_tests, integration_tests all passed. ### PR PR #412 from `feature/m3-actor-cli` to `master`.
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".

2026-02-24

Blocks
#354 Epic: Actor & Skill Schema + CLI (C0)
cleveragents/cleveragents-core
#392 Epic: Actor YAML & Compiler
cleveragents/cleveragents-core
Depends on
#412 feat(cli): align actor commands to YAML
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#288
No description provided.