feat(cli): implement agents safety-profile CLI command group (add/list/show/remove) #3371

Open
opened 2026-04-05 14:40:59 +00:00 by freemo · 1 comment
Owner

Metadata

  • Branch: feat/v3.6.0/safety-profile-cli
  • Commit Message: feat(cli): implement agents safety-profile CLI command group (add/list/show/remove)
  • Milestone: v3.6.0
  • Parent Epic: #3370

Background

Issue #3276 identified that the agents safety-profile CLI command is missing. The SafetyProfile domain model exists but has no CLI management interface. The specification defines SafetyProfile as a composed sub-model of AutomationProfile with fields: require_sandbox, require_checkpoints, allow_unsafe_tools, require_human_approval, allowed_skill_categories, max_cost_per_plan, max_retries_per_step, max_total_cost.

Expected Behavior

The agents safety-profile command group is implemented with subcommands:

  • agents safety-profile add <NAME> [options] — create a new safety profile
  • agents safety-profile list — list all safety profiles
  • agents safety-profile show <NAME> — show details of a safety profile
  • agents safety-profile remove <NAME> — remove a safety profile

Acceptance Criteria

  • agents safety-profile add creates a safety profile with all spec-required fields
  • agents safety-profile list displays all profiles in a rich table
  • agents safety-profile show displays full profile details
  • agents safety-profile remove removes a profile with confirmation
  • BDD unit tests cover all subcommands
  • Robot Framework integration tests cover CLI behavior
  • nox -e typecheck passes with no suppressions
  • Coverage >= 97%

Dependencies

  • Blocked by: (none)
  • Blocks: #3370

Subtasks

  • Implement agents safety-profile add subcommand
  • Implement agents safety-profile list subcommand
  • Implement agents safety-profile show subcommand
  • Implement agents safety-profile remove subcommand
  • Add BDD feature file for safety-profile CLI
  • Add Robot Framework integration test
  • Verify nox passes

Definition of Done

  • All subtasks completed
  • Tests written and passing
  • All nox stages pass
  • Coverage >= 97%

Automated by CleverAgents Bot
Supervisor: Unknown | Agent: ca-epic-planner

## Metadata - **Branch**: `feat/v3.6.0/safety-profile-cli` - **Commit Message**: `feat(cli): implement agents safety-profile CLI command group (add/list/show/remove)` - **Milestone**: v3.6.0 - **Parent Epic**: #3370 ## Background Issue #3276 identified that the `agents safety-profile` CLI command is missing. The `SafetyProfile` domain model exists but has no CLI management interface. The specification defines `SafetyProfile` as a composed sub-model of `AutomationProfile` with fields: `require_sandbox`, `require_checkpoints`, `allow_unsafe_tools`, `require_human_approval`, `allowed_skill_categories`, `max_cost_per_plan`, `max_retries_per_step`, `max_total_cost`. ## Expected Behavior The `agents safety-profile` command group is implemented with subcommands: - `agents safety-profile add <NAME> [options]` — create a new safety profile - `agents safety-profile list` — list all safety profiles - `agents safety-profile show <NAME>` — show details of a safety profile - `agents safety-profile remove <NAME>` — remove a safety profile ## Acceptance Criteria - [ ] `agents safety-profile add` creates a safety profile with all spec-required fields - [ ] `agents safety-profile list` displays all profiles in a rich table - [ ] `agents safety-profile show` displays full profile details - [ ] `agents safety-profile remove` removes a profile with confirmation - [ ] BDD unit tests cover all subcommands - [ ] Robot Framework integration tests cover CLI behavior - [ ] `nox -e typecheck` passes with no suppressions - [ ] Coverage >= 97% ## Dependencies - Blocked by: (none) - Blocks: #3370 ## Subtasks - [ ] Implement `agents safety-profile add` subcommand - [ ] Implement `agents safety-profile list` subcommand - [ ] Implement `agents safety-profile show` subcommand - [ ] Implement `agents safety-profile remove` subcommand - [ ] Add BDD feature file for safety-profile CLI - [ ] Add Robot Framework integration test - [ ] Verify `nox` passes ## Definition of Done - [ ] All subtasks completed - [ ] Tests written and passing - [ ] All nox stages pass - [ ] Coverage >= 97% --- **Automated by CleverAgents Bot** Supervisor: Unknown | Agent: ca-epic-planner
freemo added this to the v3.6.0 milestone 2026-04-05 14:41:36 +00:00
Author
Owner

Issue triaged by project owner:

  • State: Verified
  • Priority: Critical — Implements the agents safety-profile CLI command group required by the specification. The SafetyProfile domain model exists but has no CLI management interface, which is a gap identified by UAT #3276.
  • Milestone: v3.6.0 (already set)
  • Story Points: 5 — L — Requires implementing 4 CLI subcommands (add/list/show/remove), BDD tests, and Robot integration tests. Estimated 1-2 days.
  • MoSCoW: Must Have — Safety profiles are a required component per the specification. Without CLI management, operators cannot configure safety constraints.
  • Parent Epic: #3370

Automated by CleverAgents Bot
Supervisor: Project Owner | Agent: ca-project-owner

Issue triaged by project owner: - **State**: Verified - **Priority**: Critical — Implements the `agents safety-profile` CLI command group required by the specification. The SafetyProfile domain model exists but has no CLI management interface, which is a gap identified by UAT #3276. - **Milestone**: v3.6.0 (already set) - **Story Points**: 5 — L — Requires implementing 4 CLI subcommands (add/list/show/remove), BDD tests, and Robot integration tests. Estimated 1-2 days. - **MoSCoW**: Must Have — Safety profiles are a required component per the specification. Without CLI management, operators cannot configure safety constraints. - **Parent Epic**: #3370 --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: ca-project-owner
freemo removed this from the v3.6.0 milestone 2026-04-06 23:52:48 +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#3371
No description provided.