verdict-gate 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 (66) hide show
  1. verdict_gate-0.1.0/.gitignore +31 -0
  2. verdict_gate-0.1.0/CITATION.cff +9 -0
  3. verdict_gate-0.1.0/LICENSE +176 -0
  4. verdict_gate-0.1.0/PKG-INFO +137 -0
  5. verdict_gate-0.1.0/README.md +122 -0
  6. verdict_gate-0.1.0/configs/fnoise/ibm-granite--granite-4.2-8b.yaml +126 -0
  7. verdict_gate-0.1.0/configs/fnoise/qwen--qwen3.5-9b.yaml +121 -0
  8. verdict_gate-0.1.0/configs/policies/fixed_repeat.yaml +5 -0
  9. verdict_gate-0.1.0/configs/policies/moderate.yaml +15 -0
  10. verdict_gate-0.1.0/configs/policies/naive.yaml +4 -0
  11. verdict_gate-0.1.0/configs/policies/strict.yaml +15 -0
  12. verdict_gate-0.1.0/configs/strata/sealqa.yaml +6 -0
  13. verdict_gate-0.1.0/configs/strata/sealqa_freshness.json +151 -0
  14. verdict_gate-0.1.0/configs/validity.yaml +3 -0
  15. verdict_gate-0.1.0/docs/README.md +26 -0
  16. verdict_gate-0.1.0/docs/research/README.md +25 -0
  17. verdict_gate-0.1.0/examples/README.md +36 -0
  18. verdict_gate-0.1.0/harness/README.md +106 -0
  19. verdict_gate-0.1.0/harness/noisegate/README.md +185 -0
  20. verdict_gate-0.1.0/harness/pyproject.toml +31 -0
  21. verdict_gate-0.1.0/harness/scripts/README.md +69 -0
  22. verdict_gate-0.1.0/pyproject.toml +89 -0
  23. verdict_gate-0.1.0/reports/paper/README.md +19 -0
  24. verdict_gate-0.1.0/results/README.md +41 -0
  25. verdict_gate-0.1.0/results/tables/jev_cdm/README.md +158 -0
  26. verdict_gate-0.1.0/schemas/evidence_card.schema.json +238 -0
  27. verdict_gate-0.1.0/src/verdict/__init__.py +7 -0
  28. verdict_gate-0.1.0/src/verdict/adapters/__init__.py +10 -0
  29. verdict_gate-0.1.0/src/verdict/adapters/common.py +70 -0
  30. verdict_gate-0.1.0/src/verdict/adapters/finsearchcomp.py +53 -0
  31. verdict_gate-0.1.0/src/verdict/adapters/frames.py +61 -0
  32. verdict_gate-0.1.0/src/verdict/adapters/freshqa.py +42 -0
  33. verdict_gate-0.1.0/src/verdict/adapters/json_csv.py +150 -0
  34. verdict_gate-0.1.0/src/verdict/adapters/metaskill.py +168 -0
  35. verdict_gate-0.1.0/src/verdict/adapters/sealqa.py +73 -0
  36. verdict_gate-0.1.0/src/verdict/adapters/simpleqa_verified.py +42 -0
  37. verdict_gate-0.1.0/src/verdict/adapters/tau3.py +192 -0
  38. verdict_gate-0.1.0/src/verdict/budget/__init__.py +18 -0
  39. verdict_gate-0.1.0/src/verdict/budget/estimate.py +7 -0
  40. verdict_gate-0.1.0/src/verdict/budget/guard.py +115 -0
  41. verdict_gate-0.1.0/src/verdict/budget/ledger.py +141 -0
  42. verdict_gate-0.1.0/src/verdict/cli.py +289 -0
  43. verdict_gate-0.1.0/src/verdict/core/__init__.py +5 -0
  44. verdict_gate-0.1.0/src/verdict/core/calibrate.py +132 -0
  45. verdict_gate-0.1.0/src/verdict/core/cost.py +70 -0
  46. verdict_gate-0.1.0/src/verdict/core/decision.py +183 -0
  47. verdict_gate-0.1.0/src/verdict/core/evidence_card.py +397 -0
  48. verdict_gate-0.1.0/src/verdict/core/harm.py +21 -0
  49. verdict_gate-0.1.0/src/verdict/core/multiplicity.py +145 -0
  50. verdict_gate-0.1.0/src/verdict/core/paired.py +144 -0
  51. verdict_gate-0.1.0/src/verdict/core/policy.py +211 -0
  52. verdict_gate-0.1.0/src/verdict/core/posterior.py +46 -0
  53. verdict_gate-0.1.0/src/verdict/core/power.py +211 -0
  54. verdict_gate-0.1.0/src/verdict/core/replay.py +415 -0
  55. verdict_gate-0.1.0/src/verdict/core/schemas.py +227 -0
  56. verdict_gate-0.1.0/src/verdict/core/scope.py +91 -0
  57. verdict_gate-0.1.0/src/verdict/core/sequential.py +74 -0
  58. verdict_gate-0.1.0/src/verdict/freeze.py +335 -0
  59. verdict_gate-0.1.0/src/verdict/runners/__init__.py +11 -0
  60. verdict_gate-0.1.0/src/verdict/runners/checker_revision.py +223 -0
  61. verdict_gate-0.1.0/src/verdict/runners/common.py +67 -0
  62. verdict_gate-0.1.0/src/verdict/runners/e8.py +1091 -0
  63. verdict_gate-0.1.0/src/verdict/runners/evolution.py +441 -0
  64. verdict_gate-0.1.0/src/verdict/runners/live_sequential.py +125 -0
  65. verdict_gate-0.1.0/src/verdict/runners/sealqa_runner.py +466 -0
  66. verdict_gate-0.1.0/src/verdict/runners/structured_evolve.py +308 -0
