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¶
- Two halves before the pull request. The machine half is the repository's
Machine gatecommand, run by thepre-pushhook and again in CI; the model half isworkflow:ready—simplify, code review, security review and the Aikido scan (sdlc/quality-gate.md). In this repository the machine gate ispre-commit run --all-files --hook-stage pre-push(rootCLAUDE.md(CLAUDE.md), "Workflow"). - 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).
- Every finding gets one verdict, and the gate runs again after the last fix (sdlc/quality-gate.md).
- A review comes from a fresh context, never from the session that wrote the work
(
SPEC.md§5.2, "Guardrails"). - AI reviewers are advice, never a required check. One Copilot review when a pull request
is marked ready, one
claude-reviewrun where a repository has it; the owner can waive either (ci/copilot-review.md, ci/claude-review.md). - 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) |