LLM Safety as a Quality Gate: Integrating Bias, Fairness, and Robustness Evaluation into CI/CD via GitHub Apps

This paper presents LLM Eval Agent, a production-deployed GitHub App that automates bias, fairness, and robustness evaluation of large language models (LLMs) directly within the pull request review process. Applying the shift-left principle from DevSecOps to LLM safety, the system intercepts PR events via GitHub webhooks, executes a configurable five-test evaluation harness (LangTest) across multiple model architectures, and surfaces results as GitHub Check Runs that block merge when safety thresholds are not met. We evaluate three SST-2 fine-tuned models — DistilBERT, BERT-base, and RoBERTa — across five test categories. All three architectures achieve strong bias consistency (98–100%) and robustness (82–100%), yet every model fails the fairness gate (0% gender F1 pass rate), identifying a systemic SST-2 training data problem surfaced automatically at merge time. The system provides confidence scoring, append-only audit logging with a longitudinal trend API, adversarial red-teaming, and scheduled drift detection. End-to-end validation on a live Railway deployment (PR #4, kavitaj11/llm-eval-demo) confirmed 21-second evaluation latency and correct block-merge enforcement under both normal and timeout conditions. Source code: https://github.com/K11-Software-Solutions/llm-eval-agent-appDemo repository: https://github.com/kavitaj11/llm-eval-demo

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-06-24
DOI
https://doi.org/10.5281/zenodo.20823851
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

LLM Safety as a Quality Gate: Integrating Bias, Fairness, and Robustness Evaluation into CI/CD via GitHub Apps

Kavita Jadhav
Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
preprint

LLM Safety as a Quality Gate: Integrating Bias, Fairness, and Robustness Evaluation into CI/CD via GitHub Apps

Kavita Jadhav
preprint en

Abstract

This paper presents LLM Eval Agent, a production-deployed GitHub App that automates bias, fairness, and robustness evaluation of large language models (LLMs) directly within the pull request review process. Applying the shift-left principle from DevSecOps to LLM safety, the system intercepts PR events via GitHub webhooks, executes a configurable five-test evaluation harness (LangTest) across multiple model architectures, and surfaces results as GitHub Check Runs that block merge when safety thresholds are not met. We evaluate three SST-2 fine-tuned models — DistilBERT, BERT-base, and RoBERTa — across five test categories. All three architectures achieve strong bias consistency (98–100%) and robustness (82–100%), yet every model fails the fairness gate (0% gender F1 pass rate), identifying a systemic SST-2 training data problem surfaced automatically at merge time. The system provides confidence scoring, append-only audit logging with a longitudinal trend API, adversarial red-teaming, and scheduled drift detection. End-to-end validation on a live Railway deployment (PR #4, kavitaj11/llm-eval-demo) confirmed 21-second evaluation latency and correct block-merge enforcement under both normal and timeout conditions. Source code: https://github.com/K11-Software-Solutions/llm-eval-agent-appDemo repository: https://github.com/kavitaj11/llm-eval-demo

Zenodo (CERN European Organization for Nuclear Research)
LPA Software Solutions (United States) (US)
Gender equality
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.