Skip to main content Switch to mobile version reliagate 0.2.0 Your agent passed CI once. That proves nothing. Reliability metrics and statistically sound CI gates for AI agents.
pip install reliagate==0.2.0 Copy PIP instructions
Your agent passed CI once. That proves nothing. Reliability metrics and statistically sound CI gates for AI agents evaluated with repeated runs.
Watch the 30-second film. Every number in it is real output of this repo's example files.
Most agent evals run each task once and gate CI on a score threshold. Agents are stochastic, so the same commit can pass on Monday and fail on Tuesday, and you get false alarms and false all-clears.
reliagate treats the task as the unit of evidence:
Run every task k times and ask whether it is solved consistently, not just once.
Measure reliability, not luck: pass^k, unbiased pass@k, consistency classes, Wilson and task-level bootstrap intervals.
Gate on a paired statistical test between two versions (McNemar, with Wilcoxon and a Newcombe interval alongside), with exit codes your CI can trust.
Pure Python, zero dependencies, 148 offline tests.
The film above uses the two files in examples/: the same 40 tasks, 4 runs each, before and after a change.
pass@4 says nothing changed. In fact 9 tasks that used to pass every run now fail some of the time, and only 1 went the other way:
$ reliagate gate --base examples/base.jsonl --new examples/new.jsonl gate decision: REGRESSION (exit 2) consistently solved: base 34/40 -> new 26/40 gained (b)=1 lost (c)=9 b-c=-8 test=mcnemar_exact p=0.02148 ... Quickstart
pip install reliagate from reliagate import read_jsonl, pass_k, pass_at_k, compare, gate v1 = read_jsonl("examples/base.jsonl") # one line per trial: {"task_id", "attempt", "success"} v2 = read_jsonl("examples/new.jsonl") pass_at_k(v2, k=4) # 1.0 solved at least once in 4 pass_k(v2, k=4).value # 0.65 solved in all 4 pass_k(v2, k=4, ci="wilson_indicator").ci # (0.495, 0.779) r = compare(v1, v2) # paired McNemar on "consistently solved" r.b, r.c, r.p_value # (1, 9, 0.02148) gate(v1, v2, max_regression=0.05).exit_code # 2: significant regression Trials are {"task_id": "checkout", "attempt": 0, "success": true}. success: null means the trial abstained or hit an infrastructure error. It stays in the denominator and is never counted as a failure.
- run: pip install reliagate - run: reliagate gate --base evals/main.jsonl --new evals/pr.jsonl --max-regression 0.05 Exit Meaning 0 pass: the drop in consistently-solved tasks is within --max-regression 2 significant regression in consistently-solved tasks 3 infra or usage error, including too many infra-errored trials: never a silent pass 4 inconclusive: a drop beyond the limit that the data can't confirm. Run more tasks Full recipe, including how to size the run with plan() and stop early with SPRT: docs/ci-gate.md.
docs/results/first-study.md applies reliagate to real tau-bench retail trajectories, regenerated deterministically by scripts/first_study.py with no LLM calls. On 494 tasks at k=2, pass^2 = 0.907 (Wilson 95% CI [0.878, 0.930]). With k=4, the pass@k minus pass^k gap reaches +0.20 for one gating policy. All five paired policy comparisons come out null and underpowered, and the study says so instead of rounding them into a win.
Issues and PRs are welcome. Read CONTRIBUTING.md first: the core stays stdlib-only and every claim must be backed by a test or a rerunnable script. If you use reliagate in research, please cite it (CITATION.cff).
MIT © 2026 Youssef Ouhaghi
Both files in this release have provenance metadata.
MIT View SPDX License List
llm-agents evaluation statistics pass-k mcnemar ci-gate
Development Status 3 - Alpha
Intended Audience Science/Research
Programming Language Python :: 3
Topic Scientific/Engineering
Software Development :: Testing
Release files for reliagate 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 80.1 kB
Release files / reliagate-0.2.0.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Release files / reliagate-0.2.0-py3-none-any.whl
Security for reliagate 0.2.0
Both files in this release have been uploaded with provenance metadata.
With provenance reliagate-0.2.0.tar.gz Nov 19, 2026
With provenance reliagate-0.2.0-py3-none-any.whl Nov 19, 2026
Attestation for reliagate-0.2.0.tar.gz
Attestation for reliagate-0.2.0-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 19, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




