Files
cleveragents-core/robot/plan_cli_spec.robot
freemo 48cff5cfe0 refactor(cli): rename plan lifecycle-list and lifecycle-apply to match specification
Renames `plan lifecycle-list` to `plan list` and `plan lifecycle-apply` to `plan apply` to align with the specification's canonical command names. Removes legacy V2 plan commands that occupied those names.

- Renamed CLI command registrations from lifecycle-list/lifecycle-apply to list/apply
- Removed legacy V2 apply and list commands (~200 lines)
- Updated apply shortcut in main.py to delegate to v3 lifecycle
- Added defensive null check for plan existence in apply command
- Updated 63+ test, doc, and benchmark files for consistency

Closes #881

Co-authored-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Co-committed-by: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
2026-04-02 19:09:04 +00:00

54 lines
2.7 KiB
Plaintext

*** Settings ***
Documentation Smoke tests for Plan CLI spec alignment (use/list/status flags)
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
*** Variables ***
${HELPER} ${CURDIR}/helper_plan_cli_spec.py
*** Test Cases ***
Plan Use Accepts Positional Projects
[Documentation] Verify that ``plan use`` accepts multiple positional projects
${result}= Run Process ${PYTHON} ${HELPER} use-positional-projects cwd=${WORKSPACE}
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-use-positional-ok
Plan Use Accepts Automation Profile Flag
[Documentation] Verify that ``plan use --automation-profile`` is accepted
${result}= Run Process ${PYTHON} ${HELPER} use-automation-profile cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-use-profile-ok
Plan Use Accepts Invariant Flag
[Documentation] Verify that ``plan use --invariant`` is accepted (repeatable)
${result}= Run Process ${PYTHON} ${HELPER} use-invariant cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-use-invariant-ok
Plan Use Accepts Actor Override Flags
[Documentation] Verify that plan use accepts actor override flags
${result}= Run Process ${PYTHON} ${HELPER} use-actor-overrides cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-use-actors-ok
Plan Lifecycle List Accepts Filter Flags
[Documentation] Verify that ``plan list`` accepts --phase, --state, --project, --action
${result}= Run Process ${PYTHON} ${HELPER} list-filters cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-list-filters-ok
Plan Status Renders Required Fields
[Documentation] Verify that ``plan status`` renders action_name, phase, state, projects, args, timestamps
${result}= Run Process ${PYTHON} ${HELPER} status-fields cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-status-fields-ok
Plan Cancel Accepts Reason Flag
[Documentation] Verify that ``plan cancel --reason`` is accepted
${result}= Run Process ${PYTHON} ${HELPER} cancel-reason cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-cli-cancel-reason-ok