Skip to content
Nitin13-gitPublic

About

A benchmark suite that grows itself: mines real harness failures into permanent regression tasks, autonomously.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EvoBench

security-critical

A benchmark suite that grows itself. Most model/harness benchmarks are static and hand-curated — someone writes a fixed set of tasks once, and every model gets graded against the same list forever. EvoBench closes a different loop: when your harness catches a real failure, it mines that exact failure into a permanent regression task autonomously — no one writes it by hand — and from then on, every model you ever benchmark gets tested against every failure your harness has actually hit, not a fixed academic set.

This isn't a claim that regression testing or benchmark curation are new ideas — they aren't. What's genuinely uncommon is wiring them together as one autonomous pipeline across an owned harness stack: a failure caught by VerifyLoop becomes a task stored durably and tamper-evidently in ReceiptLedger, runnable immediately through HarnessBench — with no human in the loop writing benchmark code.

How it works

  1. Observe a failure. Something produced a wrong output for a known prompt — caught by a VerifyLoop run, or flagged any other way.
  2. Mine it. mine() turns (prompt, bad_output) into a VerifySpec — a declarative, JSON-serializable check (not_contains, contains, regex, not_regex) — and tags it with a failure category pulled from VerifyLoop's triage, if a run result is available.
  3. Store it. Suite.add() appends the mined task to a receiptledger.Ledger — hash-chained and append-only, so a task's content can't be silently edited after the fact — plus a small manifest tracking which task ids exist.
  4. Benchmark against it, forever. Suite.as_harnessbench_tasks() reconstructs real harnessbench.Task objects from the stored specs, so every subsequent benchmark run is graded against the full accumulated history of real failures, automatically.

Quickstart

pip install -e ".[dev]"
pytest
from evobench import Suite, observe
from harnessbench import BenchmarkRunner, MockAdapter, summarize

suite = Suite("suite.jsonl", "manifest.json")

# Something failed: the model answered "5" to "what is 2 + 2?"
observe(suite, task_id="arithmetic-1", prompt="what is 2 + 2?", bad_output="5")

# Every model from now on gets checked against that exact failure.
models = [MockAdapter("m", lambda _: "4")]
results = BenchmarkRunner(models, suite.as_harnessbench_tasks()).run()
print(summarize(results))

Status

v0.1. The mined check is a literal/pattern match on the bad output, not a full re-execution of whatever originally produced it — deliberately scoped this way so the suite works for any harness that can report (prompt, bad_output), not just ones that run Python tests. Richer mining (re-running the original reproduction automatically) is a natural next step, not yet built.

License

MIT

About

A benchmark suite that grows itself: mines real harness failures into permanent regression tasks, autonomously.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages