skillfit 0.15.0 → 0.15.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 (876) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +76 -33
  3. package/README.zh-CN.md +75 -32
  4. package/benches/README.md +1 -1
  5. package/dist/agents/accounting.js +27 -10
  6. package/dist/agents/adapters/api.js +59 -32
  7. package/dist/agents/adapters/cli.js +208 -111
  8. package/dist/agents/adapters/codex-usage.js +51 -25
  9. package/dist/agents/adapters/kimi-usage.js +23 -16
  10. package/dist/agents/call-budget.js +67 -33
  11. package/dist/agents/call-limits.js +11 -7
  12. package/dist/agents/contracts.js +2 -2
  13. package/dist/agents/environment.js +46 -22
  14. package/dist/agents/execution.js +32 -19
  15. package/dist/agents/health.js +88 -66
  16. package/dist/agents/installed-skills.js +28 -9
  17. package/dist/agents/matrix.js +5 -3
  18. package/dist/agents/mcp-probe.js +157 -146
  19. package/dist/agents/observation/model-identity.js +96 -49
  20. package/dist/agents/observation/trigger-contract.js +40 -21
  21. package/dist/agents/observation/trigger-detection.js +100 -61
  22. package/dist/agents/preflight-contract.js +40 -20
  23. package/dist/agents/preflight.js +136 -70
  24. package/dist/agents/session-observation.js +39 -29
  25. package/dist/agents/timeout.js +14 -6
  26. package/dist/bench/authoring.js +320 -201
  27. package/dist/bench/claims.js +6 -3
  28. package/dist/bench/constants.js +1 -1
  29. package/dist/bench/controls.js +123 -91
  30. package/dist/bench/diagnostics.js +57 -24
  31. package/dist/bench/draft.js +133 -68
  32. package/dist/bench/gates/check.js +79 -69
  33. package/dist/bench/gates/error.js +26 -17
  34. package/dist/bench/gates/summary.js +7 -7
  35. package/dist/bench/gates/timeout.js +2 -2
  36. package/dist/bench/gates/verifier.js +12 -5
  37. package/dist/bench/location.js +18 -10
  38. package/dist/bench/output-layout.js +5 -5
  39. package/dist/bench/read.js +74 -42
  40. package/dist/bench/scope.js +56 -34
  41. package/dist/bench/source.js +32 -20
  42. package/dist/bench/templates.js +30 -22
  43. package/dist/cli/bench-check-report.js +34 -10
  44. package/dist/cli/bench-manage.js +6 -6
  45. package/dist/cli/bench.js +45 -38
  46. package/dist/cli/confirm.js +3 -3
  47. package/dist/cli/definition.js +172 -114
  48. package/dist/cli/doctor.js +14 -14
  49. package/dist/cli/eval-cli.js +3 -3
  50. package/dist/cli/eval-component.js +21 -7
  51. package/dist/cli/eval-display.js +66 -55
  52. package/dist/cli/eval-plan.js +7 -2
  53. package/dist/cli/eval-report.js +114 -83
  54. package/dist/cli/eval-single-arm-report.js +53 -33
  55. package/dist/cli/eval.js +2 -2
  56. package/dist/cli/evaluation-host.js +5 -5
  57. package/dist/cli/evaluation-report.js +1 -1
  58. package/dist/cli/main.js +350 -196
  59. package/dist/cli/mcp.js +7 -7
  60. package/dist/cli/report.js +40 -17
  61. package/dist/cli/trigger-summary.js +23 -23
  62. package/dist/cli.js +1 -1
  63. package/dist/commands/bench-draft.test.js +226 -96
  64. package/dist/commands/bench-source.test.js +70 -53
  65. package/dist/commands/bench.js +1 -1
  66. package/dist/commands/bundle.js +1 -1
  67. package/dist/commands/eval-api-failure.test.js +61 -28
  68. package/dist/commands/eval-cli.js +1 -1
  69. package/dist/commands/eval-export.js +1 -1
  70. package/dist/commands/eval-layout.test.js +148 -70
  71. package/dist/commands/eval-single-arm-replay.js +1 -1
  72. package/dist/commands/eval.js +1 -1
  73. package/dist/commands/evaluation-report.js +1 -1
  74. package/dist/commands/install.js +1 -1
  75. package/dist/composition.js +41 -20
  76. package/dist/configuration/bundle.js +109 -89
  77. package/dist/configuration/constants.js +1 -1
  78. package/dist/configuration/install.js +184 -112
  79. package/dist/configuration/setup.js +64 -41
  80. package/dist/configuration/transaction.js +13 -11
  81. package/dist/configuration/upstream.js +61 -43
  82. package/dist/evaluation/application/calibration.js +231 -85
  83. package/dist/evaluation/application/evaluation.js +166 -56
  84. package/dist/evaluation/application/export.js +107 -67
  85. package/dist/evaluation/application/planning.js +289 -114
  86. package/dist/evaluation/application/preflight-error.js +11 -4
  87. package/dist/evaluation/application/preflight.js +54 -21
  88. package/dist/evaluation/application/read.js +1 -1
  89. package/dist/evaluation/application/request.js +45 -21
  90. package/dist/evaluation/application/self-test.js +188 -75
  91. package/dist/evaluation/execution/activation.js +91 -65
  92. package/dist/evaluation/execution/budget.js +20 -9
  93. package/dist/evaluation/execution/control-executor.js +34 -16
  94. package/dist/evaluation/execution/interrupted.js +2 -2
  95. package/dist/evaluation/execution/judge.js +51 -26
  96. package/dist/evaluation/execution/mock-executor.js +7 -7
  97. package/dist/evaluation/execution/paired.js +104 -72
  98. package/dist/evaluation/execution/prompt.js +21 -15
  99. package/dist/evaluation/measurement/acceptance.js +143 -68
  100. package/dist/evaluation/measurement/costs.js +39 -29
  101. package/dist/evaluation/measurement/efficiency.js +51 -18
  102. package/dist/evaluation/measurement/invocation-costs.js +50 -29
  103. package/dist/evaluation/measurement/judge-protocol.js +16 -18
  104. package/dist/evaluation/measurement/paired-contract.js +4 -3
  105. package/dist/evaluation/measurement/policy.js +48 -31
  106. package/dist/evaluation/measurement/report.js +51 -43
  107. package/dist/evaluation/measurement/scope.js +25 -7
  108. package/dist/evaluation/measurement/statistics.js +7 -3
  109. package/dist/evaluation/measurement/trial-summary.js +20 -12
  110. package/dist/evaluation/measurement/trigger-summary.js +1 -1
  111. package/dist/evaluation/records/assess.js +4 -2
  112. package/dist/evaluation/records/audit.js +336 -202
  113. package/dist/evaluation/records/contracts.js +44 -21
  114. package/dist/evaluation/records/formats.js +36 -19
  115. package/dist/evaluation/records/input-snapshot.js +88 -53
  116. package/dist/evaluation/records/judge-audit.js +37 -31
  117. package/dist/evaluation/records/manifest.js +302 -223
  118. package/dist/evaluation/records/model-identity.js +39 -29
  119. package/dist/evaluation/records/read.js +122 -42
  120. package/dist/evaluation/records/replay-package.js +81 -48
  121. package/dist/evaluation/records/session.js +200 -93
  122. package/dist/evaluation/records/single-arm-audit.js +313 -195
  123. package/dist/evaluation/records/single-arm-read.js +235 -112
  124. package/dist/evaluation/targets/native-diff.js +22 -13
  125. package/dist/evaluation/targets/output-layout.js +6 -6
  126. package/dist/evaluation/targets/skill.js +16 -13
  127. package/dist/evaluation/targets/workspace.js +19 -19
  128. package/dist/harness/bench-location.test.js +21 -21
  129. package/dist/harness/executors/cli.js +1 -1
  130. package/dist/harness/hash.js +1 -1
  131. package/dist/harness/interruption.js +1 -1
  132. package/dist/harness/replay-package.js +1 -1
  133. package/dist/harness/single-arm-audit.js +1 -1
  134. package/dist/harness/verifier-timeout.test.js +63 -32
  135. package/dist/matrix/agents.json +29 -6
  136. package/dist/matrix/agents.schema.json +17 -3
  137. package/dist/resources/experiment.js +18 -16
  138. package/dist/resources/frontmatter.js +6 -6
  139. package/dist/resources/installed-skill.js +32 -22
  140. package/dist/resources/skill.js +10 -10
  141. package/dist/shared/backup.js +1 -1
  142. package/dist/shared/cancellation.js +10 -4
  143. package/dist/shared/command.js +8 -7
  144. package/dist/shared/digest.js +2 -2
  145. package/dist/shared/hash.js +9 -9
  146. package/dist/shared/input-directories.js +6 -5
  147. package/dist/shared/json.js +10 -6
  148. package/dist/shared/local-files.js +8 -10
  149. package/dist/shared/output-path.js +4 -4
  150. package/dist/shared/package-root.js +7 -5
  151. package/dist/shared/process-tree.js +20 -14
  152. package/dist/shared/process.js +20 -15
  153. package/dist/shared/read-json.js +3 -3
  154. package/dist/shared/timing.js +22 -11
  155. package/dist/shared/version.js +3 -3
  156. package/dist/usage/receipts.js +41 -27
  157. package/docs/README.md +6 -6
  158. package/docs/assets/skillfit-report.svg +17 -0
  159. package/docs/guides/bench-authoring.md +1 -1
  160. package/docs/guides/first-real-eval.md +16 -0
  161. package/docs/maintainers/architecture.md +3 -3
  162. package/docs/maintainers/releases.md +5 -0
  163. package/docs/reference/evaluation-reports.md +3 -1
  164. package/docs/reference/metrics.md +1 -1
  165. package/package.json +9 -4
  166. package/skills/skillfit/SKILL.md +14 -15
  167. package/tools/verify/recipes/0.11.0-feature-smoke.mjs +491 -140
  168. package/tools/verify/recipes/release-docs-smoke.mjs +38 -21
  169. package/tools/verify/recipes/release-feature-smoke.mjs +190 -90
  170. package/benches/contrib/README.md +0 -73
  171. package/benches/contrib/oss-lru-cache/README.md +0 -27
  172. package/benches/contrib/oss-lru-cache/bench.json +0 -37
  173. package/benches/contrib/oss-lru-cache/provenance.json +0 -62
  174. package/benches/contrib/oss-lru-cache/runtime.mjs +0 -32
  175. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/LICENSE +0 -15
  176. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/README.md +0 -3
  177. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/index.js +0 -1044
  178. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/package.json +0 -11
  179. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/runtime.mjs +0 -32
  180. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/test.mjs +0 -11
  181. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/prompt.md +0 -5
  182. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/LICENSE +0 -15
  183. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/answer.md +0 -11
  184. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/index.js +0 -1053
  185. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/oracle.mjs +0 -8
  186. package/benches/contrib/oss-lru-cache/tasks/fetch-abort/verify.mjs +0 -3
  187. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/LICENSE.md +0 -55
  188. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/README.md +0 -3
  189. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/package.json +0 -11
  190. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/runtime.mjs +0 -32
  191. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-browser.ts +0 -11
  192. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-cjs.cts +0 -11
  193. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-esm.mts +0 -29
  194. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-node.ts +0 -7
  195. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel.ts +0 -6
  196. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/index.ts +0 -3148
  197. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/perf.ts +0 -17
  198. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/test.mjs +0 -11
  199. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/prompt.md +0 -5
  200. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/LICENSE.md +0 -55
  201. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/answer.md +0 -11
  202. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/oracle.mjs +0 -7
  203. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-browser.ts +0 -11
  204. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-cjs.cts +0 -11
  205. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-esm.mts +0 -29
  206. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-node.ts +0 -7
  207. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel.ts +0 -6
  208. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/index.ts +0 -3174
  209. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/perf.ts +0 -17
  210. package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/verify.mjs +0 -3
  211. package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/LICENSE +0 -15
  212. package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/README.md +0 -3
  213. package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/index.js +0 -1028
  214. package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/package.json +0 -11
  215. package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/runtime.mjs +0 -32
  216. package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/test.mjs +0 -11
  217. package/benches/contrib/oss-lru-cache/tasks/fetch-size/prompt.md +0 -5
  218. package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/LICENSE +0 -15
  219. package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/answer.md +0 -11
  220. package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/index.js +0 -1028
  221. package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/oracle.mjs +0 -7
  222. package/benches/contrib/oss-lru-cache/tasks/fetch-size/verify.mjs +0 -3
  223. package/benches/contrib/oss-lru-cache/verifiers/cases.mjs +0 -74
  224. package/benches/contrib/oss-lru-cache/verifiers/oracle.mjs +0 -9
  225. package/benches/contrib/oss-lru-cache/verifiers/probe.mjs +0 -14
  226. package/benches/contrib/oss-lru-cache/verifiers/shared.mjs +0 -131
  227. package/benches/contrib/oss-lru-cache/verifiers/test-reporter.mjs +0 -29
  228. package/benches/contrib/oss-mcp-use-utf8/LICENSE.upstream +0 -21
  229. package/benches/contrib/oss-mcp-use-utf8/README.md +0 -57
  230. package/benches/contrib/oss-mcp-use-utf8/bench.json +0 -16
  231. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/LICENSE +0 -21
  232. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/package.json +0 -3
  233. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/src/ext-apps-bridge.js +0 -3
  234. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/src/resolve-view-resource.ts +0 -96
  235. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/test/basic.test.mjs +0 -13
  236. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/prompt.md +0 -8
  237. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/README.md +0 -5
  238. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/oracle.mjs +0 -11
  239. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/solutions/view-utf8/src/resolve-view-resource.ts +0 -96
  240. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/solutions/view-utf8/test/utf8.regression.test.mjs +0 -14
  241. package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/verify.mjs +0 -120
  242. package/benches/contrib/oss-minipass/README.md +0 -32
  243. package/benches/contrib/oss-minipass/bench.json +0 -43
  244. package/benches/contrib/oss-minipass/provenance.json +0 -87
  245. package/benches/contrib/oss-minipass/tasks/async-end/fixture/LICENSE +0 -15
  246. package/benches/contrib/oss-minipass/tasks/async-end/fixture/README.md +0 -717
  247. package/benches/contrib/oss-minipass/tasks/async-end/fixture/UPSTREAM.package.json +0 -39
  248. package/benches/contrib/oss-minipass/tasks/async-end/fixture/index.js +0 -615
  249. package/benches/contrib/oss-minipass/tasks/async-end/fixture/package.json +0 -8
  250. package/benches/contrib/oss-minipass/tasks/async-end/fixture/runtime.cjs +0 -11
  251. package/benches/contrib/oss-minipass/tasks/async-end/fixture/test.mjs +0 -16
  252. package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/LICENSE +0 -15
  253. package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/README.md +0 -204
  254. package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/iterator.js +0 -8
  255. package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/package.json +0 -29
  256. package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/yallist.js +0 -426
  257. package/benches/contrib/oss-minipass/tasks/async-end/prompt.md +0 -3
  258. package/benches/contrib/oss-minipass/tasks/async-end/reference/LICENSE +0 -15
  259. package/benches/contrib/oss-minipass/tasks/async-end/reference/README.md +0 -717
  260. package/benches/contrib/oss-minipass/tasks/async-end/reference/UPSTREAM.package.json +0 -39
  261. package/benches/contrib/oss-minipass/tasks/async-end/reference/index.js +0 -622
  262. package/benches/contrib/oss-minipass/tasks/async-end/reference/oracle.mjs +0 -4
  263. package/benches/contrib/oss-minipass/tasks/async-end/reference/package.json +0 -8
  264. package/benches/contrib/oss-minipass/tasks/async-end/reference/regression.test.mjs +0 -10
  265. package/benches/contrib/oss-minipass/tasks/async-end/reference/runtime.cjs +0 -11
  266. package/benches/contrib/oss-minipass/tasks/async-end/reference/test.mjs +0 -16
  267. package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/LICENSE +0 -15
  268. package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/README.md +0 -204
  269. package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/iterator.js +0 -8
  270. package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/package.json +0 -29
  271. package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/yallist.js +0 -426
  272. package/benches/contrib/oss-minipass/tasks/async-end/verify.mjs +0 -2
  273. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/LICENSE +0 -15
  274. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/README.md +0 -613
  275. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/UPSTREAM.package.json +0 -39
  276. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/index.js +0 -594
  277. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/package.json +0 -8
  278. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/runtime.cjs +0 -11
  279. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/test.mjs +0 -16
  280. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/LICENSE +0 -15
  281. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/README.md +0 -204
  282. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/iterator.js +0 -8
  283. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/package.json +0 -29
  284. package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/yallist.js +0 -426
  285. package/benches/contrib/oss-minipass/tasks/buffered-readable/prompt.md +0 -3
  286. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/LICENSE +0 -15
  287. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/README.md +0 -613
  288. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/UPSTREAM.package.json +0 -39
  289. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/index.js +0 -596
  290. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/oracle.mjs +0 -4
  291. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/package.json +0 -8
  292. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/regression.test.mjs +0 -9
  293. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/runtime.cjs +0 -11
  294. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/test.mjs +0 -16
  295. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/LICENSE +0 -15
  296. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/README.md +0 -204
  297. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/iterator.js +0 -8
  298. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/package.json +0 -29
  299. package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/yallist.js +0 -426
  300. package/benches/contrib/oss-minipass/tasks/buffered-readable/verify.mjs +0 -2
  301. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/LICENSE +0 -15
  302. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/README.md +0 -205
  303. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/UPSTREAM.package.json +0 -34
  304. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/index.js +0 -415
  305. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/package.json +0 -8
  306. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/runtime.cjs +0 -11
  307. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/test.mjs +0 -16
  308. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/LICENSE +0 -15
  309. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/README.md +0 -204
  310. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/iterator.js +0 -8
  311. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/package.json +0 -29
  312. package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/yallist.js +0 -426
  313. package/benches/contrib/oss-minipass/tasks/end-listeners/prompt.md +0 -3
  314. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/LICENSE +0 -15
  315. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/README.md +0 -205
  316. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/UPSTREAM.package.json +0 -34
  317. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/index.js +0 -407
  318. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/oracle.mjs +0 -4
  319. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/package.json +0 -8
  320. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/regression.test.mjs +0 -9
  321. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/runtime.cjs +0 -11
  322. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/test.mjs +0 -16
  323. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/LICENSE +0 -15
  324. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/README.md +0 -204
  325. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/iterator.js +0 -8
  326. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/package.json +0 -29
  327. package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/yallist.js +0 -426
  328. package/benches/contrib/oss-minipass/tasks/end-listeners/verify.mjs +0 -2
  329. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/LICENSE +0 -15
  330. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/README.md +0 -613
  331. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/UPSTREAM.package.json +0 -39
  332. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/index.js +0 -538
  333. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/package.json +0 -8
  334. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/runtime.cjs +0 -11
  335. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/test.mjs +0 -16
  336. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/LICENSE +0 -15
  337. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/README.md +0 -204
  338. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/iterator.js +0 -8
  339. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/package.json +0 -29
  340. package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/yallist.js +0 -426
  341. package/benches/contrib/oss-minipass/tasks/pipeline-order/prompt.md +0 -3
  342. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/LICENSE +0 -15
  343. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/README.md +0 -613
  344. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/UPSTREAM.package.json +0 -39
  345. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/index.js +0 -545
  346. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/oracle.mjs +0 -4
  347. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/package.json +0 -8
  348. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/regression.test.mjs +0 -19
  349. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/runtime.cjs +0 -11
  350. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/test.mjs +0 -16
  351. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/LICENSE +0 -15
  352. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/README.md +0 -204
  353. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/iterator.js +0 -8
  354. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/package.json +0 -29
  355. package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/yallist.js +0 -426
  356. package/benches/contrib/oss-minipass/tasks/pipeline-order/verify.mjs +0 -2
  357. package/benches/contrib/oss-minipass/upstream/async-end.patch +0 -83
  358. package/benches/contrib/oss-minipass/upstream/buffered-readable.patch +0 -79
  359. package/benches/contrib/oss-minipass/upstream/end-listeners.patch +0 -77
  360. package/benches/contrib/oss-minipass/upstream/pipeline-order.patch +0 -173
  361. package/benches/contrib/oss-minipass/verifiers/cases.mjs +0 -88
  362. package/benches/contrib/oss-minipass/verifiers/grade.mjs +0 -35
  363. package/benches/contrib/oss-minipass/verifiers/probe.mjs +0 -10
  364. package/benches/contrib/oss-minipass/verifiers/regression-evidence.mjs +0 -98
  365. package/benches/contrib/oss-minipass/verifiers/test-reporter.mjs +0 -29
  366. package/benches/contrib/oss-normalize-url/README.md +0 -31
  367. package/benches/contrib/oss-normalize-url/bench.json +0 -16
  368. package/benches/contrib/oss-normalize-url/provenance.json +0 -41
  369. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/index.d.ts +0 -303
  370. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/index.js +0 -285
  371. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/license +0 -9
  372. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/package.json +0 -57
  373. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/readme.md +0 -312
  374. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/test.js +0 -427
  375. package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/test.mjs +0 -4
  376. package/benches/contrib/oss-normalize-url/tasks/query-shape/prompt.md +0 -7
  377. package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/index.js +0 -294
  378. package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/license +0 -9
  379. package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/oracle.mjs +0 -7
  380. package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/query-shape.md +0 -12
  381. package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/query-shape.regression.test.mjs +0 -6
  382. package/benches/contrib/oss-normalize-url/tasks/query-shape/verify.mjs +0 -40
  383. package/benches/contrib/oss-normalize-url/verifiers/cases.mjs +0 -26
  384. package/benches/contrib/oss-normalize-url/verifiers/probe.mjs +0 -10
  385. package/benches/contrib/oss-normalize-url/verifiers/regression-evidence.mjs +0 -98
  386. package/benches/contrib/oss-normalize-url/verifiers/test-reporter.mjs +0 -29
  387. package/benches/contrib/oss-skill-followup/README.md +0 -54
  388. package/benches/contrib/oss-skill-followup/bench.json +0 -79
  389. package/benches/contrib/oss-skill-followup/provenance.json +0 -730
  390. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/LICENSE +0 -11
  391. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/README.md +0 -61
  392. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/index.js +0 -93
  393. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/package.json +0 -9
  394. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/test-clock.mjs +0 -64
  395. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/test.mjs +0 -22
  396. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/upstream-package.json +0 -47
  397. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/prompt.md +0 -3
  398. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/reference/index.js +0 -97
  399. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/reference/oracle.mjs +0 -1
  400. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/reference/regression.test.mjs +0 -2
  401. package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/verify.mjs +0 -1
  402. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/LICENSE +0 -21
  403. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/README.md +0 -69
  404. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/index.js +0 -70
  405. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/package.json +0 -9
  406. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/test-clock.mjs +0 -64
  407. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/test.mjs +0 -22
  408. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/upstream-package.json +0 -27
  409. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/prompt.md +0 -3
  410. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/reference/index.js +0 -72
  411. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/reference/oracle.mjs +0 -1
  412. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/reference/regression.test.mjs +0 -2
  413. package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/verify.mjs +0 -1
  414. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/LICENSE +0 -23
  415. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/README.md +0 -46
  416. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/index.js +0 -56
  417. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/package.json +0 -9
  418. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/test-clock.mjs +0 -64
  419. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/test.mjs +0 -22
  420. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/upstream-package.json +0 -22
  421. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/prompt.md +0 -3
  422. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/reference/index.js +0 -56
  423. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/reference/oracle.mjs +0 -1
  424. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/reference/regression.test.mjs +0 -2
  425. package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/verify.mjs +0 -1
  426. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/LICENSE +0 -24
  427. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/README.md +0 -469
  428. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/index.js +0 -1645
  429. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/package.json +0 -9
  430. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/test-clock.mjs +0 -64
  431. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/test.mjs +0 -22
  432. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/upstream-package.json +0 -86
  433. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/prompt.md +0 -3
  434. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/reference/index.js +0 -1643
  435. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/reference/oracle.mjs +0 -1
  436. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/reference/regression.test.mjs +0 -2
  437. package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/verify.mjs +0 -1
  438. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/LICENSE +0 -24
  439. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/README.md +0 -470
  440. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/index.js +0 -1676
  441. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/package.json +0 -9
  442. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/test-clock.mjs +0 -64
  443. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/test.mjs +0 -22
  444. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/upstream-package.json +0 -86
  445. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/prompt.md +0 -3
  446. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/reference/index.js +0 -1676
  447. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/reference/oracle.mjs +0 -1
  448. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/reference/regression.test.mjs +0 -2
  449. package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/verify.mjs +0 -1
  450. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/LICENSE +0 -9
  451. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/README.md +0 -136
  452. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/index.js +0 -153
  453. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/package.json +0 -9
  454. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/test-clock.mjs +0 -64
  455. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/test.mjs +0 -22
  456. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/upstream-package.json +0 -53
  457. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/prompt.md +0 -3
  458. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/reference/index.js +0 -155
  459. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/reference/oracle.mjs +0 -1
  460. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/reference/regression.test.mjs +0 -2
  461. package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/verify.mjs +0 -1
  462. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/LICENSE +0 -9
  463. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/README.md +0 -92
  464. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/index.js +0 -57
  465. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/package.json +0 -9
  466. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/test-clock.mjs +0 -64
  467. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/test.mjs +0 -22
  468. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/upstream-package.json +0 -53
  469. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/prompt.md +0 -3
  470. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/reference/index.js +0 -57
  471. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/reference/oracle.mjs +0 -1
  472. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/reference/regression.test.mjs +0 -2
  473. package/benches/contrib/oss-skill-followup/tasks/promise-method-context/verify.mjs +0 -1
  474. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/LICENSE +0 -9
  475. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/README.md +0 -102
  476. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/index.js +0 -117
  477. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/package.json +0 -9
  478. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/test-clock.mjs +0 -64
  479. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/test.mjs +0 -22
  480. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/upstream-package.json +0 -53
  481. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/prompt.md +0 -3
  482. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/reference/index.js +0 -112
  483. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/reference/oracle.mjs +0 -1
  484. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/reference/regression.test.mjs +0 -2
  485. package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/verify.mjs +0 -1
  486. package/benches/contrib/oss-skill-followup/test-clock.mjs +0 -64
  487. package/benches/contrib/oss-skill-followup/verifiers/cases.mjs +0 -214
  488. package/benches/contrib/oss-skill-followup/verifiers/grade.mjs +0 -35
  489. package/benches/contrib/oss-skill-followup/verifiers/probe.mjs +0 -10
  490. package/benches/contrib/oss-skill-followup/verifiers/regression-evidence.mjs +0 -98
  491. package/benches/contrib/oss-skill-followup/verifiers/test-reporter.mjs +0 -29
  492. package/benches/contrib/oss-skill-independent/README.md +0 -61
  493. package/benches/contrib/oss-skill-independent/bench.json +0 -79
  494. package/benches/contrib/oss-skill-independent/provenance.json +0 -1903
  495. package/benches/contrib/oss-skill-independent/task-specs.json +0 -63
  496. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/LICENSE +0 -22
  497. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/Readme.md +0 -1015
  498. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/esm.mjs +0 -15
  499. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/index.js +0 -27
  500. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/argument.js +0 -147
  501. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/command.js +0 -1944
  502. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/error.js +0 -45
  503. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/help.js +0 -396
  504. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/option.js +0 -208
  505. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/suggestSimilar.js +0 -100
  506. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/package-support.json +0 -16
  507. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/package.json +0 -63
  508. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/test-clock.mjs +0 -65
  509. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/test.mjs +0 -4
  510. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/typings/index.d.ts +0 -774
  511. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/typings/index.test-d.ts +0 -416
  512. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/upstream-package.json +0 -69
  513. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/prompt.md +0 -3
  514. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/LICENSE +0 -22
  515. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/Readme.md +0 -1015
  516. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/esm.mjs +0 -15
  517. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/index.js +0 -27
  518. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/argument.js +0 -147
  519. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/command.js +0 -1948
  520. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/error.js +0 -45
  521. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/help.js +0 -396
  522. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/option.js +0 -208
  523. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/suggestSimilar.js +0 -100
  524. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/oracle.mjs +0 -1
  525. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/package-support.json +0 -16
  526. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/package.json +0 -63
  527. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/regression.test.mjs +0 -5
  528. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/test-clock.mjs +0 -65
  529. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/test.mjs +0 -4
  530. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/typings/index.d.ts +0 -774
  531. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/typings/index.test-d.ts +0 -416
  532. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/upstream-package.json +0 -69
  533. package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/verify.mjs +0 -1
  534. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/LICENSE +0 -22
  535. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/Readme.md +0 -1149
  536. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/esm.mjs +0 -16
  537. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/index.js +0 -24
  538. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/argument.js +0 -149
  539. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/command.js +0 -2662
  540. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/error.js +0 -39
  541. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/help.js +0 -713
  542. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/option.js +0 -367
  543. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/suggestSimilar.js +0 -101
  544. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/package-support.json +0 -16
  545. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/package.json +0 -71
  546. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/test-clock.mjs +0 -65
  547. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/test.mjs +0 -4
  548. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/typings/esm.d.mts +0 -3
  549. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/typings/index.d.ts +0 -1045
  550. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/typings/index.test-d.ts +0 -737
  551. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/upstream-package.json +0 -82
  552. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/prompt.md +0 -3
  553. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/LICENSE +0 -22
  554. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/Readme.md +0 -1149
  555. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/esm.mjs +0 -16
  556. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/index.js +0 -24
  557. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/argument.js +0 -149
  558. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/command.js +0 -2666
  559. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/error.js +0 -39
  560. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/help.js +0 -713
  561. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/option.js +0 -367
  562. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/suggestSimilar.js +0 -101
  563. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/oracle.mjs +0 -1
  564. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/package-support.json +0 -16
  565. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/package.json +0 -71
  566. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/regression.test.mjs +0 -5
  567. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/test-clock.mjs +0 -65
  568. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/test.mjs +0 -4
  569. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/typings/esm.d.mts +0 -3
  570. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/typings/index.d.ts +0 -1045
  571. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/typings/index.test-d.ts +0 -737
  572. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/upstream-package.json +0 -82
  573. package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/verify.mjs +0 -1
  574. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/index.d.ts +0 -40
  575. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/index.js +0 -68
  576. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/license +0 -9
  577. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/package.json +0 -54
  578. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/readme.md +0 -99
  579. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/test-clock.mjs +0 -65
  580. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/test.mjs +0 -4
  581. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/upstream-package.json +0 -54
  582. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/vendor/yocto-queue/index.js +0 -67
  583. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/vendor/yocto-queue/license +0 -9
  584. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/vendor/yocto-queue/package.json +0 -46
  585. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/prompt.md +0 -3
  586. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/async-hooks-stub.js +0 -15
  587. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/index.d.ts +0 -40
  588. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/index.js +0 -71
  589. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/license +0 -9
  590. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/oracle.mjs +0 -1
  591. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/package.json +0 -61
  592. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/readme.md +0 -99
  593. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/regression.test.mjs +0 -6
  594. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/test-clock.mjs +0 -65
  595. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/test.mjs +0 -4
  596. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/upstream-package.json +0 -54
  597. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/vendor/yocto-queue/index.js +0 -67
  598. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/vendor/yocto-queue/license +0 -9
  599. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/vendor/yocto-queue/package.json +0 -46
  600. package/benches/contrib/oss-skill-independent/tasks/limit-async-context/verify.mjs +0 -1
  601. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/index.d.ts +0 -136
  602. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/index.js +0 -132
  603. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/license +0 -9
  604. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/package.json +0 -57
  605. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/readme.md +0 -181
  606. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/test-clock.mjs +0 -65
  607. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/test.mjs +0 -4
  608. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/upstream-package.json +0 -58
  609. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/vendor/yocto-queue/index.js +0 -84
  610. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/vendor/yocto-queue/license +0 -9
  611. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/vendor/yocto-queue/package.json +0 -48
  612. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/prompt.md +0 -3
  613. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/index.d.ts +0 -136
  614. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/index.js +0 -148
  615. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/license +0 -9
  616. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/oracle.mjs +0 -1
  617. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/package.json +0 -57
  618. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/readme.md +0 -181
  619. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/regression.test.mjs +0 -5
  620. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/test-clock.mjs +0 -65
  621. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/test.mjs +0 -4
  622. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/upstream-package.json +0 -58
  623. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/vendor/yocto-queue/index.js +0 -84
  624. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/vendor/yocto-queue/license +0 -9
  625. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/vendor/yocto-queue/package.json +0 -48
  626. package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/verify.mjs +0 -1
  627. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/index.d.ts +0 -136
  628. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/index.js +0 -116
  629. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/license +0 -9
  630. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/package.json +0 -60
  631. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/readme.md +0 -170
  632. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/test-clock.mjs +0 -65
  633. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/test.mjs +0 -4
  634. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/upstream-package.json +0 -60
  635. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/prompt.md +0 -3
  636. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/index.d.ts +0 -136
  637. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/index.js +0 -121
  638. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/license +0 -9
  639. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/oracle.mjs +0 -1
  640. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/package.json +0 -60
  641. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/readme.md +0 -170
  642. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/regression.test.mjs +0 -6
  643. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/test-clock.mjs +0 -65
  644. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/test.mjs +0 -4
  645. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/upstream-package.json +0 -60
  646. package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/verify.mjs +0 -1
  647. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/index.d.ts +0 -149
  648. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/index.js +0 -93
  649. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/license +0 -9
  650. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/package.json +0 -52
  651. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/readme.md +0 -192
  652. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/test-clock.mjs +0 -65
  653. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/test.mjs +0 -4
  654. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/upstream-package.json +0 -52
  655. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/prompt.md +0 -3
  656. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/index.d.ts +0 -149
  657. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/index.js +0 -95
  658. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/license +0 -9
  659. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/oracle.mjs +0 -1
  660. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/package.json +0 -52
  661. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/readme.md +0 -192
  662. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/regression.test.mjs +0 -5
  663. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/test-clock.mjs +0 -65
  664. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/test.mjs +0 -4
  665. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/upstream-package.json +0 -52
  666. package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/verify.mjs +0 -1
  667. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/index.d.ts +0 -151
  668. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/index.js +0 -114
  669. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/license +0 -9
  670. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/package.json +0 -48
  671. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/readme.md +0 -158
  672. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/test-clock.mjs +0 -65
  673. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/test.mjs +0 -4
  674. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/upstream-package.json +0 -48
  675. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/prompt.md +0 -3
  676. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/index.d.ts +0 -151
  677. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/index.js +0 -114
  678. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/license +0 -9
  679. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/oracle.mjs +0 -1
  680. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/package.json +0 -48
  681. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/readme.md +0 -158
  682. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/regression.test.mjs +0 -5
  683. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/test-clock.mjs +0 -65
  684. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/test.mjs +0 -4
  685. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/upstream-package.json +0 -48
  686. package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/verify.mjs +0 -1
  687. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/index.d.ts +0 -151
  688. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/index.js +0 -122
  689. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/license +0 -9
  690. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/package.json +0 -50
  691. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/readme.md +0 -190
  692. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/test-clock.mjs +0 -65
  693. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/test.mjs +0 -4
  694. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/upstream-package.json +0 -50
  695. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/prompt.md +0 -3
  696. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/index.d.ts +0 -151
  697. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/index.js +0 -122
  698. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/license +0 -9
  699. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/oracle.mjs +0 -1
  700. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/package.json +0 -50
  701. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/readme.md +0 -190
  702. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/regression.test.mjs +0 -5
  703. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/test-clock.mjs +0 -65
  704. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/test.mjs +0 -4
  705. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/upstream-package.json +0 -50
  706. package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/verify.mjs +0 -1
  707. package/benches/contrib/oss-skill-independent/test-clock.mjs +0 -65
  708. package/benches/contrib/oss-skill-independent/verifiers/cases.mjs +0 -197
  709. package/benches/contrib/oss-skill-independent/verifiers/grade.mjs +0 -48
  710. package/benches/contrib/oss-skill-independent/verifiers/probe.mjs +0 -16
  711. package/benches/contrib/oss-skill-independent/verifiers/regression-evidence.mjs +0 -105
  712. package/benches/contrib/oss-skill-independent/verifiers/test-reporter.mjs +0 -29
  713. package/benches/contrib/oss-skill-validation/README.md +0 -33
  714. package/benches/contrib/oss-skill-validation/bench.json +0 -79
  715. package/benches/contrib/oss-skill-validation/provenance.json +0 -119
  716. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/UPSTREAM.package.json +0 -57
  717. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/index.js +0 -281
  718. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/license +0 -9
  719. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/package.json +0 -8
  720. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/readme.md +0 -169
  721. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/test.mjs +0 -5
  722. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/prompt.md +0 -3
  723. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/UPSTREAM.package.json +0 -57
  724. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/index.js +0 -281
  725. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/license +0 -9
  726. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/oracle.mjs +0 -4
  727. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/package.json +0 -8
  728. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/readme.md +0 -169
  729. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/regression.test.mjs +0 -115
  730. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/test.mjs +0 -5
  731. package/benches/contrib/oss-skill-validation/tasks/async-concurrency/verify.mjs +0 -2
  732. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/UPSTREAM.package.json +0 -57
  733. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/index.js +0 -661
  734. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/license +0 -9
  735. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/package.json +0 -8
  736. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/readme.md +0 -404
  737. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/test.mjs +0 -5
  738. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/prompt.md +0 -3
  739. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/UPSTREAM.package.json +0 -57
  740. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/index.js +0 -663
  741. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/license +0 -9
  742. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/oracle.mjs +0 -4
  743. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/package.json +0 -8
  744. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/readme.md +0 -404
  745. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/regression.test.mjs +0 -115
  746. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/test.mjs +0 -5
  747. package/benches/contrib/oss-skill-validation/tasks/cold-thenable/verify.mjs +0 -2
  748. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/UPSTREAM.package.json +0 -57
  749. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/index.js +0 -288
  750. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/license +0 -9
  751. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/package.json +0 -8
  752. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/readme.md +0 -190
  753. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/test.mjs +0 -5
  754. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/prompt.md +0 -3
  755. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/UPSTREAM.package.json +0 -57
  756. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/index.js +0 -293
  757. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/license +0 -9
  758. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/oracle.mjs +0 -4
  759. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/package.json +0 -8
  760. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/readme.md +0 -190
  761. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/regression.test.mjs +0 -115
  762. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/test.mjs +0 -5
  763. package/benches/contrib/oss-skill-validation/tasks/consumer-stop/verify.mjs +0 -2
  764. package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/UPSTREAM.package.json +0 -57
  765. package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/index.js +0 -283
  766. package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/license +0 -9
  767. package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/package.json +0 -8
  768. package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/readme.md +0 -190
  769. package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/test.mjs +0 -5
  770. package/benches/contrib/oss-skill-validation/tasks/mapper-index/prompt.md +0 -3
  771. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/UPSTREAM.package.json +0 -57
  772. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/index.js +0 -284
  773. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/license +0 -9
  774. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/oracle.mjs +0 -4
  775. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/package.json +0 -8
  776. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/readme.md +0 -190
  777. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/regression.test.mjs +0 -115
  778. package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/test.mjs +0 -5
  779. package/benches/contrib/oss-skill-validation/tasks/mapper-index/verify.mjs +0 -2
  780. package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/UPSTREAM.package.json +0 -57
  781. package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/index.js +0 -300
  782. package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/license +0 -9
  783. package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/package.json +0 -8
  784. package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/readme.md +0 -190
  785. package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/test.mjs +0 -5
  786. package/benches/contrib/oss-skill-validation/tasks/source-close/prompt.md +0 -3
  787. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/UPSTREAM.package.json +0 -57
  788. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/index.js +0 -310
  789. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/license +0 -9
  790. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/oracle.mjs +0 -4
  791. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/package.json +0 -8
  792. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/readme.md +0 -190
  793. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/regression.test.mjs +0 -115
  794. package/benches/contrib/oss-skill-validation/tasks/source-close/reference/test.mjs +0 -5
  795. package/benches/contrib/oss-skill-validation/tasks/source-close/verify.mjs +0 -2
  796. package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/UPSTREAM.package.json +0 -57
  797. package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/index.js +0 -293
  798. package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/license +0 -9
  799. package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/package.json +0 -8
  800. package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/readme.md +0 -190
  801. package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/test.mjs +0 -5
  802. package/benches/contrib/oss-skill-validation/tasks/source-error/prompt.md +0 -3
  803. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/UPSTREAM.package.json +0 -57
  804. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/index.js +0 -292
  805. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/license +0 -9
  806. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/oracle.mjs +0 -4
  807. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/package.json +0 -8
  808. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/readme.md +0 -190
  809. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/regression.test.mjs +0 -115
  810. package/benches/contrib/oss-skill-validation/tasks/source-error/reference/test.mjs +0 -5
  811. package/benches/contrib/oss-skill-validation/tasks/source-error/verify.mjs +0 -2
  812. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/UPSTREAM.package.json +0 -51
  813. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/index.js +0 -261
  814. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/license +0 -9
  815. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/package.json +0 -8
  816. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/readme.md +0 -143
  817. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/test.mjs +0 -5
  818. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/prompt.md +0 -3
  819. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/UPSTREAM.package.json +0 -51
  820. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/index.js +0 -265
  821. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/license +0 -9
  822. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/oracle.mjs +0 -4
  823. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/package.json +0 -8
  824. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/readme.md +0 -143
  825. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/regression.test.mjs +0 -115
  826. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/test.mjs +0 -5
  827. package/benches/contrib/oss-skill-validation/tasks/ttl-duration/verify.mjs +0 -2
  828. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/UPSTREAM.package.json +0 -51
  829. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/index.js +0 -261
  830. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/license +0 -9
  831. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/package.json +0 -8
  832. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/readme.md +0 -143
  833. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/test.mjs +0 -5
  834. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/prompt.md +0 -3
  835. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/UPSTREAM.package.json +0 -51
  836. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/index.js +0 -261
  837. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/license +0 -9
  838. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/oracle.mjs +0 -4
  839. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/package.json +0 -8
  840. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/readme.md +0 -143
  841. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/regression.test.mjs +0 -115
  842. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/test.mjs +0 -5
  843. package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/verify.mjs +0 -2
  844. package/benches/contrib/oss-skill-validation/upstream/async-concurrency.patch +0 -77
  845. package/benches/contrib/oss-skill-validation/upstream/cold-thenable.patch +0 -162
  846. package/benches/contrib/oss-skill-validation/upstream/consumer-stop.patch +0 -217
  847. package/benches/contrib/oss-skill-validation/upstream/mapper-index.patch +0 -48
  848. package/benches/contrib/oss-skill-validation/upstream/source-close.patch +0 -179
  849. package/benches/contrib/oss-skill-validation/upstream/source-error.patch +0 -132
  850. package/benches/contrib/oss-skill-validation/upstream/ttl-duration.patch +0 -73
  851. package/benches/contrib/oss-skill-validation/upstream/ttl-refresh.patch +0 -41
  852. package/benches/contrib/oss-skill-validation/verifiers/cases.mjs +0 -111
  853. package/benches/contrib/oss-skill-validation/verifiers/grade.mjs +0 -35
  854. package/benches/contrib/oss-skill-validation/verifiers/probe.mjs +0 -10
  855. package/benches/contrib/oss-skill-validation/verifiers/regression-evidence.mjs +0 -98
  856. package/benches/contrib/oss-skill-validation/verifiers/test-reporter.mjs +0 -29
  857. package/benches/contrib/waza-behavior/LICENSE.upstream +0 -21
  858. package/benches/contrib/waza-behavior/README.md +0 -36
  859. package/benches/contrib/waza-behavior/bench.json +0 -34
  860. package/benches/contrib/waza-behavior/tasks/explicit-hold/fixture/README.md +0 -1
  861. package/benches/contrib/waza-behavior/tasks/explicit-hold/fixture/notes.txt +0 -1
  862. package/benches/contrib/waza-behavior/tasks/explicit-hold/prompt.md +0 -1
  863. package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/README.md +0 -1
  864. package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/docs/guide.md +0 -2
  865. package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/notes.txt +0 -1
  866. package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/scripts/check-links.mjs +0 -16
  867. package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/validation-receipt.json +0 -10
  868. package/benches/contrib/waza-behavior/tasks/receipt-current/prompt.md +0 -1
  869. package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/README.md +0 -1
  870. package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/docs/guide.md +0 -3
  871. package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/notes.txt +0 -1
  872. package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/scripts/check-links.mjs +0 -16
  873. package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/validation-receipt.json +0 -10
  874. package/benches/contrib/waza-behavior/tasks/receipt-stale/prompt.md +0 -1
  875. package/benches/contrib/waza-behavior/verifiers/behavior.mjs +0 -59
  876. package/benches/contrib/waza-behavior/verifiers/oracle.mjs +0 -24
