Hands connecting AI test hardware in lab

AI quality assurance (AI QA) is the engineering discipline of defining measurable tests, acceptance thresholds, monitoring signals, and evidence artifacts that prove an AI system behaves acceptably in its real deployment context. The goal is not “never fail” — it is making failures measurable, bounded, detectable, and recoverable. A single aggregate benchmark score is not QA. A documented suite of test sets, SLOs, drift monitors, and remediation artifacts is.

Start here:

  • Measure validity, reliability, and safety first — these three dimensions carry the highest consequence in most production deployments.
  • Set at least one behavioral SLI (e.g., hallucination rate or human override rate) before your first release.
  • Preserve every test set, threshold decision, and incident artifact as a citable, versioned document.

Standards anchoring this guide: NIST AI RMF, NIST ARIA/CoRIx, and ISO/IEC TS 5723. Glitchive’s verified failure case library provides concrete remediation evidence throughout.


Table of Contents

What quality dimensions does your AI system actually need to measure?

Nine dimensions define trustworthy AI behavior. The NIST AI RMF Measure function organizes them; ISO/IEC TS 5723 defines robustness specifically as the ability to maintain performance under distributional shift and adversarial perturbation.

  • Operational observability: — Latency, cost, and error rates are instrumented and alertable. Failure mode: silent degradation invisible to operators.

Prioritize by risk tier. A medical triage assistant demands validity, safety, and fairness at the top of the stack. A low-stakes internal search tool can defer fairness audits to a later sprint. The NIST AI RMF Measure playbook is explicit: measurement approaches must connect to deployment context and affected stakeholders, not just technical benchmarks.

“Graceful failures — confident but wrong outputs — are more dangerous than hard crashes. QA must prioritize detection and containment of these silent failures.” — AI Reliability Engineering: A Practical Framework

Pro Tip: For a first release, measure validity (hallucination rate), safety (policy compliance rate), and operational observability (latency p95, error rate). Add fairness and robustness in sprint two once baseline instrumentation is stable.


What test types belong in a risk-based AI QA suite?

The AI Assurance research argues that standard NLP metrics are insufficient for RAG systems and proposes a five-layer assurance pyramid. The practical translation: you need at least five test types, each with a distinct objective and ownership.

Test TypeObjectiveExample MetricFrequencyOwner
Component / unitVerify individual model behaviorHallucination rate per prompt classEvery commitML engineer
Retrieval / RAGValidate grounding and faithfulnessContext recall, faithfulness scoreEvery index updateML engineer
Regression suiteCatch silent regressions on known failuresPass rate on fixed-failure setEvery model versionQA / reliability
Red-team / adversarialProbe for prompt injection, jailbreaksAttack success ratePre-release, quarterlySecurity / red team
Scenario / fieldTest real-world task completionTask success rate, human override rateMonthly or on driftProduct / reliability
Human-in-the-loop (ARIA-style)Measure contextual robustness with real usersCoRIx score, annotator agreementPre-major releaseIndependent assessor

Test set hygiene matters as much as test design. Version every test set with a hash and a changelog. Label each example with its failure category, severity, and the date it was added. Annotators should record: the input, the model output, the expected output, the failure type (grounding, safety, fairness, etc.), severity (critical/major/minor), and a free-text note. Representativeness means covering demographic groups, edge-case phrasings, and the distribution of real user queries — not just the cases you already know fail.

Pro Tip: Lock a “golden set” of 50–200 labeled examples before your first production release. This set becomes your regression baseline. Never add to it without a review; never delete from it without a postmortem.


What should you monitor in production, and how do you detect drift early?

Google Cloud’s AI/ML reliability guidance recommends holistic observability: infrastructure, model performance, and behavioral signals together. SRE for AI agents adds judgment SLIs and OpenTelemetry GenAI semantic conventions for telemetry.

SignalWhy It MattersAlert ThresholdResponder
Hallucination rate (sampled)Catches grounding failures before users reportExceeds SLO or 2-week downward trendML engineer
Human override rateProxy for user trust and task failureRises above baseline by 10%Product / reliability
Token cost per requestDetects prompt injection or runaway loopsShows significant drift from rolling 7-day averageReliability / SRE
Tool-call ratio (agents)Flags reasoning loops and unexpected tool useExceeds expected ratio by 2×ML engineer
Retrieval context recallCatches index drift or embedding degradationDrops below threshold on weekly evalML engineer
User feedback sentimentLagging but real signal of behavioral degradationSustained negative shift over 5 daysProduct

