benchtruthai 0.1.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 (63) hide show
  1. benchtruthai-0.1.0/CITATION.cff +24 -0
  2. benchtruthai-0.1.0/LICENSE +23 -0
  3. benchtruthai-0.1.0/MANIFEST.in +7 -0
  4. benchtruthai-0.1.0/NOTICES.md +267 -0
  5. benchtruthai-0.1.0/PKG-INFO +230 -0
  6. benchtruthai-0.1.0/README.md +197 -0
  7. benchtruthai-0.1.0/examples/README.md +138 -0
  8. benchtruthai-0.1.0/examples/published_results.csv +5 -0
  9. benchtruthai-0.1.0/hf/NOTICES.md +267 -0
  10. benchtruthai-0.1.0/hf/README.md +126 -0
  11. benchtruthai-0.1.0/hf/data/all.jsonl +109 -0
  12. benchtruthai-0.1.0/hf/data/dev.jsonl +77 -0
  13. benchtruthai-0.1.0/hf/data/industryor/dev.jsonl +24 -0
  14. benchtruthai-0.1.0/hf/data/industryor/test.jsonl +10 -0
  15. benchtruthai-0.1.0/hf/data/mamo/dev.jsonl +25 -0
  16. benchtruthai-0.1.0/hf/data/mamo/test.jsonl +10 -0
  17. benchtruthai-0.1.0/hf/data/nl4opt/dev.jsonl +28 -0
  18. benchtruthai-0.1.0/hf/data/nl4opt/test.jsonl +12 -0
  19. benchtruthai-0.1.0/hf/data/test.jsonl +32 -0
  20. benchtruthai-0.1.0/hf/licenses/evidence/README.md +64 -0
  21. benchtruthai-0.1.0/hf/licenses/evidence/industryor-hf-metadata.json +29 -0
  22. benchtruthai-0.1.0/hf/licenses/evidence/mamo-cc-by-sa-4.0-license.txt +427 -0
  23. benchtruthai-0.1.0/hf/licenses/evidence/nl4opt-mit-license.txt +21 -0
  24. benchtruthai-0.1.0/hf/make_hf_files.py +91 -0
  25. benchtruthai-0.1.0/integrations/inspect/README.md +105 -0
  26. benchtruthai-0.1.0/integrations/inspect/__pycache__/benchtruthai_task.cpython-312.pyc +0 -0
  27. benchtruthai-0.1.0/integrations/inspect/benchtruthai_task.py +272 -0
  28. benchtruthai-0.1.0/integrations/inspect/fixture_outputs.jsonl +56 -0
  29. benchtruthai-0.1.0/integrations/inspect/run_fixture.py +98 -0
  30. benchtruthai-0.1.0/integrations/lm-evaluation-harness/README.md +56 -0
  31. benchtruthai-0.1.0/integrations/lm-evaluation-harness/__pycache__/utils.cpython-312.pyc +0 -0
  32. benchtruthai-0.1.0/integrations/lm-evaluation-harness/benchtruthai_industryor.yaml +24 -0
  33. benchtruthai-0.1.0/integrations/lm-evaluation-harness/benchtruthai_mamo.yaml +24 -0
  34. benchtruthai-0.1.0/integrations/lm-evaluation-harness/benchtruthai_nl4opt.yaml +24 -0
  35. benchtruthai-0.1.0/integrations/lm-evaluation-harness/utils.py +70 -0
  36. benchtruthai-0.1.0/licenses/evidence/README.md +64 -0
  37. benchtruthai-0.1.0/licenses/evidence/industryor-hf-metadata.json +29 -0
  38. benchtruthai-0.1.0/licenses/evidence/mamo-cc-by-sa-4.0-license.txt +427 -0
  39. benchtruthai-0.1.0/licenses/evidence/nl4opt-mit-license.txt +21 -0
  40. benchtruthai-0.1.0/pyproject.toml +51 -0
  41. benchtruthai-0.1.0/second-pass-manifest.csv +92 -0
  42. benchtruthai-0.1.0/setup.cfg +4 -0
  43. benchtruthai-0.1.0/src/benchtruthai/__init__.py +38 -0
  44. benchtruthai-0.1.0/src/benchtruthai/bands.py +95 -0
  45. benchtruthai-0.1.0/src/benchtruthai/cli.py +207 -0
  46. benchtruthai-0.1.0/src/benchtruthai/data.py +110 -0
  47. benchtruthai-0.1.0/src/benchtruthai/datasets/__init__.py +1 -0
  48. benchtruthai-0.1.0/src/benchtruthai/datasets/cleaned_release_v1.0.1.jsonl +109 -0
  49. benchtruthai-0.1.0/src/benchtruthai/datasets/test_commitments_public.json +34 -0
  50. benchtruthai-0.1.0/src/benchtruthai/scoring.py +123 -0
  51. benchtruthai-0.1.0/src/benchtruthai/verify.py +106 -0
  52. benchtruthai-0.1.0/src/benchtruthai.egg-info/PKG-INFO +230 -0
  53. benchtruthai-0.1.0/src/benchtruthai.egg-info/SOURCES.txt +61 -0
  54. benchtruthai-0.1.0/src/benchtruthai.egg-info/dependency_links.txt +1 -0
  55. benchtruthai-0.1.0/src/benchtruthai.egg-info/entry_points.txt +2 -0
  56. benchtruthai-0.1.0/src/benchtruthai.egg-info/requires.txt +3 -0
  57. benchtruthai-0.1.0/src/benchtruthai.egg-info/top_level.txt +1 -0
  58. benchtruthai-0.1.0/tests/__init__.py +0 -0
  59. benchtruthai-0.1.0/tests/test_benchtruthai.py +123 -0
  60. benchtruthai-0.1.0/tests/test_examples_execute.py +26 -0
  61. benchtruthai-0.1.0/tests/test_inspect_integration.py +175 -0
  62. benchtruthai-0.1.0/tests/test_integration.py +48 -0
  63. benchtruthai-0.1.0/tests/test_release_properties.py +106 -0
