test(coverage): lift cli plan commands to 97% #9646

Open
opened 2026-04-15 01:15:48 +00:00 by HAL9000 · 1 comment
Owner

Summary

  • Slipcover shows src/cleveragents/cli/commands/plan.py at 11.60% coverage (292 covered / 2226 missing).
  • The v3 plan workflow CLI (use/list/status/execute/apply/cancel/diff) is therefore almost entirely untested.

Proposal

  • Add Behave scenarios that invoke the CLI entry points against real services and sample plans (success path, ULID validation, error handling) so coverage for plan.py clears the 97% per-file bar.

Duplicate Check

## Summary - Slipcover shows `src/cleveragents/cli/commands/plan.py` at **11.60%** coverage (292 covered / 2226 missing). - The v3 plan workflow CLI (use/list/status/execute/apply/cancel/diff) is therefore almost entirely untested. ## Proposal - Add Behave scenarios that invoke the CLI entry points against real services and sample plans (success path, ULID validation, error handling) so coverage for `plan.py` clears the 97% per-file bar. ### Duplicate Check - https://git.cleverthis.com/cleveragents/cleveragents-core/issues?q=cli/commands/plan.py&state=open - https://git.cleverthis.com/cleveragents/cleveragents-core/issues?q=cli/commands/plan.py&state=closed
Author
Owner

🔍 Triage Decision — Verified

Type: Test / Coverage
Priority: High
MoSCoW: Must Have
Milestone: v3.2.0

This issue is verified and assigned to v3.2.0. Slipcover reports src/cleveragents/cli/commands/plan.py at only 11.60% coverage (292 covered / 2,226 missing). The v3 plan workflow CLI — use, list, status, execute, apply, cancel, diff — is almost entirely untested. The v3.2.0 milestone acceptance criteria requires test coverage ≥ 97%.

Rationale:

  • The plan CLI commands are the primary user-facing interface for the Decisions + Validations + Invariants milestone. Near-zero coverage on this module means regressions in the core user workflow go undetected.
  • Classified Must Have for v3.2.0 — the 97% coverage gate is a hard acceptance criterion for the milestone.
  • Behave scenarios covering success paths, ULID validation, and error handling for each CLI entry point are the appropriate fix.

Next steps: Add Behave scenarios that invoke each plan CLI entry point against real services and sample plans, targeting ≥ 97% coverage for plan.py.


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

## 🔍 Triage Decision — Verified ✅ **Type:** Test / Coverage **Priority:** High **MoSCoW:** Must Have **Milestone:** v3.2.0 This issue is **verified** and assigned to **v3.2.0**. Slipcover reports `src/cleveragents/cli/commands/plan.py` at only **11.60%** coverage (292 covered / 2,226 missing). The v3 plan workflow CLI — `use`, `list`, `status`, `execute`, `apply`, `cancel`, `diff` — is almost entirely untested. The v3.2.0 milestone acceptance criteria requires test coverage ≥ 97%. **Rationale:** - The plan CLI commands are the primary user-facing interface for the Decisions + Validations + Invariants milestone. Near-zero coverage on this module means regressions in the core user workflow go undetected. - Classified **Must Have** for v3.2.0 — the 97% coverage gate is a hard acceptance criterion for the milestone. - Behave scenarios covering success paths, ULID validation, and error handling for each CLI entry point are the appropriate fix. **Next steps:** Add Behave scenarios that invoke each plan CLI entry point against real services and sample plans, targeting ≥ 97% coverage for `plan.py`. --- **Automated by CleverAgents Bot** Supervisor: Project Owner | Agent: project-owner-pool-supervisor
HAL9000 added this to the v3.2.0 milestone 2026-04-16 08:36:59 +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.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#9646
No description provided.