Automate TEVV pipelines to trigger on: model version change, prompt template update, detected statistical drift, or a fixed weekly cadence. A single bad output is noise. A sustained downward trend across two weeks is a signal worth a postmortem.

Pro Tip: Treat token-cost drift and tool-call ratio drift as leading indicators of prompt injection or reasoning-loop failures — they often surface before hallucination rate moves.


The AI QA scorecard and release checklist

Copy this scorecard into your CI/CD gate. Every dimension needs a current value, a threshold, and a pass/fail before a release ships.

DimensionSLIThresholdCurrent ValuePass/FailEvidence Link
ValidityHallucination rate≤ 5% (≤ 1% for critical deployments)[measure]Eval run ID
SafetyPolicy compliance rate≥ 99%[measure]Red-team report
RobustnessAdversarial pass rate≥ 90%[measure]Red-team log
FairnessDemographic parity gap≤ 5%[measure]Fairness eval report
ReliabilityRegression suite pass rate100%[measure]CI run ID
ObservabilityMonitoring hooks activeAll green[check]Dashboard link

Release checklist:

  • All test types in the matrix have run against the current model version.
  • Golden regression set passes 100%.
  • Red-team / adversarial tests completed; findings triaged.
  • Human review completed for any critical-tier dimension.
  • Monitoring hooks confirmed active; alert thresholds set.
  • Rollback criteria documented and tested.
  • Scorecard filed with evidence links in the TEVV report.
  • Reliability contract updated if thresholds changed.

Store scorecard artifacts in version control alongside the model release tag. Auditors need to reconstruct exactly what was measured, at what threshold, and with what evidence — not a summary.


The AI QA scorecard and release checklist — overview diagram

How do you design evaluations that measure real-world impact?

The NIST ARIA pilot introduced a three-layer evaluation stack: a testing layer (scenario runs with human testers), an assessment layer (expert annotation and questionnaires), and a measurement layer (CoRIx aggregation of contextual robustness indicators). This structure separates raw signal collection from interpretation — which matters when deployment context determines harm.

A simplified measurement tree for a customer-service LLM:

Raw SignalAggregationContextual Robustness Indicator
Task completion rateWeighted by task criticalityOperational robustness score
Policy compliance rateFlagged failures reviewed by annotatorSafety robustness score
Demographic performance gapParity gap across user segmentsFairness robustness score
Adversarial pass rateProportion resisting injection attemptsSecurity robustness score
CoRIx compositeWeighted average of aboveOverall contextual robustness

Human subject protections apply when testers interact with a live system: informed consent, data minimization, and no use of tester data for model training without explicit permission. For a medium-risk deployment, a useful minimum is 30–50 diverse testers covering the primary demographic groups in your user base, with at least two independent annotators scoring each session for inter-rater reliability.

Pro Tip: When your deployment context determines harm (medical, legal, financial), independent assessors — not the model’s own team — should run the ARIA-style evaluation. Self-assessment at high risk tiers is a governance gap.


Who owns AI QA, and what documentation must you preserve?

Ownership gaps are where QA programs collapse. Assign every activity to a named role before the first release.

ActivityOwnerReviewerEscalation
Test set design and versioningML engineerQA leadEngineering manager
Threshold and SLO settingReliability engineerProduct ownerEngineering manager
Red-team / adversarial testingSecurity / red teamML engineerCISO
Human-in-the-loop evaluationProduct / UX researchIndependent assessorEngineering manager
Incident response and postmortemReliability engineerML engineerEngineering manager
Periodic TEVV reviewQA leadCross-team reviewerEngineering manager

The NIST AI RMF Measure playbook requires that measurement approaches be documented, connected to deployment context, and reviewed by domain experts and affected communities where risks are significant. Independent or cross-team review is recommended whenever a dimension is rated high-risk.

Documentation checklist:

  • Versioned test sets with hashes and changelogs
  • Annotation schema (fields, severity definitions, labeling guidelines)
  • Measurement methods (how each SLI is computed, sampling rate, tooling)
  • TEVV reports per release (scorecard + evidence links)
  • Incident logs and postmortems with regression tests added
  • Reliability contracts per major version

Pro Tip: Schedule a cross-team TEVV review at every major model version change and at least quarterly for production systems. The reviewer should not be the team that built the model.


Key Takeaways

