# Stage 8: Test

## Purpose

Validate against acceptance criteria from Planning 3. Integration testing.

## Input

- PR that passed Review
- Acceptance criteria from task definition
- Test strategy from Planning 2

## Composition

| Role          | Model  | Purpose                                                  |
| ------------- | ------ | -------------------------------------------------------- |
| QA Strategist | Sonnet | Validates acceptance criteria, designs integration tests |

## Process

1. Run automated test suite (unit + integration)
2. QA Strategist validates each acceptance criterion:
   - Does the implementation actually meet the criterion?
   - Not just "tests pass" but "the right things are tested"
3. Regression check: does this break anything else?
4. If UI changes: visual verification

## Output

- Test report:
  - Each acceptance criterion: PASS / FAIL
  - Test coverage summary
  - Regression results
  - Any new issues discovered

## Gate: test-pass

### Mechanical

- [ ] All acceptance criteria validated
- [ ] No regressions in existing test suite
- [ ] Test coverage meets project minimum

### Gate Reviewer

- "Are we actually testing the right things, or just checking boxes?"

## On FAIL

→ Back to Remediate with test failure details
