errorbars 0.2.3__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. {errorbars-0.2.3 → errorbars-0.3.0}/.gitignore +7 -0
  2. errorbars-0.3.0/CHANGELOG.md +621 -0
  3. {errorbars-0.2.3 → errorbars-0.3.0}/LICENSE +1 -1
  4. errorbars-0.3.0/LICENSES/Python-2.0.txt +279 -0
  5. errorbars-0.3.0/PKG-INFO +634 -0
  6. errorbars-0.3.0/README.md +594 -0
  7. errorbars-0.3.0/docs/comparison-reports.md +328 -0
  8. errorbars-0.3.0/docs/data-integrity-2026-10-04.md +176 -0
  9. errorbars-0.3.0/docs/formulas.md +381 -0
  10. errorbars-0.3.0/docs/leaderboard-tests.md +200 -0
  11. errorbars-0.3.0/docs/planning.md +142 -0
  12. errorbars-0.3.0/docs/repeated-planning.md +129 -0
  13. errorbars-0.3.0/docs/verification-2026-10-04.md +157 -0
  14. errorbars-0.3.0/docs/verification-binary-feasibility-2026-10-12.md +118 -0
  15. errorbars-0.3.0/docs/verification-comparison-2026-10-07.md +157 -0
  16. errorbars-0.3.0/docs/verification-comparison-inference-2026-10-09.md +73 -0
  17. errorbars-0.3.0/docs/verification-inspect-2026-10-09.md +152 -0
  18. errorbars-0.3.0/docs/verification-leaderboard-ranks-2026-10-09.md +63 -0
  19. errorbars-0.3.0/docs/verification-lm-eval-grading-2026-10-15.md +93 -0
  20. errorbars-0.3.0/docs/verification-metric-contract-2026-10-15.md +158 -0
  21. errorbars-0.3.0/docs/verification-own-run-imports-2026-10-12.md +64 -0
  22. errorbars-0.3.0/docs/verification-repeated-planning-2026-10-09.md +133 -0
  23. errorbars-0.3.0/docs/verification-scoring-2026-10-10.md +97 -0
  24. errorbars-0.3.0/docs/verification-table-imports-2026-10-12.md +67 -0
  25. {errorbars-0.2.3 → errorbars-0.3.0}/pyproject.toml +10 -2
  26. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/__init__.py +3 -1
  27. errorbars-0.3.0/src/errorbars/_mean.py +136 -0
  28. errorbars-0.3.0/src/errorbars/_output.py +53 -0
  29. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/_tables.py +27 -1
  30. errorbars-0.3.0/src/errorbars/_validation.py +45 -0
  31. errorbars-0.3.0/src/errorbars/adapters/_inspect_integrity.py +173 -0
  32. errorbars-0.3.0/src/errorbars/adapters/_inspect_reductions.py +110 -0
  33. errorbars-0.3.0/src/errorbars/adapters/_lm_eval_metric.py +143 -0
  34. errorbars-0.3.0/src/errorbars/adapters/inspect_ai.py +184 -0
  35. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/adapters/lm_eval.py +137 -35
  36. errorbars-0.3.0/src/errorbars/cli.py +740 -0
  37. errorbars-0.3.0/src/errorbars/compare.py +317 -0
  38. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/inputs.py +43 -5
  39. errorbars-0.3.0/src/errorbars/io.py +719 -0
  40. errorbars-0.3.0/src/errorbars/leaderboard.py +452 -0
  41. errorbars-0.3.0/src/errorbars/plot.py +201 -0
  42. errorbars-0.3.0/src/errorbars/power.py +315 -0
  43. errorbars-0.3.0/src/errorbars/report.py +201 -0
  44. errorbars-0.3.0/src/errorbars/report_assets/fonts/LICENSE.txt +297 -0
  45. errorbars-0.3.0/src/errorbars/report_assets/fonts/ibm-plex-mono-400-latin.woff2 +0 -0
  46. errorbars-0.3.0/src/errorbars/report_assets/fonts/ibm-plex-sans-latin.woff2 +0 -0
  47. errorbars-0.3.0/src/errorbars/report_assets/fonts/spectral-500-latin.woff2 +0 -0
  48. errorbars-0.3.0/src/errorbars/report_assets/report.css +190 -0
  49. errorbars-0.3.0/src/errorbars/report_assets/report.js +404 -0
  50. errorbars-0.3.0/src/errorbars/report_assets/template.html +152 -0
  51. errorbars-0.3.0/src/errorbars/review.py +319 -0
  52. errorbars-0.3.0/src/errorbars/scoring.py +55 -0
  53. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/stats.py +129 -46
  54. errorbars-0.2.3/CHANGELOG.md +0 -232
  55. errorbars-0.2.3/PKG-INFO +0 -350
  56. errorbars-0.2.3/README.md +0 -310
  57. errorbars-0.2.3/docs/formulas.md +0 -205
  58. errorbars-0.2.3/src/errorbars/adapters/inspect_ai.py +0 -104
  59. errorbars-0.2.3/src/errorbars/cli.py +0 -513
  60. errorbars-0.2.3/src/errorbars/compare.py +0 -178
  61. errorbars-0.2.3/src/errorbars/io.py +0 -331
  62. errorbars-0.2.3/src/errorbars/leaderboard.py +0 -185
  63. errorbars-0.2.3/src/errorbars/plot.py +0 -141
  64. errorbars-0.2.3/src/errorbars/power.py +0 -148
  65. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/adapters/__init__.py +0 -0
  66. {errorbars-0.2.3 → errorbars-0.3.0}/src/errorbars/py.typed +0 -0
@@ -21,3 +21,10 @@ npm-debug.log*
21
21
  *.swp
