agent-benchmark-suite
One command. Five flagship agent libraries. Reproducible leaderboards.
A unified benchmark harness that measures what agentic-AI libraries actually claim — token compression, provenance catch-rate, routing Pareto coordinates, and zero-trust policy enforcement — against seeded, SHA-256-digested workloads, with CI-enforced drift checks (≤ 3%) so committed numbers can never silently rot.
flowchart LR
W[Seeded workloads\n120 traces · 150 claims · 120 probes] -->|SHA-256 digest| R[Runner\nwarmups · N-run median + IQR]
R --> A1[Compression\nagent-snr · context-guard · reference]
R --> A2[Provenance\nprovenance-guard · reference]
R --> A3[Routing\npareto-router · reference]
R --> A4[Policy\naegis-core · reference]
A1 --> L[Leaderboards\nJSON + Markdown]
A2 --> L
A3 --> L
A4 --> L
L --> V{verify-leaderboard\ndrift ≤ 3% or digest bump}
V -->|pass| CI[Green CI]
V -->|fail| X[Red CI]
Benchmarked flagships
| Library | Capability | Adapter |
|---|---|---|
agent-snr |
SNR-gated context firewall | AgentSNRCompressionAdapter (in-process) |
context-guard |
State-ledger context compression | ContextGuardCompressionAdapter (in-process) |
epistemic-guard (provenance-guard on PyPI) |
Deterministic source tiering | ProvenanceGuardAdapter (in-process) |
Inference-Pareto-Router |
2D cost/quality Pareto routing | ParetoRouterAdapter (in-process) |
aegis-core |
Zero-trust schema/policy gate | AegisCoreAdapter (Node subprocess on built dist) |
Every capability also ships a reference adapter — a real, deterministic in-process engine that executes the same algorithmic contract (it computes genuine ratios, precision/recall, and gate decisions per item; nothing is hardcoded). Native adapters are wired via optional extras and report themselves honestly unavailable when the flagship library is not installed — they never fabricate results.
Baseline leaderboards (generated, CI-verified)
Run with --seed 42, 120 traces / 150 claims / 120 probes, reference mode.
Full tables: benchmarks/leaderboards/LEADERBOARD.md.
compress — 46.8% of corpus tokens eliminated
| Adapter | Implementation | Tokens before | Tokens after | Compression ratio | Keyword retention |
|---|---|---|---|---|---|
reference-compactor |
reference | 21428 | 11406 | 0.467706 | 0.658513 |
provenance — 150 claims, tiers 1–5, 30% TLD-fallback URLs
| Adapter | Implementation | Precision (citable) | Recall (citable) | Exact-tier accuracy | Tier MAE |
|---|---|---|---|---|---|
reference-tierer |
reference | 1.0 | 1.0 | 1.0 | 0.0 |
route — 120 Pareto decisions across 3 strategy presets
| Adapter | Implementation | Tier distribution | Mean effort score |
|---|---|---|---|
reference-pareto |
reference | FRONTIER 30 · MID 62 · COMPACT 28 | 0.406958 |
policy — 120 probes (50% adversarial)
| Adapter | Implementation | Bypass resistance | Benign pass rate |
|---|---|---|---|
reference-policy-gate |
reference | 1.0 | 1.0 |
Latency medians are measured every run and reported in the JSON leaderboards, but are intentionally excluded from drift verification — they are environment-specific. Functional metrics are byte-deterministic per workload digest.
Native vs. reference results (real flagship libraries, locally executed)
Running --mode native with the actual libraries installed (agent-snr,
context-guard, provenance-guard, pareto-router, and aegis-core's compiled
SchemaValidator dist) produces benchmarks/leaderboards/NATIVE_LEADERBOARD.md
and native_results.json. Key findings
from the captured run — reported exactly as measured, including the unfavorable one:
compress (21,428 tokens in)
| Adapter | Implementation | Tokens after | Ratio | Keyword retention |
|---|---|---|---|---|
context-guard/compressor |
native | 12,846 | 0.4005 | 0.7252 |
reference-compactor |
reference | 11,406 | 0.4677 | 0.6585 |
agent-snr/firewall |
native | 25,380 | −0.1844 | 0.6147 |
Honest finding: agent-snr expanded this corpus (ratio < 0). Its SNR
firewall optimizes signal quality (loop detection, correction nudges, budget
packing), not raw token minimization — on a redundancy-heavy synthetic corpus
it adds content rather than dropping it. The harness reports this verbatim.
provenance (150 claims) — native vs. ground truth
| Adapter | Precision | Recall | Exact-tier | MAE |
|---|---|---|---|---|
provenance-guard/auditor (native) |
1.0 | 0.9552 | 0.8267 | 0.1733 |
reference-tierer |
1.0 | 1.0 | 1.0 | 0.0 |
The native library agrees on every citable decision (precision 1.0) but disagrees on some exact tier assignments for unlisted TLD-fallback domains — exactly the kind of divergence the harness exists to surface.
route — native and reference in exact agreement
pareto-router native decisions match the reference port byte-for-byte
(FRONTIER 30 · MID 62 · COMPACT 28, mean effort 0.406958, 120/120 decisions) —
strong evidence the reference port is faithful.
policy — both fail-closed
aegis-core's compiled SchemaValidator and the reference gate both achieve
bypass resistance 1.0 with benign pass rate 1.0 (120 probes, 50% adversarial).
Reproduce natively:
pip install -e ".[native]" # flagship libraries
agent-bench run --suite all --mode native --output-dir benchmarks/leaderboards/native
Quickstart
pip install -e .[dev]
# 1. Run every suite and write JSON + Markdown leaderboards
agent-bench run --suite all
# 2. Verify a committed leaderboard against a fresh deterministic run
agent-bench verify-leaderboard benchmarks/leaderboards/compress.json
# 3. CI mode: run + self-verify drift in one step (fails the build on drift)
agent-bench run --suite all --check-drift
Run the real flagship libraries natively (in-process Python, Node subprocess for aegis-core):
pip install -e .[native]
agent-bench run --suite all --mode native
The aegis-core native adapter additionally requires Node.js and a built
checkout: AEGIS_CORE_PATH=/path/to/aegis-core (with dist/core/src/index.js
present). Without it the adapter reports unavailable and is skipped — with an
honest implementation column in the leaderboard, never a fabricated row.
How reproducibility is enforced
- Workload digests — every suite hashes its full corpus (canonical JSON,
SHA-256) into the leaderboard. Example:
compress@42390cd9…,provenance@d56bd825…,policy@28fce33e…. - Drift gate —
verify-leaderboardre-runs the suite and compares every functional metric; drift > 3% fails CI. - Digest bumps are explicit — changing a workload without bumping the
digest fails; the committed JSON must acknowledge
digest_bumped: true. - Determinism — generators are pure functions of their seed; no wall clock, no unseeded randomness, no network in scoring paths.
Development
ruff check . && ruff format --check . # lint + format
mypy --strict src tests # full strict typing
pytest # 85 tests
agent-bench verify-leaderboard benchmarks/leaderboards/policy.json
See CONTRIBUTING.md for adapter guidelines and SECURITY.md for reporting policy.
License
MIT — see LICENSE.
Metadata
Release files for agent-benchmark-suite 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agent_benchmark_suite-0.1.0.tar.gz | 33.9 kB | With provenance | Details for agent_benchmark_suite-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agent_benchmark_suite-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for agent_benchmark_suite-0.1.0-py3-none-any.whl |
Total release size: 65.4 kB
Release files / agent_benchmark_suite-0.1.0.tar.gz
| Download URL | agent_benchmark_suite-0.1.0.tar.gz |
|---|---|
| Size | 33.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2262cc2fb2e0a2f4751695ca669af704549252774f6b68d9569e555a1411ed55
|
|
BLAKE2b-256 checksum How to use checksums |
4b3b360a1bb91a4b7d6341522c664cd6318c1018462787e1ad1b069f9767399e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / agent_benchmark_suite-0.1.0-py3-none-any.whl
| Download URL | agent_benchmark_suite-0.1.0-py3-none-any.whl |
|---|---|
| Size | 31.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d583bb6f5cc154540528a8b1f2625ac177c4abfdf4266d6213fe5206cbf32ca1
|
|
BLAKE2b-256 checksum How to use checksums |
0c2af8090fd95c2790617781cdf11439a85b305d75680104cc95fa3b14b2800c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for agent-benchmark-suite 0.1.0
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agent_benchmark_suite-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA 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.