Build garageTry it → read → next · ~10 min

Tutorials · Chapter D (4/4) · ~10 min

Eval gates in code

Try it → see it → read → next

Block deploys when **golden tasks fail** — eval is code, not a spreadsheet you forget.

On paths: Builder · Student

Optional on: Professional

Try tools: Agents & automation

Try yourself

Playground

Eval gate before ship

No agent or RAG change reaches prod without a golden task set.

Recap

What you just did

You checked four ship gates: golden set, CI hook, pass threshold, deploy block.

Read

Minimal gate

  1. JSON file of { input, must_include, must_not_include } tasks
  2. Script scores model output on staging
  3. Exit code 1 if score < threshold
  4. CI runs script on PR touching prompts/tools