Repository navigation
stats: no zero-width intervals; say why there is no CI - #4
Merged
Merged
Conversation
When every per-task value or paired diff is equal, the t interval had zero width (e.g. +0.958 [0.958, 0.958] on 2 tasks), which reads as perfect certainty. bench-kit stats now leaves out confidence_interval and standard_error in that case and writes uncertainty.no_interval_reason (also for 1 task, 1 shared task, 1 cluster). Render prints [CI n/a: <reason>], BL005 no longer counts a missing or zero-width CI as a win, and new warning BL011 flags a stored zero-width interval. Schema and STANDARD.md (section 7 rule 13, section 9) document the field and rule. Claude-Session: https://claude.ai/code/session_01WE3oeLBZZVrjQmaavkeDCR
aaronjmars
added a commit
that referenced
this pull request
Oct 12, 2026
Release the #4 fix: version 0.5.0, standard v2.4 note, README pins and NEXT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When every paired diff in a comparison is the same, the t interval has zero width. A real run in one of our bench repos (2 tasks, both diffs +0.958) rendered as:
That reads as perfect certainty, and BL005 accepted it as a CI that excludes 0, so it backed a SWITCH verdict.
Fix
bench-kit stats: when the standard error is 0 (all per-task values or paired diffs equal, or clustered values that cancel out), it writes noconfidence_intervaland nostandard_error, and setsuncertainty.no_interval_reason, e.g. "all 2 paired diffs equal". The same field now also explains the cases that already had no interval: "1 task", "1 shared task", "1 cluster". Wilson intervals are never zero width and are unchanged.bench-kit render: prints[CI n/a: <reason>]instead of an interval. A zero-width interval still stored in an old manifest prints as[CI n/a: zero width].bench-kit lint:no_interval_reason(string) is added to the uncertainty object. It is optional, so existing manifests stay valid asbench-manifest/1, and the EEE export still validates.After the fix, the same run renders as:
Its SWITCH verdict now gets a BL005 error until the run has more tasks or the verdict changes.
Upgrade note
Manifests written by older versions keep their zero-width intervals until
bench-kit statsruns again. Until then, lint reports BL004 (stale numbers), BL005 if a verdict relies on the interval, and BL011. Runningbench-kit stats && bench-kit renderclears BL004 and BL011. Runs with 1 task also get the new[CI n/a: 1 task]text on the next render.Tests
uv run pytest: 78 passed (8 new).ruff checkandruff format --checkare clean. One existing expectation changed: a 2-task metric with both values 0 used to render[0, 0]and now renders[CI n/a: all 2 task values equal].No version bump or tag in this PR.
https://claude.ai/code/session_01WE3oeLBZZVrjQmaavkeDCR