Gates

verify_dod

The DoD verification gate runs after each step execution. It:

  1. Re-derives each acceptance criterion from recorded evidence.
  2. Checks each integration check.
  3. Verifies each declared output exists.
  4. Assigns PASS, FAIL, or UNCERTAIN to each criterion.

A FAILED DoD halts the step and offers recovery. The step is never marked complete with a failed DoD (INV-1).

closure_gate

The terminal gate that runs after all steps are complete. It executes:

  1. goatcs-harness wiring-check against the skill's wiring-contract.yaml (or a bootstrapped fallback).
  2. The coverage-with-closure report.

A route: closure-blocked with a gap-list is a recovery item routed back into the build loop.

Fresh-context verifier

For the final ship-gate, the executor spawns a fresh-context verifier sub-agent (Agent tool). This agent has a clean context that never saw the build reasoning and re-derives the ship verdict from artifacts + gate outputs alone. Self-grading the final gate is the false-green class; genuine context-separation is required.