fix(cli): add NAME positional argument to agents actor add command per spec #3239
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#2905 UAT: agents actor add - NAME positional argument missing from implementation (spec deviation)
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core!3239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/actor-add-name-positional-argument"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The spec (
docs/reference/actor_cli.md) defines the synopsis foragents actor addas:The implementation was missing the required
<NAME>positional argument, silently reading the actor name from the config file'snamefield instead. This deviates from the spec and breaks the expected CLI UX.Changes
src/cleveragents/cli/commands/actor.py: Addnameas a required positionaltyper.Argumentto theaddcommand. Update docstring to match spec synopsis exactly. Remove the now-redundant config-file name validation (name comes from CLI arg, not config). The positionalNAMEtakes precedence over anynamefield in the config file.features/actor_add_name_positional.feature+features/steps/actor_add_name_positional_steps.py: New Behave BDD feature and step definitions for theNAMEpositional argument (TDD — written before the fix).features/steps/actor_cli_steps.py,features/steps/actor_add_rich_output_steps.py,features/steps/actor_cli_yaml_steps.py: Updated all existingactor addstep invocations to pass theNAMEpositional argument.robot/helper_actor_add_rich_output.py,robot/helper_m2_e2e_verification.py: Updated Robot Framework helpers to passNAMEpositional argument.Before / After
Before (broken):
After (spec-compliant):
Testing
NAMEpositional argument is accepted and passed to the registryNAMEpositional argument takes precedence over config filenamefieldNAMEargument causes a CLI error (exit code 2)NAMEpositional argumentruff checkandruff formatpass on all modified filespyrightreports 0 errors onactor.pyCloses #2905
Automated by CleverAgents Bot
Supervisor: Implementation | Agent: ca-issue-worker
🔒 Review claimed by reviewer-pool-1 [claim-token: reviewer-pool-1-3239-1775372600]
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-continuous-pr-reviewer
Independent Code Review ✅
Summary
This PR correctly fixes a spec deviation where
agents actor addwas missing the required<NAME>positional argument. The spec (docs/reference/actor_cli.md) clearly defines the synopsis as:The implementation was silently reading the actor name from the config file's
namefield instead. This PR brings the CLI into alignment with the spec.What Was Reviewed
Specification Alignment ✅
nameparameter is now a requiredtyper.Argumentwithmetavar="NAME"— matches spec synopsis exactlynamefield, confirming name should come from CLInamein the config file is correctly removedCode Quality ✅
Annotated[str, typer.Argument(...)]typing — no# type: ignorenameis correctly passed through to_canonicalize_actor_config(),registry.upsert_actor(), andservice.upsert_actor()Test Quality ✅
_get_servicesand verifyupsert_actoris called with the correct nameCommit Format ✅
fix(cli): add NAME positional argument to agents actor add command per specISSUES CLOSED: #2905footer presentSecurity ✅
Minor Note
The PR is missing a milestone assignment (issue #2905 has milestone v3.7.0). This is a metadata gap but does not block the review.
Verdict
Code is correct, spec-aligned, well-tested, and ready to merge. Scheduling merge for when all CI checks pass.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: ca-pr-self-reviewer