@@ -0,0 +1,24 @@
1
+ cff-version: 1.2.0
2
+ title: benchtruthai
3
+ message: "If you use this software or the dataset as corrected by the audit, please cite the audit paper below."
4
+ type: software
5
+ authors:
6
+ - family-names: Rangaraju
7
+ given-names: Prabhu
8
+ orcid: "https://orcid.org/0009-0009-1861-1401"
9
+ version: 0.1.0
10
+ # License: the code is MIT; the dataset is composite (MIT / CC-BY-SA-4.0 / CC-BY-NC-4.0 per source). See NOTICES.md.
11
+ repository-code: "https://github.com/pchi1606/benchmark-ground-truth-audit"
12
+ keywords:
13
+ - benchmark audit
14
+ - ground truth
15
+ - optimization modeling
16
+ - llm evaluation
17
+ references:
18
+ - type: article
19
+ title: "A Third of the Ground Truth Is Wrong: A 127-Instance Audit of Optimization-Modeling Benchmarks"
20
+ authors:
21
+ - family-names: Rangaraju
22
+ given-names: Prabhu
23
+ year: 2026
24
+ notes: "Paper and reproduction package (GitHub). Status: publicly posted as a preprint on GitHub; an earlier Zenodo deposit was removed by the repository in November 2026. Journal manuscript retargeted to JAIR, not yet published in a journal. The 18 ComplexOR extension instances audited in the paper are not part of the released dataset. Dataset records are under mixed upstream terms, see NOTICES.md."
@@ -0,0 +1,23 @@
1
+ Scope note (not part of the license text below): this MIT License covers only the author's own material as mapped in NOTICES.md, section 4 (code, tooling, and audit annotations other than on MAMO records). The MAMO dataset records are under CC-BY-SA-4.0 and the IndustryOR dataset records are under CC-BY-NC-4.0. See NOTICES.md for the mapping by source. The verbatim MIT License text follows.
2
+
3
+ MIT License
4
+
5
+ Copyright (c) 2026 Prabhu Rangaraju
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
@@ -0,0 +1,7 @@
1
+ include LICENSE README.md CITATION.cff NOTICES.md second-pass-manifest.csv
2
+ recursive-include src/benchtruthai/datasets *.jsonl *.json
3
+ recursive-include tests *.py
4
+ recursive-include examples *
5
+ recursive-include hf *
6
+ recursive-include integrations *
7
+ recursive-include licenses *
@@ -0,0 +1,267 @@
1
+ # NOTICES: license and rights mapping per source for the benchtruthai bundle
2
+
3
+ Bundle: `benchtruthai` package 0.1.0 / dataset cleaned release v1.0.1.
4
+ **Dataset errata (v1.0.1):** Dataset v1.0.1 differs from v1.0.0 in five test split records' root cause notes, which in v1.0.0 stated the recomputed value the release withholds; v1.0.1 states the verdict and root cause without the value. The only other difference is the embedded `version` field, which reads 1.0.1 in every v1.0.1 record (1.0.0 in v1.0.0). No verdict, label, optimum field, or commitment changed.
5
+ This file is the bundle's license and rights mapping per source. **Verified
6
+ distribution coverage** (checked against the built artifacts on
7
+ 2026-11-24): this mapping and the license evidence set travel with every
8
+ distribution form, the repository (this file at the root;
9
+ `licenses/evidence/`); the source distribution (this file at the root and
10
+ as `hf/NOTICES.md`; the evidence set at `licenses/evidence/` and at
11
+ `hf/licenses/evidence/`); the wheel (this file and the evidence set in
12
+ the package's `.dist-info/licenses/`); and the Hugging Face mirror
13
+ (`hf/NOTICES.md`; `hf/licenses/evidence/`).
14
+
15
+ ## Scope: what the bundle actually contains
16
+
17
+ The bundled dataset (109 records) derives from exactly three upstream
18
+ source families, enumerated from the data itself (each record's `family`
19
+ and `source` fields), not from the paper's wider scope:
20
+
21
+ | Family | Records | Pinned upstream source (each record's `source` field) |
22
+ |---|---|---|
23
+ | NL4Opt | 40 | github.com/LLM4OR/LLM4OR @ 75962df5ddf531906fda76f8708c658114e63c0e (`static/clean_benchmarks/NL4Opt`), accessed 2026-10-13 (pilot, 20 records) and 2026-10-14 (20 records) |
24
+ | MAMO | 35 | github.com/FreedomIntelligence/Mamo @ 2c91069dee5c1e4db4b899eb176ec987d0251bb3 |
25
+ | IndustryOR | 34 | huggingface.co/datasets/CardinalOperations/IndustryOR @ b00811923f167cdf4ae1677c33cd61d4eea78f48, accessed 2026-10-14 |
26
+
27
+ The audit paper additionally covers 18 ComplexOR instances (extension
28
+ audit). **No ComplexOR records or texts are in this bundle**, so no
29
+ ComplexOR terms arise here.
30
+
31
+ License facts below were verified on 2026-11-11 against the licensors' own
32
+ pages named in each section.
33
+
34
+ **Evidence preserved in the bundle:** the license texts and the metadata
35
+ extract relied on below are preserved verbatim in `licenses/evidence/`
36
+ (repository root and source distribution; the same set is also carried
37
+ in the wheel's `.dist-info/licenses/` and in the Hugging Face mirror at
38
+ `hf/licenses/evidence/`), each with its source URL, pinned revision,
39
+ retrieval date, and SHA-256, indexed in `licenses/evidence/README.md`,
40
+ so the coverage claimed in each section can be checked against the
41
+ preserved evidence without leaving the bundle.
42
+
43
+ ## 1. NL4Opt (40 records): MIT License
44
+
45
+ - **Upstream work:** NL4Opt Competition (NeurIPS 2022 Competitions Track);
46
+ Ramamonjison et al., "NL4Opt Competition: Formulating Optimization
47
+ Problems Based on Their Natural Language Descriptions", PMLR 220:189 to 203.
48
+ - **Upstream license: MIT License.** Evidence, all from the organizers:
49
+ (i) the competition rules, "Use of Data" section, "Individuals must
50
+ understand and abide by the MIT license" (nl4opt.github.io/rules);
51
+ (ii) the organizers' repository (github.com/nl4opt/nl4opt-competition),
52
+ titled "Code and Dataset", carries an MIT LICENSE file;
53
+ (iii) the competition report (arXiv:2303.08233) states the organizers
54
+ created the dataset themselves (no third party datasets) and released it
55
+ under the MIT License.
56
+ - **Pinned upstream revision (the exact source state these records
57
+ derive from):** github.com/LLM4OR/LLM4OR @ commit
58
+ `75962df5ddf531906fda76f8708c658114e63c0e`, path
59
+ `static/clean_benchmarks/NL4Opt`, accessed 2026-10-13 (pilot, 20
60
+ records) and 2026-10-14 (20 records). The competition itself is the
61
+ NL4Opt Competition, NeurIPS 2022 Competitions Track edition
62
+ (Ramamonjison et al., PMLR 220, above). The records were taken from
63
+ the LLM4OR collection at this pinned commit, not downloaded again from
64
+ the organizers' repository. Every NL4Opt record's `source` field
65
+ carries this same pin, so the exact source state is reachable from
66
+ this file alone.
67
+ - **Access path note:** the records were drawn from the LLM4OR survey
68
+ collection (@ 75962df5, above), which states no license of its own. No
69
+ rights are relied on from that collection; the redistribution basis is
70
+ the organizers' MIT release of the NL4Opt data itself, of which the
71
+ redistributed problem texts and shipped optima consist.
72
+ - **The chain, stated explicitly:** the 40 shipped NL4Opt records
73
+ derive from the NL4Opt Competition (NeurIPS 2022 Competitions Track)
74
+ edition of the dataset, taken at the pinned revision above; it is
75
+ that edition, the organizers' competition dataset release, to
76
+ which the organizers' MIT License quoted in this section applies,
77
+ and on which the redistribution basis relied on here rests.
78
+ - **License scope verification (2026-11-11):** the LICENSE
79
+ file in the organizers' repository was read verbatim. It is the
80
+ standard MIT License text, and its operative scope words are these:
81
+ the grant covers "this software and associated documentation files
82
+ (the "Software")" and permits a copy holder "to deal in the Software
83
+ without restriction, including without limitation the rights to use,
84
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
85
+ copies of the Software". The repository whose LICENSE this is
86
+ presents itself as the competition's code and dataset release, its
87
+ README is titled "NL4OPT- Code and Dataset" ("This repo contains
88
+ updates on NL4Opt Competition at Neurips 2022 and Its dataset") and
89
+ the dataset directories (`generation_data/`, `ner_data/`) sit under
90
+ the same root LICENSE, and the competition rules subject use of the
91
+ data to the MIT license (evidence (i) above). The MIT grant relied
92
+ on is therefore the organizers' license for the dataset release,
93
+ not a license covering code only. Also verified at the pinned access path
94
+ commit: the LLM4OR tree @ `75962df5` contains no license file or
95
+ terms addressing the NL4Opt material (the only LICENSE file in that
96
+ tree is `static/datasets/Mamo/LICENSE`, the MAMO CC-BY-SA text of
97
+ §2), consistent with the access path note above; no rights are
98
+ relied on from that collection.
99
+ - **Redistribution basis relied on:** the MIT permission to use, copy,
100
+ modify, merge, publish, and distribute, subject to including the
101
+ copyright and permission notices, done in this section.
102
+ - **Required attribution:** cite Ramamonjison et al. (PMLR 220, above) and
103
+ retain the MIT notice below.
104
+ - **Notice text (MIT License, verbatim from the LICENSE file of
105
+ github.com/nl4opt/nl4opt-competition, read in full 2026-11-11):**
106
+
107
+ > MIT License
108
+ >
109
+ > Copyright (c) 2022 Huawei Technologies
110
+ >
111
+ > Permission is hereby granted, free of charge, to any person obtaining
112
+ > a copy of this software and associated documentation files (the
113
+ > "Software"), to deal in the Software without restriction, including
114
+ > without limitation the rights to use, copy, modify, merge, publish,
115
+ > distribute, sublicense, and/or sell copies of the Software, and to
116
+ > permit persons to whom the Software is furnished to do so, subject to
117
+ > the following conditions:
118
+ >
119
+ > The above copyright notice and this permission notice shall be
120
+ > included in all copies or substantial portions of the Software.
121
+ >
122
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
123
+ > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
124
+ > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
125
+ > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
126
+ > BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
127
+ > ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
128
+ > CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129
+ > SOFTWARE.
130
+
131
+ - **Evidence preserved:** this LICENSE text is preserved verbatim in the
132
+ bundle at `licenses/evidence/nl4opt-mit-license.txt` (source URL,
133
+ pinned revision, retrieval date, and SHA-256 in
134
+ `licenses/evidence/README.md`).
135
+
136
+ ## 2. MAMO (35 records): CC-BY-SA-4.0, with ShareAlike compliance statement
137
+
138
+ - **Upstream work:** "Mamo: a Mathematical Modeling Benchmark with
139
+ Solvers", Huang, Shen, Hu, Gao & Wang, arXiv:2405.13144 (2024);
140
+ github.com/FreedomIntelligence/Mamo.
141
+ - **Pinned upstream revision (the exact source state these records
142
+ derive from):** github.com/FreedomIntelligence/Mamo @ commit
143
+ `2c91069dee5c1e4db4b899eb176ec987d0251bb3`, the data and LICENSE
144
+ were read at this commit, and every MAMO record's `source` field
145
+ carries this same pin, so the exact source state is reachable from
146
+ this file alone.
147
+ - **Upstream license: Creative Commons Attribution-ShareAlike 4.0
148
+ International (CC-BY-SA-4.0).** Verified at the pinned commit itself:
149
+ the repository @ 2c91069d carries a LICENSE file identified as
150
+ CC-BY-SA-4.0 (checked 2026-11-11).
151
+ - **Redistribution basis relied on:** CC-BY-SA-4.0 §2 (right to reproduce
152
+ and Share the Licensed Material, and to produce, reproduce, and Share
153
+ Adapted Material), subject to the §3 conditions, complied with as
154
+ follows.
155
+
156
+ ### ShareAlike compliance statement (CC-BY-SA-4.0 §3)
157
+
158
+ - **What the adapted material is:** the 35 MAMO slice records in this
159
+ release (`mamo-easy` 20, `mamo-complex` 15).
160
+ - **Changes made (indication of changes, §3(a)):** the upstream records
161
+ were reformatted into this release's record schema, assigned stable
162
+ IDs and dev/test splits, and extended with audit fields, audited
163
+ optimum, verdict, error class, root cause category and per instance
164
+ root cause note, and a text hash. Problem texts and shipped optima are
165
+ carried from the upstream data.
166
+ - **How the adapted records are licensed:** the adapted MAMO records,
167
+ audit annotations on them included, are shared under **CC-BY-SA-4.0**,
168
+ the same license as the original (Adapter's License, §3(b)). No
169
+ additional or different conditions are applied to them, and no
170
+ effective technological measures restrict exercise of the licensed
171
+ rights in them. CC-BY-SA-4.0 is **not** applied to any other material
172
+ in this bundle: the code, tooling, and annotations other than on MAMO records are MIT
173
+ (see §4), and the NL4Opt and IndustryOR records remain under their own
174
+ terms (see §1, §3).
175
+ - **Attribution given (§3(a))**, creator identification, title, source,
176
+ license link, and the changes note above; the attribution notice to
177
+ retain with the MAMO records is:
178
+
179
+ > MAMO records © the MAMO authors (Xuhan Huang, Qingning Shen, Yan Hu,
180
+ > Anningzhe Gao, Benyou Wang), from "Mamo: a Mathematical Modeling
181
+ > Benchmark with Solvers" (arXiv:2405.13144),
182
+ > https://github.com/FreedomIntelligence/Mamo, licensed under the
183
+ > Creative Commons Attribution-ShareAlike 4.0 International License,
184
+ > https://creativecommons.org/licenses/by-sa/4.0/. Changes were made:
185
+ > records were reformatted into the benchtruthai release schema and
186
+ > audit fields (audited optimum, verdict, error class, root cause
187
+ > note, split, stable ID, text hash) were added. The adapted MAMO
188
+ > records in this release are shared under CC-BY-SA-4.0.
189
+
190
+ - **Evidence preserved:** the full CC-BY-SA-4.0 license text from the
191
+ LICENSE file at the pinned commit is preserved verbatim in the bundle
192
+ at `licenses/evidence/mamo-cc-by-sa-4.0-license.txt` (source URL,
193
+ pinned revision, retrieval date, and SHA-256 in
194
+ `licenses/evidence/README.md`).
195
+
196
+ ## 3. IndustryOR (34 records): CC-BY-NC-4.0, as declared by the licensor
197
+
198
+ - **Upstream work:** IndustryOR, introduced in "ORLM: A Customizable
199
+ Framework in Training Large Models for Automated Optimization
200
+ Modeling", Huang et al., Operations Research 73(6), 2025 (arXiv:
201
+ 2405.17743); distributed by Cardinal Operations at
202
+ huggingface.co/datasets/CardinalOperations/IndustryOR.
203
+ - **Pinned upstream revision (the exact source state these records
204
+ derive from):** huggingface.co/datasets/CardinalOperations/IndustryOR
205
+ @ revision `b00811923f167cdf4ae1677c33cd61d4eea78f48`, accessed
206
+ 2026-10-14. Every IndustryOR record's `source` field carries this
207
+ same pin, so the exact source state is reachable from this file
208
+ alone.
209
+ - **Upstream license: Creative Commons Attribution-NonCommercial 4.0
210
+ International (CC-BY-NC-4.0).** The license is declared in the
211
+ dataset's own metadata at its distribution point: the Hugging Face
212
+ dataset page for CardinalOperations/IndustryOR carries the license
213
+ tag **`cc-by-nc-4.0`** (verified 2026-11-11 via the Hugging Face
214
+ API). The dataset card's body text consists of an overview and a
215
+ citation request; the declared license lives in the metadata, and it
216
+ is the metadata declaration that this mapping relies on. (The ORLM
217
+ project repository, github.com/Cardinal-Operations/ORLM, separately
218
+ carries an Apache License 2.0 LICENSE for the project; the dataset's
219
+ own declared license governs the dataset records and is the basis
220
+ relied on here.)
221
+ - **Redistribution basis relied on:** CC-BY-NC-4.0 §2, the licensor
222
+ grants the right to reproduce and Share the Licensed Material, and to
223
+ produce, reproduce, and Share Adapted Material, **for NonCommercial
224
+ purposes only**, subject to the §3(a) attribution conditions,
225
+ complied with below. This bundle is a noncommercial research release.
226
+ - **Changes made (indication of changes, §3(a)):** the upstream records
227
+ were reformatted into this release's record schema, assigned stable
228
+ IDs and dev/test splits, and extended with audit fields, audited
229
+ optimum, verdict, error class, root cause category and per instance
230
+ root cause note, and a text hash. Problem texts and shipped optima
231
+ are carried from the upstream data.
232
+ - **Attribution and NonCommercial notice (the text the license
233
+ requires to be retained with the IndustryOR records):**
234
+
235
+ > IndustryOR records © Cardinal Operations (Huang et al., "ORLM: A
236
+ > Customizable Framework in Training Large Models for Automated
237
+ > Optimization Modeling", Operations Research 73(6), 2025), from the
238
+ > IndustryOR benchmark dataset,
239
+ > https://huggingface.co/datasets/CardinalOperations/IndustryOR,
240
+ > licensed under the Creative Commons Attribution-NonCommercial 4.0
241
+ > International License,
242
+ > https://creativecommons.org/licenses/by-nc/4.0/. Changes were
243
+ > made: records were reformatted into the benchtruthai release schema
244
+ > and audit fields (audited optimum, verdict, error class,
245
+ > root cause note, split, stable ID, text hash) were added. **These
246
+ > records may be used for NonCommercial purposes only**, as that term
247
+ > is defined in CC-BY-NC-4.0; commercial use is not permitted under
248
+ > that license.
249
+
250
+ - **Evidence preserved:** the license for this source is declared in the
251
+ dataset's Hugging Face metadata rather than a license file; the
252
+ metadata extract at the pinned revision, `cardData.license` reading
253
+ `cc-by-nc-4.0`, with the revision SHA matching the pin, is preserved
254
+ in the bundle at `licenses/evidence/industryor-hf-metadata.json`
255
+ (source URL, pinned revision, retrieval date, and SHA-256 in
256
+ `licenses/evidence/README.md`).
257
+ - **Release composition:** This release includes 34 IndustryOR
258
+ records under CC-BY-NC-4.0, with attribution and the NonCommercial
259
+ notice above.
260
+
261
+ ## 4. This bundle's own material
262
+
263
+ - Code, release tooling, and audit annotations (other than the MAMO
264
+ slice, §2): **MIT License**, © 2026 Prabhu Rangaraju, see `LICENSE`.
265
+ - The audit's verdicts are one auditor's solver verified readings. No
266
+ upstream licensor or benchmark owner endorses the corrections;
267
+ attribution above is a license/citation matter, not an endorsement.
@@ -0,0 +1,230 @@
1
+ Metadata-Version: 2.4
2
+ Name: benchtruthai
3
+ Version: 0.1.0
4
+ Summary: Score optimization modeling predictions against solver audited ground truth (NL4Opt, MAMO, IndustryOR audit corrected release)
5
+ Author: Prabhu Rangaraju
6
+ License: Composite distribution license: MIT (code and tooling; NL4Opt dataset records; audit annotations except on MAMO records) AND CC-BY-SA-4.0 (MAMO dataset records, incl. their audit annotations) AND CC-BY-NC-4.0 (IndustryOR dataset records, NonCommercial); the distribution as a whole is under this composite, not a single license; mapping per source in NOTICES.md
7
+ Project-URL: Homepage, https://github.com/pchi1606/benchmark-ground-truth-audit
8
+ Project-URL: Documentation, https://github.com/pchi1606/benchmark-ground-truth-audit#readme
9
+ Project-URL: Repository, https://github.com/pchi1606/benchmark-ground-truth-audit
10
+ Project-URL: Bug Tracker, https://github.com/pchi1606/benchmark-ground-truth-audit/issues
11
+ Keywords: benchmark,ground truth,evaluation,optimization,llm,nl4opt,audit
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
22
+ Requires-Python: >=3.9
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ License-File: NOTICES.md
26
+ License-File: licenses/evidence/README.md
27
+ License-File: licenses/evidence/industryor-hf-metadata.json
28
+ License-File: licenses/evidence/mamo-cc-by-sa-4.0-license.txt
29
+ License-File: licenses/evidence/nl4opt-mit-license.txt
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest>=7; extra == "dev"
32
+ Dynamic: license-file
33
+
34
+ # benchtruthai
35
+
36
+ **Author:** Prabhu Rangaraju · **License (composite, distribution level):** MIT (code, tooling, the NL4Opt records, and audit annotations except on MAMO records) · CC-BY-SA-4.0 (the MAMO records, annotations included) · CC-BY-NC-4.0 (the IndustryOR records, NonCommercial), the distribution as a whole is under this composite, not a single license; see "Data provenance and licensing" below and `NOTICES.md`
37
+
38
+ **Bundle form:** open source scoring software (the author's code and tooling, under MIT) plus a mixed license dataset (per source terms in `NOTICES.md`; the IndustryOR slice is CC-BY-NC-4.0, noncommercial). The bundle as a whole is not under a single license; do not describe it as simply "open source."
39
+
40
+ Score optimization modeling predictions against **solver audited ground truth**, and measure how much the answer changes when the ground truth is corrected.
41
+
42
+ `benchtruthai` packages the cleaned release of the benchmark ground truth audit in Rangaraju (2026), *"A Third of the Ground Truth Is Wrong: A 127-Instance Audit of Optimization-Modeling Benchmarks"* ([paper + reproduction package](https://github.com/pchi1606/benchmark-ground-truth-audit)). Manuscript status: the audit is publicly posted as a preprint on GitHub (preprint and reproduction package, 2026); an earlier Zenodo deposit was removed by the repository in November 2026. A journal manuscript has been retargeted to JAIR; it has not been published in a journal. Release status of this bundle's own artifacts: `benchtruthai` v0.1.0 is a prepared release candidate, the package has not been published to PyPI, and the Hugging Face mirror in `hf/` has not been uploaded to Hugging Face. (The audit's own preprint and reproduction package, at the link above, are separate artifacts and are already public.)
43
+
44
+ ## What the audit found
45
+
46
+ The audit evaluated the benchmark answers against formulations derived from the text and solver results, recording proven optima where available and separately documenting infeasibility and cases with no encoding that a solver can run, under a fixed point semantics (the text as written is the fixed point) and a frozen verdict taxonomy.
47
+
48
+ - **127 instances audited** across NL4Opt, MAMO, IndustryOR, and ComplexOR: **44 of 127 shipped answers materially wrong (34.6%)** on the paper's v1.0.0 basis (43 of 127, 33.9%, on the corrected v1.0.1 basis; the next bullet states both bases). The most common root cause is undocumented integrality: the text describes a continuous problem and the shipped answer is the integer optimum.
49
+ - **This package ships the main audit release of 109 instances** (NL4Opt 40, MAMO 35, IndustryOR 34): 35 of the 109 shipped answers are materially wrong (32.1%, Wilson 95% CI 24.1 to 41.4%). The 18 ComplexOR instances are extension audit only and are not redistributed here. The exclusion reconciles exactly on the paper's v1.0.0 basis: the 18 excluded instances include 9 the extension audit found materially wrong, so the paper's headline is this release's 35 plus 9, that is, 44 of 127. The extension audit's own result is stated in the paper record, **9 of the 18 ComplexOR instances materially wrong** (the audit track's `EXTENSION.md` record; the paper's ComplexOR counts). This bundle's figures are the main audit's. The extension set's figures live in the paper record, cited here rather than silently absorbed into or subtracted from this release's counts. One version note on the 9 of 18 figure: it is the cited paper version's result, on the v1.0.0 basis. The audit track's later v1.0.1 ComplexOR file, corrected by errata, counts 8 of the 18. On that corrected basis the paper scope figure is 43 of 127 (33.9%). No bundled figure rests on the extension set, and the erratum does not change this release's 35 of 109 count.
50
+ - The release of 109 instances is split 77 dev / 32 test. Audited optima are public for the dev split; test split optima are withheld under published sha256 commitments.
51
+
52
+ These are one auditor's solver verified readings of the problem texts; interannotator reliability was not measured. For the records in this release, the per instance audit trail (the verdict, the error class, the root cause category, and the per instance root cause note) is published with each record, so any verdict can be challenged and rechecked; the audited optima for the test split are withheld (see "Dataset" below). The author is independent of the benchmark owners; these corrections are his audit's findings, and nothing here implies that the benchmark owners endorse them.
53
+
54
+ ## What this package is (and is not)
55
+
56
+ `benchtruthai` is an implementation and access contribution: it puts the audit's corrected labels, its scorer, and its analysis of score sensitivity into the two forms other researchers consume, an installable package with a CLI, and a dataset with a stable ID for every item. The scorer packaged here applies the audit's match rule (stated at the end of this section) to predicted optima; it is a packaging of that rule, not the frozen verdict comparator script in the paper track's interrater protocol package (item A3 below). The supporting evidence is stated in two explicitly separated groups, because the two groups support different claims, and because a freeze or a hash proves a file's identity, not its validity.
57
+
58
+ **(A) Evidence behind the audit's verdicts**, all recorded in the paper track (the paper's §4.3 and the track's frozen reliability record, `second-audit/NUMBERS-2026-11-04.md`):
59
+
60
+ 1. A **blind second pass**, tested *the audit verdicts' test retest reliability* (design in the paper's §3 and §4.3 and in the track's frozen reliability record). How the 91 of the 127 were selected: the second pass reencoded 90 instances, 34 of the 35 error verdicts of the main audit, 38 matched clean verdicts (numerically first, matched by family: NL4Opt 11, MAMO-Easy 19, IndustryOR 8), and all 18 hosted ComplexOR instances (a census of that set), and the 91st instance, `industryor-5` (the one error verdict of the main audit that was not reencoded), was flagged again from its text alone and has no second pass encoding, so its pair is a text level agreement. The sample is therefore deliberately enriched with error cases by design (44 of the 91 carried a first pass error verdict), and the 36 verdicts it does not cover, all clean, rest on the first pass alone. What "blind" meant operationally: each of the 90 reencoded instances was reencoded from its problem text alone, with solver access, without access to the first pass's models or optima, under the frozen taxonomy and tolerance, each model instantiated from the second pass's own reading of the text, and the second pass verdicts were computed mechanically from its optima; every disagreement was then adjudicated by the author himself. The blindness covered the models and optima, not the selection. The strata were fixed by the first audit's verdicts and were also the reencoding's batches. For the 72 reencoded main audit instances, an instance's first audit verdict class was therefore knowable at reencoding. (The 73rd main audit pair, `industryor-5`, is the text level agreement above and involved no reencoding.) The blindness is procedural rather than personal: the second pass was the author's own, so memory of the first pass cannot be excluded. Agreement over the 91 second pass verdicts is **92.3% (Cohen's κ = 0.845)**, computed on the raw paired verdicts **before adjudication** (the adjudication that followed is the paper's §4.3). The compared categories are the frozen binary verdicts, `material_error` vs `clean`, and the contingency counts are: both passes `material_error` 38; first pass `material_error`, second pass `clean` 6; first pass `clean`, second pass `material_error` 1; both `clean` 46, so κ is recomputable from this statement alone. The 91 pairs include the one text level agreement (`industryor-5`, which has no second pass encoding); the full per instance selection and results manifest is [`second-pass-manifest.csv`](second-pass-manifest.csv). That is an **intrarater (test retest)** figure, expressly **not** independent rater validation: the second pass was the author's own, not an independent rater's.
61
+
62
+ 2. A **second solver cross check**, tested *the audit's error encodings against an independent solver* (the encodings solved with HiGHS against the SCIP originals): The cross check covered the 44 original error cases. 43 had checkable encodings: 42 agreed on optimal objective value and one on infeasibility. car_selection had no model to solve and was recorded as not applicable. "Agreed" in the track record's own terms: the 42 value agreements returned the same optimal objective value under both solvers (maximum difference 2.9e-11), and the one status agreement was infeasible under both solvers. Scope of this check, stated plainly: agreement shows the *encodings* are solver consistent, two independent solvers extract the same result from the same encoding; it does not by itself validate that an encoding faithfully interprets the original problem statement. That reading is the audit's own (item 1 above and the paper's method).
63
+
64
+ 3. **Synthetic checks of the frozen verdict comparator**, tested *the paper track's comparator script, not this package*: the frozen verdict scoring script deposited with the paper track's interrater package (`separate-work-2026-11-08/inter-rater/score.py`, sha256 `c9a522f373fde3673e7a7541630b2b5ea8828fca8c5bc15ded287515d0a74c78`, as recorded in that package's `PREREGISTRATION.sha256`; hash verified again against the file 2026-11-11) was validated on synthetic inputs before use, an identity input reproduces κ = 1 with an empty disagreement list, and a seeded perturbation with 6 flips reproduces exactly the expected disagreement set (self test outputs deposited alongside it). These checks exercised the comparator the paper track used to score raters' verdicts; `score.py` is a different program from this package's scorer, and the checks say nothing about this package, the package's own evidence is group (B).
65
+
66
+ None of the checks in group (A) is an independent rater validation, and no independent rater figure exists or is claimed: a protocol for one (v1.0, frozen 2026-11-08, in the same interrater package, blind packet P001 to P127, an independent rater and adjudicator) is preregistered but **has not been run**.
67
+
68
+ **(B) Evidence that this package implements the audit's scoring**, this bundle's own test suite, run against the *installed* package; each test exercises the shipped scorer/CLI against known inputs with expected outputs:
69
+
70
+ - `test_match_rule_is_the_papers`, the packaged `matches()` implements the paper's match rule on known value pairs, including the absolute floor for small optima, and `None` / nonfinite predictions never match and never raise.
71
+ - `test_personas_on_public_dev_split`, `score_predictions` on the 28 NL4Opt dev records reproduces the paper's Table 2 restriction exactly: the audited optimum persona scores (20 shipped, 28 audited), the shipped optimum persona (28, 20), with exactly 8 verdict flips.
72
+ - `test_cli_score_roundtrip`, the CLI `score` command on the same fixture prints the 20/28 vs 28/28 split.
73
+ - `test_verify_headline_numbers`, `benchtruthai verify` (the packaged `run_checks`) recomputes the release's headline numbers from the shipped data, 109 records, 35 material errors, the per family error rates and Wilson intervals, error class and root cause counts, and the 77/32 dev/test split, with zero failures.
74
+ - `test_error_rates_match_the_paper` and `test_bands_reproduce_paper_table3`, the per family error rates and the sensitivity bands reproduce the paper's published figures (Table 3 values to within 0.05 points).
75
+ - `test_cli_info_reports_release_counts` and `test_cli_smoke`, the CLI `info` command prints the release's per family counts (11/40, 16/35, 8/34, 35/109), and `info` / `verify` / `personas` all run clean from the installed artifact.
76
+ - `test_inspect_integration.py`, the prepared Inspect integration (in `integrations/inspect/`) scores with this package's own code: its tests that need no framework check answer extraction, the sample specs, and the per sample scoring core against `score_predictions` on the same persona fixture (20/28 vs 28/28, 8 flips), and the three tests that build the Inspect tasks and drive its scorer run when `inspect_ai` is installed and skip cleanly when it is not.
77
+
78
+ Group (B) is a reproduction check. It shows the packaging implements the audit's scoring and numbers faithfully; it is not itself the validation of the audit, which is group (A)'s subject. Its scope, stated plainly: behavioral reproduction of the audit's scoring is claimed on the named fixtures only, the match rule on known value pairs; the persona fixture (20/28 shipped labels vs 28/28 corrected labels); the CLI score roundtrip on that fixture; the verify fixture headline recomputation; the per family error rate and Table 3 band recomputation; the CLI info counts (11/40, 16/35, 8/34, 35/109); and the CLI smoke runs. That claim is not a comprehensive equivalence proof over all possible inputs, and recomputation does not itself prove the corrected labels right; the labels' correctness rests on group (A) and the paper's audit. It is not a new benchmark, not a new audit, and not a solver: it does not rerun the SCIP audit (that required encoding each instance by hand; see the paper's method section). The match rule is the paper's: a predicted value matches an optimum when `|predicted − optimum| ≤ max(1e-3, 1e-4 · |optimum|)`.
79
+
80
+ ## Install
81
+
82
+ At release (the package is not on PyPI yet, see the release status above):
83
+
84
+ ```bash
85
+ pip install benchtruthai # zero dependencies; bundles the dataset as corrected by the audit (dataset release v1.0.1; this package is v0.1.0)
86
+ ```
87
+
88
+ ## Quickstart
89
+
90
+ Score a model's predictions (JSONL, one `{"uid": ..., "predicted_optimum": ...}` per line) against both ground truths. A file with one record:
91
+
92
+ ```bash
93
+ echo '{"uid": "nl4opt-prob_26", "predicted_optimum": 6.276596}' > predictions.jsonl
94
+ benchtruthai score predictions.jsonl
95
+ ```
96
+
97
+ ```
98
+ predictions scored: 1
99
+ against shipped ground truth: 0/1 = 0.0%
100
+ against audited ground truth (dev split, optima public): 1/1 = 100.0%
101
+ verdict flips between the two ground truths: 1 (nl4opt-prob_26)
102
+ ```
103
+
104
+ (`nl4opt-prob_26` is one of the corrected records: its audited optimum scores as wrong against the shipped ground truth and right against the audited one.) A fuller run, a predictor that returns the audited optima on all 28 NL4Opt dev instances:
105
+
106
+ ```bash
107
+ python3 - <<'EOF'
108
+ import json
109
+ from benchtruthai import load_records
110
+
111
+ with open("predictions.jsonl", "w") as f:
112
+ for r in load_records(family="nl4opt", split="dev"):
113
+ f.write(json.dumps({"uid": r.uid, "predicted_optimum": r.audited_optimum}) + "\n")
114
+ EOF
115
+ benchtruthai score predictions.jsonl
116
+ ```
117
+
118
+ ```
119
+ predictions scored: 28
120
+ against shipped ground truth: 20/28 = 71.4%
121
+ against audited ground truth (dev split, optima public): 28/28 = 100.0%
122
+ verdict flips between the two ground truths: 8 (nl4opt-prob_19, nl4opt-prob_24, …)
123
+ ```
124
+
125
+ (Measured output for the example above using the bundled dataset v1.0.1; only the displayed flip list is abbreviated. The counts shown are expected for this exact example. Scores for your own prediction file may differ.)
126
+
127
+ Predictions for test split instances are scored against the shipped ground truth only. The audited test optima are withheld, so the audited truth line covers exactly the records whose audited optima are public (the dev split, or the dev records in your file).
128
+
129
+ Other commands:
130
+
131
+ ```bash
132
+ benchtruthai info # dataset summary and error rates per family
133
+ benchtruthai verify # recheck the release's headline numbers from the shipped data
134
+ benchtruthai personas # the paper's solver persona demonstration, on the public dev split
135
+ benchtruthai bands published_results.csv # sensitivity bands for published accuracies
136
+ ```
137
+
138
+ Python API:
139
+
140
+ ```python
141
+ from benchtruthai import load_records, score_predictions
142
+
143
+ records = load_records(family="nl4opt", split="dev")
144
+ print(len(records)) # 28, the NL4Opt dev records, whose audited optima are public
145
+
146
+ # score_predictions takes a plain dict mapping uid -> predicted_optimum
147
+ # (a number; a None prediction counts as incorrect). One complete record:
148
+ report = score_predictions({"nl4opt-prob_26": 6.276596})
149
+ print(report.summary())
150
+ ```
151
+
152
+ `score_predictions` returns a `ScoreReport` (exported from the package) with counts for both ground truths (`shipped_correct/shipped_scored`, `cleaned_correct/cleaned_scored`), `shipped_accuracy` / `cleaned_accuracy` properties, the list of `flips` (uids whose verdict changes between the two ground truths), and `summary()`.
153
+
154
+ ## Input contracts
155
+
156
+ The commands take exactly these inputs, nothing looser:
157
+
158
+ - **`benchtruthai score FILE`**, FILE is JSONL: one JSON object per line with keys `uid` (string; must be a uid in the release, an unknown uid aborts with an error, never a silent skip) and `predicted_optimum` (a number, or `null`; a missing or `null` prediction counts as incorrect). Blank lines are ignored.
159
+ - **`benchtruthai bands FILE.csv`**, a CSV with header row `method,benchmark,published_accuracy` (the bundled example carries an optional fourth column, `source`, which the computation ignores). `benchmark` must be one of `NL4Opt`, `MAMO`, `MAMO-Easy`, `MAMO-Complex`, `IndustryOR`; `published_accuracy` is a plain number in percent, e.g. `92.6`.
160
+ - **Python API**, `score_predictions` takes a plain `dict` mapping uid → predicted optimum (number or `None`); unknown uids raise `KeyError`.
161
+
162
+ ## How much do the corrections move published scores?
163
+
164
+ For the published results analyzed here, we did not locate public per instance predictions in the reviewed artifacts, so an exact rescore of a published method is not possible from those artifacts. On a fixed evaluation set, if the shipped and corrected reference answers differ on a fraction e of instances, each such instance can change at most one correctness verdict, giving |corrected accuracy − shipped label accuracy| ≤ 100e percentage points. benchtruthai bands applies the audited slice's error rate to a supplied published accuracy: the central band uses the point estimate, and the conservative band uses the Wilson 95% upper bound, with endpoints clipped to [0, 100]. These are sensitivity scenarios, not corrected scores. For published accuracies measured on evaluation sets other than the audited slice, interpreting these bands as bounds requires assuming that the audited error rate applies to that evaluation set; this audit does not establish that assumption. No published method is rescored, no endpoint is a corrected accuracy, and the bands establish neither per instance behavior nor changes in method rankings.
165
+
166
+ **Band inputs, disclosed exactly:** each row contributes one published accuracy `A` (percent, from the CSV) and names a benchmark slice. That row's `e` is the audited material error rate of the named slice computed from this release's 109 records, NL4Opt `e` = 11/40; MAMO-Easy `e` = 1/20; pooled MAMO `e` = 16/35; MAMO-Complex `e` = 15/15; IndustryOR `e` = 8/34. The central band is `A ± 100e` (with `A` in percent and `e` a fraction); the conservative band is `A ± 100e_hi`, where `e_hi` is the Wilson 95% upper bound on `e`. The bands take no other inputs, in particular not any method's per instance predictions, none of which were located in the reviewed artifacts for the published results analyzed here.
167
+
168
+ | Method | Benchmark | Published | Sensitivity band (bounds) | Conservative band (bounds) |
169
+ |---|---|---|---|---|
170
+ | Autoformulator | NL4Opt | 92.6% | [65.1, 100] | [49.8, 100] |
171
+ | ORLM-Llama3-8B | NL4Opt | 85.7% | [58.2, 100] | [42.9, 100] |
172
+ | Chain-of-Experts | NL4Opt | 64.2% | [36.7, 91.7] | [21.4, 100] |
173
+ | GPT-4-turbo | MAMO-Easy | 88.19% | [83.2, 93.2] | [64.6, 100] |
174
+
175
+ (Paper Table 3, reproduced by the `bands` command on the repository's `examples/published_results.csv`, clone the repo for that file, or run `benchtruthai bands path/to/your.csv` on a CSV in the input contract format above. Band figures are percentage points, `A ± 100e` with `A` in percent and `e` a fraction. The bands are nominal/illustrative, not inferential: they assume the audited error rate generalizes to the published evaluation splits, which the audit sample does not establish.)
176
+
177
+ One rate deserves an explicit note: the GPT-4-turbo row uses the **MAMO-Easy slice** rate, e = 1/20 = 5.0%, because the published number is an EasyLP number. The pooled MAMO rate (16/35 = 45.7%) would be misleading here, the ComplexLP slice's audited optima are uniformly undocumented integer optima under the audit's fixed point reading, a different failure mode from the EasyLP slice the published score measures.
178
+
179
+ The `personas` command demonstrates the flip mechanics concretely on the checkable dev split: two constructed solver personas whose answers score 71.4% or 100% on the 28 public NL4Opt dev instances depending only on which ground truth scores them. The two personas are the paper's (Table 2): Persona A answers the audited optimum, faithful to the text, on every instance; Persona B answers the shipped optimum on every instance. **Which 28:** the paper scores the personas on all 40 audited NL4Opt instances; the 28 scored here are exactly the NL4Opt dev split, the 28 of those 40 whose audited optima are public. The other 12 are the NL4Opt test split, whose audited optima are withheld under sha256 commitments, so the package's run is precisely the publicly checkable restriction of the paper's demonstration on 40 instances, no other selection is applied. On all 40 NL4Opt instances (including withheld optima) the paper's Table 2 swing is ±27.5 points. The personas are illustrations of the bound, not measurements of any published method. Read the demonstration for exactly what it is: it shows **the effect of the label corrections on scores**, the same answers, two ground truths. It is not independent validation of this scorer. What backs the audit's verdicts is group (A) in "What this package is (and is not)" above, the author's blind second pass over 91 instances (92.3% agreement, κ = 0.845, an intrarater test retest figure), the cross check of the audit's 44 original error cases with HiGHS against SCIP (43 had checkable encodings and all 43 agreed, 42 on the same optimal objective value, maximum difference 2.9e-11, and 1 infeasible under both solvers; `car_selection` had no model to solve again and is recorded as not applicable), and the synthetic self tests of the frozen verdict comparator (identity and seeded perturbation inputs, in `separate-work-2026-11-08/inter-rater/`), the last of which tested the paper track's comparator script, not this package. What shows this package implements the audit's scoring is group (B) there, behavioral reproduction claimed on the named fixtures only (the match rule; this persona fixture; the CLI score roundtrip; the verify fixture headline recomputation; the error rate and Table 3 band recomputation; the CLI info counts; the CLI smoke runs), a reproduction check, not the validation itself and not a comprehensive equivalence proof. An independent interrater study is preregistered in the same package but has not been run, and no independent rater figure is claimed.
180
+
181
+ ## Dataset
182
+
183
+ Also prepared in this repository (`hf/`) for the bundle's Hugging Face Datasets mirror. The mirror is uploaded as part of the bundle release, not before it: one record per instance with a stable ID, the shipped and audited optima, the verdict, error class, root cause category and note (the adjudication evidence), the pinned upstream source, and the split. Field definitions and licensing are in the dataset card (`hf/README.md`).
184
+
185
+ **Dataset version:** cleaned release v1.0.1. Dataset v1.0.1 differs from v1.0.0 in five test split records' root cause notes, which in v1.0.0 stated the recomputed value the release withholds; v1.0.1 states the verdict and root cause without the value. The only other difference is the embedded `version` field, which reads 1.0.1 in every v1.0.1 record (1.0.0 in v1.0.0). No verdict, label, optimum field, or commitment changed.
186
+
187
+ **Withheld NL4Opt optima, stated at the entry point:** of the 40 audited NL4Opt instances in this dataset, 12 belong to the withheld test split, their audited optima are not redistributed; each such record carries only its sha256 commitment (`optimum_commitment_sha256`, also bundled in `test_commitments_public.json`). The publicly checkable NL4Opt portion is therefore the 28 instance dev split, the same 28 the persona demonstration above runs on.
188
+
189
+ **Correction ledger traceability:** every shipped instance's correction is traceable per instance. Each record's stable ID (`uid`, e.g. `nl4opt-prob_26`) is the same ID used in the paper's audit record, and the record itself carries the verdict, the error class, the root cause category, the per instance root cause note (the adjudication rationale; for the five test split records described in the v1.0.1 erratum, recomputed numerical values have been removed from the notes), the pinned upstream `source` the instance derives from, and the `text_sha256` of the exact problem text audited. Every verdict is traceable to a stable record ID, the audited text, source revision, and per instance adjudication note. Dev records also expose audited optima. Test optima remain withheld under commitments; full numerical verification of those values is not available from this dataset alone.
190
+
191
+ ## Data provenance and licensing
192
+
193
+ The MIT license covers the new material in this package (code, audit annotations, release tooling), with one exception: the MAMO slice records are derivatives of CC-BY-SA-4.0 material and are shared under CC-BY-SA-4.0, annotations included. So while the code is MIT, the package distribution as a whole contains CC-BY-SA-4.0 material, and downstream redistribution of the MAMO records must honor ShareAlike. Problem texts and shipped optima are derived from the upstream benchmarks and remain under their original terms; cite the original works when using the records.
194
+
195
+ **The full per source license/rights mapping is in [`NOTICES.md`](NOTICES.md)**, upstream terms, the redistribution basis relied on for each source, required attribution, and the actual notice texts, including the MAMO ShareAlike compliance statement. `NOTICES.md` ships with the bundle (repository root, the source distribution, and the Hugging Face mirror). Summary:
196
+
197
+ | Suite | Source (pinned) | Terms basis |
198
+ |---|---|---|
199
+ | NL4Opt (40) | github.com/LLM4OR/LLM4OR @ 75962df5, accessed 2026-10-13/14 | **MIT License.** The NL4Opt organizers released the competition data under MIT (competition rules, "Use of Data"; the organizers' repository LICENSE covers "Code and Dataset"). The shipped records derive from that competition edition, taken at the pinned revision, the edition the organizers' MIT License applies to. The records were drawn via the LLM4OR collection, which states no license of its own, the basis relied on is the organizers' MIT release of the data itself. See `NOTICES.md` §1. |
200
+ | MAMO (35) | github.com/FreedomIntelligence/Mamo @ 2c91069d | **CC-BY-SA-4.0** (upstream LICENSE at the pinned commit). The derivative records are shared under the same ShareAlike terms; attribution and the ShareAlike compliance statement are in `NOTICES.md` §2. |
201
+ | IndustryOR (34) | huggingface.co/datasets/CardinalOperations/IndustryOR @ b0081192, accessed 2026-10-14 | **CC-BY-NC-4.0**, as declared in the dataset's own Hugging Face metadata (license tag `cc-by-nc-4.0`, verified 2026-11-11). Redistribution with attribution for **NonCommercial purposes only**; attribution and the NonCommercial notice are in `NOTICES.md` §3. (These terms govern the IndustryOR records wherever they appear.) |
202
+
203
+ Each record's `source` field carries the same pin.
204
+
205
+ ## Contamination note
206
+
207
+ Every record carries a canary string: a contamination detection marker, so crawls after release can be grepped for leakage of this data into training corpora. The canary's accompanying request, that the data never appear in training corpora, is a request about research use, not an added license condition. The release practice follows the contamination resistant release checklist described in the paper. Test split audited optima are withheld (committed under sha256 in the bundled `test_commitments_public.json`). The commitments were created in the v1.0.0 release build (2026-10-14, the build recorded in the audit track's run log), when the deterministic seeded split (seed 42, stratified by family) was drawn: that is, before the held out test phase for which the commitment preimage file (`test_commitments.json`) is reserved; the record documents no separate commitment event beyond the release build. The canonical serialization hashed is `sha256("<uid>:<optimum:.6f>")`, the record's uid, a colon, and the audited optimum rendered with exactly six decimal places. Audited test optima are omitted from the public optimum field and represented by SHA-256 commitments. This limits direct label exposure; it does not establish immunity to contamination or reconstruction from other public information.
208
+
209
+ ## About the author
210
+
211
+ Prabhu Rangaraju is a data scientist (since 2014) and an independent researcher in AI evaluation. This package is the installable form of his ground truth audit of optimization modeling benchmarks, publicly posted as a preprint on GitHub (journal manuscript retargeted to JAIR; it has not been published in a journal).
212
+
213
+ ## Citation
214
+
215
+ If you use this package or the dataset as corrected by the audit, please cite the audit paper (also in `CITATION.cff`):
216
+
217
+ ```bibtex
218
+ @misc{rangaraju2026groundtruth,
219
+ author = {Prabhu Rangaraju},
220
+ title = {A Third of the Ground Truth Is Wrong: A 127-Instance Audit of
221
+ Optimization-Modeling Benchmarks},
222
+ year = {2026},
223
+ }
224
+ ```
225
+
226
+ Benchmarks audited: NL4Opt (NeurIPS 2022 Competitions Track, PMLR 220), MAMO (Huang et al., arXiv:2405.13144), IndustryOR (in ORLM; Huang et al., Operations Research 73(6), 2025), ComplexOR (Xiao et al., ICLR 2024; extension audit only).
227
+
228
+ ## Validation
229
+
230
+ The test suite checks the release's headline numbers against the shipped data, reproduces the paper's Tables 2 (dev split restriction) and 3 from the bundled data, and exercises the scorer and CLI; behavioral reproduction of the audit's scoring is claimed on the named fixtures only (see group (B) above), not as a comprehensive equivalence proof. That suite is group (B) of the two part evidence statement in "What this package is (and is not)" above; group (A) there is the evidence behind the audit's verdicts themselves. The suite is run against the *installed* package in a clean environment before release; see the release process in the repository's reproduction package (`verify.py` / `reproduce.sh` there check the same numbers without this package). Current result on this build, stated with its conditions attached: **the suite has 38 tests, and all 38 pass from the installed artifacts** (wheel and sdist, each installed into a fresh environment) when both optional test dependencies are present. Two groups of tests are conditioned on optional dependencies: the one integration test that depends on YAML (`test_yaml_files_parse`) requires `pyyaml`, and the three tests that construct the prepared Inspect tasks and drive its scorer require `inspect_ai`; each skips cleanly when its dependency is absent. Without `inspect_ai` the same run reports 35 passed + 3 skipped, and without either dependency 34 passed + 4 skipped, so no figure may be quoted without its condition.