@tangle-network/agent-bench 0.14.4 → 1.0.2

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 (187) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +2 -3
  3. package/dist/adapters.d.ts +2 -5
  4. package/dist/adapters.js +3 -4
  5. package/dist/benchmarks/_harness.d.ts +17 -20
  6. package/dist/benchmarks/_harness.js +4 -4
  7. package/dist/benchmarks/_harness.js.map +1 -1
  8. package/dist/benchmarks/aec-bench.d.ts +1 -4
  9. package/dist/benchmarks/aec-bench.js +1 -2
  10. package/dist/benchmarks/agentbench.d.ts +2 -5
  11. package/dist/benchmarks/agentbench.js +1 -2
  12. package/dist/benchmarks/appworld.d.ts +8 -10
  13. package/dist/benchmarks/appworld.js +23 -23
  14. package/dist/benchmarks/appworld.js.map +1 -1
  15. package/dist/benchmarks/bfcl.d.ts +2 -5
  16. package/dist/benchmarks/bfcl.js +1 -2
  17. package/dist/benchmarks/cad-design.d.ts +2 -5
  18. package/dist/benchmarks/cad-design.js +2 -3
  19. package/dist/benchmarks/cad-design.js.map +1 -1
  20. package/dist/benchmarks/cadbench.d.ts +1 -4
  21. package/dist/benchmarks/cadbench.js +1 -2
  22. package/dist/benchmarks/cadgenbench.d.ts +1 -4
  23. package/dist/benchmarks/cadgenbench.js +1 -2
  24. package/dist/benchmarks/commit0.d.ts +2 -5
  25. package/dist/benchmarks/commit0.js +1 -2
  26. package/dist/benchmarks/crag.d.ts +1 -4
  27. package/dist/benchmarks/crag.js +3 -3
  28. package/dist/benchmarks/crag.js.map +1 -1
  29. package/dist/benchmarks/dabstep.d.ts +2 -5
  30. package/dist/benchmarks/dabstep.js +2 -3
  31. package/dist/benchmarks/dabstep.js.map +1 -1
  32. package/dist/benchmarks/enterpriseops-gym.d.ts +2 -5
  33. package/dist/benchmarks/enterpriseops-gym.js +1 -2
  34. package/dist/benchmarks/finresearchbench.d.ts +2 -5
  35. package/dist/benchmarks/finresearchbench.js +2 -3
  36. package/dist/benchmarks/finsearchcomp.d.ts +2 -5
  37. package/dist/benchmarks/finsearchcomp.js +4 -4
  38. package/dist/benchmarks/finsearchcomp.js.map +1 -1
  39. package/dist/benchmarks/frames.d.ts +3 -19
  40. package/dist/benchmarks/frames.js +13 -39
  41. package/dist/benchmarks/frames.js.map +1 -1
  42. package/dist/benchmarks/hotpotqa.d.ts +4 -14
  43. package/dist/benchmarks/hotpotqa.js +12 -32
  44. package/dist/benchmarks/hotpotqa.js.map +1 -1
  45. package/dist/benchmarks/humaneval.d.ts +9 -12
  46. package/dist/benchmarks/humaneval.js +2 -3
  47. package/dist/benchmarks/humaneval.js.map +1 -1
  48. package/dist/benchmarks/mcad-bench.d.ts +13 -16
  49. package/dist/benchmarks/mcad-bench.js +2 -3
  50. package/dist/benchmarks/mcad-bench.js.map +1 -1
  51. package/dist/benchmarks/mcad-cq-bench.d.ts +17 -20
  52. package/dist/benchmarks/mcad-cq-bench.js +2 -3
  53. package/dist/benchmarks/mcad-cq-bench.js.map +1 -1
  54. package/dist/benchmarks/mcad-cq-golds.d.ts +2 -5
  55. package/dist/benchmarks/mcad-cq-golds.js +1 -2
  56. package/dist/benchmarks/mcad-golds.d.ts +1 -4
  57. package/dist/benchmarks/mcad-golds.js +0 -1
  58. package/dist/benchmarks/mcad-tasks.d.ts +5 -8
  59. package/dist/benchmarks/mcad-tasks.js +7 -8
  60. package/dist/benchmarks/mcad-tasks.js.map +1 -1
  61. package/dist/benchmarks/mind2web.d.ts +3 -5
  62. package/dist/benchmarks/mind2web.js +2 -3
  63. package/dist/benchmarks/mind2web.js.map +1 -1
  64. package/dist/benchmarks/nomiracl.d.ts +1 -4
  65. package/dist/benchmarks/nomiracl.js +1 -2
  66. package/dist/benchmarks/open-rag-bench.d.ts +1 -4
  67. package/dist/benchmarks/open-rag-bench.js +3 -3
  68. package/dist/benchmarks/open-rag-bench.js.map +1 -1
  69. package/dist/benchmarks/programbench.d.ts +2 -5
  70. package/dist/benchmarks/programbench.js +1 -2
  71. package/dist/benchmarks/rag-shared.d.ts +30 -22
  72. package/dist/benchmarks/rag-shared.js +8 -2
  73. package/dist/benchmarks/rag-shared.js.map +1 -1
  74. package/dist/benchmarks/ragbench.d.ts +1 -4
  75. package/dist/benchmarks/ragbench.js +3 -3
  76. package/dist/benchmarks/ragbench.js.map +1 -1
  77. package/dist/benchmarks/simpleqa.d.ts +2 -18
  78. package/dist/benchmarks/simpleqa.js +5 -31
  79. package/dist/benchmarks/simpleqa.js.map +1 -1
  80. package/dist/benchmarks/swe-bench.d.ts +7 -10
  81. package/dist/benchmarks/swe-bench.js +4 -4
  82. package/dist/benchmarks/swe-bench.js.map +1 -1
  83. package/dist/benchmarks/t2-ragbench.d.ts +1 -4
  84. package/dist/benchmarks/t2-ragbench.js +3 -3
  85. package/dist/benchmarks/t2-ragbench.js.map +1 -1
  86. package/dist/benchmarks/tau-bench-shared.d.ts +5 -8
  87. package/dist/benchmarks/tau-bench-shared.js +4 -4
  88. package/dist/benchmarks/tau-bench-shared.js.map +1 -1
  89. package/dist/benchmarks/tau2-bench.d.ts +2 -5
  90. package/dist/benchmarks/tau2-bench.js +1 -2
  91. package/dist/benchmarks/tau3-banking.d.ts +1 -4
  92. package/dist/benchmarks/tau3-banking.js +1 -2
  93. package/dist/benchmarks/terminal-bench.d.ts +1 -4
  94. package/dist/benchmarks/terminal-bench.js +4 -4
  95. package/dist/benchmarks/terminal-bench.js.map +1 -1
  96. package/dist/benchmarks/toollm.d.ts +2 -5
  97. package/dist/benchmarks/toollm.js +1 -2
  98. package/dist/benchmarks/trata-hedge.d.ts +1 -4
  99. package/dist/benchmarks/trata-hedge.js +2 -3
  100. package/dist/benchmarks/types.d.ts +6 -9
  101. package/dist/benchmarks/webarena-verified.d.ts +2 -5
  102. package/dist/benchmarks/webarena-verified.js +1 -2
  103. package/dist/{cadbench-BRF-59Mt.js → cadbench-DhAndllg.js} +4 -6
  104. package/dist/cadbench-DhAndllg.js.map +1 -0
  105. package/dist/{cadgenbench-DXtGkuW3.js → cadgenbench-Tvk16YKT.js} +15 -5
  106. package/dist/cadgenbench-Tvk16YKT.js.map +1 -0
  107. package/dist/index.d.ts +8 -18
  108. package/dist/index.js +16 -24
  109. package/dist/index.js.map +1 -1
  110. package/dist/{router-turn-uTYO6KQ1.js → router-turn-DNbQ_GjQ.js} +2 -3
  111. package/dist/router-turn-DNbQ_GjQ.js.map +1 -0
  112. package/fixtures/pier-agent/no-model-task/pre_artifacts.sh +0 -0
  113. package/fixtures/pier-agent/no-model-task/tests/test.sh +0 -0
  114. package/package.json +10 -10
  115. package/pier_agents/tangle_candidate.py +15 -23
  116. package/scripts/run-package-tests.mjs +8 -15
  117. package/src/atom-mcp-e2e.mts +2 -2
  118. package/src/benchmarks/frames.ts +10 -44
  119. package/src/benchmarks/hotpotqa.ts +9 -29
  120. package/src/benchmarks/rag-shared.ts +12 -0
  121. package/src/benchmarks/simpleqa.ts +2 -36
  122. package/src/commit0-prereqs.sh +0 -0
  123. package/src/corpus-replay.mts +8 -8
  124. package/src/corpus-report.mts +21 -21
  125. package/src/corpus.test.mts +5 -5
  126. package/src/corpus.ts +16 -16
  127. package/src/directives.ts +0 -38
  128. package/src/examples/lean-verify.ts +1 -1
  129. package/src/gate.ts +7 -7
  130. package/src/generate-eval/certify.ts +2 -2
  131. package/src/index.ts +1 -0
  132. package/src/refine-loop.ts +5 -5
  133. package/src/resolve-client.ts +1 -1
  134. package/src/router-turn.ts +3 -11
  135. package/src/run-pool.ts +1 -1
  136. package/src/runtime-hook-recorder.ts +2 -2
  137. package/src/search-bench/tasks.ts +1 -1
  138. package/src/selector.test.mts +13 -13
  139. package/src/selector.ts +19 -19
  140. package/src/swe-bench-env.ts +4 -12
  141. package/src/swe-jail.ts +5 -156
  142. package/src/swe-structural-judge-policy.ts +3 -3
  143. package/src/swe-structural-policy.ts +3 -3
  144. package/src/swe-structural-provenance.ts +4 -4
  145. package/src/terminal-compare.ts +10 -10
  146. package/src/worker-blender.ts +2 -106
  147. package/src/worker-build123d.ts +2 -81
  148. package/tb_agents/opencode_router_agent.py +1 -1
  149. package/dist/cadbench-BRF-59Mt.js.map +0 -1
  150. package/dist/cadgenbench-DXtGkuW3.js.map +0 -1
  151. package/dist/router-turn-uTYO6KQ1.js.map +0 -1
  152. package/scripts/cadbench_prepare.py +0 -22
  153. package/scripts/cadgenbench_hard_parts.py +0 -48
  154. package/scripts/clbench_codebase_judge.py +0 -73
  155. package/scripts/render-gate-chart.mjs +0 -176
  156. package/scripts/trata-hedge/README.md +0 -57
  157. package/scripts/trata-hedge/run.sh +0 -64
  158. package/src/cloud-loop.mts +0 -156
  159. package/src/coordination-mcp-container-reach.mts +0 -182
  160. package/src/fleet.mts +0 -143
  161. package/src/hev-structural.mts +0 -697
  162. package/src/humaneval-gate.mts +0 -220
  163. package/src/mbpp-structural.mts +0 -676
  164. package/src/mcp-mount-probe.mts +0 -141
  165. package/src/profiles.ts +0 -128
  166. package/src/research-gate.mts +0 -132
  167. package/src/research-shot.ts +0 -144
  168. package/src/router-executor.ts +0 -51
  169. package/src/sandbox-run.ts +0 -108
  170. package/src/search-bench/bridge.ts +0 -182
  171. package/src/search-bench/export.mts +0 -0
  172. package/src/search-bench/parametric-check.mts +0 -78
  173. package/src/search-bench/profiles.ts +0 -113
  174. package/src/search-bench/run.mts +0 -286
  175. package/src/search-bench/tasks-fresh.ts +0 -688
  176. package/src/smoke-structural-rollout.mts +0 -415
  177. package/src/stats.mts +0 -90
  178. package/src/swe-code-improve.mts +0 -306
  179. package/src/swe-improve.mts +0 -284
  180. package/src/swe-structural.mts +0 -707
  181. package/src/tb-container-executor.mts +0 -266
  182. package/src/tb-container-executor.test.mts +0 -134
  183. package/src/tb-supervisor-sidecar.mts +0 -208
  184. package/src/trata-gepa.mts +0 -381
  185. package/src/trata-hedge-solve.mts +0 -81
  186. package/tb_agents/opencode_refine_agent.py +0 -117
  187. package/tb_agents/opencode_supervisor_agent.py +0 -239
