test(integration): verify M1 success criteria — minimal plan execution flow #402

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

Metadata

  • Commit Message: test(integration): verify M1 success criteria — minimal plan execution flow
  • Branch: test/m1-e2e-verification

Description

Robot Framework integration test suite that exercises the complete M1 success criteria verification sequence: action creation from YAML, git resource registration, project creation and resource linking, plan use/execute/diff/apply lifecycle, and post-apply commit verification. Uses integration-appropriate mocking (e.g., mocked LLM providers).

Acceptance Criteria

  • Robot test creates an action from YAML config via agents action create --config
  • Robot test registers a git-checkout resource via agents resource add
  • Robot test creates a project and links the resource
  • Robot test runs the full plan lifecycle: plan use -> plan execute -> plan diff -> plan apply
  • Assertions verify Plan and Action records persist to SQLite
  • Assertions verify ChangeSet is built from tool invocations (not parsed output)
  • Assertions verify git worktree sandbox creates isolated working directory
  • Assertions verify sandbox changes do not affect original until Apply
  • Assertions verify post-apply commit exists in the target repo
  • nox passes with coverage >=97%

Verification Commands

# Full M1 verification sequence (from specification)
agents action create --config /tmp/test_action.yaml
agents resource add git-checkout local/main-repo --path /path/to/repo --branch main
agents project create local/test-project
agents project link-resource local/test-project local/main-repo
agents plan use local/test-action local/test-project
agents plan execute <plan_id>
agents plan diff <plan_id>
agents plan apply <plan_id>
cd /path/to/repo && git log -1

Subtasks

  • Write Robot Framework integration test suite covering all acceptance criteria above
  • Verify all assertions pass against working implementation
  • Tests (Behave): N/A (this is an integration test issue)
  • Tests (Robot): The Robot test suite IS this issue's deliverable
  • Tests (ASV): N/A (no benchmark needed for integration verification)
  • Verify coverage >=97% via nox -s coverage_report
  • Run nox (all default sessions), fix any errors

Definition of Done

This issue is complete when:

  • All subtasks above are completed and checked off.
  • A Git commit is created where the first line of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation.
  • The commit is pushed to the remote on the branch matching the Branch in Metadata exactly.
  • The commit is submitted as a pull request to master, reviewed, and merged before this issue is marked done.
## Metadata - **Commit Message**: `test(integration): verify M1 success criteria — minimal plan execution flow` - **Branch**: `test/m1-e2e-verification` ## Description Robot Framework integration test suite that exercises the complete M1 success criteria verification sequence: action creation from YAML, git resource registration, project creation and resource linking, plan use/execute/diff/apply lifecycle, and post-apply commit verification. Uses integration-appropriate mocking (e.g., mocked LLM providers). ## Acceptance Criteria - [ ] Robot test creates an action from YAML config via `agents action create --config` - [ ] Robot test registers a git-checkout resource via `agents resource add` - [ ] Robot test creates a project and links the resource - [ ] Robot test runs the full plan lifecycle: `plan use` -> `plan execute` -> `plan diff` -> `plan apply` - [ ] Assertions verify Plan and Action records persist to SQLite - [ ] Assertions verify ChangeSet is built from tool invocations (not parsed output) - [ ] Assertions verify git worktree sandbox creates isolated working directory - [ ] Assertions verify sandbox changes do not affect original until Apply - [ ] Assertions verify post-apply commit exists in the target repo - [ ] `nox` passes with coverage >=97% ## Verification Commands ```bash # Full M1 verification sequence (from specification) agents action create --config /tmp/test_action.yaml agents resource add git-checkout local/main-repo --path /path/to/repo --branch main agents project create local/test-project agents project link-resource local/test-project local/main-repo agents plan use local/test-action local/test-project agents plan execute <plan_id> agents plan diff <plan_id> agents plan apply <plan_id> cd /path/to/repo && git log -1 ``` ## Subtasks - [ ] Write Robot Framework integration test suite covering all acceptance criteria above - [ ] Verify all assertions pass against working implementation - [ ] Tests (Behave): N/A (this is an integration test issue) - [ ] Tests (Robot): The Robot test suite IS this issue's deliverable - [ ] Tests (ASV): N/A (no benchmark needed for integration verification) - [ ] Verify coverage >=97% via `nox -s coverage_report` - [ ] Run `nox` (all default sessions), fix any errors ## Definition of Done This issue is complete when: - All subtasks above are completed and checked off. - A Git commit is created where the **first line** of the commit message matches the Commit Message in Metadata exactly, followed by a blank line, then additional lines providing relevant details about the implementation. - The commit is pushed to the remote on the branch matching the **Branch** in Metadata exactly. - The commit is submitted as a **pull request** to `master`, reviewed, and **merged** before this issue is marked done.
freemo added this to the v3.0.0 milestone 2026-02-23 22:17:47 +00:00
Author
Owner

Parent Epic: #401 (End-to-End Milestone Verification)

Parent Epic: #401 (End-to-End Milestone Verification)
brent.edwards 2026-02-25 21:06:53 +00:00
freemo changed title from test(e2e): verify M1 success criteria — minimal plan execution flow to test(integration): verify M1 success criteria — minimal plan execution flow 2026-03-12 19:22:19 +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#402
No description provided.