Verification Gates

The agent does not get to mark its own work as done. A verification gate reads the scope contract, the feedback log, the rule report, and the diff, and answers a single question: is this task actually complete? If the gate says no, the task is not done, no matter what the chat says.

Build 55 min Python (stdlib)

Prerequisites: Phase 14 · 33 (Rules), Phase 14 · 36 (Scope), Phase 14 · 37 (Feedback)

#Learning Objectives

  • Define a verification gate as a deterministic function over workbench artifacts.
  • Combine rule report, scope report, feedback records, and diff into a single verdict.
  • Emit a verification_report.json the reviewer agent and CI can both read.
  • Refuse to advance a task on any block-severity failure, without exception.
Full Access lesson

Keep going. The rest of this lesson is one step away.

Unlock all 503 lessons, video, code, quizzes and every future update. Pay in your own currency with Paystack.

The text and code of this lesson are based on AI Engineering from Scratch by Rohit Ghumare, MIT licensed.