Effective AI quality assurance requires documented test sets, behavioral SLOs, drift monitoring, and preserved evidence artifacts — not a single benchmark score.

PointDetails
Measure behavior, not just accuracySet behavioral SLIs (hallucination rate, policy compliance, human override rate) before release.
Risk-tier your thresholdsFor validity, use a hallucination rate threshold of ≤ 1% for critical deployments and ≤ 5% for others; policy compliance should be ≥ 99%. Low-consequence tools use trend monitoring only.
Preserve every artifactVersion test sets, scorecard results, and postmortems with evidence links for audits and regression.
Treat error budgets as autonomy gatesWhen a behavioral error budget is exhausted, graduated responses (throttle → pause → circuit break) reduce autonomy automatically.
Use Glitchive for verified failure evidenceGlitchive’s case library provides citable, real-world failure examples and remediation artifacts to seed regression test sets and TEVV playbooks.

The gap between “we ran evals” and “we have QA”

Most teams ship with evals. Few ship with QA. The difference is not the number of tests — it is whether the tests are connected to thresholds, the thresholds are connected to release gates, and the gates are connected to documented evidence that survives the team that wrote them.

The organizational friction is real. Engineering managers face pressure to ship; reliability engineers inherit systems they did not design; product owners treat QA as a checkbox rather than a contract. The way through is small, concrete wins: one behavioral SLI on the dashboard before the next release, one golden regression set in version control, one postmortem that actually produces a new test. Each artifact builds the case that QA is not overhead — it is the evidence that the system does what it claims.

Glitchive’s case library exists precisely for this moment. When you need to justify a threshold, explain a failure taxonomy, or show a stakeholder what a real postmortem looks like, verified case evidence is more persuasive than a framework diagram. The coding agent database wipe case and the chatbot refund-policy liability case are exactly the kind of artifacts that make abstract risk tiers concrete to a product owner who has never seen a production AI failure up close.


Glitchive’s verified failure cases support your TEVV program

Glitchive

The hardest part of building a regression test set is finding labeled failure examples before your system produces them. Glitchive’s searchable library of verified AI failure cases gives your team a head start: each case documents the incident, contributing factors, technical analysis, and the specific fix applied — with permanent, citable URLs and fully sourced references.

Two cases worth pulling into your TEVV playbook now: the coding agent that wiped a production database during an active code freeze (directly relevant to action-control gates and canary gating for autonomous agents) and the support chatbot that invented a refund policy (a grounding and policy-compliance failure with a tribunal ruling attached). Both cases include remediation steps you can adapt as regression tests.

Browse the full Glitchive cases directory to find failure patterns matching your deployment context, then copy the scorecard above into your CI/CD gate.


Useful sources and further reading

The sources below are the primary references for designing and defending an AI QA program.

  • AI Reliability Engineering: A Practical Framework
  • NIST AI RMF — Measure playbook
  • Artificial Intelligence Risk Management Framework (AI RMF) 1.0
  • AI Assurance: A Comprehensive Testing Strategy for Enterprise AI Systems
  • Applying site reliability engineering to autonomous AI agents
  • AI and ML perspective: Reliability | Google Cloud Architecture
  • Site Reliability Engineering for AI Agent Systems: Observability, Incident Response, and Operational Patterns

FAQ

What is AI quality assurance?

AI quality assurance is the practice of defining measurable tests, acceptance thresholds, monitoring signals, and evidence artifacts that prove an AI system behaves acceptably in its deployment context — grounded in standards like NIST AI RMF and ISO/IEC TS 5723.

What is the difference between a behavioral SLI and a technical SLI?

A technical SLI measures infrastructure behavior (latency, uptime, error rate); a behavioral SLI measures model output quality (hallucination rate, policy compliance rate, human override rate) — the latter requires sampling and human or automated evaluation, not just telemetry.

How often should you run TEVV evaluations in production?

Trigger TEVV pipelines on every model version change, every prompt template update, and on detected statistical drift; run a fixed cadence (weekly sampled eval, monthly full suite) regardless of changes.

When is an independent assessor required for AI QA?

Independent or cross-team assessment is recommended by the NIST AI RMF whenever a quality dimension is rated high-risk; for ARIA-style contextual robustness evaluations, the assessor should not be the team that built the model.

What artifacts must a postmortem include to support an audit?

A postmortem must include reproduction steps with the exact failing input/output, telemetry extracts from the failure window, root cause mapped to a failure taxonomy, regression tests added to the golden set, and an updated reliability contract.