@@ -1,220 +0,0 @@
1
- /**
2
- * HumanEval deployable-verifier gate — the thesis test the answer-oracle benches
3
- * (aec-bench, finsearch) could not reach.
4
- *
5
- * The repo's deployable self-consistency selector LOSES on both aec-bench (−9.4pp)
6
- * and finsearch (−8.2pp): diversity opens a large ORACLE ceiling, but the selector
7
- * cannot capture it because those benches verify by RECOMPUTING the gold answer (an
8
- * oracle, not a deployable check). Code+tests is the deployable-checker regime — the
9
- * agent runs the task's provided tests (which it legitimately has in production) and
10
- * keeps a passer. This file asks: at EQUAL k, does diverse@k + a deployable
11
- * verifier-grounded pick beat random@k + the same pick, and beat blind@1?
12
- *
13
- * SCOPE — read the numbers as a LOWER BOUND. Here a "shot" is a single STATELESS
14
- * completion (one router call, `maxTurns=0`, NO `AgentProfile` / sandbox / keystone —
15
- * it calls the router directly). That is the *degenerate* rollout (HARNESS.md's
16
- * "Terminology"): it isolates the SELECTOR with the generator unable to self-correct,
17
- * so it measures the selector's value at its MAXIMUM. A real rollout (an `AgentProfile`
18
- * through `runAgentRounds`, `maxTurns>0` over a persistent workspace) self-verifies by
19
- * iterating, which shrinks the external selector's job — that is the next experiment,
20
- * not this one. A positive result here is the science (the selector works in a
21
- * deployable-checker regime), not the product.
22
- *
23
- * Two paired arms over the SAME tasks (each "shot" = one stateless completion):
24
- * random@K — K identical-base-prompt completions/task (the compute control)
25
- * diverse@K — K completions, the i-th prefixed with composeStrategies(base, K)[i]
26
- *
27
- * The DEPLOYABLE CHECKER runs each candidate against the task's own `test` in an
28
- * isolated `--network=none` python:3.12-slim container (hard timeout) — exit 0 = pass.
29
- * No gold `canonical_solution` is ever shown to the model or the selector.
30
- *
31
- * Metrics (paired across the same tasks):
32
- * blind pass@1 — first attempt passes
33
- * random-pass@k — verifierGroundedSelect over the K random shots passes
34
- * diverse-pass@k — verifierGroundedSelect over the K diverse shots passes
35
- * oracle@k — any of the K passes (the ceiling)
36
- * self-consistency@k — selfConsistencySelect (answer-clustering, NOT the checker)
37
- * over the diverse shots — the direct contrast with the
38
- * −8/−9pp answer-oracle selector.
39
- * Each delta carries a 95% paired-bootstrap CI.
40
- *
41
- * N=20 K=4 npx tsx src/humaneval-gate.mts
42
- */
43
-
44
- import { composeStrategies } from './directives'
45
- import { basePrompt, type CheckResult, extractCode, type HumanEvalTask, loadHumanEval, runChecker } from './benchmarks/humaneval'
46
- import {
47
- benchRouterProfile,
48
- type BenchRouterTarget,
49
- runBenchRouterTurn,
50
- withBenchProfile,
51
- } from './router-turn'
52
- import { selfConsistencySelect, verifierGroundedSelect } from './selector'
53
- import { type PairedLift, pairedLift, pool } from './stats.mts'
54
-
55
- const dockerImage = 'python:3.12-slim'
56
- const dockerTimeoutMs = Number(process.env.DOCKER_TIMEOUT_MS ?? 20000)
57
-
58
- function must(name: string): string {
59
- const v = process.env[name]
60
- if (!v) throw new Error(`env ${name} is required`)
61
- return v
62
- }
63
-
64
- interface Attempt {
65
- code: string
66
- pass: number
67
- }
68
-
69
- interface TaskOutcome {
70
- taskId: string
71
- randomAttempts: Attempt[]
72
- diverseAttempts: Attempt[]
73
- }
74
-
75
- const pct = (x: number) => `${(x * 100).toFixed(1)}%`
76
- const pp = (x: number) => `${x >= 0 ? '+' : ''}${(x * 100).toFixed(1)}pp`
77
-
78
- async function main(): Promise<void> {
79
- const n = Number(process.env.N ?? 20)
80
- const k = Number(process.env.K ?? 4)
81
- const offset = Number(process.env.OFFSET ?? 0)
82
- const model = process.env.WORKER_MODEL ?? 'deepseek-v4-flash'
83
- const routerBaseUrl = process.env.ROUTER_BASE ?? 'https://router.tangle.tools/v1'
84
- const routerKey = must('TANGLE_API_KEY')
85
- const solveConcurrency = Number(process.env.CONCURRENCY ?? 8)
86
- const dockerConcurrency = Number(process.env.DOCKER_CONCURRENCY ?? 6)
87
-
88
- if (!Number.isInteger(n) || n < 1) throw new Error(`N must be a positive integer, got ${process.env.N}`)
89
- if (!Number.isInteger(k) || k < 1) throw new Error(`K must be a positive integer, got ${process.env.K}`)
90
- if (!Number.isInteger(offset) || offset < 0) throw new Error(`OFFSET must be a non-negative integer, got ${process.env.OFFSET}`)
91
-
92
- const cfg: BenchRouterTarget = {
93
- routerBaseUrl,
94
- routerKey,
95
- profile: benchRouterProfile('humaneval-gate-worker', model, {
96
- temperature: Number(process.env.TEMPERATURE ?? '0.8'),
97
- }),
98
- }
99
-
100
- console.log(`=== HumanEval deployable-verifier gate · N=${n} K=${k} offset=${offset} model=${model} ===`)
101
- console.log(` router=${routerBaseUrl} docker=${dockerImage} (--network=none, timeout ${dockerTimeoutMs}ms)`)
102
- console.log(
103
- ' regime: STATELESS single completions (one exact AgentProfile turn, no sandbox) — the selector no-self-correction LOWER BOUND, not a rollout/product number',
104
- )
105
-
106
- const tasks = await loadHumanEval(n, offset)
107
- console.log(`loaded ${tasks.length} HumanEval task(s): ${tasks.map((t) => t.taskId).join(', ')}`)
108
-
109
- // Build the full work set: per task, K random + K diverse solve calls.
110
- type Unit = { taskIdx: number; arm: 'random' | 'diverse'; shot: number; prompt: string }
111
- const units: Unit[] = []
112
- for (let ti = 0; ti < tasks.length; ti += 1) {
113
- const task = tasks[ti] as HumanEvalTask
114
- const base = basePrompt(task)
115
- const diverse = composeStrategies(base, k)
116
- for (let s = 0; s < k; s += 1) {
117
- units.push({ taskIdx: ti, arm: 'random', shot: s, prompt: base })
118
- units.push({ taskIdx: ti, arm: 'diverse', shot: s, prompt: diverse[s] as string })
119
- }
120
- }
121
- console.log(`\n▶ solving ${units.length} attempts (${tasks.length} tasks × ${k} shots × 2 arms) via router, conc=${solveConcurrency}`)
122
-
123
- const codes = await pool(units, solveConcurrency, async (u) => {
124
- const res = await runBenchRouterTurn(
125
- {
126
- routerBaseUrl: cfg.routerBaseUrl,
127
- routerKey: cfg.routerKey,
128
- profile: withBenchProfile(cfg.profile, { name: 'humaneval-gate-worker' }),
129
- },
130
- u.prompt,
131
- )
132
- return extractCode(res.finalText)
133
- })
134
-
135
- console.log(`▶ running ${codes.length} candidates through the Docker deployable checker, conc=${dockerConcurrency}`)
136
- const passes = await pool(units, dockerConcurrency, (u, i) => runChecker(tasks[u.taskIdx] as HumanEvalTask, codes[i] as string))
137
-
138
- // Regroup into per-task arms, preserving shot order.
139
- const outcomes: TaskOutcome[] = tasks.map((t) => ({ taskId: t.taskId, randomAttempts: [], diverseAttempts: [] }))
140
- units.forEach((u, i) => {
141
- const att: Attempt = { code: codes[i] as string, pass: (passes[i] as CheckResult).pass }
142
- const o = outcomes[u.taskIdx] as TaskOutcome
143
- if (u.arm === 'random') o.randomAttempts[u.shot] = att
144
- else o.diverseAttempts[u.shot] = att
145
- })
146
-
147
- // Per-task {0,1} outcomes for each metric, aligned across the same tasks.
148
- const blind: number[] = []
149
- const randomAtK: number[] = []
150
- const diverseAtK: number[] = []
151
- const oracleAtK: number[] = []
152
- const selfConsistencyAtK: number[] = []
153
-
154
- for (const o of outcomes) {
155
- const rPasses = o.randomAttempts.map((a) => a.pass)
156
- const dPasses = o.diverseAttempts.map((a) => a.pass)
157
- // blind = first random shot (one-shot baseline)
158
- blind.push((o.randomAttempts[0] as Attempt).pass)
159
- // random@k = verifier-grounded pick over the K random shots
160
- randomAtK.push((o.randomAttempts[verifierGroundedSelect(rPasses)] as Attempt).pass)
161
- // diverse@k = verifier-grounded pick over the K diverse shots
162
- diverseAtK.push((o.diverseAttempts[verifierGroundedSelect(dPasses)] as Attempt).pass)
163
- // oracle@k = any diverse shot passes (the ceiling the diverse arm opens)
164
- oracleAtK.push(dPasses.some((p) => p > 0) ? 1 : 0)
165
- // self-consistency@k = answer-clustering pick over the diverse shots (the
166
- // −8/−9pp answer-oracle selector; uses code text, NOT the checker).
167
- const scIdx = selfConsistencySelect(o.diverseAttempts.map((a) => a.code))
168
- selfConsistencyAtK.push((o.diverseAttempts[scIdx] as Attempt).pass)
169
- }
170
-
171
- const rate = (xs: number[]) => xs.reduce((s, x) => s + x, 0) / xs.length
172
-
173
- const blindRate = rate(blind)
174
- const randomRate = rate(randomAtK)
175
- const diverseRate = rate(diverseAtK)
176
- const oracleRate = rate(oracleAtK)
177
- const scRate = rate(selfConsistencyAtK)
178
- // oracle ceiling of the RANDOM arm — for the diverse-vs-random ceiling contrast.
179
- const randomOracleRate = rate(outcomes.map((o) => (o.randomAttempts.some((a) => a.pass > 0) ? 1 : 0)))
180
-
181
- console.log(`\n${'='.repeat(78)}`)
182
- console.log(`RESULTS · HumanEval · n=${tasks.length} tasks · k=${k} · model=${model}`)
183
- console.log('='.repeat(78))
184
- console.log(` blind pass@1 ${pct(blindRate)}`)
185
- console.log(` random-pass@k (verifier) ${pct(randomRate)}`)
186
- console.log(` diverse-pass@k (verifier) ${pct(diverseRate)}`)
187
- console.log(` oracle@k (diverse, any) ${pct(oracleRate)} [random-arm oracle ${pct(randomOracleRate)}]`)
188
- console.log(` self-consistency@k ${pct(scRate)} (answer-clustering selector over the diverse set)`)
189
-
190
- const liftDiverseVsRandom = pairedLift(randomAtK, diverseAtK)
191
- const liftRandomVsBlind = pairedLift(blind, randomAtK)
192
- const liftDiverseVsBlind = pairedLift(blind, diverseAtK)
193
- const liftScVsRandom = pairedLift(randomAtK, selfConsistencyAtK)
194
- const liftDiverseVsScVerifier = pairedLift(selfConsistencyAtK, diverseAtK)
195
-
196
- const row = (label: string, l: PairedLift) =>
197
- console.log(
198
- ` ${label.padEnd(34)} ${pp(l.point).padStart(7)} CI [${pp(l.low)}, ${pp(l.high)}] (paired ${l.pairs}, discordant ${l.discordant})`,
199
- )
200
-
201
- console.log(`\n PAIRED LIFTS (95% bootstrap CI, B=10000):`)
202
- row('diverse@k − random@k (verifier)', liftDiverseVsRandom)
203
- row('random@k − blind (compute)', liftRandomVsBlind)
204
- row('diverse@k − blind (total)', liftDiverseVsBlind)
205
- row('self-consistency@k − random@k', liftScVsRandom)
206
- row('verifier-pick − sc-pick (diverse)', liftDiverseVsScVerifier)
207
-
208
- const sig = (l: PairedLift) => (l.low > 0 ? 'POSITIVE (CI excludes 0)' : l.high < 0 ? 'NEGATIVE (CI excludes 0)' : 'n.s. (CI spans 0)')
209
- console.log(`\n VERDICT:`)
210
- console.log(` diverse@k beats blind@1? ${liftDiverseVsBlind.point > 0 ? 'yes' : 'no'} (${pp(liftDiverseVsBlind.point)}, ${sig(liftDiverseVsBlind)})`)
211
- console.log(` diverse@k beats random@k @k? ${liftDiverseVsRandom.point > 0 ? 'yes' : 'no'} (${pp(liftDiverseVsRandom.point)}, ${sig(liftDiverseVsRandom)})`)
212
- console.log(` is the diversity ceiling capturable with a deployable checker?`)
213
- console.log(` diverse oracle ${pct(oracleRate)} → verifier-pick ${pct(diverseRate)} (gap ${pp(oracleRate - diverseRate)});`)
214
- console.log(` contrast: the SAME diverse set under the answer-clustering selector resolves ${pct(scRate)} (verifier−sc ${pp(diverseRate - scRate)}).`)
215
- }
216
-
217
- main().catch((err) => {
218
- console.error(`humaneval-gate: ${err instanceof Error ? err.message : String(err)}`)
219
- process.exit(1)
220
- })