On this page

Pattern: Eval Gate in CI

An evaluation suite wired into CI so a model or agent ships only above a documented threshold: the eval run is the control, its result the evidence.

Layer 03 · Evals & Red Teaming as Evidence In the chapter 05 catalogue

Summary: Wire an evaluation suite into the CI/CD pipeline so that a model or agent must pass a defined test, above a documented threshold, before it can ship. The eval run is the control and its result is the evidence; a failing eval blocks the build.

Eval Gate in CI A workflow diagram generated by Archify. 01 / Development 02 / CI / CD Pipeline 03 / Eval Suite (Layer 03) 04 / Registry & Evidence EX / Blocked Release Change Run evals Gate + record Eval run in CI Below threshold Model / Prompt Change · retrained · new tool · Development › Change Model / Prompt Change retrained · new tool CI Pipeline · already runs tests · CI / CD Pipeline › Change CI Pipeline already runs tests Ship Release · deploy to prod · CI / CD Pipeline › Gate + record Ship Release deploy to prod Versioned Eval Suite · versioned with model · Eval Suite (Layer 03) › Eval run in CI › Run evals Versioned Eval Suite versioned with model Capability Eval · coverage floor · Eval Suite (Layer 03) › Eval run in CI › Run evals · e.g. promptfoo Capability Eval coverage floor e.g. promptfoo Adversarial Eval · injection-resistance · Eval Suite (Layer 03) › Eval run in CI › Gate + record · e.g. Garak Adversarial Eval injection-resistance e.g. Garak Threshold Gate · traces to failure mode · Eval Suite (Layer 03) › Gate + record · pass / fail Threshold Gate traces to failure mode pass / fail Structured Result · score · verdict · time · Registry & Evidence › Gate + record Structured Result score · verdict · time Registry Entry · evidence accrues · Registry & Evidence › Gate + record Registry Entry evidence accrues Pipeline Blocked · does not ship · Blocked Release › Below threshold › Gate + record Pipeline Blocked does not ship score score triggers CI file against entry load suite adversarial eval capability eval below threshold emit result above threshold Legend Agent logic Policy Context / trace External system
Eval Gate in CIHow a model or prompt change moves through an eval gate in CI: capability and adversarial evals against a versioned suite, a threshold that ships the release or blocks it and files the result against the registry. Generated from the Body of Knowledge.Open interactive diagram (opens in a new tab)

Objectives

Make “give every control teeth” concrete: give a testable property a consequence, so failure stops a release instead of filing a finding.

Target users

AI governance engineer, ML engineer, platform team.

Impacted stakeholders

Model owners, users exposed to the system, auditors.

Relevant principles

Give every control teeth; build the control at the earliest point it can block.

Context

A model or agent that changes (retrained, re-prompted, given a new tool) and a pipeline that already runs tests for functional correctness.

Problem

Evaluations run once before launch and pasted into a slide prove nothing after the next change. A review board that can only rate findings cannot stop a scheduled launch. Without a gate, evaluation is research, not control.

Solution

Version an eval suite alongside the model. Run at least one capability eval and one adversarial eval in CI (for example with Inspect, promptfoo, Garak or Giskard; illustrative). Set a threshold that traces to a named failure mode or obligation. Fail the pipeline below the threshold. Emit a structured result (suite id, model version, score, threshold, pass/fail, timestamp) filed against the registry entry.

Illustrative schema for the result:

{
  "suite_id": "injection-resistance.v4",
  "model_version": "csa-01@2026-09-18",
  "score": 0.982,
  "threshold": 0.95,
  "result": "pass",
  "timestamp": "2026-09-18T14:22:03Z"
}

Singapore’s framework for agentic AI sets the same expectation before release: “Organisations should test agents for safety and security before deployment. This provides confidence that the agents work as expected and controls are effective” (IMDA, section 2.3.2, p. 38)3. It does not say that a failed evaluation blocks the release.

Consequences

Regressions are caught before production and evidence accrues automatically. The trade-off is eval maintenance, run-time cost in CI, and the need to tune thresholds to avoid flaky gates.

Policy Card; Adversarial Red-Team Suite; Continuous Assurance Telemetry; Machine-Readable Evidence (OSCAL); Model Card as Control Evidence.

Maps to: EU AI Act Art. 15, Art. 55 · ISO/IEC 42001 · NIST AI RMF (Measure) · OWASP Agentic ASI01/ASI02 · Layer 03 Evals & Red Teaming as Evidence.

Threat IDs follow the OWASP Top 10 for Agentic Applications 2026 1 and function labels the NIST AI RMF2. Mappings are illustrative, not a claim of conformity.

Sources

  1. [1] Top 10 for Agentic Applications 2026 (ASI IDs). OWASP GenAI Security Project. 2025-12-09. https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/ (verified: primary)
  2. [2] AI Risk Management Framework (AI RMF 1.0; Govern, Map, Measure, Manage). NIST. 2023-01-26. https://www.nist.gov/itl/ai-risk-management-framework (verified: primary)
  3. [3] Model AI Governance Framework for Agentic AI, v1.5 (section 2.3.2, p. 38: testing agents before deployment; published 2026-05-20, updated 2026-06-05). IMDA. 2026-06-05. https://www.imda.gov.sg/-/media/imda/files/about/emerging-tech-and-research/artificial-intelligence/mgf-for-agentic-ai.pdf (verified: primary)
Edit this page on GitHub
Cite this pattern

García Aibar, J. (2026). Pattern: Eval Gate in CI. In AI Governance Engineering: The Thesis & Body of Knowledge (v0.5.0), chapter 05, Patterns. https://doi.org/10.5281/zenodo.22956197. https://aigovernanceengineer.com/patterns/eval-gate-in-ci. CC BY 4.0

BibTeX

@misc{aige2026bok,
  author  = {Jorge García Aibar},
  title   = {{AI Governance Engineering: The Thesis \& Body of Knowledge}},
  chapter = {05. Patterns: Eval Gate in CI},
  year    = {2026},
  version = {0.5.0},
  doi     = {10.5281/zenodo.22956197},
  url     = {https://aigovernanceengineer.com/patterns/eval-gate-in-ci},
  note    = {Version 0.5.0}
}
Share on LinkedIn
Around Eval Gate in CIThe patterns Eval Gate in CI is listed with, and the obligations, open controls and incident cases that name it.Names this patternRelated patternColour: stack layer of the related pattern01 Govern-as-Code02 Inventory03 Evals05 AssuranceEval Gate in CIRelated patterns (5)Adversarial Red-Team Suite · Related patternAdversarial Red-Team SuiteContinuous Assurance Telemetry · Related patternContinuous Assurance TelemetryMachine-Readable Evidence (OSCAL) · Related patternMachine-Readable EvidenceModel Card as Control Evidence · Related patternModel Card as Control EvidencePolicy Card · Related patternPolicy CardObligations (5)EU AI Act Art. 15: accuracy, robustness and cybersecurity · Names this patternEU AI Act Art. 15EU AI Act Art. 15(4): feedback loops in systems that continue to learn · Names this patternEU AI Act Art. 15(4)EU AI Act Art. 55: GPAI models with systemic risk · Names this patternEU AI Act Art. 55NIST AI RMF MEASURE · Names this patternNIST AI RMF MEASUREOWASP Top 10 for Agentic Applications 2026 · Names this patternOWASP AgenticControls (7)AIGE-CTL-EVAL-009 Evaluation Validity Checks · Names this patternEvaluation Validity ChecksAIGE-CTL-EVAL-008 Harness and Configuration Attestation · Names this patternHarness and Configuration…AIGE-CTL-AGENT-013 Independent trajectory evals · Names this patternIndependent trajectory evalsAIGE-CTL-AGENT-028 Prompts under change control · Names this patternPrompts under change controlAIGE-CTL-ASSURE-002 Release Blocked Below the Eval Threshold · Names this patternRelease Blocked Below…AIGE-CTL-ASSURE-003 Signed Test Report Against the Plan · Names this patternSigned Test Report Against…+1 more+1 more: AIGE-CTL-ASSURE-001 Test Plan Frozen Before EvaluationCases (9)England's 2020 A levels: a centre model applied to individual students · Names this pattern2020 A-level gradesClaude models reached real systems from a misconfigured third-party cyber evaluation · Names this patternClaude cyber evaluation…Dutch childcare benefits: nationality as a risk indicator · Names this patternDutch childcare benefitsA health-risk score that predicted cost, not need · Names this patternHealth-risk scoreMoffatt v. Air Canada: the chatbot's answer is the company's answer · Names this patternMoffatt v. Air CanadaNYC MyCity: a government chatbot that advised breaking the law · Names this patternNYC MyCity chatbot+3 more+3 more: Training samples exchanged messages through a shared package repository, Agents in training shared a file through a public file-hosting service, A recruiting model that learned the past (reported)Source: the pattern catalogue, theobligation register, the opencontrols and the cases
Around Eval Gate in CIThe patterns Eval Gate in CI is listed with, and the obligations, open controls and incident cases that name it.Names this patternRelated patternColour: stack layer of the related pattern01 Govern-as-Code02 Inventory03 Evals05 AssuranceRelated patterns (5)Adversarial Red-Team Suite · Related patternAdversarial Red-Team…Continuous Assurance Telemetry · Related patternContinuous Assurance…Machine-Readable Evidence (OSCAL) · Related patternMachine-Readable…Model Card as Control Evidence · Related patternModel Card as Control…Policy Card · Related patternPolicy CardControls (7)AIGE-CTL-EVAL-009 Evaluation Validity Checks · Names this patternEvaluation Validity ChecksAIGE-CTL-EVAL-008 Harness and Configuration Attestation · Names this patternHarness and Configuration…AIGE-CTL-AGENT-013 Independent trajectory evals · Names this patternIndependent trajectory evalsAIGE-CTL-AGENT-028 Prompts under change control · Names this patternPrompts under change…AIGE-CTL-ASSURE-002 Release Blocked Below the Eval Threshold · Names this patternRelease Blocked Below…AIGE-CTL-ASSURE-003 Signed Test Report Against the Plan · Names this patternSigned Test Report…+1 more+1 more: AIGE-CTL-ASSURE-001 Test Plan Frozen Before EvaluationObligations (5)EU AI Act Art. 15: accuracy, robustness and cybersecurity · Names this patternEU AI Act Art. 15EU AI Act Art. 15(4): feedback loops in systems that continue to learn · Names this patternEU AI Act Art. 15(4)EU AI Act Art. 55: GPAI models with systemic risk · Names this patternEU AI Act Art. 55NIST AI RMF MEASURE · Names this patternNIST AI RMF MEASUREOWASP Top 10 for Agentic Applications 2026 · Names this patternOWASP AgenticCases (9)England's 2020 A levels: a centre model applied to individual students · Names this pattern2020 A-level gradesClaude models reached real systems from a misconfigured third-party cyber evaluation · Names this patternClaude cyber evaluation…Dutch childcare benefits: nationality as a risk indicator · Names this patternDutch childcare benefitsA health-risk score that predicted cost, not need · Names this patternHealth-risk scoreMoffatt v. Air Canada: the chatbot's answer is the company's answer · Names this patternMoffatt v. Air CanadaNYC MyCity: a government chatbot that advised breaking the law · Names this patternNYC MyCity chatbot+3 more+3 more: Training samples exchanged messages through a shared package repository, Agents in training shared a file through a public file-hosting service, A recruiting model that learned the past (reported)Eval Gate in CISource: the pattern catalogue, the obligation register, the open controls and thecases
Around Eval Gate in CI The patterns listed with this one, in their layer colour, and the obligations, open controls and incident cases that name it. Follow a node to see why the pattern is worth building, and what to build with it.
Data table
What Eval Gate in CI connects to
FamilyItemRelation
Related patternsAdversarial Red-Team SuiteRelated pattern
Related patternsContinuous Assurance TelemetryRelated pattern
Related patternsMachine-Readable Evidence (OSCAL)Related pattern
Related patternsModel Card as Control EvidenceRelated pattern
Related patternsPolicy CardRelated pattern
ObligationsEU AI Act Art. 15: accuracy, robustness and cybersecurityNames this pattern
ObligationsEU AI Act Art. 15(4): feedback loops in systems that continue to learnNames this pattern
ObligationsEU AI Act Art. 55: GPAI models with systemic riskNames this pattern
ObligationsNIST AI RMF MEASURENames this pattern
ObligationsOWASP Top 10 for Agentic Applications 2026Names this pattern
ControlsAIGE-CTL-EVAL-009 Evaluation Validity ChecksNames this pattern
ControlsAIGE-CTL-EVAL-008 Harness and Configuration AttestationNames this pattern
ControlsAIGE-CTL-AGENT-013 Independent trajectory evalsNames this pattern
ControlsAIGE-CTL-AGENT-028 Prompts under change controlNames this pattern
ControlsAIGE-CTL-ASSURE-002 Release Blocked Below the Eval ThresholdNames this pattern
ControlsAIGE-CTL-ASSURE-003 Signed Test Report Against the PlanNames this pattern
ControlsAIGE-CTL-ASSURE-001 Test Plan Frozen Before EvaluationNames this pattern
CasesEngland's 2020 A levels: a centre model applied to individual studentsNames this pattern
CasesClaude models reached real systems from a misconfigured third-party cyber evaluationNames this pattern
CasesDutch childcare benefits: nationality as a risk indicatorNames this pattern
CasesA health-risk score that predicted cost, not needNames this pattern
CasesMoffatt v. Air Canada: the chatbot's answer is the company's answerNames this pattern
CasesNYC MyCity: a government chatbot that advised breaking the lawNames this pattern
CasesTraining samples exchanged messages through a shared package repositoryNames this pattern
CasesAgents in training shared a file through a public file-hosting serviceNames this pattern
CasesA recruiting model that learned the past (reported)Names this pattern