test(e2e): add M3 decision + validation suites #179

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

Metadata

  • Commit Message: test(e2e): add M3 decision + validation suites
  • Branch: feature/m3-decision-validation-smoke

Background

E2E fixtures cover decision tree outputs, validation attachments, and invariant configs. The suite exercises the full decision → validation → invariant enforcement flow in an integrated scenario.

Acceptance Criteria

  • Add fixtures for decision tree outputs, validation attachments, and invariant configs.
  • Update docs/development/testing.md with M3 suite usage.

Definition of Done

This issue is complete when:

  • All subtasks below 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 body should be appropriate in size for a commit message and relatively
    complete in describing what was done.
  • 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.

Subtasks

  • Add fixtures for decision tree outputs, validation attachments, and invariant configs.
  • Update docs/development/testing.md with M3 suite usage.
  • Tests (Behave): Add features/m3_decision_validation_smoke.feature covering explain/tree, validation gating, and invariant enforcement.
  • Tests (Robot): Add Robot integration suite for decision/validation CLI flows.
  • Tests (ASV): Add benchmarks/m3_smoke_bench.py for suite runtime.
  • 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%.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across entire code base, do not ignore any failure even if it seems unrelated to this commit, fix it.

Section: #### M3: Decisions + Validations + Invariants (Day 18)
Status: Open

## Metadata - **Commit Message**: `test(e2e): add M3 decision + validation suites` - **Branch**: `feature/m3-decision-validation-smoke` ## Background E2E fixtures cover decision tree outputs, validation attachments, and invariant configs. The suite exercises the full decision → validation → invariant enforcement flow in an integrated scenario. ## Acceptance Criteria - [ ] Add fixtures for decision tree outputs, validation attachments, and invariant configs. - [ ] Update `docs/development/testing.md` with M3 suite usage. ## Definition of Done This issue is complete when: - All subtasks below 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 body should be appropriate in size for a commit message and relatively complete in describing what was done. - 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. ## Subtasks - [ ] Add fixtures for decision tree outputs, validation attachments, and invariant configs. - [ ] Update `docs/development/testing.md` with M3 suite usage. - [ ] Tests (Behave): Add `features/m3_decision_validation_smoke.feature` covering explain/tree, validation gating, and invariant enforcement. - [ ] Tests (Robot): Add Robot integration suite for decision/validation CLI flows. - [ ] Tests (ASV): Add `benchmarks/m3_smoke_bench.py` for suite runtime. - [ ] 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%. - [ ] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across **entire** code base, do not ignore any failure even if it seems unrelated to this commit, fix it. **Section**: #### M3: Decisions + Validations + Invariants (Day 18) **Status**: Open
freemo added this to the v3.2.0 milestone 2026-02-22 23:39:52 +00:00
freemo added the
State
Verified
Type
Testing
Priority
High
Points
5
MoSCoW
Must have
labels 2026-02-22 23:39:52 +00:00
brent.edwards was assigned by freemo 2026-02-22 23:39:52 +00:00
freemo added a new dependency 2026-02-22 23:54:04 +00:00
Author
Owner

Expected completion updated (Day 15 rebaseline): Day 30 / 2026-03-10 (previously Day 22 / 2026-03-02)

**Expected completion updated (Day 15 rebaseline):** Day 30 / 2026-03-10 (previously Day 22 / 2026-03-02)
freemo added the due date 2026-03-01 2026-02-23 18:41:27 +00:00
freemo removed a dependency 2026-02-23 20:33:18 +00:00
freemo added a new dependency 2026-02-23 20:35:24 +00:00
brent.edwards added
State
In Review
and removed
State
Verified
labels 2026-02-25 21:27:46 +00:00
brent.edwards added
State
Completed
and removed
State
In Review
labels 2026-02-26 20:57:12 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
2026-03-01
Reference: cleveragents/cleveragents-core#179