Skip to content

PaperBench run parsing crashes on uneven seed counts #140

Description

@sylvesterkaczmarek

Summary

paperbench.metrics.parse_run_data() builds evaluation runs across papers with different numbers of available seeds. It correctly identifies the maximum seed count, but its short-paper guard only checks equality:

if seed == len(data):
    continue
paper_eval = data[seed]["paper_eval"]

If one paper has 1 run and another has 3, seed 1 is skipped for the shorter paper, but seed 2 satisfies 2 != 1 and the code attempts data[2], raising IndexError.

Impact

Parsing historical/incomplete PaperBench run data can crash whenever per-paper run counts differ by more than one, instead of producing the intentionally incomplete EvaluationRun objects described by the surrounding comment.

Proposed resolution

Skip whenever the current seed index is outside that paper's available data:

if seed >= len(data):
    continue

Add a regression with one paper containing one run and another containing three runs, verifying parsing produces three evaluation runs without indexing past the shorter paper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions