Manuscript Offprint

arXiv:2610.01218

AGO AI Quality Gate: Evidence-First Release Decisions for Retrieval-Augmented Generation

Giulio Zeloni, Enrico Lo Conte, Salvatore Rionero, Giuseppe Santoro, Alessandro Rastelli, Fabio Sorrentino

Giulio Zeloni, Enrico Lo Conte,

Salvatore Rionero, Giuseppe Santoro,

Alessandro Rastelli, and Fabio Sorrentino

Protom Group S.p.A., Napoli, Italy

giulio.zeloni@protom.com

Abstract. Enterprises adopting retrieval-augmented generation (RAG) face a recurring operational decision: promote, revise, or block a system version. The evidence is incomplete and the metrics come from fallible LLM judges. We report on AGO AI Quality Gate (AGO), an evidence-first quality-gate framework deployed in industrial RAG assessment engagements. AGO integrates four key components: a four-state decision model that treats missing data and judge errors as explicit outcomes; layered scoring combining deterministic checks, local guardrails, and structured LLM evaluation; a stratified beta-binomial gate that quantifies regression risk probabilistically; and a mandatory meta-evaluation protocol to validate the LLM judge before it influences decisions. Since engagement data is proprietary, we evaluate the judge layer on RAGBench, a public benchmark of 100k annotated RAG traces across 12 datasets. On identical stratified test samples (N=1200 per judge), a low-cost judge (gpt-4.1-nano) detects non-adherent answers barely above chance (AUROC 0.603 [0.570, 0.634]), despite producing flawless protocol output, while gpt-4o reaches 0.783 [0.756, 0.807]—yet its per-domain performance still ranges from 0.62 to 0.88. A fixed-seed gate study spanning regression, no change, and improvement quantifies unsafe promotion, false-alarm cost, and improvement throughput. Under regression, the decision-grade profile reduces unsafe promotion to 22.2%–35.1%, against 29.3%–41.8% for a naive gate. These results support the design choices that judge quality must be measured per engagement and that point estimates alone are not a release decision.

Keywords: Retrieval-Augmented Generation · LLM-as-a-Judge · Quality Gates · Evaluation · Uncertainty Quantification

1 Introduction

Retrieval-augmented generation (RAG) [12] is now a standard architecture for grounding large language models (LLMs) in private document collections; deployments range from customer support and compliance to healthcare and finance [8]. Grounding mitigates but does not eliminate hallucination: answers may contradict retrieved evidence, cite the wrong source, or fabricate content

G. Zeloni et al.

when retrieval fails [10]. In an enterprise setting this becomes a concrete, recurring decision about whether a given version can be released, or it needs additional reviews.

This paper reports on AGO AI Quality Gate (AGO), a self-hosted quality-gate platform built to support that decision. AGO is deployed at an IT consulting firm and used in RAG assessment engagements with enterprise clients. Engagement constraints shaped the design: client data cannot leave the premises; observability is often incomplete; evaluation datasets are small (tens to a few hundred cases) and stratified over imbalanced categories; and consultants must be able to defend every automated decision they sign.

A rich line of work addresses RAG measurement. Frameworks such as RAGAs [6] and ARES [15] decompose quality into retrieval-side and generation-side components scored by an LLM judge [17,13]. Benchmarks such as RGB [2] and RAGBench [7] assess the evaluators themselves. Deploying these components inside an accountable gate exposed three gaps between scoring and deciding. First, evidence is routinely incomplete: traces lack contexts, providers fail, judges return malformed output; averaging over whatever is available conflates “measured as bad” with “not measured”. Second, point estimates overstate certainty on the small, stratified evaluation sets that real engagements afford. Third, the measuring instrument is unvalidated: LLM judges exhibit biases and task-dependent reliability [16,1], so agreement measured on one domain does not transfer to another.

The contributions of this work are fourfold and transferable to any organisation operating RAG gates.

First, evidence-first decision semantics deployed in production: a four-state decision lattice (promote, manual review, block, not evaluable) with per-metric decision modes and explicit treatment of missing evidence and judge protocol errors (Sect. 3.3). Second, a stratified beta-binomial gate: per-stratum credible intervals and a probabilistic regression risk P(pB<pA−δ)P(p_B < p_A - \delta) replace point estimates (Sect. 3.4). Third, per-engagement judge validation: a meta-evaluation protocol with balanced golden sets and threshold-free agreement statistics, mandatory before judge scores may influence decisions (Sect. 3.5). Fourth, a public evaluation at two system boundaries: judge-layer validation on RAGBench (Sect. 5.1), operating characteristics of the production statistical gate under regression, no change, and improvement (Sect. 5.2).

Each component builds on established work. The contribution of AGO is the decision layer that makes missing evidence, judge protocol errors, statistical uncertainty, and per-engagement judge validity explicit inputs to a release decision, not hidden assumptions behind a score.

The paper is organized as follows. Sect. 2 reviews related work on RAG evaluation and LLM-as-a-judge reliability. Sect. 3 presents the AGO framework: evidence model, layered scoring, decision semantics, statistical gate, and judge meta-evaluation. Sect. 4 describes the deployed platform and the engagement workflow. Sect. 5 reports the evaluation: judge-layer validation on RAGBench and operating characteristics of the statistical gate. Sect. 6 concludes.

References (17)