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,31 @@
1
+ # Portable Codex setup
2
+
3
+ `skillfit bundle export` captures user-level Skills that Codex has used in at least two distinct local sessions and the active global guidance. It writes a self-contained profile directory with a Node.js installer. The export is a local copy of the files currently installed, so their contents stay fixed when upstream repositories change.
4
+
5
+ ```bash
6
+ skillfit bundle export ./personal-codex --dry-run
7
+ skillfit bundle export ./personal-codex --yes
8
+ # transfer the personal-codex directory to the new machine
9
+ node ./personal-codex/setup.mjs --dry-run
10
+ node ./personal-codex/setup.mjs --yes
11
+ ```
12
+
13
+ The export includes `profile.json`, `rules/global.md`, each selected Skill directory with its scripts, references, licenses, and other regular files, plus `setup.mjs` and the dependency-free installer runtime. Installer backup and recovery files are omitted. The destination needs Node.js 22 or newer; skillfit does not need to be installed there. Running `node setup.mjs` without flags prints a plan and asks before writing. To choose a specific set instead of usage-based selection, repeat `--skill <name>`. To change the usage threshold, pass `--min-sessions <n>`. A dry run writes nothing. Export refuses an existing destination directory; choose a new name to keep previous snapshots intact. Skills with `agents/openai.yaml` policy `allow_implicit_invocation: false` stay in the bundle and are identified as user-invoked-only in the generated guidance.
14
+
15
+ ## Fetch reviewed upstream Skills on the new machine
16
+
17
+ Pass `--upstream-lock` to select all GitHub Skills in that lock as commit-pinned source references, plus the lock's `localSkills`. The GitHub Skills need not already be installed on the exporting machine; local Skills are copied from it. Repeated `--skill <name>` flags add further local Skills. The lock lists every upstream file and its SHA-256; setup downloads directly from `raw.githubusercontent.com`, verifies each file and its invocation policy, prepares an isolated local profile, then runs the normal install planner. A missing file, policy conflict, or hash mismatch stops setup before any target file is changed. Setup supports `--dry-run`, `--strict`, and `--yes`. The dry run fetches and verifies upstream files but does not write to the Codex configuration.
18
+
19
+ ```bash
20
+ skillfit bundle export ./personal-codex --upstream-lock ./profiles/codex-upstream-sources.json --dry-run
21
+ skillfit bundle export ./personal-codex --upstream-lock ./profiles/codex-upstream-sources.json --yes
22
+ # transfer the personal-codex directory to the new machine
23
+ node ./personal-codex/setup.mjs --dry-run
24
+ node ./personal-codex/setup.mjs --yes
25
+ ```
26
+
27
+ The included [Codex source lock](../profiles/codex-upstream-sources.json) identifies 65 public Skills from their authors' GitHub repositories and two locally authored Skills. `edit-article` is pinned to its last available revision because it is absent from the current `mattpocock/skills` tree. The source lock is a reviewed version selection, not a request to follow a moving branch. Refreshing it requires checking the new files and hashes and evaluating affected Skills against suitable benches. For a smaller selection, use [selectable setup](selectable-codex.md). The portable profile still contains personal global guidance and locally authored Skills; review it before sharing.
28
+
29
+ On installation, skillfit copies Skills to the Codex user skills directory from the [capability matrix](../src/matrix/agents.json) and writes a managed block to the global `AGENTS.md`. It honors `CODEX_HOME` for global guidance and session history. An active `AGENTS.override.md` would shadow the result, so installation reports a conflict before writing. Existing content outside the managed block is preserved, and modified or extra Skill files cause a conflict instead of being overwritten or silently retained. Re-running the same install skips unchanged content.
30
+
31
+ The bundle contains a copy of personal global instructions. Review `rules/global.md` and the Skill files before sharing or storing it in a public repository. The command exports regular user-level Skill directories from `~/.agents/skills` and from `$CODEX_HOME/skills` (default `~/.codex/skills`); it refuses symlinked Skills and files so the bundle cannot follow links outside the selected directory. It does not transfer plugin installations, plugin authentication, MCP connections, or system-bundled Skills. Install those through their own supported setup paths on the destination machine. A new Codex session is needed to check that the installed configuration is loaded.
@@ -0,0 +1,29 @@
1
+ # A reproducible first check (2026-10-01)
2
+
3
+ This example checks the two benches bundled with skillfit. It uses deterministic Node verifiers and
4
+ reference solutions, with no agent CLI or model API call. After cloning, installing dev dependencies,
5
+ and building as shown in the [quick start](../README.md#quick-start), run:
6
+
7
+ ```bash
8
+ node dist/cli.js bench check benches/code-review
9
+ node dist/cli.js bench check benches/debugging
10
+ ```
11
+
12
+ Observed on 2026-10-01:
13
+
14
+ | Bench | Tasks | Content hash prefix | Check summary |
15
+ |---|---:|---|---|
16
+ | `code-review` | 5 | `cab1d3037592` | 27 passed, 0 warnings, 0 failures |
17
+ | `debugging` | 8 | `4ec827c25f6a` | 36 passed, 0 warnings, 0 failures |
18
+
19
+ Each check verifies that the untouched task fails where appropriate, that the oracle passes, and
20
+ that fixture hygiene and trigger labels meet the bench contract. Output-graded tasks also check mock
21
+ responses. Command-graded tasks cannot be simulated by a mock that only writes text; their offline
22
+ coverage comes from the untouched-fixture and oracle gates. The [CI workflow](../.github/workflows/ci.yml)
23
+ runs the same checks on macOS, Linux, and Windows.
24
+
25
+ These numbers establish **bench integrity only**. They do not show that a Skill improves an agent,
26
+ that the tasks are discriminative for today's model, or that a model would choose the right Skill.
27
+ Measuring those questions requires a live paired experiment, calibrated task difficulty, sufficient
28
+ discordant pairs, and a dated manifest. See the [metrics protocol](metrics.md) and the
29
+ [result-sharing guide](sharing-results.md).
@@ -0,0 +1,41 @@
1
+ # Selectable Codex setup
2
+
3
+ The public configuration is source-controlled in [`profiles/codex-curated/`](../profiles/codex-curated/profile.json). It contains a short global `AGENTS.md` template, the two skillfit-authored Skills, and a [catalog](../profiles/codex-curated/catalog.json) of 67 installable Skills plus seven retired local names. The 65 third-party installable Skills are fetched directly from their authors' GitHub repositories at the exact commits and file hashes in [`codex-upstream-sources.json`](../profiles/codex-upstream-sources.json). No personal ZIP or copied home directory is required.
4
+
5
+ Requires Git, Node.js 22+, npm, and network access when selecting upstream Skills. These commands
6
+ work in Bash and PowerShell on macOS, Linux, and Windows:
7
+
8
+ ```bash
9
+ git clone https://github.com/remote-controlled-man/skillfit.git
10
+ cd skillfit
11
+ npm ci
12
+ npm run build
13
+ node dist/cli.js setup codex --list
14
+ node dist/cli.js setup codex --skill vibe-coding --skill diagnosing-bugs
15
+ node dist/cli.js setup codex --skill vibe-coding --skill diagnosing-bugs --yes
16
+ ```
17
+
18
+ `scripts/setup-codex.sh` remains a Bash convenience wrapper that installs dependencies and builds
19
+ the CLI for you. It is optional; Windows PowerShell users can follow the Node commands above.
20
+
21
+ Repeat `--skill NAME` to choose task-relevant Skills. `--starter` preserves the original 13-Skill selection for existing users; it has not been evaluated as a set. `--all` selects all 67 for migration or controlled experiments, not as a default setup. A large installed set can crowd Codex's initial Skill list. `--no-rules` skips the global guidance. Without a selection, setup only lists the catalog. With a selection and no `--yes`, it downloads and verifies the selected upstream files and prints a dry-run plan; it does not change Codex configuration. `--strict` makes a dry-run conflict exit nonzero. `--yes` prints the same plan, then applies it with backups and post-write checks. The global rules go into the managed block of the Codex user-level `AGENTS.md`; other content in that file remains outside the block. The installed Skills go to the shared user Skill directory determined by the [agent matrix](../src/matrix/agents.json). Start a new Codex session after installation.
22
+
23
+ The 27 Lark Skills come from the official `larksuite/cli` repository. Selecting one also selects `lark-shared`; using them requires a separately installed and authenticated `@larksuite/cli`. Setup does not install that CLI or request credentials. Seven names still present in the author's local directory have been removed by their upstream maintainers. They remain visible under “Retired” with reasons and cannot be installed by this public catalog. In particular, the former `obsidian-vault` Skill hardcodes its author's vault path and is not portable.
24
+
25
+ Each file is fetched by commit URL and checked against its SHA-256. A missing file, unexpected content, or invocation-policy mismatch aborts before any Codex configuration is written. The setup command does not call a model. Unmanaged or locally modified same-name Skills produce conflicts rather than silent replacement; previously managed, unchanged Skills can update with a backup. Review the listed paths and decide whether to keep your local edits; the installer never deletes those directories for you. Re-running with the same selection is idempotent.
26
+
27
+ ## What the evidence supports
28
+
29
+ The 67 entries are a **source and installation catalog**, not a usefulness ranking. Pinning commits, checking hashes, and successfully installing a Skill establish provenance and integrity; they do not establish that the Skill improves an agent's work. Neither the legacy 13-Skill set nor the two skillfit-authored Skills has a paired efficacy result as a set or on the current Codex model.
30
+
31
+ | Scope | Evidence | Practical reading |
32
+ |---|---|---|
33
+ | Eight workflow Skills | [July 2026 Codex CLI baseline](../evidence/2026-07-skill-baseline.md): three pairs per Skill; served model identity was unavailable | `diagnosing-bugs` produced valid regression tests in 2/3 treated runs versus 0/3 baseline, with unchanged task quality and higher token use. `code-review` had a small unstable difference. The other six had no measured quality gain on these tasks. None is proven beneficial on today's pinned version/model. |
34
+ | Later targeted checks | [September Kimi debugging check](../evidence/2026-09-debugging-bench-exploratory.md) and [Codex trigger capture](../evidence/2026-09-22-codex-trigger-capture.md) | The debugging artifact difference did not recur in the Kimi check. A Skill triggering shows routing, not better outcomes; both arms passed the trigger bench's tasks. |
35
+ | Remaining 59 catalog Skills | No paired outcome evaluation in this repository | Their utility is unknown. The 27 Lark Skills are task-specific adapters that also require `@larksuite/cli`; their availability is not evidence of quality gains. |
36
+
37
+ For a new environment, start with no extra Skills, add one only for a task you actually do, and compare paired runs against the same task without it. Check task outcomes, trigger recall and false triggers, and token use. Use failures that current models do not already solve reliably; saturated benches cannot distinguish an improvement. See [the evaluation protocol](metrics.md) and [OpenAI's Skill testing guidance](https://developers.openai.com/blog/eval-skills). [SkillsBench](https://arxiv.org/abs/2602.12670) found that focused Skills outperformed larger bundles on its benchmark, while [OpenAI's Codex guidance](https://developers.openai.com/blog/rethinking-skills-and-prompts-for-gpt-6-astra) notes that large overlapping Skill sets can shorten descriptions and confuse selection. Those findings motivate a small starting set; they do not certify any entry in this catalog.
38
+
39
+ The two local Skills have shorter trigger descriptions; the global guidance stays short and delegates to each Skill's description and invocation metadata without requiring specific Skills for every coding task. `writing-shape` is marked explicit-only. `edit-article` was removed from the author's current tree and remains available from a reviewed historical commit, marked as such in the list. For the source audit and limited prior trigger evidence, see [Codex upstream audit](codex-upstream-audit.md). This follows [OpenAI's guidance on Skill description scope and initial-list limits](https://learn.chatgpt.com/docs/build-skills).
40
+
41
+ The older [`bundle export`](portable-codex.md) command remains available for someone who deliberately wants a portable snapshot of their own installed configuration. It may contain personal rules and should be reviewed before sharing. The selectable public setup does not read personal home configuration as source material.
@@ -0,0 +1,53 @@
1
+ # Share an evaluation result
2
+
3
+ Try a clearly synthetic schema-v4 example first:
4
+
5
+ ```bash
6
+ node dist/cli.js report eval docs/examples/eval-manifest.synthetic.json
7
+ ```
8
+
9
+ After a paired `skillfit eval` run, replace the example path with the `Manifest:` path printed at the
10
+ bottom of its output. This command is read-only: it does not call an agent,
11
+ rerun a verifier, change the manifest, or alter the verdict. Paste its output into a pull request or
12
+ issue. The JSON manifest remains the canonical record; attach it when you want someone else to audit
13
+ the task-level outcomes and provenance. The Markdown includes target and bench hashes, the executor,
14
+ trial counts, error counts, McNemar p-value, paired-bootstrap interval, and all warnings. It omits local
15
+ source directories so the short report is easier to share; review the raw manifest and report before
16
+ posting either, since names, warnings, and run data can still describe private work.
17
+
18
+ An example of the output shape from a **synthetic mock run**:
19
+
20
+ ```markdown
21
+ # skillfit evaluation: example-skill
22
+
23
+ > **Synthetic harness run.** These numbers do not measure an agent or Skill effect.
24
+
25
+ | Task | Baseline | Treatment | Errors B/T | Δpass | Verdict |
26
+ |---|---:|---:|---:|---:|---|
27
+ | sample-task | 0/2 (0%) | 2/2 (100%) | 0/0 | +100.0pp | inconclusive |
28
+
29
+ ## Statistical readout
30
+
31
+ - Overall verdict: **inconclusive** — only 2 discordant pairs
32
+ - Discordant pairs: 2 improved, 0 regressed; McNemar exact p=0.5000
33
+ ```
34
+
35
+ The impressive-looking delta in this synthetic example is **not evidence of benefit**: two discordant
36
+ pairs are too few for significance, and the executor is a mock. For a dated real paired-outcome result
37
+ with its limitations stated, see the [Kimi debugging experiment](../evidence/2026-09-debugging-bench-exploratory.md).
38
+ Its historical manifest is local to that run; `report eval` renders schema-v4 manifests produced by
39
+ current paired experiments.
40
+
41
+ The renderer rejects older manifest schemas and missing or inconsistent fields used by the report
42
+ rather than guessing what a field used to mean. It does not compare runs from different model
43
+ versions or bench hashes. Use the [metrics protocol](metrics.md) when interpreting a verdict and the
44
+ [evidence submission template](../.github/ISSUE_TEMPLATE/evidence_submission.yml) when proposing a
45
+ published claim.
46
+
47
+ ## Offline CI recipe
48
+
49
+ [`examples/bench-check.yml`](examples/bench-check.yml) is an opt-in GitHub Actions workflow you can
50
+ copy into a skillfit fork's `.github/workflows/` directory. It checks the bundled benches on
51
+ macOS, Linux, and Windows and writes a small workflow summary. Replace the bench paths with your own
52
+ before enabling it. It makes no agent or model call, so passing it validates bench integrity, not
53
+ Skill efficacy. The repository's normal CI already runs these checks on all three operating systems.
@@ -0,0 +1,34 @@
1
+ # Skill baseline: 8 popular workflow skills (2026-07, frozen)
2
+
3
+ **Status: frozen historical evidence. Do not append data; do not merge absolute scores with later rounds.**
4
+
5
+ ## Setup
6
+
7
+ - Agent: Codex CLI (frozen version), Windows, ChatGPT account default route. The CLI did not expose the served model identity per request, so we do not claim a pinned model.
8
+ - Design: paired baseline/treatment, 3 valid pairs per skill, 48 runs total. Treatment adds exactly one thing: the skill's Markdown/YAML/JSON payload. Skill bundle SHA-256 recorded per run.
9
+ - Grading: deterministic graders hidden from the agent; input/output tokens and wall time recorded.
10
+ - Each skill was paired with a task in its home domain (e.g. `security-and-hardening` → archive-path traversal fixture).
11
+
12
+ ## Results
13
+
14
+ | Skill | Pairs | Baseline | Treatment | Quality Δ | Test-asset Δ | Input tokens | Output tokens | Verdict |
15
+ |---|---:|---:|---:|---:|---:|---:|---:|---|
16
+ | `tdd` | 3 | 83.33% | 83.33% | 0.00pp | 0.00pp | +9.17% | +9.93% | No measurable gain |
17
+ | `diagnosing-bugs` | 3 | 100% | 100% | 0.00pp | **+66.67pp** | +11.70% | +90.74% | Conditional: 2/3 treatments produced valid regression tests, baseline 0/3 |
18
+ | `code-review` | 3 | 96.67% | 100% | +3.33pp | 0.00pp | +9.13% | +29.06% | Unstable (one run deduplicated findings; two tied) |
19
+ | `doubt-driven-development` | 3 | 100% | 100% | 0.00pp | 0.00pp | +20.68% | +20.39% | No measurable gain |
20
+ | `codebase-design` | 3 | 100% | 100% | 0.00pp | 0.00pp | +14.74% | −6.37% | No measurable gain |
21
+ | `security-and-hardening` | 3 | 100% | 100% | 0.00pp | 0.00pp | +27.44% | −4.25% | No measurable gain; highest input cost |
22
+ | `performance-optimization` | 3 | 100% | 100% | 0.00pp | 0.00pp | +16.31% | −0.99% | No measurable gain |
23
+ | `code-simplification` | 3 | 88.89% | 88.89% | 0.00pp | 0.00pp | +16.95% | +6.20% | No measurable gain |
24
+
25
+ ## Conclusions adopted
26
+
27
+ 1. Short, stable workflow rules go into `AGENTS.md`; full skills are not auto-injected by default.
28
+ 2. `diagnosing-bugs` triggers conditionally (unknown-root-cause bugs where a regression test is worth keeping), because its benefit was a repeatable artifact, not a guaranteed one — and it costs +90.74% output tokens.
29
+ 3. "No measurable gain" is not "useless forever"; it means this frozen evidence does not justify the standing token, routing, and maintenance cost of a global install.
30
+
31
+ ## Caveats
32
+
33
+ - The harness requested patches rather than letting agents act in a writable workspace, so process-level behaviors (red-green-refactor sequencing) were not observable.
34
+ - 3 pairs per skill bounds statistical power; small true effects would be missed.
@@ -0,0 +1,36 @@
1
+ # Codex trigger capture + a cross-model trigger divergence (2026-09-22)
2
+
3
+ **Status: verified mechanism, small-N exploratory numbers.**
4
+
5
+ ## What landed
6
+
7
+ Trigger capture now covers Codex CLI next to Kimi Code (Claude Code pending — no working auth on the
8
+ verification machine). Codex has no skill-invocation event in its `exec --json` stream; detection reads the
9
+ `command_execution` item whose command loads the skill's `SKILL.md` (path separators are shell-escaped and
10
+ doubled in real output — normalize before matching; the first detector version missed exactly that and was
11
+ caught by re-scanning real transcripts, not by unit tests).
12
+
13
+ Codex session rollouts (`~/.codex/sessions/**/rollout-*.jsonl`) are parsed the same way for
14
+ `skillfit report` (`response_item.payload.custom_tool_call.input` path evidence), so receipts now cover
15
+ codex too.
16
+
17
+ ## The cross-model result
18
+
19
+ Same skill (`code-review`, bundle sha256 `0c32f24e572c…`), same bench (`code-review`, content sha256
20
+ `dd057adb3fe3…`), same trigger-mode presentation (files on disk, no inline snapshot), 2 trials per task:
21
+
22
+ | Agent | Trigger recall (should-fire) | False-trigger (negative control) | Run group |
23
+ |---|---:|---:|---|
24
+ | Kimi Code CLI v2.0.0 | 1/9 (11%) [95% CI 2%–44%] | 0/3 | eval-20260919-123630 |
25
+ | Codex CLI 0.153.4 | 6/6 (100%) [95% CI 61%–100%] | 0/2 | eval-20260922-105241 |
26
+
27
+ Same workload, opposite routing behavior: Codex checked the installed skill on every review task; Kimi Code
28
+ almost never did. Both completed every task either way (pass rates 100% on both). Whether the divergence
29
+ comes from how prominently each agent lists skills in its system context, or from routing style, is not
30
+ established by this data.
31
+
32
+ ## Limitations
33
+
34
+ - 2–3 trials per cell — indicative only per docs/metrics.md; the comparison is one skill on one bench.
35
+ - The Codex runs executed on a machine where many skills are installed user-wide; routing competition
36
+ existed on both agents (deliberate — trigger quality is measured against the real installed set).
@@ -0,0 +1,46 @@
1
+ # Bench calibration: the code-review difficulty ladder on Kimi Code (2026-09-19)
2
+
3
+ ## Setup
4
+
5
+ - **Question:** can the bundled `code-review` bench discriminate a skill effect for a current strong model? (Asked after the first task, `review-r1`, saturated at 100% baseline.)
6
+ - **Executor:** Kimi Code CLI v2.0.0 headless (`kimi -p`, prompt-file transport via the matrix-driven CLI executor), user's configured default model.
7
+ - **Bench:** `benches/code-review` @ content sha256 `89a3335d39a3…` — three tasks as a difficulty ladder:
8
+ - `review-r1` — explicit spec violations (bare `Error`, off-by-one boundary, missing tests).
9
+ - `review-r2` — cross-referencing defects (error code absent from the §1 stable-code table, intermediate rounding against §3, argument mutation against §2).
10
+ - `review-r3` — omission + rule-conflict defects (dropped `EMPTY_ORDER` guard with its test deleted, promotional price further bulk-discounted against §3's "never itself discounted"), hidden in a refactor-style diff with camouflage changes.
11
+ - **Skill under test:** local `code-review` skill (bundle sha256 `0c32f24e572c…`), 3 trials per condition per task, deterministic verifiers, no LLM judge.
12
+ - **Manifests:** run group `eval-20260919-092904` (all three tasks, final bench state); `eval-20260919-083959` independently replicates `review-r1`. Raw manifests live under `runs/` (gitignored by design).
13
+
14
+ ## Results
15
+
16
+ | Task | Baseline | Treatment | Δ | Verdict |
17
+ |---|---:|---:|---:|---|
18
+ | review-r1 | 3/3 (100%) | 3/3 (100%) | 0pp | inconclusive |
19
+ | review-r2 | 3/3 (100%) | 3/3 (100%) | 0pp | inconclusive |
20
+ | review-r3 | 3/3 (100%) | 3/3 (100%) | 0pp | inconclusive |
21
+
22
+ The baseline found **every seeded defect in every trial** — including the omission defect (guard dropped, covering test deleted) and the rule-conflict defect — with correct post-PR line numbers and correct numeric consequences (e.g. "priced at 7.6 instead of 8"). All hits were hand-audited against the recorded `_output.md` files; verifier credit was genuine in every inspected trial. Decoy discipline was near-perfect (one false flag across 18 runs).
23
+
24
+ ## Conclusion
25
+
26
+ For this model (Kimi Code CLI v2.0.0, 2026-09), **small-PR review against an explicit spec is a saturated task shape**: explicit violations, spec-table cross-referencing, purity, rounding-order, omission, and rule-conflict defects are all found reliably with no skill injected. The ladder stays in the bench as a regression net — weaker or future models may score lower, and the harness warns per task when a baseline reaches ≥90% — but it cannot measure skill lift for this model.
27
+
28
+ The evidence-backed next bench is **hard-bug diagnosis**, not a harder review task: the [July baseline](2026-07-skill-baseline.md) shows skills can have measurable effect there (+66.7pp for `diagnosing-bugs`), so a debugging bench has actual headroom to measure.
29
+
30
+ ## Trigger-mode follow-up (same day, `eval-20260919-120407`)
31
+
32
+ After the L1 trigger mode landed, we ran the same bench with the skill **installed** (`.kimi-code/skills/`, never injected) and invocation detected from the stream-json transcript:
33
+
34
+ | Metric | Value |
35
+ |---|---|
36
+ | Trigger recall (should-fire tasks) | **0/9 (0%)**, 95% CI [0%, 30%] |
37
+ | False-trigger rate (negative control) | 0/3 (0%), 95% CI [0%, 56%] |
38
+ | Task pass rate | 3/3 on every task, skill or no skill |
39
+
40
+ The agent never once loaded the skill, yet scored 100% everywhere — so for this model the skill's *realized* value is zero regardless of its content. Two confounders to note honestly: the task prompts are fully self-contained (snapshot inline), which may suppress skill consultation; and the run environment also exposed the user's other installed skills, so routing competition existed. Verifier credit was still genuine — this measures *activation*, and activation was zero.
41
+
42
+ ## Limitations
43
+
44
+ - Single model, single harness, 3 trials per cell — pass rates are coarse-grained.
45
+ - All three tasks share one shape (small synthetic PR + explicit spec). The saturation claim does not generalize to large diffs, real codebases, or other task shapes.
46
+ - Verifier credit is lexical (anchor + evidence regexes); loose phrasings can miscount in principle, which is why hits were hand-audited for these runs.
@@ -0,0 +1,55 @@
1
+ # Debugging bench: diagnosing-bugs on Kimi Code (exploratory, 2026-09-19)
2
+
3
+ **Status: exploratory.** 3 trials per condition — below the conclusive bar (8 tasks × 5 trials) by the
4
+ protocol in [docs/metrics.md](../docs/metrics.md). All numbers are indicative, not verdicts.
5
+
6
+ ## Setup
7
+
8
+ - New bundled bench `benches/debugging/` (content sha256 `2e983f763859…`): three diagnose-and-fix tasks
9
+ ported from the lab's July scenarios (`ttl-cache`, `debug-redaction`, `range-parser`) plus one
10
+ negative-control task (`feat-slug`). All verifiers are command-kind: they run behavioral checks against
11
+ the agent's edited files (the July graders, adapted to exit codes; test-asset evidence preserved).
12
+ - Skill: `diagnosing-bugs` (bundle sha256 `174139ebc836…`), inject mode, paired baseline/treatment.
13
+ - Executor: Kimi Code CLI v2.0.0 headless. Manifest: `runs/eval-20260919-184214` (local).
14
+
15
+ ## Results (calibration run, 3 trials/condition)
16
+
17
+ | Task | Baseline | Treatment | Δ |
18
+ |---|---:|---:|---:|
19
+ | ttl-cache | 3/3 | 3/3 | 0pp (ceiling) |
20
+ | debug-redaction | 3/3 | 3/3 | 0pp (ceiling) |
21
+ | range-parser | 0/3 | 1/3 | +33pp (only discordant pair) |
22
+ | feat-slug (negative control) | 3/3 | 3/3 | 0pp |
23
+
24
+ Overall: 9/12 vs 10/12, 1 discordant pair, McNemar p = 1.0, Δpass 95% CI [0pp, +25pp] — inconclusive, as
25
+ expected at this scale.
26
+
27
+ ## What the run actually showed
28
+
29
+ 1. **The July quality-saturation finding replicates across models.** Two of three debugging tasks ceiling
30
+ out for Kimi Code just as they did for Codex in July. Quality verdicts on these tasks are
31
+ uninformative for current models.
32
+ 2. **The July test-asset differential did NOT replicate.** In July, Codex-with-skill produced valid
33
+ regression tests in 2/3 runs vs 0/3 baseline. Here, the ported grader's test-asset evidence is empty
34
+ on *both* arms — the injected skill did not move Kimi Code to write regression tests. The skill's
35
+ mechanism is model-dependent, not universal.
36
+ 3. **Prompt beats skill.** `debug-redaction` explicitly demands a regression-first workflow in its task
37
+ prompt — both arms comply, 3/3. `ttl-cache`'s prompt never mentions tests — nobody writes them, skill
38
+ or not. On this model, what the prompt spells out dominates what the injected skill suggests.
39
+ 4. `range-parser` is the bench's one discriminative task: baseline 0/3, treatment 1/3, with genuine
40
+ near-miss failures (one behavioral miss, one insufficient-test miss). It is the only place a skill
41
+ effect is measurable at all.
42
+
43
+ ## Decision recorded
44
+
45
+ The calibration gate (baseline pass rates in the discriminative band) fails for 3 of 4 tasks, so the
46
+ formal trials-5 run was **not** executed: with at most ~5 reachable discordant pairs it cannot reach
47
+ significance by construction. The next investment is more/harder discriminative debugging tasks (the
48
+ bench's real bottleneck), not more trials on these.
49
+
50
+ ## Limitations
51
+
52
+ - 3 trials per cell; indicative only.
53
+ - Single model, single harness, inject mode only (no trigger-mode run for this skill).
54
+ - The July comparison is cross-harness (patch-style responses vs. writable workspace) and cross-model —
55
+ mechanisms differ, so "did not replicate" is scoped to this harness + model.
@@ -0,0 +1,42 @@
1
+ # Bench hardening follow-up: synthetic hard tasks also saturate (2026-09-19)
2
+
3
+ Follow-up to [2026-09-debugging-bench-exploratory](2026-09-debugging-bench-exploratory.md). Same executor
4
+ (Kimi Code CLI v2.0.0), same skill (`diagnosing-bugs`, bundle sha256 `174139ebc836…`), same protocol.
5
+
6
+ ## What we tried
7
+
8
+ Two new, deliberately harder diagnose-and-fix tasks added to `benches/debugging/`:
9
+
10
+ - `async-queue` — serial async task queue with three latent races (rejection strands the queue,
11
+ enqueue-during-flight ordering, `onIdle` resolving before the last task settles).
12
+ - `chunked-decoder` — `<length>\n<payload>` frame decoder with three boundary bugs (header split across
13
+ chunks, multi-byte UTF-8 split across chunks, unchecked length prefix).
14
+
15
+ Both verifiers were proven both directions before any model run: they fail on the pristine fixture and
16
+ pass on the ground-truth fix. Calibration run: `runs/eval-20260919-194430` (scratch 2-task bench, content
17
+ sha256 `ca6e37d01c43…`, 3 trials per condition).
18
+
19
+ ## Result
20
+
21
+ | Task | Baseline | Treatment | Δ |
22
+ |---|---:|---:|---:|
23
+ | async-queue | 3/3 | 3/3 | 0pp |
24
+ | chunked-decoder | 3/3 | 3/3 | 0pp |
25
+
26
+ Both saturated. Across both benches built this week, six of seven authored tasks ceiling out for this
27
+ model; the only discriminative task is `range-parser` (strict spec compliance), and even it only separates
28
+ at 0/3 → 1/3.
29
+
30
+ ## Conclusion
31
+
32
+ Hand-authored synthetic tasks — including race conditions and chunk-boundary bugs designed to be missed —
33
+ do not discriminate current strong models. The discriminative-material bottleneck cannot be solved by
34
+ authoring harder tasks; it has to come from **real production failures** (`skillfit bench add --freeze`),
35
+ which are non-saturated by construction. The debugging bench stays in the repo as the easy tier / regression
36
+ net (the harness warns about ceiling saturation automatically).
37
+
38
+ ## Limitations
39
+
40
+ - Single model (Kimi Code CLI v2.0.0); a weaker or future model may find these tasks discriminating — the
41
+ bench is kept for exactly that reason.
42
+ - 3 trials per cell; indicative only, per docs/metrics.md.
@@ -0,0 +1,31 @@
1
+ # OCR delegate vs. code-review skill (2026-09-18)
2
+
3
+ ## Setup
4
+
5
+ - Subject: [alibaba/open-code-review](https://github.com/alibaba/open-code-review) v1.12.5 (npm global), **delegation mode** (OCR does deterministic file selection + rule resolution; the host agent reviews with its own model) vs. the local `code-review` skill (mattpocock upstream HEAD).
6
+ - Same model, same fixtures, blind judged.
7
+ - Fixtures: r1 / r2 (small diffs, 3 seeded issues each), big (14-file changeset, 5 seeded defects + 2 decoys).
8
+
9
+ ## Results
10
+
11
+ | Fixture | code-review skill | OCR delegate | Δ |
12
+ |---|---:|---:|---:|
13
+ | r1 | 9.5 | 10 | +0.5 |
14
+ | r2 | 9.5 | 9 | −0.5 |
15
+ | big | 12/14 | 13/14 | +1 |
16
+
17
+ - **Small diffs: a dead tie.** Zero file:line drift, zero false positives on both sides. On small diffs `git diff` already exhausts the review surface; OCR's deterministic file selection has nothing to add.
18
+ - **Large diffs: OCR slightly ahead.** Both hit 5/5 seeded defects with zero line drift and 14/14 file coverage — Alibaba's claim that general agents skimp on large diffs did **not** reproduce against the local skill. The gap came from false-positive discipline: the skill reported rename noise as 3 medium findings, OCR reported 1 borderline.
19
+ - Unverified: OCR's 1/9-token claim, its hosted LLM pipeline (needs a configured endpoint; we tested delegation only), its AACR-Bench precision/recall claims.
20
+
21
+ ## Conclusion adopted
22
+
23
+ The two tools are complementary, and review routing was set accordingly:
24
+
25
+ - `code-review` skill — default for substantive changes, required when a spec/issue exists to check against.
26
+ - `open-code-review-delegate` — large changesets (>5 files), defect-pattern sweeps, pure-correctness reviews without a spec.
27
+ - At most one AI review per change; executable verification (tests, build, lint) outranks both.
28
+
29
+ ## Limitations
30
+
31
+ Synthetic fixtures (big is only 14 files); the skill arm ran in a single-context harness (its two axes executed sequentially instead of via subagents); single model, single run per cell.
@@ -0,0 +1,48 @@
1
+ # Correction: trigger-mode inline-snapshot artifact (2026-09-19)
2
+
3
+ This corrects the "Trigger-mode follow-up" section of
4
+ [2026-09-bench-calibration.md](2026-09-bench-calibration.md), which reported **0/9 trigger recall** for the
5
+ `code-review` skill on Kimi Code. That number was a harness artifact, not a property of the skill or model.
6
+
7
+ ## What was wrong
8
+
9
+ The first trigger-mode implementation inlined the full repository snapshot into the prompt (same as inject
10
+ mode). A self-contained prompt gives the agent no reason to consult its skills directory, so activation
11
+ measured ~zero regardless of the skill.
12
+
13
+ ## Evidence
14
+
15
+ Two targeted probes with the same skill installed and files on disk (no inline snapshot):
16
+
17
+ | Probe | Prompt framing | Skill fired? |
18
+ |---|---|---|
19
+ | P1 | "review the PR (see `CHANGES.diff`)" | yes |
20
+ | P2 | "review my most recent commit" (real git history) | yes |
21
+
22
+ After the fix (trigger mode never inlines snapshots; bench tasks use `promptTrigger` files that reference
23
+ the working directory), a full re-run (`runs/eval-20260919-123630`, bench content sha256 `dd057adb3fe3…`,
24
+ kimi-code CLI v2.0.0, 3 trials/task):
25
+
26
+ | Metric | Before (inline snapshot) | After (files on disk) |
27
+ |---|---|---|
28
+ | Trigger recall | 0/9 (0%) [95% CI 0%–30%] | **1/9 (11%) [95% CI 2%–44%]** |
29
+ | False-trigger rate | 0/3 (0%) | 0/3 (0%) [95% CI 0%–56%] |
30
+ | Task pass rate | 3/3 everywhere | 3/3 everywhere |
31
+
32
+ ## Corrected conclusion
33
+
34
+ The skill **can** trigger on these tasks, but does so unreliably (~11% recall) — and triggering is moot for
35
+ quality here anyway (100% pass regardless, per the saturated L2 results). Two lessons, now encoded in the
36
+ harness and in `docs/metrics.md` (L1 "presentation fidelity"):
37
+
38
+ 1. Trigger-mode prompts must present work as files on disk; an inline snapshot is a confounder that
39
+ suppresses consultation.
40
+ 2. A skill that fires rarely *and* changes nothing when it fires has zero realized value — both halves of
41
+ the measurement are needed before drawing either conclusion.
42
+
43
+ ## Limitations
44
+
45
+ - Single model/agent (Kimi Code CLI v2.0.0), one skill, small-N: the 11% recall has a wide CI [2%, 44%].
46
+ - Probes P1/P2 were single runs, not paired trials.
47
+ - The run environment also exposes the user's other installed skills, so routing competition existed
48
+ (this is deliberate — trigger quality depends on the installed set).
@@ -0,0 +1,58 @@
1
+ # Codex CLI and `diagnosing-bugs`: execution and trigger pilot (2026-10-01)
2
+
3
+ **Status: exploratory; no efficacy verdict.** This run checked whether the current Codex CLI can execute the debugging bench with Matt Pocock's `diagnosing-bugs` Skill, and whether Codex consults the Skill when installed. Three completed pairs on one synthetic task showed a possible regression-test gain. A subsequent historical `oss-contrib` bug case was too easy for this model. These observations do not establish value for open-source work.
4
+
5
+ ## Pinned inputs
6
+
7
+ - Skill source: [`mattpocock/skills` at `d81f3a183412e71a5b1e84ca21bc1a35eea03a60`](https://github.com/mattpocock/skills/tree/d81f3a183412e71a5b1e84ca21bc1a35eea03a60/skills/engineering/diagnosing-bugs). The fetched `SKILL.md`, `agents/openai.yaml`, and `scripts/hitl-loop.template.sh` matched the SHA-256 values in `profiles/codex-upstream-sources.json`. The skillfit bundle hash was `f19320ddde76…`.
8
+ - Agent: Codex CLI `0.158.0-alpha.2.1`. A direct CLI launch reported `gpt-6-sol`; skillfit manifests record `cli-configured` rather than a model ID, so the exact model served for every benchmark run was not independently captured. The custom trial executor set `model_reasoning_effort="medium"`, `--sandbox workspace-write`, and `--ephemeral`.
9
+ - Bench: bundled `benches/debugging` passed offline `bench check` with 36 passes, no warnings or failures (content hash `4ec827c25f6a…`). A two-task scratch subset containing `range-parser` and negative control `feat-slug` passed its offline check with 10 passes (content hash `f93042717b26…`). A later `range-parser`-only subset passed the NOP and oracle gates (content hash `7069681c5bc2…`); its only warning was the absence of a negative control, which matters for trigger mode, not this paired inject-mode probe. Both subsets were made by copying the bundled bench and filtering `bench.json` task entries.
10
+ - Harness: skillfit `0.7.0`. `npm test` passed 321 tests at the initial preflight. The working checkout received other changes during the live pilot; the compiled `dist/` files used by the trial were not given a separate immutable hash. Treat these runs as a local diagnostic, not a reproducible published efficacy result.
11
+
12
+ ## Execution findings
13
+
14
+ The first baseline calibration used the matrix's default `codex exec -`. On `ttl-cache`, Codex identified the defects but explicitly reported that the workspace was read-only and it could not save its patch. That 0/1 was an **executor configuration failure**, not a quality failure. The calibration was stopped.
15
+
16
+ A scratch executor then invoked Codex directly with a writable workspace, medium reasoning, no shell wrapper, and a 180-second per-run timeout. It used the ordinary `runEval` pairing and verifiers; the Skill was staged under the temporary directory name `skillfit-matt-diagnosing-bugs`, so the injected name did not match the Skill frontmatter name. This naming mistake is another reason not to generalize the result.
17
+
18
+ | Task | Baseline | Forced-Skill arm | Protocol result |
19
+ | --- | --- | --- | --- |
20
+ | `range-parser` | Completed; 7/8 facets, missing a real RED→GREEN regression test | Exceeded the 180-second timeout; the remaining files passed 8/8 when graded manually afterward | Pair excluded because the executor did not finish |
21
+ | `feat-slug` (negative control) | Completed; 6/6 facets | Exceeded the 180-second timeout; the remaining files passed 6/6 when graded manually afterward | Pair excluded because the executor did not finish |
22
+
23
+ The post-timeout file checks are observations, **not scored treatment successes**. The inject-mode manifest has zero graded pairs, so its pass-rate delta and McNemar verdict are unavailable. Raw local records: `runs/codex-matt-debug-pilot-20261001-a/manifest.json` and each trial's `_result.json`.
24
+
25
+ ## Completed paired probe
26
+
27
+ The Skill was restaged under its declared name, `diagnosing-bugs`. A `range-parser`-only bench used the same fixture, prompt, verifier, Codex version, medium reasoning, and writable sandbox in both arms, with a 600-second completion deadline. Three adjacent pairs completed without executor errors, split between run groups `codex-matt-range-pair-20261001-a` (one pair) and `codex-matt-range-pair-20261001-b` (two pairs). Their manifests record identical bench and Skill hashes and executor descriptions.
28
+
29
+ | Pair | Baseline | Treatment | Baseline / treatment time |
30
+ | --- | --- | --- | --- |
31
+ | A1 | 7/8 facets; fail | 8/8 facets; pass | 75.7s / 77.2s |
32
+ | B1 | 7/8 facets; fail | 8/8 facets; pass | 103.9s / 79.7s |
33
+ | B2 | 7/8 facets; fail | 7/8 facets; fail | 72.6s / 89.3s |
34
+
35
+ In every baseline run, the implementation passed seven behavioral checks but lacked a real RED→GREEN regression test. Treatment supplied that test in two of three runs. Manually pooling these same-configuration manifests gives baseline **0/3**, treatment **2/3**, with two treatment-only wins and no baseline-only wins. The two-sided exact McNemar p-value is **0.5**: this is a candidate artifact signal, not a statistically supported benefit. One task and three trials are below the protocol's 8-task × 5-trial scale; the binary baseline is also at the floor. Token usage was unavailable for these inject-mode CLI runs. Raw local records: `runs/codex-matt-range-pair-20261001-a/manifest.json` and `runs/codex-matt-range-pair-20261001-b/manifest.json`.
36
+
37
+ ## Natural triggering
38
+
39
+ With the source directory correctly named `diagnosing-bugs`, one installed-Skill trial per task produced:
40
+
41
+ | Task | Should trigger? | Detected read of `SKILL.md` | Task result |
42
+ | --- | --- | --- | --- |
43
+ | `range-parser` | yes, per bundled label | no | 7/8 facets, fail |
44
+ | `feat-slug` | no | no | 6/6 facets, pass |
45
+
46
+ The small trigger manifest is `runs/codex-matt-trigger-pilot-20261001-b/manifest.json`. Its 0/1 recall and 0/1 false-trigger counts have very wide uncertainty. `range-parser` presents a specified implementation task rather than an uncertain bug, so its positive trigger label is questionable for this particular Skill.
47
+
48
+ An earlier incident-style `ttl-cache` trial **did** read `.agents/skills/skillfit-matt-diagnosing-bugs/SKILL.md`, as shown by its saved `_transcript.jsonl`, and its task verifier passed. Because the temporary folder name differed from `diagnosing-bugs`, the detector falsely reported no trigger; that manifest's trigger rate is invalid. A correctly named rerun timed out at 180 seconds before it returned a transcript, so it supplies no formal trigger observation. Local records: `runs/codex-matt-trigger-ttl-20261001-a/` (raw trace; detector mismatch) and `runs/codex-matt-trigger-ttl-20261001-b/` (excluded timeout).
49
+
50
+ ## Historical open-source case calibration
51
+
52
+ To test whether new PRs are necessary, a separate local bench reconstructed the pre-fix `mcp-use/mcp-use` TypeScript `resolveViewResource()` at public commit [`d90a070`](https://github.com/mcp-use/mcp-use/blob/d90a070615a910b96eaf65f65f9eb4cad0123a90/libraries/typescript/packages/client/src/react/view/resolve-view-resource.ts). Its `atob(blob)` path returned garbled Chinese and emoji because it treated UTF-8 bytes as Latin-1 characters. The local prompt described the symptom without revealing the source change. The 8-facet verifier covered Unicode and ASCII blobs, text precedence, metadata, CSP, missing content, a passing final suite, and a regression test that fails against the original source. The scratch bench passed `bench check`: the untouched fixture failed, and the reference solution passed every facet. The bench is local at `/private/tmp/skillfit-oss-mcp-view`, not a published reusable bench.
53
+
54
+ One adjacent pair used the same Codex CLI executor and pinned `diagnosing-bugs` bundle as the completed synthetic probe. **Both baseline and treatment passed 8/8 facets**, including the RED→GREEN regression test (63.0s and 74.6s respectively). The run manifest is `runs/codex-matt-oss-view-20261001-a/manifest.json`; the bench hash is `2729a41a55ff…`. The baseline's 100% pass rate means this case has no observed headroom to measure Skill benefit. A single pair also cannot support a statistical conclusion. No GitHub PR or upstream write occurred.
55
+
56
+ ## Interpretation and next gate
57
+
58
+ The offline bench and pairing machinery are usable, and the completed synthetic probe suggests `diagnosing-bugs` can increase valid regression-test production on one task. The historical OSS case demonstrates that existing fixes can be replayed without making new PRs, but it does not answer whether the Skill improves open-source bug fixing because baseline solved it fully. The default Codex command needs an explicit writable sandbox for command-graded tasks. Live runs also need a controlled completion deadline and a Skill directory whose basename matches its declared name. A future efficacy run should select harder pinned, self-contained cases from real `oss-contrib` fixes, calibrate baseline difficulty against the same model and settings, then collect completed pairs across multiple task shapes. PR acceptance is an external outcome and should not replace local behavioral verification.
@@ -0,0 +1,42 @@
1
+ # Historical OSS cases for `diagnosing-bugs` evaluation (2026-10-01)
2
+
3
+ **Status: candidate selection and calibration, not a Skill efficacy verdict.** These cases come from existing `oss-contrib` work. They can be replayed at pinned pre-fix revisions without creating new issues or PRs. This selection concerns offline coding quality; maintainer acceptance is a separate outcome.
4
+
5
+ ## Selection rule
6
+
7
+ Prefer a real defect with a fixed pre-fix revision, a reproducible failure, an unambiguous behavioral contract, and a reference repair. A useful task must keep enough surrounding code for diagnosis, grade observable behavior with 2–8 independent facets, and have a regression test that is RED on the original source and GREEN after repair. Baseline difficulty is measured before spending multiple paired trials. A case whose baseline passes at least 90% graduates to regression duty rather than providing evidence of Skill benefit, per `docs/metrics.md` L0.
8
+
9
+ ## Calibrated cases
10
+
11
+ | Historical case | Offline gate | First adjacent pair | Decision |
12
+ | --- | --- | --- | --- |
13
+ | [`mcp-use` HTML blob UTF-8](https://github.com/mcp-use/mcp-use/blob/d90a070615a910b96eaf65f65f9eb4cad0123a90/libraries/typescript/packages/client/src/react/view/resolve-view-resource.ts) | Untouched source fails; reference repair passes 8/8 | Baseline 8/8; `diagnosing-bugs` 8/8 | Too easy for efficacy; retain as regression control |
14
+ | [`chrome-devtools-mcp` scheduled navigation race](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/a918b7b4086bcb14105b80abab1deb882535f15e/src/utils/WaitForHelper.ts) | Untouched source fails; reference repair passes 8/8 | Baseline 8/8 (108.3s); `diagnosing-bugs` 8/8 (136.4s) | Also saturated; retain as regression control |
15
+ | [`mcp-agent` Temporal log filters](https://github.com/lastmile-ai/mcp-agent/issues/382), explicit-contract prompt | Untouched source fails; historical PR #752 repair passes 8/8 | Baseline 8/8 (90.0s); `diagnosing-bugs` 8/8 (209.6s) | Saturated; the prompt supplied several hidden implementation boundaries |
16
+ | Same `mcp-agent` fixture, issue-style prompt | Same 8-facet verifier and oracle, new bench hash | Baseline 6/8, fail (185.4s); `diagnosing-bugs` 5/8, fail (116.7s) | Both arms at the pass-rate floor; one pair gives no efficacy verdict |
17
+
18
+ The Chrome case used the pinned upstream `WaitForHelper.ts` with a deterministic local CDP mock. Its hidden checks covered immediate main-frame scheduling, child-frame and delayed hints, existing requested/started signals, same-document exclusion, listener cleanup, a passing suite, and a RED→GREEN regression. The first prompt described the scheduled-navigation mechanism quite directly, which may have reduced diagnosis difficulty. The `mcp-agent` fixture kept the exact pinned upstream `logger.py` and `events.py`, with standard-library stubs for external runtime pieces. Its original explicit-contract prompt listed independent filter and initialization requirements; after that saturated, a separately hashed version paraphrased the original issue's user symptom without those details. The hidden verifier did not change. The issue-style baseline missed pre-initialization silence and `progress` severity; treatment missed those plus local/upstream filter independence. Its process result is a valid pair, but 0/1 pass in each arm is a floor warning. Prompt versions must not be pooled, and one pair per version cannot establish a time or quality effect.
19
+
20
+ Raw local manifests are `runs/codex-matt-oss-view-20261001-a/manifest.json`, `runs/codex-matt-oss-chrome-nav-20261001-a/manifest.json`, `runs/codex-matt-oss-mcp-logger-20261001-a/manifest.json` (bench `bca7d4cd891c…`), and `runs/codex-matt-oss-mcp-logger-issue-20261001-a/manifest.json` (bench `d73abf6bff79…`). These scratch benches live in `/private/tmp`, not in the published `benches/` collection.
21
+
22
+ ### Natural activation check on the issue-style case
23
+
24
+ With the Skill installed at `.agents/skills/diagnosing-bugs`, one corrected Codex JSON-stream trial **read the Skill file** (detected trigger 1/1) but failed the task at 6/8 facets: it missed pre-initialization silence and `progress` severity. The single positive has a very wide Wilson interval (21%–100%); this bench has no negative control, so false-trigger rate is unavailable. The valid manifest is `runs/codex-matt-oss-mcp-logger-trigger-20261001-b/manifest.json`.
25
+
26
+ An earlier installed-Skill trial also visibly read `SKILL.md` in its raw JSON output, but its custom executor omitted `triggerSkillName`. The harness consequently recorded `triggered: null` and excluded it from rates. Preserve `runs/codex-matt-oss-mcp-logger-trigger-20261001-a/manifest.json` as an instrumentation-error record, not a no-trigger observation. The corrected run passed the parser; neither trial establishes task-quality benefit.
27
+
28
+ ## Next candidates, in order
29
+
30
+ | Priority | Case and pinned historical base | Why it is harder | Offline gate to build |
31
+ | --- | --- | --- | --- |
32
+ | 1 | [nanobot reasoning-text SSE gap](https://github.com/HKUDS/nanobot/pull/5834), pre-fix `fa754c220400c26a2ceca3b0506d6730d8231027` | SSE and SDK transports should agree, but delta and done events need aggregation without duplicate callback emission. | Scripted SSE stream; check multiple deltas, done-only fallback, duplicate suppression, summary behavior, and SDK parity. |
33
+ | 2 | [crewAI #7636](https://github.com/crewAIInc/crewAI/issues/7636), `3831e8b6c86f78cb3cde18ebf7be0d197b958f0e` | Three version-less Gemini aliases need tool/thinking capability while numbered, Gemma, old, and unknown names keep existing behavior. | Offline construction-time probe and negative model-name controls. Calibrate before inclusion. |
34
+ | Deferred | [Mastra #24446](https://github.com/mastra-ai/mastra/issues/24446), `9fe69d6566c3e6d1e5c9f5bf5e9848b35c73e182` | Numeric `modelSettings.timeout` disappears across total, step, and first-chunk budgets, plus a spread-merge path; type and runtime contracts must agree. | The real path spans multiple package imports and a 2,673-line execution file. A tiny extracted fixture would change the integration task substantially; use a full-repository execution mode or a pinned dependency snapshot before calibration. |
35
+
36
+ These are historical task candidates, not approval to continue or publish their upstream contribution lanes. New source snapshots, fixtures, and reference repairs still need to pass `skillfit bench check`. Only candidates with a workable baseline should receive repeated paired runs. The calibration results above are insufficient for an overall benefit verdict.
37
+
38
+ ## Exclusions
39
+
40
+ - `mcp-remote` overlapping-verifier race and Graphiti #1837 have unresolved behavioral contracts in the local notes; an oracle would bake in an unapproved choice.
41
+ - CopilotKit's single-route prefix bug has a narrow, obvious boundary fix and is likely another ceiling case.
42
+ - Weaviate #12986 has a promising mutation invariant but no locally validated reference repair in the notes, so it is not ready for an oracle gate.