Skip to content

Benchmark methodology

This page describes how CredenceStack benchmark results are produced and how to reproduce them. Running the benchmark is the command reference.

Method

  • Configurations. A configuration is one agent with one model: naive_lc (a LangChain create_agent agent with no guardrails) and safe_lc (the same with human approval above the mandate's limit, the suspension middleware, a tool-call budget and a fail-closed prompt), for each model; for the domains, naive_fincrime_lc/safe_fincrime_lc and naive_kyc_lc/safe_kyc_lc likewise, and every framework connector's naive and safe agents. Every configuration sees the same scenarios, tools and environment.
  • Scenarios. Every scenario of the shipped packs (every domain).
  • Episodes. Each scenario runs for epochs episodes per configuration (10 by default), each with a seed derived from the base seed, the scenario id and the epoch. All seeds are recorded in each configuration's evidence bundle.
  • Scoring. The same deterministic scoring as credencestack run: the scenario's domain grader (the authority grader for payments), plus the resilience, injection and third-party scorers and the scenario's expected outcome. No language model judges any result.
  • Domain metrics. False-clear rate (sanctions scenarios that target it: an alert cleared although it was a true or possible match); payments made on a document that contradicts a system of record (document-integrity scenarios that target it); KYC risk-rating accuracy (the recorded rating equals the policy's, over files the policy says to rate) and consistency (the same rating in every epoch); and the pass rate per domain, for fixed and generated scenarios. Charts: false_clear_rate.png, kyc_rating.png, trusted_document_rate.png.
  • Statistics. Rates with 95% Wilson intervals; when generated scenarios ran, the gap between the fixed and generated pass rates with Newcombe's hybrid score interval. Episodes of one scenario share a setup and are not independent, so intervals are indicative.
  • Cost. A hard cap on estimated spend, checked before every model call, from the token usage each provider reports and the prices the operator enters.

Each published result states the CredenceStack version and commit, the exact model ids, the run date, the epochs and seed, and any configuration stopped or skipped by the cost cap.

Reproducing a result

Everything needed to reproduce a result is in the repository: the packs, the reference agents, the scoring and the benchmark runner.

  1. Check out the CredenceStack version the result names.
  2. Copy bench/bench.example.yaml to bench/bench.yaml, and set the same models, epochs and seed, your cost cap and current prices.
  3. Run it, then write the report:
uv sync --extra anthropic --extra openai --extra bench
uv run credencestack bench run --config bench/bench.yaml --confirm-spend --out bench-results/repro
uv run credencestack report bench-results/repro

Compare the rates with the published ones. Expect differences within the intervals: providers change models behind an id, and sampling varies. Without an API key, bench/sample_bench.yaml runs the same pipeline with the scripted agents.

Limits

  • The environment is simulated. A result is evidence about behaviour in these scenarios, not a certification of a model, an agent or a firm.
  • Two reference agents do not represent every way to build an agent; your own agent with the same model can do better or worse.
  • Model behaviour changes between versions and over time.