22
22
  web/*.tsbuildinfo
23
23
  .venv-minimums/
24
+ .report-venv/
25
+
26
+ web/test-results/
27
+ web/playwright-report/
28
+
29
+ # Downloads made by studies/*/fetch.py
30
+ studies/*/cache/
@@ -0,0 +1,621 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented in this file.
4
+
5
+ ## Unreleased
6
+
7
+ ## [0.3.0] - 2026-11-26
8
+
9
+ - Package metadata names Anthony Mercer (anthony@praviel.com) as the author.
10
+
11
+ ### Native Inspect epoch reducers
12
+
13
+ - Import retained per-question scores for non-mean epoch reducers. Averaging
14
+ their raw epochs previously substituted a different statistic and reversed
15
+ a retained max-score comparison. Read the native values without executing
16
+ reducer functions; require every original question exactly once.
17
+ - Add `--inspect-reducer` / `inspect_reducer` to choose among multiple recorded
18
+ views. Use current results rather than stale initial eval configuration.
19
+ Ordinary means retain individual epochs and existing diagnostics.
20
+ - Preserve reducer and attempt-count identity through scoring declarations,
21
+ normalized CSV, JSON and standalone reports. Label recorded scalar scorers
22
+ as well as named values. Reduction source records name their native array;
23
+ they do not masquerade as raw generations. Reject incompatible score
24
+ definitions before paired inference.
25
+ - Retain 18 native, authored Inspect runs, closed-form and independent
26
+ inference checks, and actual installed CLI/offline report workflows in
27
+ `studies/inspect-reducers`.
28
+
29
+ ### Recorded SWE-bench cohorts
30
+
31
+ - Honor explicit evaluated-task masks in the study CSV converter. One retained
32
+ public submission has 441 recorded outcomes; its 59 missing task records no
33
+ longer become observed zeroes. Keep its official 359/500 benchmark score
34
+ separate from its 359/441 observed-subset mean. Validate mask widths, counts
35
+ and resolved-task membership before emitting CSV.
36
+ - Restrict the fixed 500-task study and browser comparison to the 172 complete,
37
+ score-consistent submissions. Recompute the study's affected statistics and
38
+ gap figures. Resolved-only own-run inputs retain their documented full-task
39
+ convention. [Native file and actual CLI/browser evidence](studies/observed-cohorts/README.md).
40
+
41
+ ### Primary summary uncertainty
42
+
43
+ - Make supplied multi-question clusters select `summarize`'s primary CR2 SE and
44
+ Student-t interval, using the same policy as leaderboard entries. The old
45
+ independent-question estimate stays under `unclustered`; `--ci` selects that
46
+ diagnostic. Existing nested `clustered` field names remain aliases of the
47
+ selected estimate. Top-level `method`, SE and endpoints change for grouped data.
48
+ - Retain descriptive means with `interval_status` and null uncertainty when only
49
+ one cluster, or one continuous/repeated question, is observed. The command
50
+ previously aborted those summaries. A single independent binary answer retains
51
+ its Wilson interval. Within/between-question variance is omitted when one
52
+ question cannot estimate the between-question component.
53
+ - Retain real CLI captures and a dense-regression/SciPy oracle audit of 173 public
54
+ submissions in [the summary study](studies/summary-inference/README.md).
55
+
56
+ ### Repeated-score means
57
+
58
+ - Average each question's repeated grades with one final rounding, using the
59
+ standard library's exact-ratio mean. Rounding a sum before dividing could
60
+ turn identical raw grades into a constant paired difference, p=0 and separate
61
+ leaderboard groups solely because sample counts differed.
62
+ - Preserve single-observation throughput, original grades, genuine tiny
63
+ differences, test selection and zero-variance warnings. Retain two native
64
+ Inspect epoch runs, CSV/HTML/CLI replays and a 210,000-row workload in the
65
+ [repeated-means study](studies/repeated-means/README.md).
66
+
67
+ ### Inspect score conversion
68
+
69
+ - Refuse selected Inspect results that record an explicit metric `to_float`
70
+ callback. Logs retain the callable's name without its mapping or closure;
71
+ numeric raw grades can have the opposite meaning from native accuracy.
72
+ Substituting the default previously reversed a perfect/wrong leaderboard.
73
+ - Check the selected scorer/value's current result metadata before conversion,
74
+ including when scorer parameters are missing. Other named dimensions remain
75
+ usable; original scorer declarations may predate native re-scoring.
76
+ - Preserve existing CSV, comparison HTML and forest-plot outputs on refusal.
77
+ Retain six native mockllm captures and actual CLI replays under
78
+ `studies/inspect-converters`. Explicit default callbacks are also opaque;
79
+ callers can export reviewed numeric per-question scores separately.
80
+
81
+ ### Large binary comparisons
82
+
83
+ - Evaluate the exact McNemar binomial tail with normalized probabilities rather
84
+ than repeatedly updating large integer coefficients. Preserve the finite
85
+ binomial test, test selection and Holm correction; no asymptotic test replaces it.
86
+ Keep intermediate probabilities scaled so representable tiny two-sided tails
87
+ do not become zero before doubling.
88
+ - Reuse validated rows while constructing one leaderboard's per-question means,
89
+ and avoid a duplicate validation scan in the CLI input wrapper. Public loading
90
+ and statistical entry points still validate their inputs, including after callers
91
+ mutate a previously analyzed dataset; no validation state is cached.
92
+ - Retain synthetic CSV/CLI timing, independent integer/SciPy checks, a real-outcome
93
+ audit and installed-package verification under `studies/mcnemar-throughput`.
94
+ This is source work; no registry release is implied.
95
+
96
+ ### Native generation grading declarations
97
+
98
+ - Retain the selected lm-eval default generation metric's forwarded grading
99
+ parameters and backend choice as a versioned fingerprint. Changing only
100
+ `exact_match(ignore_case=...)` previously appeared as a 33.3-point model gain
101
+ on identical answers, with exact McNemar p=0.0078125. Known conflicts now
102
+ withhold inference and ranking while retaining inspectable question evidence.
103
+ - Fingerprints survive canonical CSV and comparison downloads without raw
104
+ grader parameters. Same-grader repeats, key-order changes, prompt variants
105
+ and actually changed answers stay usable. Custom processors, other output
106
+ branches and missing declarations stay explicitly unchecked; their unused
107
+ metric kwargs cannot certify scoring equivalence.
108
+ [Native captures, controls and replay](studies/lm-eval-grading/README.md).
109
+
110
+ ### Metric direction and aggregation
111
+
112
+ - Retain lm-eval's recorded `higher_is_better` declarations and rank mean
113
+ losses in ascending order. Direction survives canonical CSV, normalized
114
+ JSONL/DataFrames, model selection, concatenation and comparison evidence.
115
+ `leaderboard --score-direction lower` supplies a direction for undeclared
116
+ scores; an explicit flag cannot override contradictory recorded evidence.
117
+ JSON, terminal output and both forest-plot formats identify rank direction
118
+ and whether it is recorded, explicitly supplied or the higher-first default.
119
+ - Refuse recorded non-mean lm-eval aggregations before analysis or exports.
120
+ Scalar sample values can be inputs to a corpus metric: native perplexity
121
+ samples contain log likelihoods, whose mean is not perplexity. A recorded
122
+ lower-is-better declaration without a recorded mean aggregation is also
123
+ refused because an aggregate's direction need not order its inputs.
124
+ Unknown metadata stays unknown. Original units and two-sided tests are
125
+ preserved. [Native captures and before/after replay](studies/metric-contract/README.md).
126
+
127
+ ### Descriptive leaderboard runs
128
+
129
+ - Retain model means and counts when a run covers only one independent cluster,
130
+ or only one question with continuous or repeated-generation scores. Previously
131
+ these runs aborted the whole board. Other models' estimates and eligible
132
+ paired tests remain available, while insufficient pairs stay untested.
133
+ - `LeaderboardEntry.se`, `ci_low` and `ci_high` can now be `None` (`null` in JSON).
134
+ `interval_status` distinguishes `available`, `fewer_than_two_questions` and
135
+ `fewer_than_two_clusters`; unavailable entries have `method="unavailable"`.
136
+ Terminal tables and SVG/matplotlib plots label missing intervals explicitly.
137
+ [Captured failure and installed-wheel replay](studies/insufficient-cohorts/README.md).
138
+
139
+ ### Native lm-eval cohort integrity
140
+
141
+ - Reconcile the selected filter's sample count with the matching results
142
+ sidecar's `n-samples[task].effective`, including when the model is explicitly
143
+ named. Missing, extra or malformed declared counts stop analysis and exports.
144
+ Legitimate limited runs use the evaluated count rather than the original
145
+ dataset size. Missing count evidence remains unchecked.
146
+ - Preserve matching results sidecars from CSV/SVG/HTML exports with explicit
147
+ model names as well as inferred names. A model override no longer lets an
148
+ export replace the count evidence, including through hard-link aliases.
149
+ [Native captures and CLI reproduction](studies/lm-eval-cohorts/README.md).
150
+
151
+ ### Leaderboard summary limits
152
+
153
+ - Bound maximal-group enumeration by 4,096 completed groups and 50,000 search
154
+ states. A 50-model score table can have over 33 million overlapping groups;
155
+ constructing them previously exhausted memory before the CLI printed any
156
+ report. Model estimates, all pairwise tests, Holm correction, exact rank
157
+ comparisons and SVG export now survive an omitted group summary.
158
+ - `Leaderboard.groups` can be `None` (`null` in JSON). `group_status` is
159
+ `complete`, `omitted_group_limit` or `omitted_search_limit`; an omitted
160
+ summary also includes `group_limits` in JSON and an explanatory warning.
161
+ A list always contains the complete maximal-group enumeration, never an
162
+ arbitrary first subset. [Reproduction and evidence](studies/group-enumeration/README.md).
163
+
164
+ ### Export integrity
165
+
166
+ - Protect loaded inputs and inferred-model sidecars from CSV, SVG and HTML
167
+ exports, including aliases through symlinks, hard links and linked directories.
168
+ Previously, successful CLI commands could replace native logs or score tables
169
+ with their own output. Symbolic-link and nonregular destinations are refused.
170
+ - Write all three formats through a private sibling file and replace the
171
+ destination only after a complete flushed write. Failed CSV/SVG writes no
172
+ longer leave truncated output in place of an earlier report. HTML retains
173
+ that existing guarantee and supports full-length destination filenames.
174
+ [Before/after CLI and artifact evidence](studies/output-integrity/README.md).
175
+
176
+ ### Added
177
+
178
+ - Select named values from dictionary-valued Inspect scores with `--score-key`
179
+ (`load_inspect_log(..., score_key=...)` and `load_inputs(..., score_key=...)`).
180
+ Keep the selected value in canonical CSV/JSONL, CLI results, question evidence
181
+ and browser downloads. Unlike selected values conflict even with identical
182
+ scorer parameters; missing or invalid selected grades reject the cohort.
183
+ [Native Inspect capture and comparison checks](examples/inspect-values/README.md).
184
+
185
+ - `studies/swe-bench-verified/`: the package run over the per-task results of 173 public
186
+ SWE-bench Verified submissions, with the scripts that fetch the data at a pinned commit and
187
+ reproduce every number and figure. `to_csv.py` writes any submissions, or a run of your own,
188
+ in the format `errorbars compare` reads.
189
+ - A second page on the site, `swe-bench.html`: pick any two of the 173 submissions, or paste a
190
+ run of your own, and get the paired test, the repository-level test and a map of the 500
191
+ tasks by repository. The TypeScript port of the comparison is tested against vectors this
192
+ package computes on real pairs (`scripts/export_paired_vectors.py`).
193
+ - `cluster_degrees_of_freedom`, and `cluster_robust_se(..., kind="CR1")` for the classic
194
+ estimator. `summarize` and `compare` print the clustered degrees of freedom; `compare` prints
195
+ the clustered p-value and explains the result when fewer than 10 effective degrees of
196
+ freedom carry it. JSON gains `clustered_dof`, `dof_clustered` and `n_clusters`.
197
+
198
+ ### Changed
199
+
200
+ - Single-answer binary power plans reject impossible combinations of baseline,
201
+ improvement and pairing correlation. Fixed-budget planning intersects its
202
+ normal threshold with the feasible joint Bernoulli interval, including a
203
+ correlation-imposed minimum for some negative correlations. Unavailable
204
+ budgets are omitted from the chart and identified in the comparison table;
205
+ a missing sensitivity result does not hide a valid primary plan. Browser
206
+ exports use schema version 2 with feasibility bounds and null sensitivity
207
+ results where appropriate. Python exposes `binary_effect_range` and
208
+ `BinaryFeasibilityError`; CLI JSON includes feasibility metadata. The normal
209
+ power approximation is unchanged. This check does not validate continuous
210
+ scores or repeated-answer averages. See [planning](docs/planning.md).
211
+
212
+ - Leaderboards keep usable model estimates and pairwise tests when some pairs
213
+ share only one independent cluster. Those pairs have an explicit untested
214
+ reason and shared-question count; they never receive a significance decision.
215
+ Question content signatures are indexed per model once per board, avoiding
216
+ repeated scans of every model's observations for each pair. Recorded 120-model
217
+ runtime with identity declarations fell from 31.3 to 5.9 seconds with identical
218
+ numerical output. [Reproduction and timing limits](studies/leaderboard-overlap/README.md).
219
+
220
+ - Comparisons and rankings reject known conflicting scorer names or recorded
221
+ configurations for shared questions. Inspect scorer parameters are fingerprinted
222
+ without exporting their raw values; lm-eval metric names survive normalized export.
223
+ Canonical CSV/JSONL adds optional `scorer` / `scorer_config` columns, retained in
224
+ Python data and offline report evidence. Missing declarations remain unchecked.
225
+ Repeated samples with conflicting rules are refused before averaging.
226
+ [Identical-answer captures and valid common-grader controls](examples/inspect-scoring/README.md).
227
+
228
+ - lm-eval imports require `--metric` when selected records declare several metrics,
229
+ validate that it is a declared score on every record, and refuse different metrics
230
+ for shared questions across native input files. Model-name inference requires a
231
+ results file with the samples' timestamp; renamed or orphaned samples need `NAME=PATH`
232
+ or `--model`. This prevents metric-order changes from creating an apparent model
233
+ improvement and unrelated results files from relabelling a run.
234
+ [Actual harness capture and migration](studies/lm-eval-evidence/README.md).
235
+
236
+ - Standalone comparisons now share the leaderboard's data-based test selection.
237
+ CLI and HTML headline exact McNemar for single binary observations, clustered t
238
+ for grouped questions, and paired t for continuous or repeated means. JSON adds
239
+ `inference`; existing p-value and interval fields keep their diagnostic meanings.
240
+ No exact binary mean-difference interval is claimed. The SWE-bench browser also
241
+ uses its exact task test: 102 of 14,878 unadjusted pairs change decision at 5%.
242
+ [Counterexamples and independent replay](studies/comparison-inference/README.md).
243
+
244
+ - Leaderboard tables and SVGs show exact other-model rank sets instead of group
245
+ letters or min-max tie spans. The old spans implied 150 false directed ties on
246
+ the retained 173-submission SWE-bench board. JSON adds `rank_comparisons`,
247
+ `untested_pairs` (with shared counts and reasons), and board-level `warnings`.
248
+ Existing `groups`, tests and intervals are preserved. Comparisons with fewer
249
+ than two shared questions remain explicitly untested. SVG labels wrap within
250
+ the export instead of clipping. [Real-data audit](studies/leaderboard-ranks/README.md).
251
+
252
+ - Repeated-answer power plans require explicit `repeat_correlation` / `--repeat-correlation`
253
+ for more than one answer per question. Python and TypeScript preserve between-question
254
+ variance using `V * (r + (1-r)/k)`; single-answer plans are unchanged. JSON retains the
255
+ supplied assumption (null if absent for one answer). Existing scripts relying on `V/k`
256
+ must explicitly pass 0 if that independence assumption is intended.
257
+ [Migration, simulations, and retained public outcomes](docs/repeated-planning.md).
258
+
259
+ - Leaderboard model intervals now honor supplied multi-question clusters, using CR2
260
+ standard errors and effective-degree-of-freedom t critical values just like `summarize`.
261
+ Tables and forest plots name their interval basis. JSON retains the unclustered estimate,
262
+ confidence level, cluster count, degrees of freedom, and limitations. One cluster cannot
263
+ silently yield an independent-question interval. Repeated generations keep equal question
264
+ weighting. [Actual before/after intervals](docs/leaderboard-tests.md#confidence-intervals-also-honor-supplied-clusters).
265
+
266
+ - `leaderboard` selects exact McNemar for one binary observation per shared question,
267
+ retaining clustered t when questions are grouped and paired t for continuous or repeated
268
+ scores. Holm uses the selected tests as one family. This avoids treating two binary wins
269
+ as p=0 merely because paired differences have zero variance. Output names the method;
270
+ JSON adds `test`, `p_value_used`, and `mcnemar`, while `p_value` retains its paired-t meaning.
271
+ [Controlled example and audit of 173 public submissions](docs/leaderboard-tests.md).
272
+
273
+ - **Clustered intervals and tests use the bias-reduced CR2 estimator with Satterthwaite
274
+ degrees of freedom** in place of CR1 on t(G − 1). With clusters of equal size the numbers
275
+ are unchanged. With unequal sizes the old test rejected a true null too often: 9.7% to 16.6%
276
+ for a nominal 5% test on SWE-bench Verified's repository sizes, against 3.0% to 5.2% now.
277
+ Clustered intervals on unequal clusters are wider than before, and `leaderboard` groups
278
+ built from them are larger.
279
+
280
+ ### Fixed
281
+
282
+ - SWE-bench personal-run imports reject malformed result lists and conflicting
283
+ `resolved_ids` / `resolved` fields. The CSV exporter no longer turns `null`,
284
+ `false`, zero or an empty object into 500 failures; rejected browser pastes
285
+ preserve the previous comparison. Explicit empty lists and the documented
286
+ leaderboard denominator are unchanged. [Replay](studies/own-run-imports/README.md).
287
+
288
+ - Table imports refuse duplicate DataFrame columns before pandas can discard values.
289
+ CSV parsing rejects unfinished quoted fields and text after a closing quote, with a
290
+ located input error instead of analyzing repaired data. Failed inputs leave existing
291
+ CLI reports and exports intact. Duplicate row indexes and valid CSV quoting remain
292
+ supported. [Reproduction](studies/table-imports/README.md).
293
+
294
+ - Inspect imports now refuse cancelled/failed runs, incomplete sample counts,
295
+ invalidations, invalid epoch coverage and changing automatic scorer selection.
296
+ Completed limits and selected-ID runs remain supported. Recorded text inputs,
297
+ choices and targets receive content signatures: reused IDs with changed
298
+ questions no longer produce paired inference. Solver-prompt experiments remain
299
+ comparable; rewriting dataset input itself now requires an independently
300
+ reviewed identity mapping. Multimodal/external inputs remain explicitly
301
+ unchecked. [Retained captures and before/after replay](examples/inspect-comparison/README.md).
302
+ - A binary score near 0 or 1 got a CLT interval that left [0, 1] (2 correct of 500:
303
+ [-0.0015, 0.0095]; 0 of 500: a zero-width interval). `summarize` and `leaderboard` now use
304
+ the Wilson interval whenever there are fewer than 10 successes or failures, not only below
305
+ 30 questions.
306
+ - `leaderboard` printed every pair and one letter per group: 15,000 lines for 175 models, and
307
+ group labels that ran past `z`. Past 66 pairs the table shows adjacent ranks (`--all-pairs`
308
+ for the rest). The initial rank-span shorthand is superseded by exact sets above.
309
+ - `leaderboard` grouped indistinguishable models by enumerating cliques without pivoting.
310
+ A board of 28 near-tied real submissions took 66 seconds and one of 47 did not finish. It
311
+ now pivots: under a second for 47, about ten seconds for 175 models (15,225 pairs).
312
+
313
+ - Known question-content conflicts now stop paired comparisons and leaderboards even when
314
+ question IDs match. Native lm-eval imports fingerprint the document and target; canonical
315
+ inputs can carry `question_hash`. Matching, partial and unavailable checks remain distinct.
316
+ Prompt arguments and responses do not enter question identity.
317
+ - Summary and leaderboard means now give each question equal weight after averaging its
318
+ repeated generations. Counts and SEs use distinct questions; retained observation counts
319
+ remain available in JSON and repeated-generation tables. Wilson cannot count repeated
320
+ question averages as independent binary trials.
321
+ - Constant nonzero paired differences use the p=0 t-test limit instead of p=1, with explicit
322
+ degeneracy warnings. Score units are scaled before SE/correlation calculations to avoid
323
+ tiny continuous scores underflowing to false zero variance. Matrix/nonfinite inputs,
324
+ invalid group lengths, approximate binary grades in McNemar, and a single independent
325
+ cluster are rejected at the relevant statistical entry points.
326
+ - Undefined pairing correlation and variance reduction are exported as JSON null and shown
327
+ as unavailable in the CLI, with explanatory warnings. Callers must handle nullable values
328
+ for constant score vectors instead of interpreting the old fabricated zero as a measurement.
329
+ - Input parsing rejects duplicate normalized CSV columns, duplicate JSON fields, missing or
330
+ structured identifiers, and conflicting cluster assignments. Combining sources propagates
331
+ known assignments to the same question and refuses to invent groups for unknown questions.
332
+ - Inspect imports refuse missing or unsupported scalar grades and unscored samples, which
333
+ previously became zero scores or silently disappeared. lm-eval imports require document
334
+ IDs and reject duplicate score fields, preserving question identity and original grades.
335
+ - Percentile bootstrap resampling now batches temporary indices and indexed scores, while
336
+ retaining every resample mean and the same seeded percentile result. Invalid resample
337
+ counts are rejected rather than producing undefined SEs or allocation errors.
338
+
339
+ - Both power-planning directions now validate finite parameters and exact integer
340
+ counts consistently. Invalid design effects, negative detectable gaps, infinite
341
+ samples, and unrepresentable counts produce validation errors. Small alpha values
342
+ avoid subtraction cancellation, and variance roots avoid premature overflow.
343
+ - Browser curves no longer contain decorative scatter that could be mistaken for
344
+ measurements. The minimum question count stays inside the plot, axis labels keep
345
+ their size on phones, and edits do not restart an animation.
346
+ - Small-gap plans use a higher precision AS241 inverse-normal approximation; the
347
+ previous approximation could shift very large required counts by hundreds of
348
+ questions relative to Python. Independent SciPy quantiles cover all three
349
+ approximation regions, including extreme tails.
350
+ - Shared formula vectors now sample the full parameter grid instead of truncating
351
+ it to one baseline and one question count. Python checks that they remain current;
352
+ independent SciPy quantile checks exercise additional boundary cases.
353
+
354
+ ### Added
355
+
356
+ - `compare --html PATH`: a self-contained offline comparison report with a complete shared,
357
+ unmatched and conflicting question ledger; per-generation evidence; source records; cluster
358
+ deletion sensitivity; and full JSON / filtered CSV downloads. Searching and filtering do not
359
+ change inference. Reports with insufficient overlap or conflicting identity remain inspectable
360
+ while the CLI exits with an inference error.
361
+ - Score provenance from CSV physical line ranges, JSONL/lm-eval lines, and Inspect sample records.
362
+ HTML uses basenames and source numbers, retains original numeric data in JSON, and contains no
363
+ raw prompts/completions. Script/style hashes and a restrictive CSP keep it offline.
364
+
365
+ - Fixed-budget planning, precise numeric editors, reset and recovery, a computed
366
+ budget table, and a comparison with zero pairing correlation.
367
+ - JSON planning artifacts with explicit assumptions, units and warnings, plus a
368
+ reproducible Python CLI command. Invalid drafts cannot export a stale result.
369
+ - Mobile result navigation, small-sample/group caveats, and explicit warnings when
370
+ a mathematical detectable gap exceeds the available accuracy improvement.
371
+ - Production Chromium and Firefox workflows covering editing, keyboard use,
372
+ downloads, accessibility, responsive charts, offline use, and blocked storage.
373
+
374
+ ### Maintenance
375
+
376
+ - Browser lint tooling now uses supported ESLint 10 with its compatible TypeScript plugin.
377
+ Fresh Node 24 checks pass and all production files match the browser-tested build.
378
+
379
+ - The uv lock now resolves stable Pydantic 2.13.5 and wrapt 2.5.0 instead of
380
+ beta/release-candidate versions selected by a permissive local resolver setting.
381
+ The project explicitly prefers stable releases. The narrow-terminal regression now
382
+ supplies its own terminal environment so it also runs in noninteractive shells.
383
+
384
+ ## [0.2.4] - 2026-10-03
385
+
386
+ ### Security
387
+
388
+ - A model name or question id holding a terminal escape sequence was printed as it came: the
389
+ tables and the errors that list models sent it to the terminal, which obeys it (clears the
390
+ screen, retitles the window, hides the rest of the line). Each control character in text
391
+ from the data is now written as a visible escape: `m\x1b]0;title\x07`. `--json` already
392
+ escaped them.
393
+
394
+ ## [0.2.3] - 2026-10-03
395
+
396
+ ### Compatibility
397
+
398
+ - Python 3.13 and 3.14 are tested and declared. CI runs the suite on 3.14
399
+ as well, and the package's classifiers list both versions. The code is
400
+ unchanged: with the newest release of every dependency, the tests pass on
401
+ 3.14 and on 3.15's release candidate.
402
+
403
+ The rest of this release is in the web demo; the package is otherwise
404
+ unchanged.
405
+
406
+ ### Changed
407
+
408
+ - The page's fonts are served by the page itself. They came from Google Fonts,
409
+ the one request the page made to another origin; the same font files (every
410
+ subset, as Google serves them to a current browser) are now in
411
+ `web/src/fonts/`, with their SIL Open Font License texts. Nothing looks
412
+ different: screenshots before and after match. The page now loads with
413
+ every other host blocked.
414
+
415
+ ### Security
416
+
417
+ - The built page carries a Content-Security-Policy. Scripts, styles, fonts and
418
+ workers load from the page's own origin only, and `connect-src 'self'` has
419
+ the browser refuse to send what you give the page to any other host, even
420
+ for a script injected through a bug in how the page renders a file. Inline
421
+ event handlers and `eval` are not allowed. Every control was exercised
422
+ in Chromium and Firefox with a listener for policy violations: none.
423
+
424
+ ## [0.2.2] - 2026-10-02
425
+
426
+ Files and pipes as Windows and spreadsheets make them.
427
+
428
+ ### Fixed
429
+
430
+ - A CSV saved from a spreadsheet. Excel's "CSV UTF-8" starts with a byte-order
431
+ mark, which became part of the first column's name: "missing required column
432
+ 'question_id' in row 1" for a file that has it. A spreadsheet in a locale
433
+ whose decimal mark is the comma writes semicolons between the fields and
434
+ `0,75` for a score, which failed the same way. The mark is skipped, the
435
+ delimiter (comma, semicolon or tab) is the one that splits the header into
436
+ the required columns, and decimal commas are read when the delimiter is not
437
+ the comma.
438
+ - That error now lists the columns the file does have.
439
+ - Output written to a pipe or a file is UTF-8. Before 3.15, Python on Windows
440
+ gives a redirected stdout the system's code page, so
441
+ `errorbars leaderboard scores.csv > table.txt` with a model name outside it
442
+ stopped with "'charmap' codec can't encode characters". (Reproduced on Linux
443
+ by giving the pipe cp1252 with `PYTHONIOENCODING`; the test does the same.)
444
+
445
+ ## [0.2.1] - 2026-10-02
446
+
447
+ What the table commands print, checked the way their output is read: after `pip install
448
+ errorbars`, in a CI log, and with the model names harnesses produce.
449
+
450
+ ### Fixed
451
+
452
+ - `pip install errorbars` gives a working command line. `rich` is an extra, and without it
453
+ `summarize`, `compare`, `leaderboard` and `power` stopped with "rich is required for table
454
+ output". They print the same rows as aligned plain text now; `errorbars[cli]` still gives the
455
+ `rich` tables.
456
+ - Model names are printed whole. Written to a pipe (a CI log, a file), tables were laid out 80
457
+ columns wide and every cell cut to fit: lm-eval's `meta-llama__Llama-3.1-8B-Instruct` and
458
+ `meta-llama__Llama-3.1-70B-Instruct` were both `meta-llam…` in the pairwise table, and the
459
+ column headings were cut too. A pipe gets the table at its full width; a terminal too narrow
460
+ for it folds the names onto more lines and keeps the numbers on one.
461
+ - Model names are printed as they are. `rich` read `[q4_k_m]` in a name as style markup and
462
+ dropped it, and a name holding something like `[/b]` ended the command with a `MarkupError`
463
+ traceback. Nothing from the data is parsed as markup or as an emoji code any more.
464
+ - The message for a missing `inspect-ai` names the extra (`pip install "errorbars[inspect]"`),
465
+ which also carries the pins inspect-ai needs to import.
466
+ - The strict type check passes on Python 3.10 (an array annotation was only complete on the
467
+ numpy releases that need 3.11), and the test for importing an Inspect log is skipped without
468
+ inspect-ai, like the rest.
469
+
470
+ ## [0.2.0] - 2026-10-01
471
+
472
+ A harness writes one log per model, and every command took exactly one file. Asking whether
473
+ model B beats model A, starting from real lm-eval output, was two `import` runs, a
474
+ hand-made concatenation of two CSVs, and then `compare`.
475
+
476
+ ### Added
477
+
478
+ - `summarize`, `compare` and `leaderboard` take one or more files or directories and read
479
+ each as what it is: errorbars' CSV/JSONL, an lm-evaluation-harness `samples_*.jsonl`, or
480
+ an Inspect AI `.eval` log. `errorbars compare out/model-a out/model-b` is the whole
481
+ comparison; `errorbars leaderboard out` ranks every model under an lm-eval output
482
+ directory. Checked against the output directory of two real lm-eval 0.4.13 runs
483
+ (`--model hf`, two tiny models, COPA), committed as a fixture: the means are the
484
+ accuracies lm-eval reported.
485
+ - The model of an lm-eval samples file is read from the `results_<timestamp>.json` lm-eval
486
+ writes beside it (`model_name`), so `--model` is no longer required. A samples file moved
487
+ away from its results file has to be named, as `NAME=PATH`; the same form tells two runs of
488
+ one model apart (`greedy=a.eval sampled=b.eval`).
489
+ - A directory with several runs of one task (lm-eval adds a timestamped file on every
490
+ re-run) uses the latest and says so on stderr.
491
+ - The same model, question and sample in two inputs is refused and both files are named.
492
+ - `compare` with exactly two models in the input needs no `--model-a`/`--model-b`. Its
493
+ output says how many questions only one of the two models answered (`n_only_a`,
494
+ `n_only_b` in `--json`), and `leaderboard` says when the models were not scored on the same
495
+ questions.
496
+ - `import` takes several logs and directories and writes one CSV. `--metric`, `--filter`
497
+ and `--scorer` are available on every command that reads logs.
498
+ - Python: `errorbars.load_inputs`, `errorbars.io.concat`,
499
+ `errorbars.adapters.lm_eval.infer_model_name`.
500
+
501
+ ### Fixed
502
+
503
+ - `summarize` on a file without a `cluster_id` column printed clustering diagnostics anyway,
504
+ with every question as its own cluster: for 4 questions, "n clusters 4" and a "clustered
505
+ CI" of [-0.05, 1.55]. Diagnostics now need a cluster that groups questions.
506
+ - `summarize` without `--model` on a file with several models pooled them: the example
507
+ benchmark's 4 models x 200 questions were summarized as one sample of n = 800 (SE 0.017,
508
+ where each model's is 0.033 to 0.035). It now asks which model, or points to `leaderboard`.
509
+ With one model in the data, the summary is titled with its name instead of `(all)`.
510
+
511
+ ## [0.1.3] - 2026-10-01
512
+
513
+ ### Fixed
514
+
515
+ - `import lm-eval` on a task with several filters counted every question once
516
+ per filter. `gsm8k_cot_self_consistency` scores each question under
517
+ `score-first`, `maj@8` and `maj@64`, so 4 questions were imported as 12 and
518
+ every standard error shrank accordingly. The adapter now asks which filter to
519
+ use (`--filter maj@8`, or `filter_name=` in Python) and refuses a second
520
+ record for the same `doc_id`. Checked against a real three-filter log from
521
+ lm-eval 0.4.13, committed as a fixture.
522
+ - `import inspect` read a scorer that returns several named values as a score
523
+ of 0 for every sample (that is what Inspect's own conversion does with a
524
+ dict). It is an error now. A score that isn't a finite number is rejected by
525
+ both adapters, as it already was when loading a CSV.
526
+ - A missing or unreadable file printed a Python traceback. It is one line:
527
+ `error: results.csv: No such file or directory`. A file Inspect can't parse
528
+ is named, and so is a JSONL line that isn't an object (it was a
529
+ `TypeError`).
530
+ - A CSV row with too few cells produced a model named `None`; one with too
531
+ many (an unquoted comma in a value) was read with its cells shifted. Both
532
+ are rejected with their row number.
533
+ - `leaderboard --alpha` and `summarize --ci bootstrap --confidence` accepted
534
+ any number, including `nan` and values outside 0 to 1. `power --n` accepted
535
+ a correlation outside -1 to 1 (reported as "math domain error") and a design
536
+ effect below 1, which `power --delta` already refused. Infinite or `nan`
537
+ arguments are refused throughout.
538
+ - Scores too large to square (beyond 1e100) overflowed into `inf` and `nan`
539
+ results, or an `OverflowError`. They are rejected when loading.
540
+
541
+ ### Added
542
+
543
+ - `leaderboard --json` reports `p_value_clustered` for each pair. With
544
+ clustered questions the Holm correction is applied to that p-value, and the
545
+ output only showed the unclustered one, so `p_holm` could not be checked
546
+ against it.
547
+ - A seeded fuzz test runs 1,200 generated datasets and argument sets through
548
+ the command line: each ends in a result that satisfies the basic invariants
549
+ (intervals in order, p-values in 0 to 1, strict JSON) or in a one-line
550
+ error.
551
+
552
+ ## [0.1.2] - 2026-10-01
553
+
554
+ ### Added
555
+
556
+ - Published to PyPI: `pip install "errorbars[cli]"`. The README's images and
557
+ links are rewritten to absolute URLs at build time so they work on the
558
+ project page.
559
+ - `errorbars --version`.
560
+ - `py.typed`, so type checkers use the package's annotations (the `Typing ::
561
+ Typed` classifier was already declared).
562
+
563
+ ## [0.1.1] - 2026-09-30
564
+
565
+ ### Fixed
566
+
567
+ - The paired test's p-value and CI used the normal distribution, and the
568
+ README called that "somewhat conservative" for small n; it is the opposite
569
+ (at 8 degrees of freedom, a statistic of 2.2 gave p = 0.028 instead of
570
+ 0.059). Paired comparisons now use Student's t with n - 1 degrees of freedom
571
+ and match `scipy.stats.ttest_rel` to 1e-7, and clustered SEs (the clustered
572
+ CI in `summarize`, the clustered paired CI and p-value, and so the
573
+ leaderboard's Holm-corrected tests) use t with G - 1 degrees of freedom for
574
+ G clusters. No scipy at runtime: the t tail comes from a continued-fraction
575
+ incomplete beta function. On the bundled example the headline pair's paired
576
+ p moves from 0.1116 to 0.1131, its clustered p from 0.1154 to 0.1235, and
577
+ its Holm-adjusted p from 0.298 to 0.322; groups are unchanged.
578
+ With a single cluster, where the clustered SE falls back to the plain one,
579
+ the clustered test keeps the n - 1 reference too.
580
+
581
+ - A non-finite score (`nan`, `inf`) was accepted and propagated into every
582
+ mean, CI and p-value; on a leaderboard the NaN model sorted to rank 1.
583
+ Loading now fails with the row number.
584
+ - A repeated (model, question, sample) row was counted as another question,
585
+ inflating n and shrinking standard errors. Loading now fails with both row
586
+ numbers and says to give repeated generations distinct `sample` values.
587
+ - `power` answered "2 questions" for a baseline of 0 or 1 (where p(1-p) = 0)
588
+ and accepted targets above 100% (`--baseline 0.98 --delta 0.05`). The
589
+ baseline must be strictly between 0 and 1, baseline + delta can't exceed
590
+ 1, and a continuous-metric variance must be positive; the web calculator's
591
+ effect-size slider is capped at 1 - baseline to match.
592
+ - `compare`/`summarize` with an unknown model name said "fewer than 2 shared
593
+ question_ids" or "no rows"; they now name the missing model and list the
594
+ models in the file.
595
+ - Install hints for the optional extras named `errorbars` on PyPI, where it
596
+ isn't published; they now name the dependency or the Git URL.
597
+
598
+ ## [0.1.0] - 2026-09-24
599
+
600
+ Initial release.
601
+
602
+ - `summarize`: CLT, Wilson, and bootstrap confidence intervals; clustered
603
+ standard errors with design effect and ICC; within/between-question
604
+ variance decomposition for repeated samples.
605
+ - `compare`: paired mean difference, SE, CI, p-value; correlation and
606
+ variance reduction from pairing; clustered paired SE; exact McNemar test
607
+ for binary scores.
608
+ - `leaderboard`: per-model CIs, Holm-corrected pairwise paired tests,
609
+ maximal-clique grouping of statistically indistinguishable models, SVG and
610
+ (optional) matplotlib forest plots.
611
+ - `power`: questions needed for a target effect/power, and minimum
612
+ detectable effect for a given n, accounting for pairing correlation,
613
+ repeated sampling, and cluster design effect.
614
+ - CLI (`errorbars summarize|compare|leaderboard|power|import`) with `rich`
615
+ tables and `--json` output.
616
+ - Adapters: `errorbars import lm-eval|inspect` converts
617
+ lm-evaluation-harness `--log_samples` JSONL or an Inspect AI `.eval` log
618
+ into the canonical format, verified against real output from lm-eval
619
+ 0.4.13 and inspect-ai 0.3.268.
620
+ - Web calculator (Vite + TypeScript) mirroring the Python power formulas,
621
+ with shared JSON test vectors.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Anton Soloviev
3
+ Copyright (c) 2026 Anthony Mercer
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal