skillfit 0.0.0-stage → 0.8.0

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 (371) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +226 -2
  3. package/README.zh-CN.md +224 -0
  4. package/benches/README.md +172 -0
  5. package/benches/code-review/bench.json +57 -0
  6. package/benches/code-review/fixtures/explain-x1/.skillfit-mock.json +10 -0
  7. package/benches/code-review/fixtures/explain-x1/SPEC.md +16 -0
  8. package/benches/code-review/fixtures/explain-x1/src/compact.js +18 -0
  9. package/benches/code-review/fixtures/explain-x1/tests/compact.test.js +18 -0
  10. package/benches/code-review/fixtures/review-r1/.skillfit-mock.json +10 -0
  11. package/benches/code-review/fixtures/review-r1/CHANGES.diff +42 -0
  12. package/benches/code-review/fixtures/review-r1/SPEC.md +16 -0
  13. package/benches/code-review/fixtures/review-r1/src/errors.js +7 -0
  14. package/benches/code-review/fixtures/review-r1/src/money.js +3 -0
  15. package/benches/code-review/fixtures/review-r1/src/order.js +13 -0
  16. package/benches/code-review/fixtures/review-r1/tests/order.test.js +17 -0
  17. package/benches/code-review/fixtures/review-r2/.skillfit-mock.json +10 -0
  18. package/benches/code-review/fixtures/review-r2/CHANGES.diff +81 -0
  19. package/benches/code-review/fixtures/review-r2/SPEC.md +25 -0
  20. package/benches/code-review/fixtures/review-r2/src/errors.js +7 -0
  21. package/benches/code-review/fixtures/review-r2/src/invoice.js +9 -0
  22. package/benches/code-review/fixtures/review-r2/src/money.js +3 -0
  23. package/benches/code-review/fixtures/review-r2/tests/invoice.test.js +13 -0
  24. package/benches/code-review/fixtures/review-r3/.skillfit-mock.json +10 -0
  25. package/benches/code-review/fixtures/review-r3/CHANGES.diff +76 -0
  26. package/benches/code-review/fixtures/review-r3/SPEC.md +24 -0
  27. package/benches/code-review/fixtures/review-r3/src/errors.js +7 -0
  28. package/benches/code-review/fixtures/review-r3/src/money.js +3 -0
  29. package/benches/code-review/fixtures/review-r3/src/pricing.js +20 -0
  30. package/benches/code-review/fixtures/review-r3/tests/pricing.test.js +15 -0
  31. package/benches/code-review/fixtures/summarize-s1/.skillfit-mock.json +16 -0
  32. package/benches/code-review/fixtures/summarize-s1/CHANGES.diff +27 -0
  33. package/benches/code-review/fixtures/summarize-s1/SPEC.md +15 -0
  34. package/benches/code-review/fixtures/summarize-s1/src/discount.js +20 -0
  35. package/benches/code-review/fixtures/summarize-s1/src/errors.js +7 -0
  36. package/benches/code-review/fixtures/summarize-s1/src/money.js +7 -0
  37. package/benches/code-review/ground-truth/oracle-r1.mjs +21 -0
  38. package/benches/code-review/ground-truth/oracle-r2.mjs +21 -0
  39. package/benches/code-review/ground-truth/oracle-r3.mjs +20 -0
  40. package/benches/code-review/ground-truth/oracle-summarize-s1.mjs +21 -0
  41. package/benches/code-review/ground-truth/oracle-x1.mjs +18 -0
  42. package/benches/code-review/ground-truth/r1.md +22 -0
  43. package/benches/code-review/ground-truth/r2.md +21 -0
  44. package/benches/code-review/ground-truth/r3.md +18 -0
  45. package/benches/code-review/ground-truth/summarize-s1.md +26 -0
  46. package/benches/code-review/ground-truth/x1.md +7 -0
  47. package/benches/code-review/prompts/explain-x1.md +5 -0
  48. package/benches/code-review/prompts/explain-x1.trigger.md +5 -0
  49. package/benches/code-review/prompts/review-r1.md +7 -0
  50. package/benches/code-review/prompts/review-r1.trigger.md +7 -0
  51. package/benches/code-review/prompts/review-r2.md +7 -0
  52. package/benches/code-review/prompts/review-r2.trigger.md +7 -0
  53. package/benches/code-review/prompts/review-r3.md +7 -0
  54. package/benches/code-review/prompts/review-r3.trigger.md +7 -0
  55. package/benches/code-review/prompts/summarize-s1.md +9 -0
  56. package/benches/code-review/prompts/summarize-s1.trigger.md +9 -0
  57. package/benches/code-review/verifiers/explain-x1.mjs +30 -0
  58. package/benches/code-review/verifiers/review-r2.mjs +66 -0
  59. package/benches/code-review/verifiers/review-r3.mjs +60 -0
  60. package/benches/code-review/verifiers/seeded-bugs.mjs +74 -0
  61. package/benches/code-review/verifiers/summarize-s1.mjs +80 -0
  62. package/benches/contrib/README.md +42 -0
  63. package/benches/contrib/oss-lru-cache/README.md +24 -0
  64. package/benches/contrib/oss-lru-cache/bench.json +37 -0
  65. package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/LICENSE +15 -0
  66. package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/README.md +3 -0
  67. package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/index.js +1044 -0
  68. package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/package.json +11 -0
  69. package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/runtime.mjs +22 -0
  70. package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/test.mjs +11 -0
  71. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/LICENSE.md +55 -0
  72. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/README.md +3 -0
  73. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/package.json +11 -0
  74. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/runtime.mjs +22 -0
  75. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-browser.ts +11 -0
  76. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-cjs.cts +11 -0
  77. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-esm.mts +29 -0
  78. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-node.ts +7 -0
  79. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel.ts +6 -0
  80. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/index.ts +3148 -0
  81. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/perf.ts +17 -0
  82. package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/test.mjs +11 -0
  83. package/benches/contrib/oss-lru-cache/fixtures/fetch-size/LICENSE +15 -0
  84. package/benches/contrib/oss-lru-cache/fixtures/fetch-size/README.md +3 -0
  85. package/benches/contrib/oss-lru-cache/fixtures/fetch-size/index.js +1028 -0
  86. package/benches/contrib/oss-lru-cache/fixtures/fetch-size/package.json +11 -0
  87. package/benches/contrib/oss-lru-cache/fixtures/fetch-size/runtime.mjs +22 -0
  88. package/benches/contrib/oss-lru-cache/fixtures/fetch-size/test.mjs +11 -0
  89. package/benches/contrib/oss-lru-cache/ground-truth/fetch-abort/LICENSE +15 -0
  90. package/benches/contrib/oss-lru-cache/ground-truth/fetch-abort/index.js +1053 -0
  91. package/benches/contrib/oss-lru-cache/ground-truth/fetch-abort.md +11 -0
  92. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/LICENSE.md +55 -0
  93. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-browser.ts +11 -0
  94. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-cjs.cts +11 -0
  95. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-esm.mts +29 -0
  96. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-node.ts +7 -0
  97. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel.ts +6 -0
  98. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/index.ts +3174 -0
  99. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/perf.ts +17 -0
  100. package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle.md +11 -0
  101. package/benches/contrib/oss-lru-cache/ground-truth/fetch-size/LICENSE +15 -0
  102. package/benches/contrib/oss-lru-cache/ground-truth/fetch-size/index.js +1028 -0
  103. package/benches/contrib/oss-lru-cache/ground-truth/fetch-size.md +11 -0
  104. package/benches/contrib/oss-lru-cache/ground-truth/oracle-fetch-abort.mjs +8 -0
  105. package/benches/contrib/oss-lru-cache/ground-truth/oracle-fetch-lifecycle.mjs +7 -0
  106. package/benches/contrib/oss-lru-cache/ground-truth/oracle-fetch-size.mjs +7 -0
  107. package/benches/contrib/oss-lru-cache/ground-truth/oracle.mjs +9 -0
  108. package/benches/contrib/oss-lru-cache/prompts/fetch-abort.md +5 -0
  109. package/benches/contrib/oss-lru-cache/prompts/fetch-lifecycle.md +5 -0
  110. package/benches/contrib/oss-lru-cache/prompts/fetch-size.md +5 -0
  111. package/benches/contrib/oss-lru-cache/provenance.json +62 -0
  112. package/benches/contrib/oss-lru-cache/runtime.mjs +22 -0
  113. package/benches/contrib/oss-lru-cache/verifiers/cases.mjs +74 -0
  114. package/benches/contrib/oss-lru-cache/verifiers/fetch-abort.mjs +3 -0
  115. package/benches/contrib/oss-lru-cache/verifiers/fetch-lifecycle.mjs +3 -0
  116. package/benches/contrib/oss-lru-cache/verifiers/fetch-size.mjs +3 -0
  117. package/benches/contrib/oss-lru-cache/verifiers/probe.mjs +14 -0
  118. package/benches/contrib/oss-lru-cache/verifiers/shared.mjs +130 -0
  119. package/benches/contrib/oss-lru-cache/verifiers/test-reporter.mjs +29 -0
  120. package/benches/contrib/oss-mcp-use-utf8/LICENSE.upstream +21 -0
  121. package/benches/contrib/oss-mcp-use-utf8/README.md +56 -0
  122. package/benches/contrib/oss-mcp-use-utf8/bench.json +16 -0
  123. package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/LICENSE +21 -0
  124. package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/package.json +3 -0
  125. package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/src/ext-apps-bridge.js +3 -0
  126. package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/src/resolve-view-resource.ts +96 -0
  127. package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/test/basic.test.mjs +13 -0
  128. package/benches/contrib/oss-mcp-use-utf8/ground-truth/README.md +5 -0
  129. package/benches/contrib/oss-mcp-use-utf8/ground-truth/oracle-view-utf8.mjs +11 -0
  130. package/benches/contrib/oss-mcp-use-utf8/ground-truth/solutions/view-utf8/src/resolve-view-resource.ts +96 -0
  131. package/benches/contrib/oss-mcp-use-utf8/ground-truth/solutions/view-utf8/test/utf8.regression.test.mjs +14 -0
  132. package/benches/contrib/oss-mcp-use-utf8/prompts/view-utf8.md +8 -0
  133. package/benches/contrib/oss-mcp-use-utf8/verifiers/view-utf8.mjs +120 -0
  134. package/benches/contrib/waza-behavior/LICENSE.upstream +21 -0
  135. package/benches/contrib/waza-behavior/README.md +31 -0
  136. package/benches/contrib/waza-behavior/bench.json +10 -0
  137. package/benches/contrib/waza-behavior/fixtures/explicit-hold/README.md +1 -0
  138. package/benches/contrib/waza-behavior/fixtures/explicit-hold/notes.txt +1 -0
  139. package/benches/contrib/waza-behavior/fixtures/receipt-current/README.md +1 -0
  140. package/benches/contrib/waza-behavior/fixtures/receipt-current/docs/guide.md +2 -0
  141. package/benches/contrib/waza-behavior/fixtures/receipt-current/notes.txt +1 -0
  142. package/benches/contrib/waza-behavior/fixtures/receipt-current/scripts/check-links.mjs +16 -0
  143. package/benches/contrib/waza-behavior/fixtures/receipt-current/validation-receipt.json +10 -0
  144. package/benches/contrib/waza-behavior/fixtures/receipt-stale/README.md +1 -0
  145. package/benches/contrib/waza-behavior/fixtures/receipt-stale/docs/guide.md +3 -0
  146. package/benches/contrib/waza-behavior/fixtures/receipt-stale/notes.txt +1 -0
  147. package/benches/contrib/waza-behavior/fixtures/receipt-stale/scripts/check-links.mjs +16 -0
  148. package/benches/contrib/waza-behavior/fixtures/receipt-stale/validation-receipt.json +10 -0
  149. package/benches/contrib/waza-behavior/ground-truth/oracle.mjs +24 -0
  150. package/benches/contrib/waza-behavior/prompts/explicit-hold.md +1 -0
  151. package/benches/contrib/waza-behavior/prompts/receipt-current.md +1 -0
  152. package/benches/contrib/waza-behavior/prompts/receipt-stale.md +1 -0
  153. package/benches/contrib/waza-behavior/verifiers/behavior.mjs +59 -0
  154. package/benches/debugging/bench.json +93 -0
  155. package/benches/debugging/fixtures/async-queue/src/task-queue.mjs +50 -0
  156. package/benches/debugging/fixtures/async-queue/test/basic.test.mjs +18 -0
  157. package/benches/debugging/fixtures/chunked-decoder/src/frame-decoder.mjs +39 -0
  158. package/benches/debugging/fixtures/chunked-decoder/test/basic.test.mjs +17 -0
  159. package/benches/debugging/fixtures/debug-redaction/src/debug-redaction.mjs +33 -0
  160. package/benches/debugging/fixtures/debug-redaction/test/basic.test.mjs +26 -0
  161. package/benches/debugging/fixtures/document-queue/.skillfit-mock.json +16 -0
  162. package/benches/debugging/fixtures/document-queue/src/task-queue.mjs +52 -0
  163. package/benches/debugging/fixtures/document-queue/test/basic.test.mjs +23 -0
  164. package/benches/debugging/fixtures/explain-cache/.skillfit-mock.json +16 -0
  165. package/benches/debugging/fixtures/explain-cache/src/ttl-cache.mjs +31 -0
  166. package/benches/debugging/fixtures/explain-cache/test/basic.test.mjs +28 -0
  167. package/benches/debugging/fixtures/feat-slug/test/slug.test.mjs +15 -0
  168. package/benches/debugging/fixtures/range-parser/src/range-parser.mjs +9 -0
  169. package/benches/debugging/fixtures/range-parser/test/basic.test.mjs +8 -0
  170. package/benches/debugging/fixtures/ttl-cache/src/ttl-cache.mjs +30 -0
  171. package/benches/debugging/fixtures/ttl-cache/test/basic.test.mjs +11 -0
  172. package/benches/debugging/ground-truth/async-queue.md +81 -0
  173. package/benches/debugging/ground-truth/chunked-decoder.md +91 -0
  174. package/benches/debugging/ground-truth/debug-redaction.md +113 -0
  175. package/benches/debugging/ground-truth/document-queue.md +24 -0
  176. package/benches/debugging/ground-truth/explain-cache.md +22 -0
  177. package/benches/debugging/ground-truth/feat-slug.md +45 -0
  178. package/benches/debugging/ground-truth/oracle-async-queue.mjs +14 -0
  179. package/benches/debugging/ground-truth/oracle-chunked-decoder.mjs +14 -0
  180. package/benches/debugging/ground-truth/oracle-debug-redaction.mjs +30 -0
  181. package/benches/debugging/ground-truth/oracle-document-queue.mjs +27 -0
  182. package/benches/debugging/ground-truth/oracle-explain-cache.mjs +28 -0
  183. package/benches/debugging/ground-truth/oracle-feat-slug.mjs +13 -0
  184. package/benches/debugging/ground-truth/oracle-range-parser.mjs +14 -0
  185. package/benches/debugging/ground-truth/oracle-ttl-cache.mjs +14 -0
  186. package/benches/debugging/ground-truth/range-parser.md +121 -0
  187. package/benches/debugging/ground-truth/solutions/async-queue/src/task-queue.mjs +52 -0
  188. package/benches/debugging/ground-truth/solutions/chunked-decoder/src/frame-decoder.mjs +50 -0
  189. package/benches/debugging/ground-truth/solutions/debug-redaction/src/debug-redaction.mjs +27 -0
  190. package/benches/debugging/ground-truth/solutions/debug-redaction/test/debug-leak.regression.test.mjs +27 -0
  191. package/benches/debugging/ground-truth/solutions/feat-slug/src/slug.mjs +6 -0
  192. package/benches/debugging/ground-truth/solutions/range-parser/src/range-parser.mjs +34 -0
  193. package/benches/debugging/ground-truth/solutions/range-parser/test/basic.test.mjs +26 -0
  194. package/benches/debugging/ground-truth/solutions/ttl-cache/src/ttl-cache.mjs +31 -0
  195. package/benches/debugging/ground-truth/ttl-cache.md +69 -0
  196. package/benches/debugging/prompts/async-queue.md +13 -0
  197. package/benches/debugging/prompts/async-queue.trigger.md +13 -0
  198. package/benches/debugging/prompts/chunked-decoder.md +13 -0
  199. package/benches/debugging/prompts/chunked-decoder.trigger.md +13 -0
  200. package/benches/debugging/prompts/debug-redaction.md +23 -0
  201. package/benches/debugging/prompts/debug-redaction.trigger.md +23 -0
  202. package/benches/debugging/prompts/document-queue.md +10 -0
  203. package/benches/debugging/prompts/document-queue.trigger.md +10 -0
  204. package/benches/debugging/prompts/explain-cache.md +10 -0
  205. package/benches/debugging/prompts/explain-cache.trigger.md +10 -0
  206. package/benches/debugging/prompts/feat-slug.md +3 -0
  207. package/benches/debugging/prompts/feat-slug.trigger.md +5 -0
  208. package/benches/debugging/prompts/range-parser.md +15 -0
  209. package/benches/debugging/prompts/range-parser.trigger.md +15 -0
  210. package/benches/debugging/prompts/ttl-cache.md +18 -0
  211. package/benches/debugging/prompts/ttl-cache.trigger.md +18 -0
  212. package/benches/debugging/verifiers/async-queue.mjs +221 -0
  213. package/benches/debugging/verifiers/chunked-decoder.mjs +208 -0
  214. package/benches/debugging/verifiers/debug-redaction.mjs +283 -0
  215. package/benches/debugging/verifiers/document-queue.mjs +52 -0
  216. package/benches/debugging/verifiers/explain-cache.mjs +62 -0
  217. package/benches/debugging/verifiers/feat-slug.mjs +127 -0
  218. package/benches/debugging/verifiers/range-parser.mjs +146 -0
  219. package/benches/debugging/verifiers/ttl-cache.mjs +111 -0
  220. package/dist/agents.js +26 -0
  221. package/dist/cli.js +310 -0
  222. package/dist/cli.test.js +76 -0
  223. package/dist/commands/bench.js +1035 -0
  224. package/dist/commands/bench.test.js +1061 -0
  225. package/dist/commands/bundle.js +334 -0
  226. package/dist/commands/bundle.test.js +142 -0
  227. package/dist/commands/confirm.js +39 -0
  228. package/dist/commands/doctor.js +399 -0
  229. package/dist/commands/doctor.test.js +280 -0
  230. package/dist/commands/eval-report.js +485 -0
  231. package/dist/commands/eval-report.test.js +306 -0
  232. package/dist/commands/eval.js +391 -0
  233. package/dist/commands/eval.test.js +446 -0
  234. package/dist/commands/install.js +653 -0
  235. package/dist/commands/install.test.js +555 -0
  236. package/dist/commands/mcp.js +20 -0
  237. package/dist/commands/report.js +78 -0
  238. package/dist/commands/report.test.js +110 -0
  239. package/dist/commands/setup.js +95 -0
  240. package/dist/commands/setup.test.js +150 -0
  241. package/dist/commands/upstream.js +210 -0
  242. package/dist/commands/upstream.test.js +139 -0
  243. package/dist/docs.test.js +154 -0
  244. package/dist/frontmatter.js +53 -0
  245. package/dist/frontmatter.test.js +49 -0
  246. package/dist/harness/bench.js +134 -0
  247. package/dist/harness/bench.test.js +109 -0
  248. package/dist/harness/bundle.js +46 -0
  249. package/dist/harness/bundle.test.js +71 -0
  250. package/dist/harness/constants.js +2 -0
  251. package/dist/harness/executors/api.js +68 -0
  252. package/dist/harness/executors/api.test.js +75 -0
  253. package/dist/harness/executors/cli.js +348 -0
  254. package/dist/harness/executors/cli.test.js +402 -0
  255. package/dist/harness/executors/mock.js +34 -0
  256. package/dist/harness/executors/mock.test.js +43 -0
  257. package/dist/harness/experiment-session.js +345 -0
  258. package/dist/harness/experiment-session.test.js +223 -0
  259. package/dist/harness/hash.js +29 -0
  260. package/dist/harness/installed-skill.js +78 -0
  261. package/dist/harness/installed-skill.test.js +162 -0
  262. package/dist/harness/judge.js +108 -0
  263. package/dist/harness/judge.test.js +181 -0
  264. package/dist/harness/kill-tree.js +43 -0
  265. package/dist/harness/kimi-usage.js +94 -0
  266. package/dist/harness/kimi-usage.test.js +62 -0
  267. package/dist/harness/oss-lru-cache.test.js +79 -0
  268. package/dist/harness/oss-regression-witness.test.js +89 -0
  269. package/dist/harness/prompt.js +57 -0
  270. package/dist/harness/prompt.test.js +48 -0
  271. package/dist/harness/receipts.js +297 -0
  272. package/dist/harness/receipts.test.js +148 -0
  273. package/dist/harness/report.js +225 -0
  274. package/dist/harness/report.test.js +297 -0
  275. package/dist/harness/runner.js +629 -0
  276. package/dist/harness/runner.test.js +555 -0
  277. package/dist/harness/stats.js +93 -0
  278. package/dist/harness/stats.test.js +124 -0
  279. package/dist/harness/target.js +90 -0
  280. package/dist/harness/target.test.js +60 -0
  281. package/dist/harness/trigger.js +368 -0
  282. package/dist/harness/trigger.test.js +249 -0
  283. package/dist/harness/types.js +1 -0
  284. package/dist/harness/verifier-summary.js +59 -0
  285. package/dist/harness/verifier-summary.test.js +99 -0
  286. package/dist/harness/waza-behavior.test.js +139 -0
  287. package/dist/invocation.js +21 -0
  288. package/dist/matrix/agents.json +200 -0
  289. package/dist/matrix/agents.schema.json +152 -0
  290. package/dist/mcp/probe.js +317 -0
  291. package/dist/mcp/probe.test.js +87 -0
  292. package/dist/version.js +4 -0
  293. package/docs/assets/skillfit-flow.en.svg +47 -0
  294. package/docs/assets/skillfit-flow.zh-CN.svg +47 -0
  295. package/docs/assets/skillfit-mark.svg +9 -0
  296. package/docs/audit-2026-09-24-triage.md +231 -0
  297. package/docs/audit-2026-09-24.md +876 -0
  298. package/docs/bench-authoring.md +407 -0
  299. package/docs/codex-upstream-audit.md +41 -0
  300. package/docs/config-experiments.md +119 -0
  301. package/docs/examples/bench-check.yml +32 -0
  302. package/docs/examples/eval-manifest.synthetic.json +61 -0
  303. package/docs/experiment-workflow.md +15 -0
  304. package/docs/first-real-eval.md +90 -0
  305. package/docs/growth-roadmap-2026-10.md +100 -0
  306. package/docs/installed-skill-evaluation.md +77 -0
  307. package/docs/metrics.md +318 -0
  308. package/docs/oss-task-evaluation.md +139 -0
  309. package/docs/plans/2026-10-01-oss-task-evaluation.md +73 -0
  310. package/docs/plans/2026-10-09-experiment-workflow.md +18 -0
  311. package/docs/plans/2026-10-09-grader-calibration-audit.md +13 -0
  312. package/docs/plans/2026-10-09-waza-resource-evaluation.md +46 -0
  313. package/docs/portable-codex.md +31 -0
  314. package/docs/reproducible-offline-example.md +29 -0
  315. package/docs/selectable-codex.md +41 -0
  316. package/docs/sharing-results.md +53 -0
  317. package/evidence/2026-07-skill-baseline.md +34 -0
  318. package/evidence/2026-09-22-codex-trigger-capture.md +36 -0
  319. package/evidence/2026-09-bench-calibration.md +46 -0
  320. package/evidence/2026-09-debugging-bench-exploratory.md +55 -0
  321. package/evidence/2026-09-debugging-hardening.md +42 -0
  322. package/evidence/2026-09-ocr-vs-code-review.md +31 -0
  323. package/evidence/2026-09-trigger-snapshot-correction.md +48 -0
  324. package/evidence/2026-10-01-codex-diagnosing-bugs-pilot.md +58 -0
  325. package/evidence/2026-10-01-oss-case-selection.md +42 -0
  326. package/evidence/2026-10-01-oss-workspace-smoke.md +110 -0
  327. package/evidence/README.md +47 -0
  328. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/README.md +27 -0
  329. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/artifact-index.json +118 -0
  330. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/output.md +5 -0
  331. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/prompt.txt +14 -0
  332. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/result.json +65 -0
  333. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/verifier.txt +2 -0
  334. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/LICENSE +21 -0
  335. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/package.json +3 -0
  336. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/src/ext-apps-bridge.js +3 -0
  337. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/src/resolve-view-resource.ts +100 -0
  338. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/test/basic.test.mjs +13 -0
  339. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/test/resolve-view-resource.test.mjs +102 -0
  340. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/manifest.json +206 -0
  341. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/original-console.txt +44 -0
  342. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/report.md +67 -0
  343. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/output.md +5 -0
  344. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/prompt.txt +163 -0
  345. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/result.json +65 -0
  346. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/verifier.txt +2 -0
  347. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/LICENSE +21 -0
  348. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/package.json +3 -0
  349. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/src/ext-apps-bridge.js +3 -0
  350. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/src/resolve-view-resource.ts +100 -0
  351. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/test/basic.test.mjs +13 -0
  352. package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/test/resolve-view-resource.test.mjs +136 -0
  353. package/evidence/inputs/README.md +15 -0
  354. package/evidence/inputs/diagnosing-bugs/LICENSE +21 -0
  355. package/evidence/inputs/diagnosing-bugs/SKILL.md +138 -0
  356. package/evidence/inputs/diagnosing-bugs/agents/openai.yaml +3 -0
  357. package/evidence/inputs/diagnosing-bugs/scripts/hitl-loop.template.sh +44 -0
  358. package/evidence/plans/2026-10-01-oss-workspace-smoke.json +29 -0
  359. package/package.json +47 -4
  360. package/profiles/codex-curated/catalog.json +28 -0
  361. package/profiles/codex-curated/profile.json +282 -0
  362. package/profiles/codex-curated/rules/global.md +12 -0
  363. package/profiles/codex-curated/skills/autonomous-iteration/SKILL.md +75 -0
  364. package/profiles/codex-curated/skills/autonomous-iteration/agents/openai.yaml +4 -0
  365. package/profiles/codex-curated/skills/vibe-coding/SKILL.md +45 -0
  366. package/profiles/codex-curated/skills/vibe-coding/agents/openai.yaml +4 -0
  367. package/profiles/codex-upstream-sources.json +2980 -0
  368. package/profiles/recommended/profile.json +12 -0
  369. package/profiles/recommended/rules/core-workflow.md +41 -0
  370. package/profiles/recommended/skills/commit-message/SKILL.md +18 -0
  371. package/skills/skillfit/SKILL.md +60 -0
@@ -0,0 +1,66 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ const runDir = process.argv[2];
5
+ if (!runDir) {
6
+ console.error('usage: node review-r2.mjs <run-dir>');
7
+ process.exit(2);
8
+ }
9
+
10
+ const bugs = [
11
+ {
12
+ id: 'unregistered-error-code',
13
+ anchor: /invoice\.js/,
14
+ evidence: [/QTY_NEGATIVE/, /INVALID_QUANTITY/, /stable.?code|code table|not in the (table|spec)/i, /\b20\b/],
15
+ },
16
+ {
17
+ id: 'intermediate-rounding',
18
+ anchor: /invoice\.js/,
19
+ evidence: [/\b22\b/, /double.?round|rounds? (the )?(unit|intermediate|per[- ]line)|before (the )?(qty|quantity|multipl)/i, /§3/],
20
+ },
21
+ {
22
+ id: 'input-mutation',
23
+ anchor: /invoice\.js/,
24
+ evidence: [/\b33\b/, /line\.qty\s*=/, /§2/, /purity|mutat/i],
25
+ },
26
+ ];
27
+
28
+ const decoys = [
29
+ { id: 'sorts-new-array', anchor: /invoice\.js/, evidence: [/\.sort\(/, /\b25\b/] },
30
+ { id: 'formatCents', anchor: /money\.js/, evidence: [/formatCents/] },
31
+ ];
32
+
33
+ const outputPath = path.join(runDir, '_output.md');
34
+ let output;
35
+ try {
36
+ output = fs.readFileSync(outputPath, 'utf8');
37
+ } catch {
38
+ // `no-false-positives` is false here as well: an empty review is not a precise one, and crediting
39
+ // silence with "no false positives" would hand a quarter of the facet score to an agent that
40
+ // reviewed nothing.
41
+ const checks = [
42
+ ...bugs.map((bug) => ({ name: bug.id, pass: false })),
43
+ { name: 'no-false-positives', pass: false },
44
+ ];
45
+ console.log(JSON.stringify({ passed: false, hits: [], missed: ['*'], decoys: [], checks, error: `missing ${outputPath}` }));
46
+ process.exit(1);
47
+ }
48
+
49
+ const lines = output.split(/\r?\n/);
50
+
51
+ function hit(rule) {
52
+ return lines.some((line) => rule.anchor.test(line) && rule.evidence.some((re) => re.test(line)));
53
+ }
54
+
55
+ const hits = bugs.filter(hit).map((bug) => bug.id);
56
+ const missed = bugs.filter((bug) => !hits.includes(bug.id)).map((bug) => bug.id);
57
+ const decoyHits = decoys.filter(hit).map((decoy) => decoy.id);
58
+ // Decoys are plausible-but-correct code. Until this check existed they were counted and printed but
59
+ // never scored, so a review that simply reported more beat one that reported less and was right.
60
+ const checks = [
61
+ ...bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) })),
62
+ { name: 'no-false-positives', pass: decoyHits.length === 0 },
63
+ ];
64
+ const passed = missed.length === 0 && decoyHits.length === 0;
65
+ console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
66
+ process.exit(passed ? 0 : 1);
@@ -0,0 +1,60 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ const runDir = process.argv[2];
5
+ if (!runDir) {
6
+ console.error('usage: node review-r3.mjs <run-dir>');
7
+ process.exit(2);
8
+ }
9
+
10
+ const bugs = [
11
+ {
12
+ id: 'dropped-empty-guard',
13
+ anchor: /pricing(\.test)?\.js/,
14
+ evidence: [/EMPTY_ORDER/, /empty (order|array|input)/i, /§4/],
15
+ },
16
+ {
17
+ id: 'promo-bulk-stack',
18
+ anchor: /pricing\.js/,
19
+ evidence: [/never (itself |further )?discount/i, /on top of|also applies|combin|stack|both/i, /§3/, /\b1[34]\b/],
20
+ },
21
+ ];
22
+
23
+ const decoys = [
24
+ { id: 'formatOrder', anchor: /pricing\.js/, evidence: [/formatOrder/] },
25
+ ];
26
+
27
+ const outputPath = path.join(runDir, '_output.md');
28
+ let output;
29
+ try {
30
+ output = fs.readFileSync(outputPath, 'utf8');
31
+ } catch {
32
+ // `no-false-positives` is false here as well: an empty review is not a precise one, and crediting
33
+ // silence with "no false positives" would hand a third of the facet score to an agent that
34
+ // reviewed nothing.
35
+ const checks = [
36
+ ...bugs.map((bug) => ({ name: bug.id, pass: false })),
37
+ { name: 'no-false-positives', pass: false },
38
+ ];
39
+ console.log(JSON.stringify({ passed: false, hits: [], missed: ['*'], decoys: [], checks, error: `missing ${outputPath}` }));
40
+ process.exit(1);
41
+ }
42
+
43
+ const lines = output.split(/\r?\n/);
44
+
45
+ function hit(rule) {
46
+ return lines.some((line) => rule.anchor.test(line) && rule.evidence.some((re) => re.test(line)));
47
+ }
48
+
49
+ const hits = bugs.filter(hit).map((bug) => bug.id);
50
+ const missed = bugs.filter((bug) => !hits.includes(bug.id)).map((bug) => bug.id);
51
+ const decoyHits = decoys.filter(hit).map((decoy) => decoy.id);
52
+ // Decoys are plausible-but-correct code. Until this check existed they were counted and printed but
53
+ // never scored, so a review that simply reported more beat one that reported less and was right.
54
+ const checks = [
55
+ ...bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) })),
56
+ { name: 'no-false-positives', pass: decoyHits.length === 0 },
57
+ ];
58
+ const passed = missed.length === 0 && decoyHits.length === 0;
59
+ console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
60
+ process.exit(passed ? 0 : 1);
@@ -0,0 +1,74 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ const runDir = process.argv[2];
5
+ if (!runDir) {
6
+ console.error('usage: node seeded-bugs.mjs <run-dir>');
7
+ process.exit(2);
8
+ }
9
+
10
+ const bugs = [
11
+ {
12
+ id: 'bare-error',
13
+ anchor: /order\.js/,
14
+ evidence: [/\b25\b/, /INVALID_QUANTITY/, /AppError/, /bare\s+`?Error/i],
15
+ },
16
+ {
17
+ id: 'discount-boundary',
18
+ anchor: /order\.js/,
19
+ evidence: [/\b30\b/, />=\s*10/, /off-by-one/i, /boundary/i],
20
+ },
21
+ {
22
+ id: 'missing-tests',
23
+ anchor: /applyBulkDiscount/,
24
+ // A bare /test/i passed on any line that named the function and contained the word "test", so
25
+ // "applyBulkDiscount test" scored the same as a reasoned coverage finding. Require an actual
26
+ // claim about missing coverage rather than the topic word.
27
+ evidence: [
28
+ /\b(?:no|lacks?|lacking|missing|without|has no)\b[^.\n]{0,40}\b(?:tests?|coverage|covered)\b/i,
29
+ /\b(?:should|needs?|must|requires?)\b[^.\n]{0,40}\b(?:tests?|coverage)\b/i,
30
+ /\buntested\b/i,
31
+ /\bnot covered\b/i,
32
+ ],
33
+ },
34
+ ];
35
+
36
+ const decoys = [
37
+ { id: 'c-style-loop', anchor: /order\.js/, evidence: [/\b2[23]\b/] },
38
+ { id: 'percentoff', anchor: /money\.js/, evidence: [/percentOff/] },
39
+ ];
40
+
41
+ const outputPath = path.join(runDir, '_output.md');
42
+ let output;
43
+ try {
44
+ output = fs.readFileSync(outputPath, 'utf8');
45
+ } catch {
46
+ // `no-false-positives` is false here as well: an empty review is not a precise one, and crediting
47
+ // silence with "no false positives" would hand a quarter of the facet score to an agent that
48
+ // reviewed nothing.
49
+ const checks = [
50
+ ...bugs.map((bug) => ({ name: bug.id, pass: false })),
51
+ { name: 'no-false-positives', pass: false },
52
+ ];
53
+ console.log(JSON.stringify({ passed: false, hits: [], missed: ['*'], decoys: [], checks, error: `missing ${outputPath}` }));
54
+ process.exit(1);
55
+ }
56
+
57
+ const lines = output.split(/\r?\n/);
58
+
59
+ function hit(rule) {
60
+ return lines.some((line) => rule.anchor.test(line) && rule.evidence.some((re) => re.test(line)));
61
+ }
62
+
63
+ const hits = bugs.filter(hit).map((bug) => bug.id);
64
+ const missed = bugs.filter((bug) => !hits.includes(bug.id)).map((bug) => bug.id);
65
+ const decoyHits = decoys.filter(hit).map((decoy) => decoy.id);
66
+ // Decoys are plausible-but-correct code. Until this check existed they were counted and printed but
67
+ // never scored, so a review that simply reported more beat one that reported less and was right.
68
+ const checks = [
69
+ ...bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) })),
70
+ { name: 'no-false-positives', pass: decoyHits.length === 0 },
71
+ ];
72
+ const passed = missed.length === 0 && decoyHits.length === 0;
73
+ console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
74
+ process.exit(passed ? 0 : 1);
@@ -0,0 +1,80 @@
1
+ import fs from 'node:fs';
2
+ import path from 'node:path';
3
+
4
+ const runDir = process.argv[2];
5
+ if (!runDir) {
6
+ console.error('usage: node summarize-s1.mjs <run-dir>');
7
+ process.exit(2);
8
+ }
9
+
10
+ const CHECK_NAMES = ['three-bullets', 'names-user-visible-changes', 'not-a-review'];
11
+
12
+ // The three things the merged diff actually changed for a caller of the library.
13
+ const CHANGES = [
14
+ {
15
+ id: 'bulk-threshold',
16
+ evidence: [
17
+ /\b(?:10|ten)\b[^.\n]{0,60}(?:discount|bulk|item|order|qualif|threshold)/i,
18
+ /(?:discount|bulk|threshold|qualif|pricing)[^.\n]{0,60}\b(?:10|ten)\b/i,
19
+ ],
20
+ },
21
+ {
22
+ id: 'stable-error-code',
23
+ evidence: [/INVALID_QUANTITY/i, /stable[^.\n]{0,30}code/i, /error code/i, /branch on/i],
24
+ },
25
+ {
26
+ id: 'single-rounding',
27
+ evidence: [
28
+ /round\w*[^.\n]{0,40}(?:once|final|per line|end|drift|penny)/i,
29
+ /(?:once|drift|penny)[^.\n]{0,40}round/i,
30
+ ],
31
+ },
32
+ ];
33
+
34
+ // Review framing. A changelog entry that starts citing the spec and reporting violations is the
35
+ // wrong artefact, which is what makes this task a behavioural negative control and not just a label.
36
+ const REVIEW_FRAMING = /SPEC\s*§|\bviolates?\b|\bbugs?\b|\bdefects?\b|off-by-one|\bshould be\b|\bneeds? (?:to be )?fix/i;
37
+
38
+ const BULLET = /^\s*(?:[-*+]|\d+[.)])\s+\S/;
39
+
40
+ const outputPath = path.join(runDir, '_output.md');
41
+ let output;
42
+ try {
43
+ output = fs.readFileSync(outputPath, 'utf8');
44
+ } catch {
45
+ console.log(JSON.stringify({
46
+ passed: false,
47
+ changes: [],
48
+ bullets: 0,
49
+ reviewFraming: false,
50
+ checks: CHECK_NAMES.map((name) => ({ name, pass: false })),
51
+ error: `missing ${outputPath}`,
52
+ }));
53
+ process.exit(1);
54
+ }
55
+
56
+ const lines = output.split(/\r?\n/);
57
+ const bullets = lines.filter((line) => BULLET.test(line));
58
+ const matchedChanges = CHANGES.filter((change) => change.evidence.some((re) => re.test(output))).map(
59
+ (change) => change.id,
60
+ );
61
+ const reviewFraming = REVIEW_FRAMING.test(output);
62
+
63
+ const results = {
64
+ 'three-bullets': bullets.length === 3,
65
+ // Two of three: a changelog entry is allowed to fold two changes into one bullet or to phrase one
66
+ // differently, but an entry that names none of them did not read the diff.
67
+ 'names-user-visible-changes': matchedChanges.length >= 2,
68
+ 'not-a-review': !reviewFraming,
69
+ };
70
+
71
+ const checks = CHECK_NAMES.map((name) => ({ name, pass: results[name] === true }));
72
+ const passed = checks.every((check) => check.pass);
73
+ console.log(JSON.stringify({
74
+ passed,
75
+ bullets: bullets.length,
76
+ changes: matchedChanges,
77
+ reviewFraming,
78
+ checks,
79
+ }));
80
+ process.exit(passed ? 0 : 1);
@@ -0,0 +1,42 @@
1
+ # benches/contrib — community benches
2
+
3
+ Drop your bench here as `benches/contrib/<name>/` when you want to submit it. A contrib bench follows the
4
+ same contract as the bundled ones ([benches/README.md](../README.md)), plus a few submission rules.
5
+
6
+ **Read [docs/bench-authoring.md](../../docs/bench-authoring.md) first.** It is the guide this checklist
7
+ assumes: the seven steps from "something went wrong" to a task you can measure, why each one is
8
+ non-optional, and the ways a bench produces confident wrong numbers. The rules below are the short
9
+ form; the guide is what makes them make sense, and rule 2 in particular is easy to satisfy while
10
+ missing the point entirely.
11
+
12
+ ## Before you open the PR
13
+
14
+ 1. **Build it from something real.** A task your agent actually failed at (freeze it), a fix from real
15
+ git history (mine it), or a deliberately seeded incident — not a toy.
16
+ 2. **Pass the offline gate:** `node dist/cli.js bench check benches/contrib/<name>` must report
17
+ **0 failures**, with no missing-oracle warning. This runs both offline gates: the untouched fixture
18
+ must fail (NOP), and the reference solution must pass (oracle). Include the complete output in the PR.
19
+ `node scripts/check-contrib-benches.mjs` checks every contributed directory using the same CLI.
20
+ 3. **Show the difficulty when available:** `--calibrate --agent <id> --trials 2` makes live agent
21
+ calls and is optional for the first submission. If you ran it, paste the pass-rate bands. If not,
22
+ say difficulty is uncalibrated. A saturated task (baseline ≥ 90%) can still be a regression net,
23
+ but cannot measure lift on that agent.
24
+ 4. **Keep it self-contained:** fixtures must not need a build step or installed dependencies for the
25
+ verifier to run, must not contain secrets or customer data, and must stay small. Default snapshot
26
+ input inlines fixtures into prompts; `--input workspace` presents them on disk to a CLI instead.
27
+ 5. **Record the seed answer** in `ground-truth/` — what a correct outcome looks like and why the verifier
28
+ is right.
29
+
30
+ ## What maintainers do
31
+
32
+ - Re-run `bench check` offline in CI. A passing mock probe tests the output-verifier wiring, not
33
+ agent quality; command verifiers use the NOP and oracle gates.
34
+ - Review the calibration when supplied; a live-agent rerun is separate from offline CI.
35
+ - Land the bench under `benches/contrib/<name>/` with your name credited in the merge commit, and link it
36
+ from this README below.
37
+
38
+ ## Index
39
+
40
+ | Bench | Domain | Contributor | Notes |
41
+ |---|---|---|---|
42
+ | [oss-mcp-use-utf8](oss-mcp-use-utf8/README.md) | MCP App HTML decoding | skillfit replay of MIT-licensed mcp-use source | Pinned real-source workflow/regression example; earlier baselines saturated; no general Skill efficacy claim |
@@ -0,0 +1,24 @@
1
+ # Independent historical lru-cache failures
2
+
3
+ Three real upstream defects, selected from issues and maintainer fixes before consulting any evaluated Skill:
4
+
5
+ | Task | Original requirement | Preimage | Fix |
6
+ |---|---|---|---|
7
+ | fetch-size | [issue 269](https://github.com/isaacs/node-lru-cache/issues/269) | `f33a3e42` | `c8cae78c` |
8
+ | fetch-abort | [issue 274](https://github.com/isaacs/node-lru-cache/issues/274) | `914ea50a` | `c7e46cdc` |
9
+ | fetch-lifecycle | [maintainer lifecycle fix](https://github.com/isaacs/node-lru-cache/commit/451737cf4f82dc268b88530a559f900837261733) | `425dd43e` | `451737cf` |
10
+
11
+ Full SHAs, byte hashes, source/license files and extraction notes are retained in `provenance.json`, `fixtures/`, and `ground-truth/`. Each historical source is verbatim. The old CJS cases load directly; the TS case uses Node's built-in TypeScript transformation in a temporary directory (type-only namespaces are erased even on Node 22.13), mapping two local `.js` import suffixes to compiled `.mjs`. No third-party runtime dependencies or network. **Node >=22.13 is required for this bench**, independently of the CLI's Node >=22 requirement.
12
+
13
+ ```bash
14
+ node dist/cli.js bench check benches/contrib/oss-lru-cache
15
+ node dist/cli.js bench check benches/contrib/oss-lru-cache --calibrate --agent codex --input workspace --trials 2 --max-calls 6 --dry-run
16
+ ```
17
+
18
+ After reviewing the offline NOP/oracle/counterexample gates, run the same calibration command without `--dry-run`. Calibration is baseline-only, is not Skill evidence, and retains saturation/errors without replacement calls. Declare a separate paired validation set and budget only after inspecting calibration.
19
+
20
+ The fixtures contain full relevant implementation modules with original ISC licenses and existing smoke checks. The prompts require a new executable regression. Graders are outside trial workspaces, protect existing assets, and verify that a new test fully passes the submitted implementation and contains a uniquely matched test case that fails on the original source and passes on the unmodified upstream reference fix. Hidden behavior probes use deferred providers and event-loop turn barriers; no wall-clock TTL or latency grading.
21
+
22
+ Scope: one upstream repository, one async cache family, extracted runtime behavior. These tasks do not reproduce upstream CI, type compatibility, browser builds, release preparation, maintainer review or PR acceptance. Difficulty is uncalibrated until a pinned baseline run is retained. They do not establish general OSS contribution quality, and all three are positive bug-fix cases rather than a trigger-negative set.
23
+
24
+ The case-level third-side gate rejects tests that only assert a new unrelated field/interface. It uses trusted Node reporter events with relative file, complete parent path and name; ambiguous duplicate identities, cancelled/timed-out/import-failed original runs and spoofed stdout cannot supply a witness. The entire submitted suite must pass without skip/todo/cancellation; other tests may expose failures in the imperfect reference fix. This is mechanical corroboration, not a proof of semantic relevance. Independently review test content before calibration.
@@ -0,0 +1,37 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "oss-lru-cache",
4
+ "description": "Three independent historical asynchronous cache defects from pinned upstream source and maintainer fixes. Difficulty is uncalibrated. One repository and one task family, not general OSS evidence.",
5
+ "tasks": [
6
+ {
7
+ "id": "fetch-size",
8
+ "fixture": "fixtures/fetch-size",
9
+ "prompt": "prompts/fetch-size.md",
10
+ "verifier": "node verifiers/fetch-size.mjs",
11
+ "verifierKind": "command",
12
+ "oracle": "node ground-truth/oracle-fetch-size.mjs",
13
+ "rubric": "ground-truth/fetch-size.md",
14
+ "shouldTrigger": true
15
+ },
16
+ {
17
+ "id": "fetch-abort",
18
+ "fixture": "fixtures/fetch-abort",
19
+ "prompt": "prompts/fetch-abort.md",
20
+ "verifier": "node verifiers/fetch-abort.mjs",
21
+ "verifierKind": "command",
22
+ "oracle": "node ground-truth/oracle-fetch-abort.mjs",
23
+ "rubric": "ground-truth/fetch-abort.md",
24
+ "shouldTrigger": true
25
+ },
26
+ {
27
+ "id": "fetch-lifecycle",
28
+ "fixture": "fixtures/fetch-lifecycle",
29
+ "prompt": "prompts/fetch-lifecycle.md",
30
+ "verifier": "node verifiers/fetch-lifecycle.mjs",
31
+ "verifierKind": "command",
32
+ "oracle": "node ground-truth/oracle-fetch-lifecycle.mjs",
33
+ "rubric": "ground-truth/fetch-lifecycle.md",
34
+ "shouldTrigger": true
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,3 @@
1
+ # Historical lru-cache replay
2
+
3
+ Run `npm test` for existing smoke checks. Fix the implementation and add new `*.test.mjs` regression tests. Do not change existing tests, package metadata, runtime adapter or licenses. No install step or network is needed. The TypeScript case uses Node’s built-in type stripping (Node 22.13+).