@@ -0,0 +1,31 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ *.egg-info
7
+ .venv/
8
+ .pytest_cache/
9
+ .ruff_cache/
10
+ .ipynb_checkpoints/
11
+
12
+ # Secrets: copy .env.example to .env and fill it in
13
+ .env
14
+
15
+ # Raw experiment output and large corpora (compact copies of finished runs live in results/runs/)
16
+ harness/runs/
17
+ harness/data/officeqa/
18
+ /runs/
19
+
20
+ # Ephemeral run-queue state for the status line
21
+ ledger/queue.json
22
+ ledger/status.json
23
+ ledger/*.lock
24
+
25
+ # Raw benchmark downloads for the finance transfer test (E12 draft); the loader re-downloads the pinned revision
26
+ data/finance_candidates/
27
+ # FreshQA CSV export for E13 (the loader pins its sha256 and can re-download it)
28
+ data/freshqa/
29
+ runs_e1[0-9]*.log
30
+ # SimpleQA Verified CSV for E16 (the loader pins its revision and sha256 and can re-download it)
31
+ data/simpleqa_verified/
@@ -0,0 +1,9 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use VERDICT, please cite it as below."
3
+ title: "VERDICT: evidence-governed admission of self-evolved skills for small LLM agents"
4
+ type: software
5
+ authors:
6
+ - name: "Kunal"
7
+ - name: "Sahil Jain"
8
+ license: Apache-2.0
9
+ version: 0.1.0
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.5
2
+ Name: verdict-gate
3
+ Version: 0.1.0
4
+ Summary: VERDICT: evidence-governed admission of self-evolved skills for small LLM agents
5
+ Author: Kunal, Sahil Jain
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Requires-Python: >=3.12
9
+ Requires-Dist: jsonschema>=4.23
10
+ Requires-Dist: numpy>=2.1
11
+ Requires-Dist: pydantic>=2.13.5
12
+ Requires-Dist: pyyaml>=6.0.3
13
+ Requires-Dist: typer>=0.15
14
+ Description-Content-Type: text/markdown
15
+
16
+ # VERDICT
17
+
18
+ **Evidence-governed admission of self-evolved skills for small LLM agents.**
19
+
20
+ Self-improving agents keep an edited skill when it scores higher than its parent. With small models, repeated runs
21
+ of an *unchanged* skill already differ by several points, so many of those "improvements" are noise: in our
22
+ measurements keep-if-better admits a large share of skills that did not change at all (noise floors and gate
23
+ simulations in [results/tables/noisegate/](results/tables/noisegate/)). VERDICT is the package
24
+ that decides, from paired evidence, whether an evolved skill is really better, and records each decision as an
25
+ admission card.
26
+
27
+ > **Status:** pre-release. The `verdict` package (paired evidence, policies, evidence cards, replay, budget guard,
28
+ > freeze manifests; CLI `verdict`) is working and tested; the distribution name is not final (see "Release status").
29
+
30
+ ## Repository layout
31
+
32
+ ```
33
+ src/verdict/ the VERDICT package: core/ (statistics, policies, cards), adapters/, runners/, budget/, cli.py
34
+ tests/ offline tests for verdict (synthetic fixtures in tests/fixtures/)
35
+ schemas/ evidence_card.schema.json, the JSON Schema every card is validated against
36
+ examples/ long-format CSV import format and an offline quickstart
37
+ configs/ policies, frozen splits, experiment configs, noise floors (frozen at prereg-v1)
38
+ prereg/ pre-registration and freeze manifests (checked by scripts/freeze_check.py)
39
+ scripts/ experiment runners (paid, budget-guarded) and offline analyses
40
+ harness/ experiment harness that produced the results (own pyproject, see harness/README.md)
41
+ metaskill/ from-scratch replication of MetaSkill-Evolve (arXiv:2607.05297): SealQA, OfficeQA, ALFWorld, ALE, GSM8K
42
+ noisegate/ NoiseGate, the stdlib-only admission gate prototype (noise floor, paired tests, admission card)
43
+ scripts/ run wrappers and analyses (index in harness/scripts/README.md)
44
+ configs/ one YAML per model configuration; gate settings; ALE presets
45
+ data/ frozen splits (SHA256SUMS) and a 10-question OfficeQA sample
46
+ tests/ offline tests for metaskill and the scripts
47
+ results/ every result, as small files: run summaries, per-item outcomes, tables, ledger (see results/README.md)
48
+ docs/ replication notes, research records (plans, decisions, run log), release checklist (see docs/README.md)
49
+ ```
50
+
51
+ ## Install
52
+
53
+ ```bash
54
+ uv sync # verdict + its dev group (pytest, ruff, the harness workspace member the tests need)
55
+ cp .env.example .env # only for commands that call a model or a gated dataset; nothing below needs it
56
+ ```
57
+
58
+ From PyPI: `pip install verdict-gate` (the import name and the CLI stay `verdict`).
59
+
60
+ Requires Python 3.12+ ([uv](https://docs.astral.sh/uv/) recommended; `.python-version` pins 3.13). Without uv,
61
+ `pip install .` (or `pip install -e .`) in a checkout installs the `verdict` package alone (numpy, pydantic, pyyaml,
62
+ jsonschema, typer), without the harness. A wheel carries the card schema and the policy, validity, strata and floor
63
+ configs it needs (`verdict/_data`); inside a checkout the package reads `schemas/` and `configs/` from the checkout.
64
+
65
+ ## Quickstart (offline)
66
+
67
+ ```bash
68
+ uv run python examples/quickstart.py
69
+ ```
70
+
71
+ It imports `examples/long_format.csv` (the generic import format, [examples/README.md](examples/README.md)), then
72
+ decides three synthetic candidates against their parent under keep-if-higher and under the moderate policy, and
73
+ writes one evidence card (`card.json`, valid against [schemas/evidence_card.schema.json](schemas/evidence_card.schema.json),
74
+ and `card.md`). The same decision from the CLI:
75
+
76
+ ```bash
77
+ uv run verdict compare --baseline tests/fixtures/replay/s0.json --candidate tests/fixtures/replay/c_good.json --policy configs/policies/moderate.yaml --fnoise tests/fixtures/replay/fnoise_m.yaml --out card.json
78
+ uv run verdict card render card.json
79
+ ```
80
+
81
+ `verdict compare` exits with a code per decision (0 = PASS_GLOBAL; see `src/verdict/cli.py`), `verdict replay`
82
+ recomputes decisions for many arms, `verdict freeze` writes a freeze manifest, `verdict budget status` reads the
83
+ spend ledger.
84
+
85
+ ## Tests
86
+
87
+ ```bash
88
+ uv run pytest # all offline tests: no network (blocked by conftest.py), no API keys, no raw runs needed
89
+ uv run ruff check .
90
+ ```
91
+
92
+ ## Reproducing the results
93
+
94
+ None of the commands below makes a model call or needs a key; they read tracked files only.
95
+
96
+ | What | Command | Check |
97
+ |---|---|---|
98
+ | Frozen splits, configs and H48 artifacts are the ones pre-registered | `uv run python scripts/freeze_check.py` | prints `all hashes match` |
99
+ | E2 replication summary by provenance tier | `uv run python scripts/analyze_e2.py` | `git diff --exit-code results/outcomes/p3_e2/` |
100
+ | The decision core on synthetic evidence | `uv run python examples/quickstart.py` | three decisions printed, cards schema-valid |
101
+ | Paper tables and figure data from committed artifacts | `uv run python scripts/make_tables.py` (`make paper-tables`) | `git diff --exit-code reports/paper/` |
102
+
103
+ Every number in [results/](results/README.md) cites the run it came from;
104
+ [docs/plan/RUNLOG.md](docs/plan/RUNLOG.md) (thesis experiments) and [docs/research/RUNLOG.md](docs/research/RUNLOG.md)
105
+ (earlier NoiseGate work) give the exact command of each logged run. The paid runners (`scripts/run_*.py`) all have a
106
+ `--dry-run` that prints the planned runs and the estimated cost; model calls go through OpenRouter and cost money.
107
+
108
+ Not yet reproducible from tracked data: the E3 decision analysis (`scripts/analyze_e3.py`), H48 Event 1, the E8
109
+ evolution and H48 Event 2 read raw arm files under `runs/` (not tracked). Harness commands run from `harness/`; see
110
+ [harness/README.md](harness/README.md).
111
+
112
+ ## Data and licenses
113
+
114
+ Code is licensed under [Apache-2.0](LICENSE). Datasets keep their own licenses. What is in this repository:
115
+
116
+ | Benchmark | License | What is tracked here |
117
+ |---|---|---|
118
+ | SealQA (`vtllms/sealqa`) | Apache-2.0 | Question ids in frozen splits, per-question scores, evolved skills; no question text |
119
+ | FRAMES (`google/frames-benchmark`) | Apache-2.0 | Question ids in frozen splits; a synthetic test fixture (no real rows) |
120
+ | FinSearchComp (`ByteSeedXpert/FinSearchComp`) | CC-BY-4.0 (attribution required) | Task ids in frozen splits and summary scores; raw rows are downloaded at the pinned revision, never committed |
121
+ | τ²-bench / τ³ retail (`sierra-research/tau2-bench`) | MIT | Task ids, per-task rewards, self-proposed retail skills; the environment is checked out separately at the pinned commit |
122
+ | GSM8K | MIT | Ids and scores |
123
+ | OfficeQA | CC-BY-SA-4.0 | A 10-question sample, see [harness/data/officeqa_sample/LICENSE.md](harness/data/officeqa_sample/LICENSE.md) |
124
+ | Agents' Last Exam | (task data contains hidden reference answers) | **Never included**: task ids and scores only |
125
+
126
+ All of the above can be redistributed in this form; the CC-BY-4.0 and CC-BY-SA-4.0 rows need the attribution kept.
127
+
128
+ ## Release status
129
+
130
+ The distribution name is still open (RUNLOG D10: `verdict` is taken on PyPI); it lives only in `pyproject.toml` and
131
+ `src/verdict/`, so the rename is one change. The implementation spec's `revision-eval` CLI is the `verdict` command
132
+ here.
133
+
134
+ ## Citation
135
+
136
+ A CITATION.cff will be added with the thesis title. Until then, cite MetaSkill-Evolve (arXiv:2607.05297) for the
137
+ method the harness replicates.
@@ -0,0 +1,122 @@
1
+ # VERDICT
2
+
3
+ **Evidence-governed admission of self-evolved skills for small LLM agents.**
4
+
5
+ Self-improving agents keep an edited skill when it scores higher than its parent. With small models, repeated runs
6
+ of an *unchanged* skill already differ by several points, so many of those "improvements" are noise: in our
7
+ measurements keep-if-better admits a large share of skills that did not change at all (noise floors and gate
8
+ simulations in [results/tables/noisegate/](results/tables/noisegate/)). VERDICT is the package
9
+ that decides, from paired evidence, whether an evolved skill is really better, and records each decision as an
10
+ admission card.
11
+
12
+ > **Status:** pre-release. The `verdict` package (paired evidence, policies, evidence cards, replay, budget guard,
13
+ > freeze manifests; CLI `verdict`) is working and tested; the distribution name is not final (see "Release status").
14
+
15
+ ## Repository layout
16
+
17
+ ```
18
+ src/verdict/ the VERDICT package: core/ (statistics, policies, cards), adapters/, runners/, budget/, cli.py
19
+ tests/ offline tests for verdict (synthetic fixtures in tests/fixtures/)
20
+ schemas/ evidence_card.schema.json, the JSON Schema every card is validated against
21
+ examples/ long-format CSV import format and an offline quickstart
22
+ configs/ policies, frozen splits, experiment configs, noise floors (frozen at prereg-v1)
23
+ prereg/ pre-registration and freeze manifests (checked by scripts/freeze_check.py)
24
+ scripts/ experiment runners (paid, budget-guarded) and offline analyses
25
+ harness/ experiment harness that produced the results (own pyproject, see harness/README.md)
26
+ metaskill/ from-scratch replication of MetaSkill-Evolve (arXiv:2607.05297): SealQA, OfficeQA, ALFWorld, ALE, GSM8K
27
+ noisegate/ NoiseGate, the stdlib-only admission gate prototype (noise floor, paired tests, admission card)
28
+ scripts/ run wrappers and analyses (index in harness/scripts/README.md)
29
+ configs/ one YAML per model configuration; gate settings; ALE presets
30
+ data/ frozen splits (SHA256SUMS) and a 10-question OfficeQA sample
31
+ tests/ offline tests for metaskill and the scripts
32
+ results/ every result, as small files: run summaries, per-item outcomes, tables, ledger (see results/README.md)
33
+ docs/ replication notes, research records (plans, decisions, run log), release checklist (see docs/README.md)
34
+ ```
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ uv sync # verdict + its dev group (pytest, ruff, the harness workspace member the tests need)
40
+ cp .env.example .env # only for commands that call a model or a gated dataset; nothing below needs it
41
+ ```
42
+
43
+ From PyPI: `pip install verdict-gate` (the import name and the CLI stay `verdict`).
44
+
45
+ Requires Python 3.12+ ([uv](https://docs.astral.sh/uv/) recommended; `.python-version` pins 3.13). Without uv,
46
+ `pip install .` (or `pip install -e .`) in a checkout installs the `verdict` package alone (numpy, pydantic, pyyaml,
47
+ jsonschema, typer), without the harness. A wheel carries the card schema and the policy, validity, strata and floor
48
+ configs it needs (`verdict/_data`); inside a checkout the package reads `schemas/` and `configs/` from the checkout.
49
+
50
+ ## Quickstart (offline)
51
+
52
+ ```bash
53
+ uv run python examples/quickstart.py
54
+ ```
55
+
56
+ It imports `examples/long_format.csv` (the generic import format, [examples/README.md](examples/README.md)), then
57
+ decides three synthetic candidates against their parent under keep-if-higher and under the moderate policy, and
58
+ writes one evidence card (`card.json`, valid against [schemas/evidence_card.schema.json](schemas/evidence_card.schema.json),
59
+ and `card.md`). The same decision from the CLI:
60
+
61
+ ```bash
62
+ uv run verdict compare --baseline tests/fixtures/replay/s0.json --candidate tests/fixtures/replay/c_good.json --policy configs/policies/moderate.yaml --fnoise tests/fixtures/replay/fnoise_m.yaml --out card.json
63
+ uv run verdict card render card.json
64
+ ```
65
+
66
+ `verdict compare` exits with a code per decision (0 = PASS_GLOBAL; see `src/verdict/cli.py`), `verdict replay`
67
+ recomputes decisions for many arms, `verdict freeze` writes a freeze manifest, `verdict budget status` reads the
68
+ spend ledger.
69
+
70
+ ## Tests
71
+
72
+ ```bash
73
+ uv run pytest # all offline tests: no network (blocked by conftest.py), no API keys, no raw runs needed
74
+ uv run ruff check .
75
+ ```
76
+
77
+ ## Reproducing the results
78
+
79
+ None of the commands below makes a model call or needs a key; they read tracked files only.
80
+
81
+ | What | Command | Check |
82
+ |---|---|---|
83
+ | Frozen splits, configs and H48 artifacts are the ones pre-registered | `uv run python scripts/freeze_check.py` | prints `all hashes match` |
84
+ | E2 replication summary by provenance tier | `uv run python scripts/analyze_e2.py` | `git diff --exit-code results/outcomes/p3_e2/` |
85
+ | The decision core on synthetic evidence | `uv run python examples/quickstart.py` | three decisions printed, cards schema-valid |
86
+ | Paper tables and figure data from committed artifacts | `uv run python scripts/make_tables.py` (`make paper-tables`) | `git diff --exit-code reports/paper/` |
87
+
88
+ Every number in [results/](results/README.md) cites the run it came from;
89
+ [docs/plan/RUNLOG.md](docs/plan/RUNLOG.md) (thesis experiments) and [docs/research/RUNLOG.md](docs/research/RUNLOG.md)
90
+ (earlier NoiseGate work) give the exact command of each logged run. The paid runners (`scripts/run_*.py`) all have a
91
+ `--dry-run` that prints the planned runs and the estimated cost; model calls go through OpenRouter and cost money.
92
+
93
+ Not yet reproducible from tracked data: the E3 decision analysis (`scripts/analyze_e3.py`), H48 Event 1, the E8
94
+ evolution and H48 Event 2 read raw arm files under `runs/` (not tracked). Harness commands run from `harness/`; see
95
+ [harness/README.md](harness/README.md).
96
+
97
+ ## Data and licenses
98
+
99
+ Code is licensed under [Apache-2.0](LICENSE). Datasets keep their own licenses. What is in this repository:
100
+
101
+ | Benchmark | License | What is tracked here |
102
+ |---|---|---|
103
+ | SealQA (`vtllms/sealqa`) | Apache-2.0 | Question ids in frozen splits, per-question scores, evolved skills; no question text |
104
+ | FRAMES (`google/frames-benchmark`) | Apache-2.0 | Question ids in frozen splits; a synthetic test fixture (no real rows) |
105
+ | FinSearchComp (`ByteSeedXpert/FinSearchComp`) | CC-BY-4.0 (attribution required) | Task ids in frozen splits and summary scores; raw rows are downloaded at the pinned revision, never committed |
106
+ | τ²-bench / τ³ retail (`sierra-research/tau2-bench`) | MIT | Task ids, per-task rewards, self-proposed retail skills; the environment is checked out separately at the pinned commit |
107
+ | GSM8K | MIT | Ids and scores |
108
+ | OfficeQA | CC-BY-SA-4.0 | A 10-question sample, see [harness/data/officeqa_sample/LICENSE.md](harness/data/officeqa_sample/LICENSE.md) |
109
+ | Agents' Last Exam | (task data contains hidden reference answers) | **Never included**: task ids and scores only |
110
+
111
+ All of the above can be redistributed in this form; the CC-BY-4.0 and CC-BY-SA-4.0 rows need the attribution kept.
112
+
113
+ ## Release status
114
+
115
+ The distribution name is still open (RUNLOG D10: `verdict` is taken on PyPI); it lives only in `pyproject.toml` and
116
+ `src/verdict/`, so the rename is one change. The implementation spec's `revision-eval` CLI is the `verdict` command
117
+ here.
118
+
119
+ ## Citation
120
+
121
+ A CITATION.cff will be added with the thesis title. Until then, cite MetaSkill-Evolve (arXiv:2607.05297) for the
122
+ method the harness replicates.
@@ -0,0 +1,126 @@
1
+ model: ibm-granite/granite-4.2-8b
2
+ paired_fnoise:
3
+ 8: 0.25
4
+ 16: 0.1875
5
+ 24: 0.16666666666666666
6
+ 32: 0.125
7
+ 40: 0.125
8
+ 48: 0.10416666666666667
9
+ 56: 0.10714285714285714
10
+ 60: 0.1
11
+ legacy_fnoise: 0.08388888888888885
12
+ sensitivity: 0.09439056847898962
13
+ source_run_ids:
14
+ - R131_e1v3_granite42_v90_inline_cache_r0_s11
15
+ - R132_e1v3_granite42_v90_inline_cache_r1_s22
16
+ - R133_e1v3_granite42_v90_inline_cache_r2_s33
17
+ - R134_e1v3_granite42_v90_inline_cache_r3_s44
18
+ - R135_e1v3_granite42_v90_inline_cache_r4_s55
19
+ rng_seed: 9001
20
+ draws: 10000
21
+ quantile: 0.95
22
+ pairing: symmetric
23
+ task: T15
24
+ created: '2026-11-03T14:19:53+00:00'
25
+ git_commit: 3600cae65c82b4c559e992b1e7860f1c222b11d1 (working tree modified)
26
+ config:
27
+ file: configs/experiments/e1.yaml
28
+ sha256: 6b196a0f7b2eca5346ce7f92df6484c282aa2a9b875f0be49d48bb202e00f654
29
+ block_sizes:
30
+ - 8
31
+ - 16
32
+ - 24
33
+ - 32
34
+ - 40
35
+ - 48
36
+ - 56
37
+ - 60
38
+ split: sealqa_v90
39
+ n_questions: 90
40
+ excluded_questions: []
41
+ source_runs:
42
+ - run_id: R131_e1v3_granite42_v90_inline_cache_r0_s11
43
+ seed: 11
44
+ accuracy: 0.2
45
+ n: 90
46
+ invalid: 0
47
+ files:
48
+ config.json: 0e78607b568c2d2f25cd318d42b5ccc666d48e81e97ca1b6f1406eb187ff1dcc
49
+ split.json: 5dcbd32f156bdcbf3b9b2389d019c8c4dd82193e835b494405b3e60d5b3fde80
50
+ result.json: ace30ba78e7d556463dfceb880a1290de12fac077bb91d3d09cbe41431327e1a
51
+ test_traces.jsonl: 651159e97021b7bb0dfded7f6c19de5178e4e509a08c49f54b33a77b055ee7b7
52
+ - run_id: R132_e1v3_granite42_v90_inline_cache_r1_s22
53
+ seed: 22
54
+ accuracy: 0.23333333333333334
55
+ n: 90
56
+ invalid: 0
57
+ files:
58
+ config.json: a09a1d3871dea2f2c01d7eafe7693d950d04d722fba96092ac2a09c3cc294147
59
+ split.json: 5dcbd32f156bdcbf3b9b2389d019c8c4dd82193e835b494405b3e60d5b3fde80
60
+ result.json: fb66523d870b19b257e0b3193f9805f0e18c0be8a66493a960ab704495024cfa
61
+ test_traces.jsonl: 51ef070db03970fa341beaf251d385fce2be432902aa4f7391b1f1a1d75fa4b8
62
+ - run_id: R133_e1v3_granite42_v90_inline_cache_r2_s33
63
+ seed: 33
64
+ accuracy: 0.2111111111111111
65
+ n: 90
66
+ invalid: 0
67
+ files:
68
+ config.json: 27772d99731eacf028679cdfb09279cd7585efb3d1e7b0184ebe8ce6a8419dbd
69
+ split.json: 5dcbd32f156bdcbf3b9b2389d019c8c4dd82193e835b494405b3e60d5b3fde80
70
+ result.json: bbd126b8094b4d0e143a80cd53bf155ebd1163cc117b4615e22b9f0e385e426c
71
+ test_traces.jsonl: 823670922ce6f7dd95170d725897858abda57504c6d2099e48186686fcb4b46b
72
+ - run_id: R134_e1v3_granite42_v90_inline_cache_r3_s44
73
+ seed: 44
74
+ accuracy: 0.28888888888888886
75
+ n: 90
76
+ invalid: 0
77
+ files:
78
+ config.json: fc54e2d2a91d182c476c63d810329914510d55865aaad2d4bc0fae5366b722f3
79
+ split.json: 5dcbd32f156bdcbf3b9b2389d019c8c4dd82193e835b494405b3e60d5b3fde80
80
+ result.json: d5fb2076c28d6f181e82c8fbdc1e0f6f8d833dae3836f2714dee7e3f5b2c1db9
81
+ test_traces.jsonl: 9f2f09ed331298900b62e04cae588da57195289b2d4b16d1a64a53b9b06c7726
82
+ - run_id: R135_e1v3_granite42_v90_inline_cache_r4_s55
83
+ seed: 55
84
+ accuracy: 0.24444444444444444
85
+ n: 90
86
+ invalid: 0
87
+ files:
88
+ config.json: df73e6b506371556ee7d75301d4d10e7fe81835303fa558087a6b7119c06e312
89
+ split.json: 5dcbd32f156bdcbf3b9b2389d019c8c4dd82193e835b494405b3e60d5b3fde80
90
+ result.json: bcec9e8a5cc0463c049a4128e2ce4e98df6f687e3f1f7e2b34b5a377a857c4d8
91
+ test_traces.jsonl: 302ae0a30432f6a571b8f42ab092c85c3bacf0fa5f8388c8d3a0bf3cc88e301f
92
+ accuracy_mean: 0.23555555555555557
93
+ accuracy_sd: 0.034605358894216516
94
+ flip:
95
+ mean_pair_discordance: 0.1511111111111111
96
+ share_questions_flipping: 0.32222222222222224
97
+ by_question:
98
+ seal_0-0: 0.4
99
+ seal_0-101: 0.4
100
+ seal_0-11: 0.4
101
+ seal_0-23: 0.6
102
+ seal_0-29: 0.4
103
+ seal_0-38: 0.4
104
+ seal_0-39: 0.4
105
+ seal_0-40: 0.6
106
+ seal_0-44: 0.4
107
+ seal_0-57: 0.6
108
+ seal_0-62: 0.4
109
+ seal_0-69: 0.6
110
+ seal_0-74: 0.4
111
+ seal_0-77: 0.6
112
+ seal_0-84: 0.4
113
+ seal_0-91: 0.4
114
+ seal_0-96: 0.4
115
+ seal_0-97: 0.6
116
+ seal_hard-1: 0.4
117
+ seal_hard-147: 0.4
118
+ seal_hard-165: 0.4
119
+ seal_hard-195: 0.6
120
+ seal_hard-20: 0.4
121
+ seal_hard-210: 0.4
122
+ seal_hard-63: 0.6
123
+ seal_hard-70: 0.4
124
+ seal_hard-83: 0.4
125
+ seal_hard-86: 0.6
126
+ seal_hard-98: 0.6