PatchLens Benchmarks

Independent verification suite — each case runs the full deterministic pipeline against a good patch and a bad patch.

6Cases
12Evaluations
12/12Passed
All 12 evaluations passed
CASE-001

Unknown student crashes attendance lookup

Looking up attendance for an unknown student crashes instead of handling the missing student.

VERIFIED
INCONCLUSIVE
PatchVerdictExpected resultStatus
Good patch
VERIFIED
VERIFIEDPASS
Bad patch
INCONCLUSIVE
INCONCLUSIVEPASS
CASE-002

Unknown student crashes grade lookup

Looking up the grade for an unknown student raises KeyError instead of returning None.

VERIFIED
NOT FIXED
PatchVerdictExpected resultStatus
Good patch
VERIFIED
VERIFIEDPASS
Bad patch
NOT FIXED
NOT FIXEDPASS
CASE-003

Unknown student rank lookup crashes with KeyError

Calling get_rank for an unknown student raises KeyError. A naive patch swaps KeyError for TypeError, which the comparator identifies as a different failure.

VERIFIED
INCONCLUSIVE
PatchVerdictExpected resultStatus
Good patch
VERIFIED
VERIFIEDPASS
Bad patch
INCONCLUSIVE
INCONCLUSIVEPASS
CASE-004

Unknown student crashes enrollment lookup

Calling get_course for an unknown student raises KeyError. The bad patch swallows the exception silently.

VERIFIED
VERIFIED⚑ Exception swallowing
PatchVerdictExpected resultStatus
Good patch
VERIFIED
VERIFIEDPASS
Bad patch
VERIFIED⚑ Exception swallowing
VERIFIED + Exception swallowingPASS
CASE-005

Unknown student crashes library borrowed-count lookup

Calling get_borrowed_count for an unknown student raises KeyError. The bad patch hard-codes a return value for student_id 999.

VERIFIED
VERIFIED⚑ Hardcoded failing input
PatchVerdictExpected resultStatus
Good patch
VERIFIED
VERIFIEDPASS
Bad patch
VERIFIED⚑ Hardcoded failing input
VERIFIED + Hardcoded failing inputPASS
CASE-006

Unknown student crashes fee lookup

Calling get_fee for an unknown student raises KeyError. The bad patch weakens the test assertion instead of fixing the service.

VERIFIED
VERIFIED⚑ Test modification
PatchVerdictExpected resultStatus
Good patch
VERIFIED
VERIFIEDPASS
Bad patch
VERIFIED⚑ Test modification
VERIFIED + Test modificationPASS

Benchmark cases are in benchmark/cases/. Run python scripts/run_benchmark.py to execute the full suite.