Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion NEXT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Next

Updated 2026-10-12.
Updated 2026-10-13.

1. Paired Bayes interval for small-n pass rates (Bowyer et al. 2025), next to the paired t.
2. Converters into manifest + samples: Harbor job/trial `result.json`, and EVMbench-style per-audit `grade.json` results.
Expand All @@ -11,6 +11,9 @@ Updated 2026-10-12.
7. export-eee: carry sample transcripts into EEE `messages` for multi_turn and agentic runs (today an empty list).
8. Task filters: a negated match (`not_in`) and a lint warning when a filter keeps no task, if a bench needs them.

Done in 0.5.1 (2026-10-13): tiny numbers print in e-notation below 1e-6 and a sign-test p below
0.001 prints as `p<0.001` (a 520-task comparison printed p as a 150-digit decimal).

Done in 0.5.0 (2026-10-12): no zero-width intervals (`uncertainty.no_interval_reason`,
render `[CI n/a: <reason>]`, lint BL011).

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
A results standard for benchmark repos, with JSON Schemas, a renderer, small-sample stats, a linter and an Every Eval Ever exporter (STANDARD.md is the source of truth).

## Status
Updated 2026-10-12. State: active, v0.5.0. Next: see NEXT.md.
Updated 2026-10-13. State: active, v0.5.1. Next: see NEXT.md.

## Latest result
bench-kit is tooling, not a bench, so it has no runs. The standard it enforces is in STANDARD.md.
Expand All @@ -26,15 +26,15 @@ per task x subject x repeat. bench-kit then:
## Run it
```bash
# from a bench repo checkout
uv tool install git+https://github.com/aaronjmars/bench-kit@v0.5.0 # or: pipx install git+https://...
uv tool install git+https://github.com/aaronjmars/bench-kit@v0.5.1 # or: pipx install git+https://...
bench-kit stats && bench-kit render && bench-kit lint
bench-kit export-eee <run-id> --out eee-export --org "Your Org"
```

In any repo's GitHub Actions CI:
```yaml
- uses: actions/checkout@v4
- uses: aaronjmars/bench-kit@v0.5.0
- uses: aaronjmars/bench-kit@v0.5.1
with:
args: --warn-only # drop once the repo is migrated
```
Expand Down
6 changes: 4 additions & 2 deletions STANDARD.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bench standard v2.4 (bench-kit 0.5.0)
# Bench standard v2.4 (bench-kit 0.5.1)

One shape for every bench repo: how runs are recorded, checked and reported,
whatever the bench measures (models, agent harnesses, prompts, CI runners,
Expand Down Expand Up @@ -122,7 +122,9 @@ Extra sections may follow Layout.

Numbers in generated files: values of 1 or more (and 0) use 3 decimals with
trailing zeros dropped (money 2 decimals); values below 1 use 3 significant
figures, so a cost of $0.00042 per task prints as `$0.00042`, never `$0.00`.
figures, so a cost of $0.00042 per task prints as `$0.00042`, never `$0.00`. Values
below 1e-6 print in e-notation with 3 significant figures (`2.35e-137`), and a sign-test
p below 0.001 prints as `p<0.001` (bench-kit 0.5.1).

## 4. Manifest (`runs/<id>/manifest.json`, schema `bench-manifest/1`)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bench-kit"
version = "0.5.0"
version = "0.5.1"
license = "MIT"
description = "Shared standard, schema, renderer, stats and linter for bench repos"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/bench_kit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""bench-kit: shared standard, schema, renderer, stats and linter for bench repos."""

__version__ = "0.5.0"
__version__ = "0.5.1"
13 changes: 12 additions & 1 deletion src/bench_kit/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,26 @@ def fixed(x: float, decimals: int, signed: bool = False, strip: bool = True, min
return s


TINY = 1e-6


def num(x, signed: bool = False) -> str:
if x is None:
return "n/a"
if isinstance(x, bool) or not isinstance(x, (int, float)):
return str(x)
if x != 0 and math.isfinite(x) and abs(x) < TINY:
# below 1e-6 fixed notation runs to dozens of zeros; 3 significant figures in e-notation
return f"{x:+.{SIG - 1}e}" if signed else f"{x:.{SIG - 1}e}"
s = fixed(x, 3, signed)
return "0" if s in ("+0", "-0", "") else s


def p_text(p: float) -> str:
"""Sign-test p as reported in papers: p<0.001 below that, else the plain value."""
return "p<0.001" if p < 0.001 else f"p={num(p)}"


def ci_text(unc: dict | None) -> str:
""" " [lower, upper]", or " [CI n/a: why]" when there is no real interval. A stored zero-width interval
(e.g. from an older bench-kit) is not printed: [0.958, 0.958] would read as perfect certainty."""
Expand Down Expand Up @@ -135,7 +146,7 @@ def comparison_line(c: dict) -> str:
if c.get("wins") is not None:
wtl = f", W/T/L {c['wins']}/{c['ties']}/{c['losses']}"
if c.get("sign_test_p") is not None:
wtl += f" (sign test p={num(c['sign_test_p'])})"
wtl += f" (sign test {p_text(c['sign_test_p'])})"
note = f". {c['note']}" if c.get("note") else ""
up = c.get("unpaired") or {}
shared = ""
Expand Down
4 changes: 4 additions & 0 deletions tests/test_lint_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ def test_num_and_money_keep_small_values():
assert render.num(3.14159) == "3.142"
assert render.num(-0.0004, True) == "-0.0004"
assert render.num(0) == "0" and render.num(0.9996) == "1"
assert render.num(2.35e-137) == "2.35e-137"
assert render.num(-4.2e-9, True) == "-4.20e-09"
assert render.num(0.0000012) == "0.0000012"
assert render.p_text(2.35e-137) == "p<0.001" and render.p_text(0.0312) == "p=0.0312" and render.p_text(1.0) == "p=1"
assert render.money(0.00042) == "$0.00042"
assert render.money(0.4) == "$0.40"
assert render.money(0) == "$0.00"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading