Why the verification gate has no model in it

L3SeniorConcept10 minDesign reviewML depth

RolesAgent Systems EngineeringAI Evaluation and Reliability

The question

A proposal replaces the script that decides whether an agent task is done with a model judge. The argument is that a judge reads the diff, understands intent, and catches more than a script can. Argue for or against, and say where a judge does belong.

Answer it first, aloud or on paper. Then open the answer.

The answer

Show short answer

Against. The gate answers one question, is this task complete, and that verdict must be the same for the same artifacts every time, in version control, in CI, with no way for the agent to argue with it. A model judge gives a different answer on a different day and can be talked into a pass. A judge belongs on the review side, where the question is qualitative: is the code readable, secure and on style.

Show full answer

What the gate reads and decides

CheckSourceSeverity
Every acceptance command ranfeedback recordsblock
Every acceptance command exited zerofeedback recordsblock
No write to a forbidden pathscope reportblock
No off-scope writescope reportblock or warn
Every block-severity rule passedrule reportblock
No null exit codefeedback recordsblock
Touched files match the allowed globsbothwarn

A warn annotates the verdict. A block prevents passed: true. Every check is a comparison between artifacts the agent already produced. No judgement is needed, so no judge is needed.

Why determinism is the point

Three failure shapes dominate agent work: "looks good", "tests passed" with no record, and acceptance read loosely enough to mean anything. A model judge is subject to all three. It reads the diff and decides it looks good. It reads the transcript and believes the claim. It interprets the acceptance line generously. The script cannot do any of that, because it never reads prose. The lesson pairs the two kinds of signal: verifiable checks such as tests, schema checks and exit codes answer whether the code solved the problem, and rubric judges answer whether it is readable and on style. Mixing them collapses the signal.

Overrides are human and signed

A block cannot be overridden by the agent. A human can override it, and the override writes a row with the finding code, a reason, the signing user and the current commit into an audit log that git tracks. The runtime refuses an override without a signature. That is the line between an override policy and an override theater.

One report, several layers

The gate writes one verification_report.json per task under one path, and CI reads the same path. Around it sit other deterministic layers: a pre-commit hook, a CI status check, a pre-tool authorization hook and a pre-merge gate. A failure in one layer is caught by the next. The pre-commit hook does not depend on the agent following instructions, but it is a local check that git commit --no-verify skips, so the CI status check and the pre-merge gate hold the verdict.

Where the judge goes

The reviewer, a separate pass with a different role, reads the diff and the reports after the gate passes. It scores readability, security and style. Its output goes to a human or into the handoff, never into the gate's verdict.

Follow-ups

  1. L3SeniorAn agent deletes failing tests, and the gate stays green. Which check is missing?

    Show expected answer

    a coverage floor read from a coverage report, with a block when coverage falls below the floor or drops by more than one percentage point against the previous merge.

  2. L3SeniorWhen is promoting every warning to a block the right default?

    Show expected answer

    on release branches and in post-incident triage through a strict flag, and not globally, because strict everywhere erodes daily flow.

  3. L4StaffWhat stops the override log from becoming a formality?

    Show expected answer

    the runtime refuses an unsigned entry, the log is in git, and review reads it, so every override has a name and a reason attached.

  4. L4StaffThe gate and the reviewer disagree. Who wins?

    Show expected answer

    the gate decides whether the task is done, and the reviewer decides whether it is good, so a gate failure blocks regardless of the review, and a review failure reopens the task without touching the verdict.

Wrong answers

Show the wrong answers that interviewers hear
  • “A judge understands intent, so it catches more.”

    The gate does not need intent, and a judge that infers intent can be convinced that an incomplete task is complete.

  • “Run the judge and the script, and pass if either passes.”

    The judge then becomes the way around the script, so the deterministic checks must decide done and the judge must only annotate.

  • “Let the agent explain why a block does not apply.”

    The agent is the party under test, and an override needs a human signature with a reason.

Taught in

The verification gates lesson builds the deterministic gate, the signed override log and the coverage floor.