fix(cli): derive actor name from config file instead of positional argument #1189

Merged
freemo merged 1 commit from fix/actor-add-name-from-config into master 2026-03-30 18:47:40 +00:00
Owner

Summary

Removes the <NAME> positional argument from actor add. Per the specification, the actor name is derived from the name field inside the config YAML file: agents actor add (--config|-c) <FILE> [--update].

Changes

  • src/cleveragents/cli/commands/actor.py: Removed name positional argument, added config-based name extraction with validation
  • features/steps/actor_cli_steps.py: Updated 15+ step definitions to pass name via config data
  • features/steps/actor_cli_yaml_steps.py: Removed positional from format test invocations
  • robot/helper_m2_e2e_verification.py: Added name to config JSON, removed positional
  • benchmarks/actor_cli_bench.py: Updated benchmark invocations

Closes #914

## Summary Removes the `<NAME>` positional argument from `actor add`. Per the specification, the actor name is derived from the `name` field inside the config YAML file: `agents actor add (--config|-c) <FILE> [--update]`. ## Changes - `src/cleveragents/cli/commands/actor.py`: Removed `name` positional argument, added config-based name extraction with validation - `features/steps/actor_cli_steps.py`: Updated 15+ step definitions to pass name via config data - `features/steps/actor_cli_yaml_steps.py`: Removed positional from format test invocations - `robot/helper_m2_e2e_verification.py`: Added `name` to config JSON, removed positional - `benchmarks/actor_cli_bench.py`: Updated benchmark invocations Closes #914
freemo added this to the v3.4.0 milestone 2026-03-29 05:35:41 +00:00
freemo force-pushed fix/actor-add-name-from-config from 575010cd5d
Some checks failed
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 3m30s
CI / typecheck (pull_request) Successful in 4m2s
CI / security (pull_request) Successful in 4m16s
CI / build (pull_request) Successful in 25s
CI / helm (pull_request) Successful in 36s
CI / quality (pull_request) Successful in 3m45s
CI / unit_tests (pull_request) Successful in 4m1s
CI / docker (pull_request) Failing after 1m16s
CI / integration_tests (pull_request) Successful in 7m9s
CI / e2e_tests (pull_request) Failing after 8m40s
CI / coverage (pull_request) Successful in 11m37s
CI / status-check (pull_request) Failing after 1s
CI / benchmark-regression (pull_request) Successful in 57m22s
to 963dfbb3f6
All checks were successful
CI / lint (pull_request) Successful in 3m18s
CI / quality (pull_request) Successful in 3m44s
CI / typecheck (pull_request) Successful in 4m3s
CI / security (pull_request) Successful in 4m16s
CI / build (pull_request) Successful in 25s
CI / helm (pull_request) Successful in 34s
CI / unit_tests (pull_request) Successful in 4m55s
CI / integration_tests (pull_request) Successful in 4m0s
CI / e2e_tests (pull_request) Successful in 9m56s
CI / benchmark-publish (pull_request) Has been skipped
CI / docker (pull_request) Successful in 1m53s
CI / coverage (pull_request) Successful in 15m24s
CI / status-check (pull_request) Successful in 2s
CI / benchmark-regression (pull_request) Successful in 58m18s
2026-03-30 01:04:02 +00:00
Compare
freemo left a comment

Review: Looks Good (self-authored — posted as comment)

Clean simplification deriving actor name from config file (single source of truth). All test fixtures, benchmarks, BDD steps, and Robot tests updated consistently. Note: this is a breaking CLI change (actor add no longer takes a positional <NAME> argument) — should be documented in changelog.

## Review: Looks Good (self-authored — posted as comment) Clean simplification deriving actor name from config file (single source of truth). All test fixtures, benchmarks, BDD steps, and Robot tests updated consistently. Note: this is a breaking CLI change (`actor add` no longer takes a positional `<NAME>` argument) — should be documented in changelog.
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-30 18:08:43 +00:00
freemo force-pushed fix/actor-add-name-from-config from 963dfbb3f6
All checks were successful
CI / lint (pull_request) Successful in 3m18s
CI / quality (pull_request) Successful in 3m44s
CI / typecheck (pull_request) Successful in 4m3s
CI / security (pull_request) Successful in 4m16s
CI / build (pull_request) Successful in 25s
CI / helm (pull_request) Successful in 34s
CI / unit_tests (pull_request) Successful in 4m55s
CI / integration_tests (pull_request) Successful in 4m0s
CI / e2e_tests (pull_request) Successful in 9m56s
CI / benchmark-publish (pull_request) Has been skipped
CI / docker (pull_request) Successful in 1m53s
CI / coverage (pull_request) Successful in 15m24s
CI / status-check (pull_request) Successful in 2s
CI / benchmark-regression (pull_request) Successful in 58m18s
to a9465c4865
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 18s
CI / helm (pull_request) Successful in 22s
CI / typecheck (pull_request) Successful in 50s
CI / lint (pull_request) Successful in 3m19s
CI / quality (pull_request) Successful in 3m53s
CI / security (pull_request) Successful in 4m12s
CI / integration_tests (pull_request) Successful in 7m10s
CI / unit_tests (pull_request) Successful in 7m27s
CI / docker (pull_request) Successful in 1m30s
CI / coverage (pull_request) Successful in 11m54s
CI / e2e_tests (pull_request) Successful in 19m37s
CI / status-check (pull_request) Successful in 1s
CI / build (push) Successful in 15s
CI / helm (push) Successful in 23s
CI / security (push) Successful in 57s
CI / lint (push) Successful in 3m18s
CI / quality (push) Successful in 3m39s
CI / typecheck (push) Successful in 3m52s
CI / integration_tests (push) Successful in 8m48s
CI / unit_tests (push) Successful in 9m38s
CI / docker (push) Successful in 1m18s
CI / coverage (push) Successful in 11m48s
CI / e2e_tests (push) Successful in 20m13s
CI / status-check (push) Successful in 1s
CI / benchmark-publish (push) Successful in 28m20s
CI / benchmark-regression (push) Has been skipped
CI / benchmark-regression (pull_request) Successful in 54m52s
2026-03-30 18:28:01 +00:00
Compare
freemo merged commit a9465c4865 into master 2026-03-30 18:47:40 +00:00
freemo deleted branch fix/actor-add-name-from-config 2026-03-30 18:47:40 +00:00
Sign in to join this conversation.
No reviewers
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!1189
No description provided.