Metadata-Version: 2.5
Name: benchmark-disclosure
Version: 0.1.0
Summary: Turn Inspect eval logs and OpenTelemetry GenAI traces into a disclosure report against a published benchmark-review rubric.
Project-URL: Repository, https://github.com/Krishnachaitanyakc/benchmark-disclosure
Project-URL: Changelog, https://github.com/Krishnachaitanyakc/benchmark-disclosure/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/Krishnachaitanyakc/benchmark-disclosure/issues
Author: Krishna Balusu
License-Expression: Apache-2.0
License-File: LICENSE
License-File: NOTICE
Keywords: benchmarks,evaluation,genai,inspect-ai,opentelemetry,reproducibility
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Requires-Dist: pyyaml>=6.0.1
Provides-Extra: conformance
Requires-Dist: pytest-genai-semconv>=0.1.0; extra == 'conformance'
Provides-Extra: dev
Requires-Dist: inspect-ai>=0.3.289; extra == 'dev'
Requires-Dist: opentelemetry-sdk>=1.30; extra == 'dev'
Requires-Dist: pytest-genai-semconv>=0.1.0; extra == 'dev'
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.6; extra == 'dev'
Provides-Extra: inspect
Requires-Dist: inspect-ai>=0.3.289; extra == 'inspect'
Requires-Dist: opentelemetry-sdk>=1.30; extra == 'inspect'
Provides-Extra: otel
Requires-Dist: opentelemetry-sdk>=1.30; extra == 'otel'
Description-Content-Type: text/markdown

# benchmark-disclosure

`benchmark-disclosure` checks which parts of a benchmark review an eval run can
already answer. It reads [Inspect](https://inspect.aisi.org.uk/) eval logs,
OpenTelemetry GenAI traces and a short manifest of benchmark facts. Then it
reports, item by item against Epoch AI's published
[benchmark-review rubric](https://epoch.ai/data/benchmark-reviews-documentation/methodology),
which evidence a reviewer would find, where it is, and which evidence is missing.

**The problem.** On 2026-11-28 Epoch AI's Benchmark Reviews listed 32 reviews, and
10 were marked Not enough info
([included benchmarks](https://epoch.ai/data/benchmark-reviews-documentation/included-benchmarks)):
"Required information was unavailable to review, so a Verified/Flawed label cannot
be supported"
([methodology](https://epoch.ai/data/benchmark-reviews-documentation/methodology)).
Most of those benchmarks withhold their tasks or grader, and this tool cannot
change that. What it addresses is the other half of the rubric's Reviewability
grade, the "harness/API settings used for each model (reasoning effort, token/time
limits, tool access, system prompts)". An eval harness already records most of those
settings at run time. Record formats such as Every Eval Ever can carry them, but
they are rarely published alongside a leaderboard in a form a reviewer can check
item by item against the rubric.

**What is new here:**

- **A mapping.** Each rubric item is linked to the Inspect log fields,
  OpenTelemetry attributes or manifest fields that answer it, with the rubric text
  quoted verbatim.
- **A gap analysis.** It lists what no current standard records and names the
  upstream proposal each gap belongs to.
- **Tools.** A report generator, and an Inspect hook that emits the evidence as
  GenAI semantic-convention spans.

**Who it is for:**

- Benchmark developers who want to publish a checkable disclosure with their
  leaderboard.
- Reviewers who want to see quickly what a submission's logs do and do not show.
- People working on eval telemetry standards.

> Rubric text © Epoch AI, used under CC BY 4.0. This project is independent of
> Epoch AI. A disclosure report records what the inputs disclose. It is not an
> Epoch AI review and does not predict a verdict.

## What is here

- [`spec/rubric-mapping.md`](https://github.com/Krishnachaitanyakc/benchmark-disclosure/blob/main/spec/rubric-mapping.md)
  and [`spec/mapping.yaml`](https://github.com/Krishnachaitanyakc/benchmark-disclosure/blob/main/spec/mapping.yaml)
  split the rubric (one Reviewability grade, four Scoring checks, seven Evaluation
  Quality questions) into 14 scored entries. They also keep the rubric's note on
  external reviews as an unscored entry.
- A CLI and library that report each item as **found**, **incomplete** or **not
  found**, in Markdown, HTML and JSON.
- An opt-in Inspect hook that writes a report next to each log and emits GenAI
  spans.
- A [CritPt v2 demo](https://github.com/Krishnachaitanyakc/benchmark-disclosure/tree/main/examples/demo/critpt)
  with before and after reports, and a script that reproduces them.

## Quick start

```sh
pip install 'benchmark-disclosure[inspect]'

# report on existing logs and traces
benchmark-disclosure report logs/*.eval traces.jsonl --manifest disclosure.yaml --out reports/

# or have each eval write one (the hook is off unless enabled)
export BENCHMARK_DISCLOSURE=1 BENCHMARK_DISCLOSURE_TRACES_FILE=traces.jsonl
inspect eval my_task.py --model openai/gpt-4o
ls logs/disclosure-*.md
```

Inputs are recognized by file suffix, and `.json` files by content:

- Inspect `.eval` and `.json` logs.
- OTLP/JSON traces and logs (`.json` or JSON Lines), as written by the hook or the
  OpenTelemetry Collector file exporter.
- A YAML [manifest](https://github.com/Krishnachaitanyakc/benchmark-disclosure/blob/main/docs/manifest.md)
  for benchmark-level facts such as task access, leaderboard settings,
  contamination, human baselines and versioning.

Other commands:

- `benchmark-disclosure verify-rubric` re-checks every quoted rubric sentence
  against the live page.
- `benchmark-disclosure conformance traces.jsonl` checks gen_ai spans with
  [pytest-genai-semconv](https://pypi.org/project/pytest-genai-semconv/), a checker
  by the same author (`pip install 'benchmark-disclosure[conformance]'`).
- `benchmark-disclosure mapping` prints the mapping tables.

## How it decides

**Statuses.** An evidence key is **found** when the inputs hold a non-empty value
at a mapped location. The contents are not checked, apart from rejecting
placeholders such as "unknown". A key is **incomplete** in two cases:

- Only weaker evidence exists. Examples: a local dataset path rather than a
  published location, inputs present in a log with no declared reviewer access,
  a commit from a working tree with untracked or uncommitted files, or a settings
  link the report cannot check.
- Only some of its parts are present, such as a code location without a commit.

It is **not found** when nothing is there. A setting left at a provider default, or
a limit that no log records, is not found too: the run used some value, but no log
says which.

**Combining.** A rubric item combines its required keys the same way across runs.
Items that ask about the published leaderboard count run evidence only when the
manifest declares the runs to be the leaderboard runs
(`leaderboard.runs_in_inputs: true`). These cover harness settings, elicitation and
resources, budgets, scaffold, versions, and runs per model. Otherwise they need the
leaderboard documented in the manifest. Settings and limits are read only from the
model under test's calls, not from grader or helper calls. A warning appears when
the runs' task names do not match the manifest's benchmark.

**Signals** describe the runs to help a reviewer start. Examples: tasks that ended
on limits, budgets or scaffolds that differ across models on the same task, runs
per task, and tasks no model solved. A signal never reports a match it has no
record of. Signals are not findings.

These statuses describe evidence. They are not Epoch's Full, Partial or Inadequate
grades, its Pass or Flag checks, or its verdicts.
[docs/report-format.md](https://github.com/Krishnachaitanyakc/benchmark-disclosure/blob/main/docs/report-format.md)
has the details.

## Limits

- **It cannot publish withheld tasks.** For five of the ten Not enough info
  benchmarks we found neither downloadable tasks nor a grader, and a third party's
  telemetry does not change that.
- **It discloses the runs it is given.** Your runs show your settings. Leaderboard
  settings need the developer's documentation or the leaderboard runs' own logs.
- **It does not judge.** Whether tasks are answerable or scorers correct is a
  reviewer's call, as is whether limits are adequate.
- **It cannot see remote graders.** A local run of a benchmark that grades on a
  server reports the local scorer, which may only collect answers. Its scoring
  evidence then looks found unless the manifest declares `scoring.*` withheld.
- **It cannot attest that telemetry is genuine.** It reads what the files say.
- **It follows one rubric version.** That is Epoch's rubric v1 as fetched on
  2026-11-28; `verify-rubric` detects changed wording, not new items.
- **Content stays out of reports.** Task text, answers and prompts are withheld
  unless you pass `--show-content`. Error messages are never shown; errors are
  counted by type. So publishing a report does not leak a benchmark.

## Related work

- **Benchmark quality criteria.** BetterBench
  ([Reuel et al., 2024](https://arxiv.org/abs/2411.12990)) and the Agentic Benchmark
  Checklist ([Zhu et al., 2025](https://arxiv.org/abs/2507.02825)) set quality
  criteria for benchmarks. This tool checks evidence for one review rubric's items
  in a given set of runs, and does not score quality.
- **Holistic evaluation.** HELM ([Liang et al., 2022](https://arxiv.org/abs/2211.09110))
  and HAL ([Kapoor et al., 2025](https://arxiv.org/abs/2510.11977)) run models under
  documented, shared settings. This tool reads Inspect logs and OpenTelemetry traces,
  so it covers runs like theirs only when they are recorded in those formats.
- **Run records and benchmark cards.** These include
  [Every Eval Ever](https://github.com/evaleval/every_eval_ever), whose Inspect
  converter already extracts limits, sandbox, tools and generation settings,
  [Evaluation Cards](https://arxiv.org/abs/2606.09809) and inspect_evals `eval.yaml`.
  The mapping aligns its keys with Every Eval Ever 0.3.0 fields, and the manifest is
  meant to converge with those formats.

## Develop

```sh
pip install -e '.[dev]'
pytest
ruff check src tests scripts && ruff format --check src tests scripts
python scripts/update_spec.py   # after editing spec/mapping.yaml
```

## License

Apache-2.0. Rubric text is quoted from Epoch AI under CC BY 4.0, with credit; see
[NOTICE](https://github.com/Krishnachaitanyakc/benchmark-disclosure/blob/main/NOTICE).
