Certainty where it is possible
Lint, tests and link checks are cheap, fast and never wrong in the same way twice. Making them pass/fail means the AI is never the only line of defence.
This site runs on the same three-tier review it recommends to clients: deterministic gates, an advisory AI reviewer, and a human who makes the final call. Here is what each tier caught on one real pull request, and what it cost.
Tier 1 developer + intent Tier 2a deterministic gate ✓ ~20 s Tier 2b AI reviewer ✓ ~2 min Tier 3 human merge ✓
The problem
If the review is slow, the pipeline is missing tiers, not people.
A common complaint: AI makes code cheap, so the review queue explodes and lands on one tired engineer. The answer is not to slow down generation. It is to make most of the review automatic, so the human sees a change that is already close to right.
The rule we hold ourselves to:
How it works
Tier 2 is split on purpose: certainty from tools, judgment from the model.
Changes start from a written intent with success criteria, so the code arrives already aimed at a checkable outcome.
ShellCheck on every deploy script, Python lint and guardrail tests, HTML validation and an internal-link check. No AI, no secrets, pinned versions.
Claude Code runs a repo-local review skill and a read-only subagent, then posts inline comments and a summary. It is told to skip lint and focus on judgment.
The engineer reads a short, ranked list of findings with evidence, then decides. No line-by-line hunting for typos.
A pass/fail run, a labelled AI outcome and the review comment stay on the PR as the permanent record.
The evidence
The pull request that added the deterministic gate was the first one reviewed by all three tiers.
| Gate: HTML validator | Found invalid markup on the live Case Studies page: a block element nested inside an inline one. Fixed with no visual change. |
|---|---|
| Gate: guardrail tests | Went red on the first run because a test dependency was no longer installed by its parent package. A real gap, caught in seconds. |
| AI: unpinned dependencies | Flagged that the test job used unpinned SDK versions, so an upstream release could turn the gate red with no change in the repo. Versions are now pinned. |
| AI: overstated docs | Noticed the docs called the checks “required”, but the repository’s plan cannot enforce required checks. The docs now state the real rule: do not merge on red. |
| AI: link checker blind spot | Showed that a link escaping the site folder could pass the check yet 404 in production. The checker now rejects it, and that was verified with a planted bad link. |
| AI: reviewing its own plumbing | On the final commit it flagged that the outcome-labelling rule was too broad, plus a fragment edge case in the link checker. Both fixed in the follow-up. |
| Human: the call | Merged once the deterministic gate was green, treating the AI findings as advice: fixing the real ones and recording the rest. |
Why it matters
Lint, tests and link checks are cheap, fast and never wrong in the same way twice. Making them pass/fail means the AI is never the only line of defence.
The AI reviewer found issues no linter would: docs that overstated a control, a test that depended on someone else’s release schedule, and a gap in the review tooling itself.
At about 36 cents and two minutes per review, the reviewer pays for itself the first time it saves an engineer an hour. The human’s time goes to the call, not the checklist.
Deterministic gates, an AI reviewer tuned to your codebase, and a human in charge. Set up in days, with the evidence on every pull request.
Talk to Repogenic