@@ -1,16 +1,16 @@
1
- import { executorDeadlineLabel } from '../agents/timeout.js';
1
+ import { executorDeadlineLabel } from "../agents/timeout.js";
2
2
  import { parseBenchClaims } from "./claims.js";
3
- import { spawnSync } from 'node:child_process';
3
+ import { spawnSync } from "node:child_process";
4
4
  import { copyFixture, runOracleGate } from "./gates/check.js";
5
- import { closeSync, existsSync, lstatSync, mkdirSync, mkdtempSync, openSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
6
- import { tmpdir } from 'node:os';
7
- import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path';
5
+ import { closeSync, existsSync, lstatSync, mkdirSync, mkdtempSync, openSync, readdirSync, readFileSync, rmSync, writeFileSync, } from "node:fs";
6
+ import { tmpdir } from "node:os";
7
+ import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
8
8
  import { BENCH_SCHEMA_VERSIONS, loadBench, validateBenchTask } from "./read.js";
9
9
  import { resolveBenchDir } from "./location.js";
10
10
  import { sha256File, sha256Text } from "../shared/hash.js";
11
11
  import { runVerifier, verifierFailure } from "./gates/verifier.js";
12
12
  import { benchTemplateFiles, taskFilePaths } from "./templates.js";
13
- import { BACKUP_SUFFIX } from '../shared/backup.js';
13
+ import { BACKUP_SUFFIX } from "../shared/backup.js";
14
14
  import { throwIfCancelled as throwIfEvaluationInterrupted } from "../shared/cancellation.js";
15
15
  import { freezeSourceFiles } from "./source.js";
16
16
  import { BenchDraftSession } from "./draft.js";
@@ -18,15 +18,20 @@ import { parseVerifierTimeoutSeconds } from "./gates/timeout.js";
18
18
  const changes = new WeakMap();
19
19
  function prepared(view, state) {
20
20
  // Public write previews cannot mutate the private transaction's bytes.
21
- const change = Object.freeze({ ...view, writes: view.writes.map(write => ({ ...write,
22
- content: Buffer.isBuffer(write.content) ? Buffer.from(write.content) : write.content })) });
21
+ const change = Object.freeze({
22
+ ...view,
23
+ writes: view.writes.map((write) => ({
24
+ ...write,
25
+ content: Buffer.isBuffer(write.content) ? Buffer.from(write.content) : write.content,
26
+ })),
27
+ });
23
28
  changes.set(change, state);
24
29
  return change;
25
30
  }
26
31
  export function applyBenchChange(change) {
27
32
  const state = changes.get(change);
28
33
  if (!state)
29
- throw new Error('Unknown prepared bench change; prepare a fresh change.');
34
+ throw new Error("Unknown prepared bench change; prepare a fresh change.");
30
35
  // Each transaction checks within its own failure/finalization scope so a
31
36
  // rejected post-draft apply still retains the completed attempt's summary.
32
37
  return state.apply();
@@ -35,49 +40,66 @@ export function applyBenchChange(change) {
35
40
  export async function draftBenchChange(change, log) {
36
41
  const state = changes.get(change);
37
42
  if (!state?.draft)
38
- throw new Error('This bench change has no drafting step.');
43
+ throw new Error("This bench change has no drafting step.");
39
44
  change.assertCurrent();
40
45
  await state.draft(log);
41
46
  }
42
47
  function prepareInit(options, dependencies) {
43
- const kind = options.kind ?? 'output', schemaVersion = options.schemaVersion ?? 1;
48
+ const kind = options.kind ?? "output", schemaVersion = options.schemaVersion ?? 1;
44
49
  if (!BENCH_SCHEMA_VERSIONS.includes(schemaVersion))
45
- throw new Error('bench init schemaVersion must be 1 or 2.');
46
- if (kind !== 'output' && kind !== 'command')
50
+ throw new Error("bench init schemaVersion must be 1 or 2.");
51
+ if (kind !== "output" && kind !== "command")
47
52
  throw new Error(`Unknown bench kind: ${kind} (expected "output" or "command")`);
48
- const dir = resolve(options.cwd ?? process.cwd(), options.dir ?? 'skillfit-bench');
53
+ const dir = resolve(options.cwd ?? process.cwd(), options.dir ?? "skillfit-bench");
49
54
  const files = benchTemplateFiles(basename(dir), kind);
50
55
  if (schemaVersion === 2) {
51
- const manifest = JSON.parse(files['bench.json']);
56
+ const manifest = JSON.parse(files["bench.json"]);
52
57
  manifest.schemaVersion = 2;
53
58
  for (const task of manifest.tasks)
54
- task.claims = ['quality'];
55
- files['bench.json'] = JSON.stringify(manifest, null, 2) + '\n';
59
+ task.claims = ["quality"];
60
+ files["bench.json"] = JSON.stringify(manifest, null, 2) + "\n";
56
61
  }
57
- const created = Object.keys(files), writes = created.map(rel => ({ target: join(dir, rel), content: files[rel] }));
62
+ const created = Object.keys(files), writes = created.map((rel) => ({ target: join(dir, rel), content: files[rel] }));
58
63
  const assertCurrent = () => {
59
64
  if (existsSync(dir) && readdirSync(dir).length > 0)
60
65
  throw new Error(`Target directory is not empty: ${dir}`);
61
66
  if (existsSync(dir) && lstatSync(dir).isSymbolicLink())
62
67
  throw new Error(`Refusing a symlink in bench output: ${dir}`);
63
- assertBenchWrites(dir, writes.map(write => write.target));
68
+ assertBenchWrites(dir, writes.map((write) => write.target));
64
69
  };
65
70
  const result = { dir, created };
66
- return prepared({ operation: 'init', dir, writes, targetSha256: sha256Text(JSON.stringify(created.map(() => null))),
67
- confirmation: `Create ${created.length} file(s) in ${dir}? [y/N] `, draft: false, result, assertCurrent,
68
- lines: { before: [], preview: [`Bench scaffold plan (dry run) — ${dir}:`, ...created.map(rel => ` + ${rel}`),
69
- 'Dry run — nothing was written. Re-run with --yes to apply.'],
70
- after: [`Bench scaffolded at ${dir} (${created.length} files, self-check passed).`, 'Next:',
71
+ return prepared({
72
+ operation: "init",
73
+ dir,
74
+ writes,
75
+ targetSha256: sha256Text(JSON.stringify(created.map(() => null))),
76
+ confirmation: `Create ${created.length} file(s) in ${dir}? [y/N] `,
77
+ draft: false,
78
+ result,
79
+ assertCurrent,
80
+ lines: {
81
+ before: [],
82
+ preview: [
83
+ `Bench scaffold plan (dry run) — ${dir}:`,
84
+ ...created.map((rel) => ` + ${rel}`),
85
+ "Dry run — nothing was written. Re-run with --yes to apply.",
86
+ ],
87
+ after: [
88
+ `Bench scaffolded at ${dir} (${created.length} files, self-check passed).`,
89
+ "Next:",
71
90
  ` skillfit bench check ${dir}`,
72
- ` skillfit eval <skill-path> --bench ${dir} --agent <id>${kind === 'command' ? ' --input workspace' : ''} --trials 1 --max-calls 2 --dry-run`,
73
- 'This is a teaching case. Replace it with your own task before measuring Skill benefit.'] } }, {
91
+ ` skillfit eval <skill-path> --bench ${dir} --agent <id>${kind === "command" ? " --input workspace" : ""} --trials 1 --max-calls 2 --dry-run`,
92
+ "This is a teaching case. Replace it with your own task before measuring Skill benefit.",
93
+ ],
94
+ },
95
+ }, {
74
96
  apply: () => {
75
97
  assertCurrent();
76
98
  const applied = [];
77
99
  try {
78
100
  for (const write of writes) {
79
101
  mkdirSync(dirname(write.target), { recursive: true });
80
- const fd = openSync(write.target, 'wx');
102
+ const fd = openSync(write.target, "wx");
81
103
  applied.push(write.target);
82
104
  try {
83
105
  (dependencies.writeFile ?? writeFileSync)(fd, write.content);
@@ -146,13 +168,13 @@ process.exitCode = passed ? 0 : 1;
146
168
  `;
147
169
  }
148
170
  function buildDecomposePrompt(taskPrompt, fixtureFiles, verifierKind) {
149
- const listing = fixtureFiles.map((rel) => `- fixture/${rel}`).join('\n');
150
- const grading = verifierKind === 'command'
151
- ? 'The verifier runs a real command inside the run directory and grades the final file state (the agent edits files).'
171
+ const listing = fixtureFiles.map((rel) => `- fixture/${rel}`).join("\n");
172
+ const grading = verifierKind === "command"
173
+ ? "The verifier runs a real command inside the run directory and grades the final file state (the agent edits files)."
152
174
  : "The verifier grades the agent's final message at <run-dir>/_output.md.";
153
- const solving = verifierKind === 'command'
154
- ? 'applies the reference fix to the files inside <run-dir>'
155
- : 'writes the reference answer to <run-dir>/_output.md';
175
+ const solving = verifierKind === "command"
176
+ ? "applies the reference fix to the files inside <run-dir>"
177
+ : "writes the reference answer to <run-dir>/_output.md";
156
178
  return `You are drafting a skillfit bench task verifier and its oracle (reference solution).
157
179
 
158
180
  # The task the bench measures
@@ -190,47 +212,48 @@ fixture and pass the oracle-solved one, so test both directions before you finis
190
212
  }
191
213
  async function draftVerifierWithOracle(session, log) {
192
214
  const staging = session.workspace;
193
- const fixtureDir = join(staging, 'fixture');
215
+ const fixtureDir = join(staging, "fixture");
194
216
  log(`Drafting verifier + oracle; at most 1 call. Records: ${session.dir}`);
195
217
  await session.run();
196
- const verifierPath = join(staging, 'verifier.mjs');
197
- const oraclePath = join(staging, 'oracle.mjs');
218
+ const verifierPath = join(staging, "verifier.mjs");
219
+ const oraclePath = join(staging, "oracle.mjs");
198
220
  if (!existsSync(verifierPath) || !existsSync(oraclePath)) {
199
- throw new Error('the drafting agent did not write verifier.mjs and oracle.mjs into its working directory — nothing was added');
221
+ throw new Error("the drafting agent did not write verifier.mjs and oracle.mjs into its working directory — nothing was added");
200
222
  }
201
- const nopDir = mkdtempSync(join(tmpdir(), 'skillfit-decompose-nop-'));
223
+ const nopDir = mkdtempSync(join(tmpdir(), "skillfit-decompose-nop-"));
202
224
  try {
203
225
  copyFixture(fixtureDir, nopDir);
204
- const nop = await runVerifier(staging, 'node verifier.mjs', nopDir, session.plan.verifierTimeoutSeconds);
205
- session.gate('untouched-fixture', nop);
226
+ const nop = await runVerifier(staging, "node verifier.mjs", nopDir, session.plan.verifierTimeoutSeconds);
227
+ session.gate("untouched-fixture", nop);
206
228
  if (nop.error !== null || nop.exitCode === null) {
207
- throw new Error(`draft rejected: ${verifierFailure('verifier', 'node verifier.mjs', nop.error)}`);
229
+ throw new Error(`draft rejected: ${verifierFailure("verifier", "node verifier.mjs", nop.error)}`);
208
230
  }
209
231
  if (nop.exitCode === 0) {
210
- throw new Error('draft rejected: the verifier passes the untouched fixture — the task would start solved (NOP gate)');
232
+ throw new Error("draft rejected: the verifier passes the untouched fixture — the task would start solved (NOP gate)");
211
233
  }
212
234
  }
213
235
  finally {
214
236
  rmSync(nopDir, { recursive: true, force: true });
215
237
  }
216
- const solvedGate = await runOracleGate(staging, fixtureDir, 'node oracle.mjs', 'node verifier.mjs', session.plan.verifierTimeoutSeconds, (name, result) => session.gate(name, result));
217
- if (solvedGate.kind === 'oracle-failed') {
218
- throw new Error(`draft rejected: ${solvedGate.reason ?? 'the oracle command failed on a fresh fixture copy'}`);
238
+ const solvedGate = await runOracleGate(staging, fixtureDir, "node oracle.mjs", "node verifier.mjs", session.plan.verifierTimeoutSeconds, (name, result) => session.gate(name, result));
239
+ if (solvedGate.kind === "oracle-failed") {
240
+ throw new Error(`draft rejected: ${solvedGate.reason ?? "the oracle command failed on a fresh fixture copy"}`);
219
241
  }
220
- if (solvedGate.kind === 'verifier-failed') {
221
- throw new Error(`draft rejected: ${solvedGate.reason ?? 'the verifier fails even after the oracle solved the task (oracle gate)'}`);
242
+ if (solvedGate.kind === "verifier-failed") {
243
+ throw new Error(`draft rejected: ${solvedGate.reason ??
244
+ "the verifier fails even after the oracle solved the task (oracle gate)"}`);
222
245
  }
223
- if (solvedGate.kind === 'low-score') {
246
+ if (solvedGate.kind === "low-score") {
224
247
  throw new Error(`draft rejected: the oracle scores ${solvedGate.score.toFixed(2)} on the drafted checks — checks are stricter than the oracle`);
225
248
  }
226
249
  return {
227
- verifierSource: readFileSync(verifierPath, 'utf8'),
228
- oracleSource: readFileSync(oraclePath, 'utf8'),
250
+ verifierSource: readFileSync(verifierPath, "utf8"),
251
+ oracleSource: readFileSync(oraclePath, "utf8"),
229
252
  };
230
253
  }
231
254
  function assertInsideBench(benchDir, target) {
232
255
  const rel = relative(benchDir, target);
233
- if (rel === '' || rel.startsWith('..') || isAbsolute(rel)) {
256
+ if (rel === "" || rel.startsWith("..") || isAbsolute(rel)) {
234
257
  throw new Error(`Refusing to write outside the bench directory: ${target}`);
235
258
  }
236
259
  }
@@ -249,7 +272,7 @@ function assertBenchWrites(benchDir, targets) {
249
272
  throw new Error(`Refusing to overwrite a non-file or traverse a non-directory: ${path}`);
250
273
  }
251
274
  catch (error) {
252
- if (error.code !== 'ENOENT')
275
+ if (error.code !== "ENOENT")
253
276
  throw error;
254
277
  }
255
278
  }
@@ -259,13 +282,13 @@ function assertBenchWrites(benchDir, targets) {
259
282
  throw new Error(`Refusing an unsafe backup target: ${target + BACKUP_SUFFIX}`);
260
283
  }
261
284
  catch (error) {
262
- if (error.code !== 'ENOENT')
285
+ if (error.code !== "ENOENT")
263
286
  throw error;
264
287
  }
265
288
  }
266
289
  }
267
290
  export function applyBenchWrites(benchDir, writes) {
268
- assertBenchWrites(benchDir, writes.map(write => write.target));
291
+ assertBenchWrites(benchDir, writes.map((write) => write.target));
269
292
  const applied = [];
270
293
  try {
271
294
  for (const write of writes) {
@@ -288,14 +311,14 @@ export function applyBenchWrites(benchDir, writes) {
288
311
  backupExists = true;
289
312
  }
290
313
  catch (error) {
291
- if (error.code !== 'ENOENT')
314
+ if (error.code !== "ENOENT")
292
315
  throw error;
293
316
  }
294
317
  if (!backupExists)
295
- writeFileSync(backup, previous, { flag: 'wx' });
318
+ writeFileSync(backup, previous, { flag: "wx" });
296
319
  }
297
320
  catch (error) {
298
- if (error.code !== 'ENOENT')
321
+ if (error.code !== "ENOENT")
299
322
  throw error;
300
323
  }
301
324
  applied.push({ target: write.target, previous });
@@ -315,42 +338,45 @@ export function applyBenchWrites(benchDir, writes) {
315
338
  }
316
339
  function prepareAdd(options, now) {
317
340
  const preparedAt = now();
318
- const timeout = options.verifierTimeoutSeconds === undefined ? {} : { verifierTimeoutSeconds: parseVerifierTimeoutSeconds(options.verifierTimeoutSeconds) };
341
+ const timeout = options.verifierTimeoutSeconds === undefined
342
+ ? {}
343
+ : { verifierTimeoutSeconds: parseVerifierTimeoutSeconds(options.verifierTimeoutSeconds) };
319
344
  if (!options.freeze && !options.fromCommit) {
320
- throw new Error('bench add needs an importer: --freeze (current directory) or --from-commit <sha> (git history).');
345
+ throw new Error("bench add needs an importer: --freeze (current directory) or --from-commit <sha> (git history).");
321
346
  }
322
347
  if (options.freeze && options.fromCommit) {
323
- throw new Error('Pass exactly one importer: --freeze OR --from-commit, not both.');
348
+ throw new Error("Pass exactly one importer: --freeze OR --from-commit, not both.");
324
349
  }
325
350
  if (options.prompt !== undefined && options.promptFile !== undefined) {
326
- throw new Error('Pass exactly one prompt: --prompt OR --prompt-file, not both.');
351
+ throw new Error("Pass exactly one prompt: --prompt OR --prompt-file, not both.");
327
352
  }
328
353
  if (options.decompose && !options.freeze) {
329
- throw new Error('--decompose works only with --freeze.');
354
+ throw new Error("--decompose works only with --freeze.");
330
355
  }
331
356
  if (options.decompose && options.oracle) {
332
- throw new Error('--decompose writes its own oracle — do not pass --oracle as well.');
357
+ throw new Error("--decompose writes its own oracle — do not pass --oracle as well.");
333
358
  }
334
359
  const cwd = options.cwd ?? process.cwd();
335
- const benchDir = resolve(cwd, options.benchDir ?? '.');
336
- const benchJsonPath = join(benchDir, 'bench.json');
360
+ const benchDir = resolve(cwd, options.benchDir ?? ".");
361
+ const benchJsonPath = join(benchDir, "bench.json");
337
362
  if (!existsSync(benchJsonPath)) {
338
363
  throw new Error(`Not a bench directory (missing bench.json): ${benchDir} — run \`skillfit bench init\` first.`);
339
364
  }
340
- const originalManifest = readFileSync(benchJsonPath, 'utf8');
365
+ const originalManifest = readFileSync(benchJsonPath, "utf8");
341
366
  const benchJson = JSON.parse(originalManifest);
342
367
  const tasks = Array.isArray(benchJson.tasks) ? benchJson.tasks : [];
343
- if (!BENCH_SCHEMA_VERSIONS.includes(benchJson.schemaVersion) || !Array.isArray(benchJson.tasks))
344
- throw new Error('Invalid bench.json schema or task list; fix the bench before adding a task.');
368
+ if (!BENCH_SCHEMA_VERSIONS.includes(benchJson.schemaVersion) ||
369
+ !Array.isArray(benchJson.tasks))
370
+ throw new Error("Invalid bench.json schema or task list; fix the bench before adding a task.");
345
371
  for (const [index, task] of tasks.entries())
346
372
  validateBenchTask(benchDir, task, index, benchJson.schemaVersion);
347
- if (new Set(tasks.map(task => task.id)).size !== tasks.length)
348
- throw new Error('Duplicate task IDs in bench.json; fix the bench before adding a task.');
373
+ if (new Set(tasks.map((task) => task.id)).size !== tasks.length)
374
+ throw new Error("Duplicate task IDs in bench.json; fix the bench before adding a task.");
349
375
  if (benchJson.schemaVersion === 1 && options.claims !== undefined)
350
- throw new Error('--claim requires explicit bench schema 2; no automatic upgrade.');
376
+ throw new Error("--claim requires explicit bench schema 2; no automatic upgrade.");
351
377
  const claims = benchJson.schemaVersion === 2 ? parseBenchClaims(options.claims) : undefined;
352
- if (claims?.includes('activation') && typeof options.shouldTrigger !== 'boolean')
353
- throw new Error('activation claims require shouldTrigger.');
378
+ if (claims?.includes("activation") && typeof options.shouldTrigger !== "boolean")
379
+ throw new Error("activation claims require shouldTrigger.");
354
380
  const captured = options.fromCommit
355
381
  ? prepareFromCommit(options, cwd, preparedAt)
356
382
  : prepareFreeze(options, cwd, preparedAt);
@@ -362,7 +388,9 @@ function prepareAdd(options, now) {
362
388
  if (tasks.some((task) => task?.id === taskId)) {
363
389
  throw new Error(`Task "${taskId}" already exists in ${benchJsonPath}.`);
364
390
  }
365
- const draft = options.decompose ? new BenchDraftSession(options, taskId, benchDir, cwd, captured.fixtureFiles, buildDecomposePrompt(captured.promptText, captured.fixtureFiles.map(file => file.rel), captured.verifierKind)) : undefined;
391
+ const draft = options.decompose
392
+ ? new BenchDraftSession(options, taskId, benchDir, cwd, captured.fixtureFiles, buildDecomposePrompt(captured.promptText, captured.fixtureFiles.map((file) => file.rel), captured.verifierKind))
393
+ : undefined;
366
394
  const files = taskFilePaths(taskId);
367
395
  const generated = {
368
396
  [files.prompt]: `${captured.promptText.trimEnd()}\n`,
@@ -371,7 +399,7 @@ function prepareAdd(options, now) {
371
399
  [files.rubric]: captured.groundTruth,
372
400
  };
373
401
  if (captured.oracleSource || options.decompose) {
374
- generated[files.oracle] = captured.oracleSource ?? '';
402
+ generated[files.oracle] = captured.oracleSource ?? "";
375
403
  }
376
404
  const taskEntry = {
377
405
  ...(claims ? { claims } : {}),
@@ -387,28 +415,35 @@ function prepareAdd(options, now) {
387
415
  ...(options.oracle ? { oracle: options.oracle } : {}),
388
416
  ...(options.shouldTrigger !== undefined ? { shouldTrigger: options.shouldTrigger } : {}),
389
417
  };
390
- const targets = [...captured.fixtureFiles.map(file => join(benchDir, files.fixture, file.rel)),
391
- ...Object.keys(generated).map(rel => join(benchDir, rel)), benchJsonPath];
418
+ const targets = [
419
+ ...captured.fixtureFiles.map((file) => join(benchDir, files.fixture, file.rel)),
420
+ ...Object.keys(generated).map((rel) => join(benchDir, rel)),
421
+ benchJsonPath,
422
+ ];
392
423
  assertBenchWrites(benchDir, targets);
393
424
  if (sha256File(benchJsonPath) !== sha256Text(originalManifest))
394
- throw new Error('Bench manifest changed while preparing the task; nothing was written.');
395
- const writeState = () => targets.flatMap(target => [target, target + BACKUP_SUFFIX]).map(path => existsSync(path) ? sha256File(path) : null);
425
+ throw new Error("Bench manifest changed while preparing the task; nothing was written.");
426
+ const writeState = () => targets
427
+ .flatMap((target) => [target, target + BACKUP_SUFFIX])
428
+ .map((path) => (existsSync(path) ? sha256File(path) : null));
396
429
  const expectedWrites = JSON.stringify(writeState());
397
430
  const assertOutputsUnchanged = () => {
398
431
  assertBenchWrites(benchDir, targets);
399
432
  if (JSON.stringify(writeState()) !== expectedWrites)
400
- throw new Error('Bench outputs changed while preparing the task; nothing was written. Review a fresh plan.');
401
- const currentSource = options.fromCommit ? prepareFromCommit(options, cwd, preparedAt) : prepareFreeze(options, cwd, preparedAt);
433
+ throw new Error("Bench outputs changed while preparing the task; nothing was written. Review a fresh plan.");
434
+ const currentSource = options.fromCommit
435
+ ? prepareFromCommit(options, cwd, preparedAt)
436
+ : prepareFreeze(options, cwd, preparedAt);
402
437
  if (sha256Text(JSON.stringify(currentSource)) !== originalSource)
403
- throw new Error('Bench source changed while preparing the task; nothing was written. Review a fresh plan.');
438
+ throw new Error("Bench source changed while preparing the task; nothing was written. Review a fresh plan.");
404
439
  };
405
440
  const before = [], preview = [];
406
441
  if (claims)
407
- before.push(`Claims: ${claims.join(', ')} (schema 2 design support; not proof of validity or efficacy).`);
442
+ before.push(`Claims: ${claims.join(", ")} (schema 2 design support; not proof of validity or efficacy).`);
408
443
  if (draft) {
409
444
  before.push(`Draft plan: 1 call; ceiling ${draft.plan.maxCalls}; executor deadline ${executorDeadlineLabel(draft.plan.executorTimeoutSeconds)}; no automatic retry.`);
410
445
  before.push(`Draft records: ${draft.dir}`);
411
- before.push(`Spending limits: ${draft.plan.spendingBudget ? JSON.stringify(draft.plan.spendingBudget) : 'not set; token/cache usage may remain unknown'}. Authentication: unknown offline.`);
446
+ before.push(`Spending limits: ${draft.plan.spendingBudget ? JSON.stringify(draft.plan.spendingBudget) : "not set; token/cache usage may remain unknown"}. Authentication: unknown offline.`);
412
447
  }
413
448
  if (options.verifierCmd) {
414
449
  // The string is not used once and discarded: it is written into a generated .mjs and re-executed
@@ -422,13 +457,13 @@ function prepareAdd(options, now) {
422
457
  for (const rel of Object.keys(generated))
423
458
  preview.push(` + ${rel}`);
424
459
  if (options.decompose) {
425
- preview.push(' ~ draft verifier.mjs + oracle.mjs with an agent, validated by the NOP + oracle gates (skipped in dry run)');
460
+ preview.push(" ~ draft verifier.mjs + oracle.mjs with an agent, validated by the NOP + oracle gates (skipped in dry run)");
426
461
  }
427
- preview.push(' ~ bench.json (register task)');
428
- preview.push('Dry run — nothing was written. Re-run with --yes to apply.');
462
+ preview.push(" ~ bench.json (register task)");
463
+ preview.push("Dry run — nothing was written. Re-run with --yes to apply.");
429
464
  const writes = [];
430
465
  for (const file of captured.fixtureFiles) {
431
- if (file.rel.split(/[\\/]/).includes('..') || isAbsolute(file.rel)) {
466
+ if (file.rel.split(/[\\/]/).includes("..") || isAbsolute(file.rel)) {
432
467
  throw new Error(`Fixture path escapes the task directory: ${file.rel}`);
433
468
  }
434
469
  writes.push({ target: join(benchDir, files.fixture, file.rel), content: file.content });
@@ -444,38 +479,55 @@ function prepareAdd(options, now) {
444
479
  files: [
445
480
  ...captured.fixtureFiles.map((file) => `${files.fixture}/${file.rel}`),
446
481
  ...Object.keys(generated),
447
- 'bench.json',
482
+ "bench.json",
448
483
  ],
449
484
  };
450
485
  let drafted = !draft;
451
- return prepared({ operation: 'add', dir: benchDir, writes, sourceSha256: originalSource,
452
- targetSha256: sha256Text(expectedWrites), confirmation: `${draft ? 'Authorize 1 drafting call, retain its costs, then ' : ''}Add ${captured.fixtureFiles.length} fixture file(s) + ${Object.keys(generated).length} generated file(s) into ${benchDir}? [y/N] `, draft: !!draft, result,
453
- assertCurrent: assertOutputsUnchanged, lines: { before, preview, after: [
486
+ return prepared({
487
+ operation: "add",
488
+ dir: benchDir,
489
+ writes,
490
+ sourceSha256: originalSource,
491
+ targetSha256: sha256Text(expectedWrites),
492
+ confirmation: `${draft ? "Authorize 1 drafting call, retain its costs, then " : ""}Add ${captured.fixtureFiles.length} fixture file(s) + ${Object.keys(generated).length} generated file(s) into ${benchDir}? [y/N] `,
493
+ draft: !!draft,
494
+ result,
495
+ assertCurrent: assertOutputsUnchanged,
496
+ lines: {
497
+ before,
498
+ preview,
499
+ after: [
454
500
  `Task "${taskId}" added to ${benchDir} (${captured.fixtureFiles.length} fixture file(s), verifier: ${captured.verifierKind}).`,
455
- 'Next:', ` skillfit bench check ${benchDir}`, ` skillfit eval <skill-path> --bench ${benchDir} --agent <id> --trials 5`
456
- ] } }, {
457
- draft: draft ? async (log) => {
458
- try {
459
- const output = await draftVerifierWithOracle(draft, log);
460
- generated[files.verifier] = output.verifierSource;
461
- generated[files.oracle] = output.oracleSource;
462
- for (const write of writes) {
463
- const rel = relative(benchDir, write.target).split('\\').join('/');
464
- if (rel in generated)
465
- write.content = generated[rel];
501
+ "Next:",
502
+ ` skillfit bench check ${benchDir}`,
503
+ ` skillfit eval <skill-path> --bench ${benchDir} --agent <id> --trials 5`,
504
+ ],
505
+ },
506
+ }, {
507
+ draft: draft
508
+ ? async (log) => {
509
+ try {
510
+ const output = await draftVerifierWithOracle(draft, log);
511
+ generated[files.verifier] = output.verifierSource;
512
+ generated[files.oracle] = output.oracleSource;
513
+ for (const write of writes) {
514
+ const rel = relative(benchDir, write.target).split("\\").join("/");
515
+ if (rel in generated)
516
+ write.content = generated[rel];
517
+ }
518
+ drafted = true;
519
+ }
520
+ catch (error) {
521
+ draft.finish(error);
522
+ throw error;
466
523
  }
467
- drafted = true;
468
- }
469
- catch (error) {
470
- draft.finish(error);
471
- throw error;
472
524
  }
473
- } : undefined,
525
+ : undefined,
474
526
  apply: () => {
475
527
  let failure;
476
528
  try {
477
529
  if (!drafted)
478
- throw new Error('Explicit drafting must complete before applying this change.');
530
+ throw new Error("Explicit drafting must complete before applying this change.");
479
531
  throwIfEvaluationInterrupted();
480
532
  assertOutputsUnchanged();
481
533
  applyBenchWrites(benchDir, writes);
@@ -493,51 +545,51 @@ function prepareAdd(options, now) {
493
545
  }
494
546
  function prepareFreeze(options, cwd, preparedAt) {
495
547
  const promptText = options.prompt ??
496
- (options.promptFile ? readFileSync(resolve(cwd, options.promptFile), 'utf8') : undefined);
497
- if (!promptText || promptText.trim() === '') {
498
- throw new Error('bench add --freeze needs a task prompt: --prompt <text> or --prompt-file <path>.');
548
+ (options.promptFile ? readFileSync(resolve(cwd, options.promptFile), "utf8") : undefined);
549
+ if (!promptText || promptText.trim() === "") {
550
+ throw new Error("bench add --freeze needs a task prompt: --prompt <text> or --prompt-file <path>.");
499
551
  }
500
552
  if (options.decompose) {
501
553
  if (options.verifierCmd || options.expect !== undefined) {
502
- throw new Error('--decompose drafts the verifier for you — do not pass --verifier-cmd or --expect.');
554
+ throw new Error("--decompose drafts the verifier for you — do not pass --verifier-cmd or --expect.");
503
555
  }
504
556
  }
505
557
  else {
506
558
  if (options.verifierCmd && options.expect !== undefined) {
507
- throw new Error('Pass exactly one verifier: --verifier-cmd OR --expect, not both.');
559
+ throw new Error("Pass exactly one verifier: --verifier-cmd OR --expect, not both.");
508
560
  }
509
561
  if (!options.verifierCmd && options.expect === undefined) {
510
- throw new Error('bench add --freeze needs a verifier: --verifier-cmd <cmd> or --expect <string>.');
562
+ throw new Error("bench add --freeze needs a verifier: --verifier-cmd <cmd> or --expect <string>.");
511
563
  }
512
564
  }
513
- const sourceDir = resolve(cwd, options.sourceDir ?? '.');
565
+ const sourceDir = resolve(cwd, options.sourceDir ?? ".");
514
566
  if (!existsSync(sourceDir)) {
515
567
  throw new Error(`--source-dir does not exist: ${sourceDir}`);
516
568
  }
517
- const captured = freezeSourceFiles(sourceDir, resolve(cwd, options.benchDir ?? '.'), options.include);
569
+ const captured = freezeSourceFiles(sourceDir, resolve(cwd, options.benchDir ?? "."), options.include);
518
570
  if (captured.length === 0) {
519
571
  throw new Error(`No capturable files in ${sourceDir} (empty git index or directory).`);
520
572
  }
521
573
  return {
522
- defaultTaskId: 'frozen-task',
574
+ defaultTaskId: "frozen-task",
523
575
  promptText: promptText.trimEnd(),
524
576
  verifierSource: options.decompose
525
- ? ''
577
+ ? ""
526
578
  : options.verifierCmd
527
579
  ? verifierForCmd(options.verifierCmd)
528
- : verifierForExpect(options.expect ?? ''),
580
+ : verifierForExpect(options.expect ?? ""),
529
581
  verifierKind: options.decompose
530
- ? (options.verifierKind ?? 'output')
582
+ ? (options.verifierKind ?? "output")
531
583
  : options.verifierCmd
532
- ? 'command'
533
- : 'output',
584
+ ? "command"
585
+ : "output",
534
586
  fixtureFiles: captured,
535
587
  groundTruth: `# Ground truth — frozen task
536
588
 
537
589
  Frozen from a real failure on ${preparedAt.toISOString().slice(0, 10)}.
538
590
 
539
591
  - Source directory: \`${sourceDir}\`
540
- - Verifier: ${options.decompose ? 'drafted by an agent (--decompose), gated by the NOP + oracle checks' : options.verifierCmd ? `\`${options.verifierCmd}\` (command, run in the task run directory)` : `agent output contains ${JSON.stringify(options.expect)}`}
592
+ - Verifier: ${options.decompose ? "drafted by an agent (--decompose), gated by the NOP + oracle checks" : options.verifierCmd ? `\`${options.verifierCmd}\` (command, run in the task run directory)` : `agent output contains ${JSON.stringify(options.expect)}`}
541
593
 
542
594
  TODO: describe what a correct outcome looks like, so future bench edits stay honest.
543
595
  `,
@@ -551,29 +603,31 @@ function gitRun(repo, args) {
551
603
  // `core.quotePath=false` is what stops git from quoting paths. Without it a non-ASCII path
552
604
  // comes back octal-escaped and wrapped in quotes — `"caf\303\251-notes.txt"` — and the later
553
605
  // `git show` then fails on a path that does not exist. `-z` on ls-tree alone does not help.
554
- const result = spawnSync('git', ['-c', 'core.quotePath=false', ...args], {
606
+ const result = spawnSync("git", ["-c", "core.quotePath=false", ...args], {
555
607
  cwd: repo,
556
- encoding: 'utf8',
608
+ encoding: "utf8",
557
609
  maxBuffer: 64 * 1024 * 1024,
558
610
  });
559
- return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };
611
+ return { status: result.status, stdout: result.stdout ?? "", stderr: result.stderr ?? "" };
560
612
  }
561
613
  function gitMust(repo, args) {
562
614
  const result = gitRun(repo, args);
563
615
  if (result.status !== 0) {
564
- throw new Error(`git ${args.join(' ')} failed in ${repo}: ${result.stderr.trim() || `exit ${result.status}`}`);
616
+ throw new Error(`git ${args.join(" ")} failed in ${repo}: ${result.stderr.trim() || `exit ${result.status}`}`);
565
617
  }
566
618
  return result.stdout;
567
619
  }
568
620
  function gitShow(repo, ref, path) {
569
- const result = spawnSync('git', ['show', `${ref}:${path}`], {
621
+ const result = spawnSync("git", ["show", `${ref}:${path}`], {
570
622
  cwd: repo,
571
623
  maxBuffer: 64 * 1024 * 1024,
572
624
  });
573
625
  if (result.status !== 0 || result.stdout === undefined) {
574
626
  // A bare "failed" left a Windows CI failure undiagnosable: git's own message and
575
627
  // a spawn error both arrive here, and neither was reported.
576
- const reason = result.error ? String(result.error) : (result.stderr?.toString().trim() || `exit ${result.status}`);
628
+ const reason = result.error
629
+ ? String(result.error)
630
+ : result.stderr?.toString().trim() || `exit ${result.status}`;
577
631
  throw new Error(`git show ${ref}:${path} failed in ${repo}: ${reason}`);
578
632
  }
579
633
  return result.stdout;
@@ -581,7 +635,7 @@ function gitShow(repo, ref, path) {
581
635
  function verifierForMinedTests(tests, cmd) {
582
636
  const embedded = {};
583
637
  for (const test of tests) {
584
- embedded[test.rel] = test.content.toString('utf8');
638
+ embedded[test.rel] = test.content.toString("utf8");
585
639
  }
586
640
  return `import { spawnSync } from 'node:child_process';
587
641
  import fs from 'node:fs';
@@ -616,27 +670,29 @@ process.exit(result.status ?? 1);
616
670
  `;
617
671
  }
618
672
  function prepareFromCommit(options, cwd, preparedAt) {
619
- const issuePrompt = options.prompt ?? (options.promptFile !== undefined
620
- ? readFileSync(resolve(cwd, options.promptFile), 'utf8') : undefined);
621
- if (issuePrompt !== undefined && issuePrompt.trim() === '') {
622
- throw new Error('The supplied task prompt must not be empty.');
623
- }
624
- const repo = resolve(cwd, options.sourceDir ?? '.');
673
+ const issuePrompt = options.prompt ??
674
+ (options.promptFile !== undefined
675
+ ? readFileSync(resolve(cwd, options.promptFile), "utf8")
676
+ : undefined);
677
+ if (issuePrompt !== undefined && issuePrompt.trim() === "") {
678
+ throw new Error("The supplied task prompt must not be empty.");
679
+ }
680
+ const repo = resolve(cwd, options.sourceDir ?? ".");
625
681
  if (!existsSync(repo)) {
626
682
  throw new Error(`--source-dir does not exist: ${repo}`);
627
683
  }
628
- const sha = gitMust(repo, ['rev-parse', '--verify', `${options.fromCommit}^{commit}`]).trim();
684
+ const sha = gitMust(repo, ["rev-parse", "--verify", `${options.fromCommit}^{commit}`]).trim();
629
685
  const shortSha = sha.slice(0, 7);
630
- const subject = gitMust(repo, ['show', '-s', '--format=%s', sha]).trim();
631
- const body = gitMust(repo, ['show', '-s', '--format=%b', sha]).trim();
632
- const changed = gitMust(repo, ['diff-tree', '--no-commit-id', '--name-status', '-r', sha])
633
- .split('\n')
686
+ const subject = gitMust(repo, ["show", "-s", "--format=%s", sha]).trim();
687
+ const body = gitMust(repo, ["show", "-s", "--format=%b", sha]).trim();
688
+ const changed = gitMust(repo, ["diff-tree", "--no-commit-id", "--name-status", "-r", sha])
689
+ .split("\n")
634
690
  .filter(Boolean)
635
691
  .map((line) => {
636
- const [status, ...rest] = line.split('\t');
637
- return { status: status ?? '', path: rest.join('\t') };
692
+ const [status, ...rest] = line.split("\t");
693
+ return { status: status ?? "", path: rest.join("\t") };
638
694
  });
639
- const minedTests = changed.filter((entry) => MINED_TEST_PATH.test(entry.path) && entry.status !== 'D');
695
+ const minedTests = changed.filter((entry) => MINED_TEST_PATH.test(entry.path) && entry.status !== "D");
640
696
  const nonTests = changed.filter((entry) => !MINED_TEST_PATH.test(entry.path));
641
697
  if (minedTests.length === 0) {
642
698
  throw new Error(`Commit ${shortSha} changes no test files — --from-commit needs a fix that ships a test (the test becomes the verifier).`);
@@ -644,19 +700,19 @@ function prepareFromCommit(options, cwd, preparedAt) {
644
700
  if (nonTests.length === 0) {
645
701
  throw new Error(`Commit ${shortSha} changes only test files — there is no fix for the agent to write.`);
646
702
  }
647
- const parentLookup = gitRun(repo, ['rev-parse', '--verify', `${sha}^`]);
703
+ const parentLookup = gitRun(repo, ["rev-parse", "--verify", `${sha}^`]);
648
704
  if (parentLookup.status !== 0) {
649
705
  throw new Error(`Commit ${shortSha} has no parent — --from-commit needs a fix commit with a parent state to use as the fixture.`);
650
706
  }
651
707
  const parent = parentLookup.stdout.trim();
652
708
  const parentShort = parent.slice(0, 8);
653
709
  // `-z` gives NUL-separated records, so a path containing a newline or a tab still parses.
654
- let tree = gitMust(repo, ['ls-tree', '-r', '-z', '--format=%(objectsize) %(path)', parent])
655
- .split('\0')
710
+ let tree = gitMust(repo, ["ls-tree", "-r", "-z", "--format=%(objectsize) %(path)", parent])
711
+ .split("\0")
656
712
  .filter(Boolean)
657
713
  .map((record) => {
658
- const separator = record.indexOf(' ');
659
- const rawSize = separator === -1 ? '' : record.slice(0, separator);
714
+ const separator = record.indexOf(" ");
715
+ const rawSize = separator === -1 ? "" : record.slice(0, separator);
660
716
  const path = separator === -1 ? record : record.slice(separator + 1);
661
717
  const size = /^\d+$/.test(rawSize) ? Number(rawSize) : Number.NaN;
662
718
  if (!Number.isFinite(size)) {
@@ -668,35 +724,42 @@ function prepareFromCommit(options, cwd, preparedAt) {
668
724
  return { size, path };
669
725
  });
670
726
  if (options.include && options.include.length > 0) {
671
- const prefixes = options.include.map((prefix) => prefix.replace(/\/?$/, '/'));
727
+ const prefixes = options.include.map((prefix) => prefix.replace(/\/?$/, "/"));
672
728
  tree = tree.filter((entry) => prefixes.some((prefix) => entry.path.startsWith(prefix)));
673
729
  if (tree.length === 0) {
674
- throw new Error(`--include pathspec(s) ${options.include.join(', ')} match nothing at ${parentShort}.`);
730
+ throw new Error(`--include pathspec(s) ${options.include.join(", ")} match nothing at ${parentShort}.`);
675
731
  }
676
732
  }
677
733
  const totalBytes = tree.reduce((sum, entry) => sum + entry.size, 0);
678
734
  if (tree.length > MINED_MAX_FILES || totalBytes > MINED_MAX_BYTES) {
679
735
  throw new Error(`Repo state at ${parentShort} is ${tree.length} files / ${Math.round(totalBytes / 1024)} KB — too large for a bench fixture. Narrow it with --include <dir> (repeatable).`);
680
736
  }
681
- const fixtureFiles = tree.map((entry) => ({ rel: entry.path, content: gitShow(repo, parent, entry.path) }));
682
- const tests = minedTests.map((entry) => ({ rel: entry.path, content: gitShow(repo, sha, entry.path) }));
683
- const verifierCmd = options.verifierCmd ?? 'node --test';
737
+ const fixtureFiles = tree.map((entry) => ({
738
+ rel: entry.path,
739
+ content: gitShow(repo, parent, entry.path),
740
+ }));
741
+ const tests = minedTests.map((entry) => ({
742
+ rel: entry.path,
743
+ content: gitShow(repo, sha, entry.path),
744
+ }));
745
+ const verifierCmd = options.verifierCmd ?? "node --test";
684
746
  return {
685
747
  defaultTaskId: `fix-${shortSha}`,
686
- promptText: issuePrompt ?? `# Task: implement the following change request
748
+ promptText: issuePrompt ??
749
+ `# Task: implement the following change request
687
750
 
688
751
  The repository below is \`${basename(repo)}\` at commit \`${parentShort}\` — the state before the fix that resolved this request was applied.
689
752
 
690
753
  ## Change request
691
754
 
692
- ${subject}${body !== '' ? `\n\n${body}` : ''}
755
+ ${subject}${body !== "" ? `\n\n${body}` : ""}
693
756
 
694
757
  ## Rules
695
758
 
696
759
  - Do not change public export names.
697
760
  - Hidden grading runs the project's tests afterward — make the behavior correct, not merely plausible.`,
698
761
  verifierSource: verifierForMinedTests(tests, verifierCmd),
699
- verifierKind: 'command',
762
+ verifierKind: "command",
700
763
  fixtureFiles,
701
764
  groundTruth: `# Ground truth — fix-${shortSha}
702
765
 
@@ -705,8 +768,8 @@ Mined from git history on ${preparedAt.toISOString().slice(0, 10)}.
705
768
  - Repository: \`${repo}\`
706
769
  - Fix commit: \`${sha}\` — ${subject}
707
770
  - Parent (fixture state): \`${parent}\`
708
- - Task prompt: ${issuePrompt === undefined ? 'generated from fix commit subject/body; review for solution hints before efficacy evaluation' : 'user-supplied issue request; fix commit subject/body was not injected'}.
709
- - Verifier: the fix commit's own tests (${tests.map((test) => `\`${test.rel}\``).join(', ')}), run via \`${verifierCmd}\` — they fail on the parent state and pass once the fix is implemented (FAIL_TO_PASS).
771
+ - Task prompt: ${issuePrompt === undefined ? "generated from fix commit subject/body; review for solution hints before efficacy evaluation" : "user-supplied issue request; fix commit subject/body was not injected"}.
772
+ - Verifier: the fix commit's own tests (${tests.map((test) => `\`${test.rel}\``).join(", ")}), run via \`${verifierCmd}\` — they fail on the parent state and pass once the fix is implemented (FAIL_TO_PASS).
710
773
  - The fix itself: see \`git show ${sha}\` in the source repository.
711
774
 
712
775
  TODO: summarize the correct fix here so future bench edits stay honest.
@@ -714,41 +777,70 @@ TODO: summarize the correct fix here so future bench edits stay honest.
714
777
  planFixtureLine: `${fixtureFiles.length} file(s) at parent ${parentShort} from ${repo} (+${tests.length} hidden test file(s) embedded in the verifier)`,
715
778
  };
716
779
  }
717
- const EDITABLE = ['fixture', 'prompt', 'promptTrigger', 'verifier', 'verifierKind', 'verifierTimeoutSeconds', 'oracle', 'rubric', 'shouldTrigger', 'claims'];
718
- const OPTIONAL = ['promptTrigger', 'verifierTimeoutSeconds', 'oracle', 'rubric', 'shouldTrigger'];
780
+ const EDITABLE = [
781
+ "fixture",
782
+ "prompt",
783
+ "promptTrigger",
784
+ "verifier",
785
+ "verifierKind",
786
+ "verifierTimeoutSeconds",
787
+ "oracle",
788
+ "rubric",
789
+ "shouldTrigger",
790
+ "claims",
791
+ ];
792
+ const OPTIONAL = [
793
+ "promptTrigger",
794
+ "verifierTimeoutSeconds",
795
+ "oracle",
796
+ "rubric",
797
+ "shouldTrigger",
798
+ ];
719
799
  export function inspectBench(dir, taskId) {
720
800
  const bench = loadBench(resolveBenchDir(dir));
721
- const tasks = taskId === undefined ? bench.tasks : bench.tasks.filter(task => task.id === taskId);
801
+ const tasks = taskId === undefined ? bench.tasks : bench.tasks.filter((task) => task.id === taskId);
722
802
  if (!tasks.length)
723
803
  throw new Error(`Unknown task: ${taskId}`);
724
- return { schemaVersion: 1, benchSchemaVersion: bench.schemaVersion, kind: taskId === undefined ? 'skillfit.bench-list' : 'skillfit.bench-task',
725
- dir: bench.dir, name: bench.name, sha256: bench.contentSha256,
726
- tasks: tasks.map(task => ({ ...task, claims: task.claims ?? null, claimsStatus: bench.schemaVersion === 1 ? 'legacy-unrecorded' : 'declared', verifierKind: task.verifierKind ?? 'output', shouldTrigger: task.shouldTrigger ?? null })) };
804
+ return {
805
+ schemaVersion: 1,
806
+ benchSchemaVersion: bench.schemaVersion,
807
+ kind: taskId === undefined ? "skillfit.bench-list" : "skillfit.bench-task",
808
+ dir: bench.dir,
809
+ name: bench.name,
810
+ sha256: bench.contentSha256,
811
+ tasks: tasks.map((task) => ({
812
+ ...task,
813
+ claims: task.claims ?? null,
814
+ claimsStatus: bench.schemaVersion === 1 ? "legacy-unrecorded" : "declared",
815
+ verifierKind: task.verifierKind ?? "output",
816
+ shouldTrigger: task.shouldTrigger ?? null,
817
+ })),
818
+ };
727
819
  }
728
820
  function prepareManagement(options) {
729
- const dir = resolve(options.dir), path = join(dir, 'bench.json');
821
+ const dir = resolve(options.dir), path = join(dir, "bench.json");
730
822
  if (lstatSync(path).isSymbolicLink())
731
- throw new Error('Refusing to edit a symlinked bench.json.');
732
- const before = readFileSync(path, 'utf8');
823
+ throw new Error("Refusing to edit a symlinked bench.json.");
824
+ const before = readFileSync(path, "utf8");
733
825
  const bench = loadBench(dir);
734
826
  const manifest = JSON.parse(before);
735
- const index = manifest.tasks.findIndex(task => task.id === options.taskId);
827
+ const index = manifest.tasks.findIndex((task) => task.id === options.taskId);
736
828
  if (index < 0)
737
829
  throw new Error(`Unknown task: ${options.taskId}`);
738
830
  const original = { ...manifest.tasks[index] };
739
- if (options.action === 'remove') {
831
+ if (options.action === "remove") {
740
832
  if (options.set?.length || options.unset?.length)
741
- throw new Error('Removal cannot be combined with --set or --unset.');
833
+ throw new Error("Removal cannot be combined with --set or --unset.");
742
834
  if (manifest.tasks.length === 1)
743
- throw new Error('Cannot remove the last task. Add a real task before removing the teaching case.');
835
+ throw new Error("Cannot remove the last task. Add a real task before removing the teaching case.");
744
836
  manifest.tasks.splice(index, 1);
745
837
  }
746
838
  else {
747
839
  if (!options.set?.length && !options.unset?.length)
748
- throw new Error('Editing requires --set field=value or --unset field.');
840
+ throw new Error("Editing requires --set field=value or --unset field.");
749
841
  const next = { ...original }, touched = new Set();
750
842
  for (const assignment of options.set ?? []) {
751
- const at = assignment.indexOf('=');
843
+ const at = assignment.indexOf("=");
752
844
  if (at < 1)
753
845
  throw new Error(`Invalid --set: ${assignment}; expected field=value.`);
754
846
  const field = assignment.slice(0, at), value = assignment.slice(at + 1);
@@ -757,23 +849,23 @@ function prepareManagement(options) {
757
849
  if (touched.has(field))
758
850
  throw new Error(`Repeated edit field: ${field}`);
759
851
  touched.add(field);
760
- if (field === 'claims') {
852
+ if (field === "claims") {
761
853
  if (bench.schemaVersion !== 2)
762
- throw new Error('claims editing requires explicit schema 2; no automatic upgrade.');
854
+ throw new Error("claims editing requires explicit schema 2; no automatic upgrade.");
763
855
  try {
764
856
  next[field] = JSON.parse(value);
765
857
  }
766
858
  catch {
767
- throw new Error('claims must be a JSON array.');
859
+ throw new Error("claims must be a JSON array.");
768
860
  }
769
861
  }
770
- else if (field === 'shouldTrigger') {
771
- if (value !== 'true' && value !== 'false')
772
- throw new Error('shouldTrigger must be true or false.');
773
- next[field] = value === 'true';
862
+ else if (field === "shouldTrigger") {
863
+ if (value !== "true" && value !== "false")
864
+ throw new Error("shouldTrigger must be true or false.");
865
+ next[field] = value === "true";
774
866
  }
775
867
  else
776
- next[field] = field === 'verifierTimeoutSeconds' ? Number(value) : value;
868
+ next[field] = field === "verifierTimeoutSeconds" ? Number(value) : value;
777
869
  }
778
870
  for (const field of options.unset ?? []) {
779
871
  if (!OPTIONAL.includes(field))
@@ -786,38 +878,65 @@ function prepareManagement(options) {
786
878
  validateBenchTask(dir, next, index, bench.schemaVersion);
787
879
  manifest.tasks[index] = next;
788
880
  }
789
- const after = options.action === 'remove' ? null : manifest.tasks[index];
881
+ const after = options.action === "remove" ? null : manifest.tasks[index];
790
882
  const changed = JSON.stringify(original) !== JSON.stringify(after);
791
- const result = { schemaVersion: 1, kind: 'skillfit.bench-change', action: options.action,
792
- dir, taskId: options.taskId, status: changed ? 'planned' : 'unchanged', before: original, after, filesPreserved: true,
793
- backup: path + BACKUP_SUFFIX, previousSha256: bench.contentSha256, sha256: bench.contentSha256 };
794
- const writes = [{ target: path, content: JSON.stringify(manifest, null, 2) + '\n' }];
883
+ const result = {
884
+ schemaVersion: 1,
885
+ kind: "skillfit.bench-change",
886
+ action: options.action,
887
+ dir,
888
+ taskId: options.taskId,
889
+ status: changed ? "planned" : "unchanged",
890
+ before: original,
891
+ after,
892
+ filesPreserved: true,
893
+ backup: path + BACKUP_SUFFIX,
894
+ previousSha256: bench.contentSha256,
895
+ sha256: bench.contentSha256,
896
+ };
897
+ const writes = [{ target: path, content: JSON.stringify(manifest, null, 2) + "\n" }];
795
898
  const assertCurrent = () => {
796
- if (readFileSync(path, 'utf8') !== before)
797
- throw new Error('bench.json changed after the plan; nothing written.');
899
+ if (readFileSync(path, "utf8") !== before)
900
+ throw new Error("bench.json changed after the plan; nothing written.");
798
901
  assertBenchWrites(dir, [path]);
799
902
  if (loadBench(dir).contentSha256 !== bench.contentSha256)
800
- throw new Error('Bench source changed after the plan; nothing written.');
903
+ throw new Error("Bench source changed after the plan; nothing written.");
801
904
  };
802
- return prepared({ operation: options.action, dir, writes, targetSha256: sha256Text(before), draft: false,
803
- result, assertCurrent, confirmation: '', lines: { before: [], preview: [], after: [] } }, {
905
+ return prepared({
906
+ operation: options.action,
907
+ dir,
908
+ writes,
909
+ targetSha256: sha256Text(before),
910
+ draft: false,
911
+ result,
912
+ assertCurrent,
913
+ confirmation: "",
914
+ lines: { before: [], preview: [], after: [] },
915
+ }, {
804
916
  apply: () => {
805
917
  assertCurrent();
806
918
  if (changed) {
807
919
  applyBenchWrites(dir, writes);
808
920
  result.sha256 = loadBench(dir).contentSha256;
809
- result.status = 'applied';
921
+ result.status = "applied";
810
922
  }
811
923
  return result;
812
924
  },
813
925
  });
814
926
  }
815
927
  export function prepareBenchChange(request, dependencies = {}) {
816
- if (request.operation === 'init')
928
+ if (request.operation === "init")
817
929
  return prepareInit({ ...request.options }, dependencies);
818
- if (request.operation === 'add')
819
- return prepareAdd({ ...request.options,
820
- include: request.options.include?.slice(), claims: request.options.claims?.slice() }, dependencies.now ?? (() => new Date()));
821
- return prepareManagement({ ...request.options, action: request.operation,
822
- set: request.options.set?.slice(), unset: request.options.unset?.slice() });
930
+ if (request.operation === "add")
931
+ return prepareAdd({
932
+ ...request.options,
933
+ include: request.options.include?.slice(),
934
+ claims: request.options.claims?.slice(),
935
+ }, dependencies.now ?? (() => new Date()));
936
+ return prepareManagement({
937
+ ...request.options,
938
+ action: request.operation,
939
+ set: request.options.set?.slice(),
940
+ unset: request.options.unset?.slice(),
941
+ });
823
942
  }