Measure brittleness¶
An agent that passes the published scenarios may still fail slight variations of them.
credencestack bench brittleness measures how much: it generates scenarios from the
shipped ones at five difficulty levels,
runs every configuration on the fixed and the generated scenarios, and reports how pass
rates change. The method is on the brittleness benchmark
page; this page is how to run it on your agent.
Run the sample¶
credencestack bench brittleness -c bench/sample_brittleness.yaml
It runs the scripted agents only: no model, no cost, under a minute.
Run it on your agent¶
Copy bench/sample_brittleness.yaml and list your configurations. Real models need
prices and --confirm-spend, and the cap in max_usd is enforced across every
configuration:
name: my-agent-brittleness
agents: [safe_lc]
models: ["anthropic:<model>"] # init_chat_model strings, exact dated ids
packs: [payments, fincrime]
per_level: 40
levels: [1, 2, 3, 4, 5]
epochs: 3
seed: 42
max_usd: 25
prices:
"anthropic:<model>": { input_per_mtok: 0.0, output_per_mtok: 0.0 } # EDIT
credencestack bench brittleness -c my-brittleness.yaml --confirm-spend
Fill in your provider's current prices per million tokens: the cap is computed from them.
Read the results¶
| Look at | What it tells you |
|---|---|
The brittleness curve (report/charts/brittleness_curve.png) |
The pass rate at each level. A curve that falls steeply means the agent's good behaviour depends on the cues in the fixed scenarios |
| The fixed-to-generated gap | Fixed pass rate minus each level's, with Newcombe's interval. A gap whose interval excludes zero is a real drop |
| Mutator and family sensitivity | Which changes hurt most: start fixing there |
| Over-caution by level | An agent that passes by escalating everything shows up here, not as a pass |
brittleness_results.csv holds every number in the charts and the report.
Keep the round fair¶
For results you publish, use --seed fresh: the scenarios are new to everyone, and the
recorded seed reproduces the round. See benchmark rounds.