feat(cli): align plan use/list/status flags #239

Closed
opened 2026-02-22 23:40:26 +00:00 by freemo · 1 comment
Owner

Metadata

  • Commit: feat(cli): align plan use/list/status flags
  • Branch: feature/m1-plan-cli

Subtasks

  • Update plan use to accept multiple projects plus --automation-profile, --invariant, --strategy-actor, --execution-actor, --estimation-actor, --invariant-actor, and repeatable --arg name=value.
  • Align plan list filters to spec (--phase, --state, --project, --action, optional regex); map --state to processing_state.
  • Ensure plan status renders action_name, phase, processing_state, project links, arguments, and automation profile.
  • Update docs/reference/plan_cli.md with plan use flags + list/status filters.
  • Tests (Behave): Add scenarios for plan use with args/invariants/actor overrides and list/status filter combinations.
  • Tests (Robot): Add Robot smoke for plan use + list/status output (DB-backed lifecycle).
  • Tests (ASV): Add benchmarks/plan_cli_bench.py for plan use/list parsing overhead.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes.
  • 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%.

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

## Metadata - **Commit**: `feat(cli): align plan use/list/status flags` - **Branch**: `feature/m1-plan-cli` ## Subtasks - [x] Update `plan use` to accept multiple projects plus `--automation-profile`, `--invariant`, `--strategy-actor`, `--execution-actor`, `--estimation-actor`, `--invariant-actor`, and repeatable `--arg name=value`. - [x] Align `plan list` filters to spec (`--phase`, `--state`, `--project`, `--action`, optional regex); map `--state` to processing_state. - [x] Ensure `plan status` renders action_name, phase, processing_state, project links, arguments, and automation profile. - [x] Update `docs/reference/plan_cli.md` with plan use flags + list/status filters. - [x] Tests (Behave): Add scenarios for plan use with args/invariants/actor overrides and list/status filter combinations. - [x] Tests (Robot): Add Robot smoke for plan use + list/status output (DB-backed lifecycle). - [x] Tests (ASV): Add `benchmarks/plan_cli_bench.py` for plan use/list parsing overhead. - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes. - [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%. **Section**: #### Section 3 Notes **Status**: Completed
freemo added this to the v3.0.0 milestone 2026-02-22 23:40:26 +00:00
freemo self-assigned this 2026-02-22 23:40:26 +00:00
Author
Owner

Implementation Notes — A4b.plan: Plan CLI Flag Alignment

2026-02-14: Stage A4b.plan Complete - Plan CLI Flag Alignment

  • Updated plan.py: plan use now accepts multiple PROJECT args, --automation-profile, --invariant (repeatable), actor overrides, --arg name=value. Aligned plan list filters. Added --reason to plan cancel.

(Migrated from docs/implementation-notes.md)

## Implementation Notes — A4b.plan: Plan CLI Flag Alignment **2026-02-14**: Stage A4b.plan Complete - Plan CLI Flag Alignment - Updated `plan.py`: `plan use` now accepts multiple PROJECT args, `--automation-profile`, `--invariant` (repeatable), actor overrides, `--arg name=value`. Aligned `plan list` filters. Added `--reason` to `plan cancel`. *(Migrated from `docs/implementation-notes.md`)*
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.

Blocks Depends on
#62 feature/m1-plan-cli
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#239
No description provided.