| name | opencode-wave-gate |
| description | Run after wave implementation complete. Executes test + spec-check + review gate sequence. Usage: /wave-gate |
Wave Gate - Test, Spec & Review Sequence
Executes the gate sequence after all wave tasks are implemented. Verifies test evidence, checks spec alignment, spawns code reviewers, and decides whether to advance.
Run this after all tasks in a wave are complete.
Sequence
Step 1: Verify State
Check the spec directory for the task graph artifact (produced by decompose phase):
SPEC_DIR=$(ls -td .claude/specs/*/ | head -1)
ls "$SPEC_DIR"
Verify the wave's tasks are all marked complete in your tracking. If tracking is done via a task-graph JSON artifact on disk, read it. Otherwise, rely on the orchestrator's knowledge of what was implemented.
Step 2: Verify Test Evidence
For each task in the current wave, confirm that:
- Tests were run and passed (look for "BUILD SUCCESS", "X passing", "OK" markers in agent output)
- New tests were written (not just existing tests re-run)
How to verify new tests:
BASE=$(git merge-base HEAD origin/main 2>/dev/null || echo "HEAD~10")
git diff --name-only $BASE..HEAD | grep -i test
If test evidence is missing for a task, re-spawn the implementation agent for that task. The agent MUST run tests and produce visible pass markers.
Step 3: Spawn Verification (Parallel)