Skip to content

8.4 The quality gate

A gate before the pull request and a review loop after it check every change (sdlc/quality-gate.md; SPEC.md §5.2). The machine half is deterministic and decides; the AI reviews are advice. The reason: AI reviewers find real problems, but they also stop for hours without saying so or loop over the same change, so the merge decision rests on deterministic checks and written rules (lessons-learned.md).

Rules

  1. Two halves before the pull request. The machine half is the repository's Machine gate command, run by the pre-push hook and again in CI; the model half is workflow:ready—simplify, code review, security review and the Aikido scan (sdlc/quality-gate.md). In this repository the machine gate is pre-commit run --all-files --hook-stage pre-push (root CLAUDE.md (CLAUDE.md), "Workflow").
  2. The same checks locally as in CI. A broken change costs no CI minutes, and each machine has one push slot, because parallel checks ran a laptop out of memory (ci/checks.md, sdlc/parallel-work.md).
  3. Every finding gets one verdict, and the gate runs again after the last fix (sdlc/quality-gate.md).
  4. A review comes from a fresh context, never from the session that wrote the work (SPEC.md §5.2, "Guardrails").
  5. AI reviewers are advice, never a required check. One Copilot review when a pull request is marked ready, one claude-review run where a repository has it; the owner can waive either (ci/copilot-review.md, ci/claude-review.md).
  6. The review loop has limits, and when it stops converging it hands over to a person (sdlc/quality-gate.md).

Where it is described

Topic How-to
The gate, the review loop and the merge criteria sdlc/quality-gate.md
The CI steps and what each protects against, the pre-push hook, Windows ci/checks.md
The tools of the machine half per stack stacks/
The model half workflow:ready (plugins/workflow/skills/ready/SKILL.md)