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.
- package/LICENSE +21 -0
- package/README.md +226 -2
- package/README.zh-CN.md +224 -0
- package/benches/README.md +172 -0
- package/benches/code-review/bench.json +57 -0
- package/benches/code-review/fixtures/explain-x1/.skillfit-mock.json +10 -0
- package/benches/code-review/fixtures/explain-x1/SPEC.md +16 -0
- package/benches/code-review/fixtures/explain-x1/src/compact.js +18 -0
- package/benches/code-review/fixtures/explain-x1/tests/compact.test.js +18 -0
- package/benches/code-review/fixtures/review-r1/.skillfit-mock.json +10 -0
- package/benches/code-review/fixtures/review-r1/CHANGES.diff +42 -0
- package/benches/code-review/fixtures/review-r1/SPEC.md +16 -0
- package/benches/code-review/fixtures/review-r1/src/errors.js +7 -0
- package/benches/code-review/fixtures/review-r1/src/money.js +3 -0
- package/benches/code-review/fixtures/review-r1/src/order.js +13 -0
- package/benches/code-review/fixtures/review-r1/tests/order.test.js +17 -0
- package/benches/code-review/fixtures/review-r2/.skillfit-mock.json +10 -0
- package/benches/code-review/fixtures/review-r2/CHANGES.diff +81 -0
- package/benches/code-review/fixtures/review-r2/SPEC.md +25 -0
- package/benches/code-review/fixtures/review-r2/src/errors.js +7 -0
- package/benches/code-review/fixtures/review-r2/src/invoice.js +9 -0
- package/benches/code-review/fixtures/review-r2/src/money.js +3 -0
- package/benches/code-review/fixtures/review-r2/tests/invoice.test.js +13 -0
- package/benches/code-review/fixtures/review-r3/.skillfit-mock.json +10 -0
- package/benches/code-review/fixtures/review-r3/CHANGES.diff +76 -0
- package/benches/code-review/fixtures/review-r3/SPEC.md +24 -0
- package/benches/code-review/fixtures/review-r3/src/errors.js +7 -0
- package/benches/code-review/fixtures/review-r3/src/money.js +3 -0
- package/benches/code-review/fixtures/review-r3/src/pricing.js +20 -0
- package/benches/code-review/fixtures/review-r3/tests/pricing.test.js +15 -0
- package/benches/code-review/fixtures/summarize-s1/.skillfit-mock.json +16 -0
- package/benches/code-review/fixtures/summarize-s1/CHANGES.diff +27 -0
- package/benches/code-review/fixtures/summarize-s1/SPEC.md +15 -0
- package/benches/code-review/fixtures/summarize-s1/src/discount.js +20 -0
- package/benches/code-review/fixtures/summarize-s1/src/errors.js +7 -0
- package/benches/code-review/fixtures/summarize-s1/src/money.js +7 -0
- package/benches/code-review/ground-truth/oracle-r1.mjs +21 -0
- package/benches/code-review/ground-truth/oracle-r2.mjs +21 -0
- package/benches/code-review/ground-truth/oracle-r3.mjs +20 -0
- package/benches/code-review/ground-truth/oracle-summarize-s1.mjs +21 -0
- package/benches/code-review/ground-truth/oracle-x1.mjs +18 -0
- package/benches/code-review/ground-truth/r1.md +22 -0
- package/benches/code-review/ground-truth/r2.md +21 -0
- package/benches/code-review/ground-truth/r3.md +18 -0
- package/benches/code-review/ground-truth/summarize-s1.md +26 -0
- package/benches/code-review/ground-truth/x1.md +7 -0
- package/benches/code-review/prompts/explain-x1.md +5 -0
- package/benches/code-review/prompts/explain-x1.trigger.md +5 -0
- package/benches/code-review/prompts/review-r1.md +7 -0
- package/benches/code-review/prompts/review-r1.trigger.md +7 -0
- package/benches/code-review/prompts/review-r2.md +7 -0
- package/benches/code-review/prompts/review-r2.trigger.md +7 -0
- package/benches/code-review/prompts/review-r3.md +7 -0
- package/benches/code-review/prompts/review-r3.trigger.md +7 -0
- package/benches/code-review/prompts/summarize-s1.md +9 -0
- package/benches/code-review/prompts/summarize-s1.trigger.md +9 -0
- package/benches/code-review/verifiers/explain-x1.mjs +30 -0
- package/benches/code-review/verifiers/review-r2.mjs +66 -0
- package/benches/code-review/verifiers/review-r3.mjs +60 -0
- package/benches/code-review/verifiers/seeded-bugs.mjs +74 -0
- package/benches/code-review/verifiers/summarize-s1.mjs +80 -0
- package/benches/contrib/README.md +42 -0
- package/benches/contrib/oss-lru-cache/README.md +24 -0
- package/benches/contrib/oss-lru-cache/bench.json +37 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/LICENSE +15 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/README.md +3 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/index.js +1044 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/package.json +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/runtime.mjs +22 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-abort/test.mjs +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/LICENSE.md +55 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/README.md +3 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/package.json +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/runtime.mjs +22 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-browser.ts +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-cjs.cts +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-esm.mts +29 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel-node.ts +7 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/diagnostics-channel.ts +6 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/index.ts +3148 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/src/perf.ts +17 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-lifecycle/test.mjs +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-size/LICENSE +15 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-size/README.md +3 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-size/index.js +1028 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-size/package.json +11 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-size/runtime.mjs +22 -0
- package/benches/contrib/oss-lru-cache/fixtures/fetch-size/test.mjs +11 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-abort/LICENSE +15 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-abort/index.js +1053 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-abort.md +11 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/LICENSE.md +55 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-browser.ts +11 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-cjs.cts +11 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-esm.mts +29 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel-node.ts +7 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/diagnostics-channel.ts +6 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/index.ts +3174 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle/src/perf.ts +17 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-lifecycle.md +11 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-size/LICENSE +15 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-size/index.js +1028 -0
- package/benches/contrib/oss-lru-cache/ground-truth/fetch-size.md +11 -0
- package/benches/contrib/oss-lru-cache/ground-truth/oracle-fetch-abort.mjs +8 -0
- package/benches/contrib/oss-lru-cache/ground-truth/oracle-fetch-lifecycle.mjs +7 -0
- package/benches/contrib/oss-lru-cache/ground-truth/oracle-fetch-size.mjs +7 -0
- package/benches/contrib/oss-lru-cache/ground-truth/oracle.mjs +9 -0
- package/benches/contrib/oss-lru-cache/prompts/fetch-abort.md +5 -0
- package/benches/contrib/oss-lru-cache/prompts/fetch-lifecycle.md +5 -0
- package/benches/contrib/oss-lru-cache/prompts/fetch-size.md +5 -0
- package/benches/contrib/oss-lru-cache/provenance.json +62 -0
- package/benches/contrib/oss-lru-cache/runtime.mjs +22 -0
- package/benches/contrib/oss-lru-cache/verifiers/cases.mjs +74 -0
- package/benches/contrib/oss-lru-cache/verifiers/fetch-abort.mjs +3 -0
- package/benches/contrib/oss-lru-cache/verifiers/fetch-lifecycle.mjs +3 -0
- package/benches/contrib/oss-lru-cache/verifiers/fetch-size.mjs +3 -0
- package/benches/contrib/oss-lru-cache/verifiers/probe.mjs +14 -0
- package/benches/contrib/oss-lru-cache/verifiers/shared.mjs +130 -0
- package/benches/contrib/oss-lru-cache/verifiers/test-reporter.mjs +29 -0
- package/benches/contrib/oss-mcp-use-utf8/LICENSE.upstream +21 -0
- package/benches/contrib/oss-mcp-use-utf8/README.md +56 -0
- package/benches/contrib/oss-mcp-use-utf8/bench.json +16 -0
- package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/LICENSE +21 -0
- package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/package.json +3 -0
- package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/src/ext-apps-bridge.js +3 -0
- package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/src/resolve-view-resource.ts +96 -0
- package/benches/contrib/oss-mcp-use-utf8/fixtures/view-utf8/test/basic.test.mjs +13 -0
- package/benches/contrib/oss-mcp-use-utf8/ground-truth/README.md +5 -0
- package/benches/contrib/oss-mcp-use-utf8/ground-truth/oracle-view-utf8.mjs +11 -0
- package/benches/contrib/oss-mcp-use-utf8/ground-truth/solutions/view-utf8/src/resolve-view-resource.ts +96 -0
- package/benches/contrib/oss-mcp-use-utf8/ground-truth/solutions/view-utf8/test/utf8.regression.test.mjs +14 -0
- package/benches/contrib/oss-mcp-use-utf8/prompts/view-utf8.md +8 -0
- package/benches/contrib/oss-mcp-use-utf8/verifiers/view-utf8.mjs +120 -0
- package/benches/contrib/waza-behavior/LICENSE.upstream +21 -0
- package/benches/contrib/waza-behavior/README.md +31 -0
- package/benches/contrib/waza-behavior/bench.json +10 -0
- package/benches/contrib/waza-behavior/fixtures/explicit-hold/README.md +1 -0
- package/benches/contrib/waza-behavior/fixtures/explicit-hold/notes.txt +1 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-current/README.md +1 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-current/docs/guide.md +2 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-current/notes.txt +1 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-current/scripts/check-links.mjs +16 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-current/validation-receipt.json +10 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-stale/README.md +1 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-stale/docs/guide.md +3 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-stale/notes.txt +1 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-stale/scripts/check-links.mjs +16 -0
- package/benches/contrib/waza-behavior/fixtures/receipt-stale/validation-receipt.json +10 -0
- package/benches/contrib/waza-behavior/ground-truth/oracle.mjs +24 -0
- package/benches/contrib/waza-behavior/prompts/explicit-hold.md +1 -0
- package/benches/contrib/waza-behavior/prompts/receipt-current.md +1 -0
- package/benches/contrib/waza-behavior/prompts/receipt-stale.md +1 -0
- package/benches/contrib/waza-behavior/verifiers/behavior.mjs +59 -0
- package/benches/debugging/bench.json +93 -0
- package/benches/debugging/fixtures/async-queue/src/task-queue.mjs +50 -0
- package/benches/debugging/fixtures/async-queue/test/basic.test.mjs +18 -0
- package/benches/debugging/fixtures/chunked-decoder/src/frame-decoder.mjs +39 -0
- package/benches/debugging/fixtures/chunked-decoder/test/basic.test.mjs +17 -0
- package/benches/debugging/fixtures/debug-redaction/src/debug-redaction.mjs +33 -0
- package/benches/debugging/fixtures/debug-redaction/test/basic.test.mjs +26 -0
- package/benches/debugging/fixtures/document-queue/.skillfit-mock.json +16 -0
- package/benches/debugging/fixtures/document-queue/src/task-queue.mjs +52 -0
- package/benches/debugging/fixtures/document-queue/test/basic.test.mjs +23 -0
- package/benches/debugging/fixtures/explain-cache/.skillfit-mock.json +16 -0
- package/benches/debugging/fixtures/explain-cache/src/ttl-cache.mjs +31 -0
- package/benches/debugging/fixtures/explain-cache/test/basic.test.mjs +28 -0
- package/benches/debugging/fixtures/feat-slug/test/slug.test.mjs +15 -0
- package/benches/debugging/fixtures/range-parser/src/range-parser.mjs +9 -0
- package/benches/debugging/fixtures/range-parser/test/basic.test.mjs +8 -0
- package/benches/debugging/fixtures/ttl-cache/src/ttl-cache.mjs +30 -0
- package/benches/debugging/fixtures/ttl-cache/test/basic.test.mjs +11 -0
- package/benches/debugging/ground-truth/async-queue.md +81 -0
- package/benches/debugging/ground-truth/chunked-decoder.md +91 -0
- package/benches/debugging/ground-truth/debug-redaction.md +113 -0
- package/benches/debugging/ground-truth/document-queue.md +24 -0
- package/benches/debugging/ground-truth/explain-cache.md +22 -0
- package/benches/debugging/ground-truth/feat-slug.md +45 -0
- package/benches/debugging/ground-truth/oracle-async-queue.mjs +14 -0
- package/benches/debugging/ground-truth/oracle-chunked-decoder.mjs +14 -0
- package/benches/debugging/ground-truth/oracle-debug-redaction.mjs +30 -0
- package/benches/debugging/ground-truth/oracle-document-queue.mjs +27 -0
- package/benches/debugging/ground-truth/oracle-explain-cache.mjs +28 -0
- package/benches/debugging/ground-truth/oracle-feat-slug.mjs +13 -0
- package/benches/debugging/ground-truth/oracle-range-parser.mjs +14 -0
- package/benches/debugging/ground-truth/oracle-ttl-cache.mjs +14 -0
- package/benches/debugging/ground-truth/range-parser.md +121 -0
- package/benches/debugging/ground-truth/solutions/async-queue/src/task-queue.mjs +52 -0
- package/benches/debugging/ground-truth/solutions/chunked-decoder/src/frame-decoder.mjs +50 -0
- package/benches/debugging/ground-truth/solutions/debug-redaction/src/debug-redaction.mjs +27 -0
- package/benches/debugging/ground-truth/solutions/debug-redaction/test/debug-leak.regression.test.mjs +27 -0
- package/benches/debugging/ground-truth/solutions/feat-slug/src/slug.mjs +6 -0
- package/benches/debugging/ground-truth/solutions/range-parser/src/range-parser.mjs +34 -0
- package/benches/debugging/ground-truth/solutions/range-parser/test/basic.test.mjs +26 -0
- package/benches/debugging/ground-truth/solutions/ttl-cache/src/ttl-cache.mjs +31 -0
- package/benches/debugging/ground-truth/ttl-cache.md +69 -0
- package/benches/debugging/prompts/async-queue.md +13 -0
- package/benches/debugging/prompts/async-queue.trigger.md +13 -0
- package/benches/debugging/prompts/chunked-decoder.md +13 -0
- package/benches/debugging/prompts/chunked-decoder.trigger.md +13 -0
- package/benches/debugging/prompts/debug-redaction.md +23 -0
- package/benches/debugging/prompts/debug-redaction.trigger.md +23 -0
- package/benches/debugging/prompts/document-queue.md +10 -0
- package/benches/debugging/prompts/document-queue.trigger.md +10 -0
- package/benches/debugging/prompts/explain-cache.md +10 -0
- package/benches/debugging/prompts/explain-cache.trigger.md +10 -0
- package/benches/debugging/prompts/feat-slug.md +3 -0
- package/benches/debugging/prompts/feat-slug.trigger.md +5 -0
- package/benches/debugging/prompts/range-parser.md +15 -0
- package/benches/debugging/prompts/range-parser.trigger.md +15 -0
- package/benches/debugging/prompts/ttl-cache.md +18 -0
- package/benches/debugging/prompts/ttl-cache.trigger.md +18 -0
- package/benches/debugging/verifiers/async-queue.mjs +221 -0
- package/benches/debugging/verifiers/chunked-decoder.mjs +208 -0
- package/benches/debugging/verifiers/debug-redaction.mjs +283 -0
- package/benches/debugging/verifiers/document-queue.mjs +52 -0
- package/benches/debugging/verifiers/explain-cache.mjs +62 -0
- package/benches/debugging/verifiers/feat-slug.mjs +127 -0
- package/benches/debugging/verifiers/range-parser.mjs +146 -0
- package/benches/debugging/verifiers/ttl-cache.mjs +111 -0
- package/dist/agents.js +26 -0
- package/dist/cli.js +310 -0
- package/dist/cli.test.js +76 -0
- package/dist/commands/bench.js +1035 -0
- package/dist/commands/bench.test.js +1061 -0
- package/dist/commands/bundle.js +334 -0
- package/dist/commands/bundle.test.js +142 -0
- package/dist/commands/confirm.js +39 -0
- package/dist/commands/doctor.js +399 -0
- package/dist/commands/doctor.test.js +280 -0
- package/dist/commands/eval-report.js +485 -0
- package/dist/commands/eval-report.test.js +306 -0
- package/dist/commands/eval.js +391 -0
- package/dist/commands/eval.test.js +446 -0
- package/dist/commands/install.js +653 -0
- package/dist/commands/install.test.js +555 -0
- package/dist/commands/mcp.js +20 -0
- package/dist/commands/report.js +78 -0
- package/dist/commands/report.test.js +110 -0
- package/dist/commands/setup.js +95 -0
- package/dist/commands/setup.test.js +150 -0
- package/dist/commands/upstream.js +210 -0
- package/dist/commands/upstream.test.js +139 -0
- package/dist/docs.test.js +154 -0
- package/dist/frontmatter.js +53 -0
- package/dist/frontmatter.test.js +49 -0
- package/dist/harness/bench.js +134 -0
- package/dist/harness/bench.test.js +109 -0
- package/dist/harness/bundle.js +46 -0
- package/dist/harness/bundle.test.js +71 -0
- package/dist/harness/constants.js +2 -0
- package/dist/harness/executors/api.js +68 -0
- package/dist/harness/executors/api.test.js +75 -0
- package/dist/harness/executors/cli.js +348 -0
- package/dist/harness/executors/cli.test.js +402 -0
- package/dist/harness/executors/mock.js +34 -0
- package/dist/harness/executors/mock.test.js +43 -0
- package/dist/harness/experiment-session.js +345 -0
- package/dist/harness/experiment-session.test.js +223 -0
- package/dist/harness/hash.js +29 -0
- package/dist/harness/installed-skill.js +78 -0
- package/dist/harness/installed-skill.test.js +162 -0
- package/dist/harness/judge.js +108 -0
- package/dist/harness/judge.test.js +181 -0
- package/dist/harness/kill-tree.js +43 -0
- package/dist/harness/kimi-usage.js +94 -0
- package/dist/harness/kimi-usage.test.js +62 -0
- package/dist/harness/oss-lru-cache.test.js +79 -0
- package/dist/harness/oss-regression-witness.test.js +89 -0
- package/dist/harness/prompt.js +57 -0
- package/dist/harness/prompt.test.js +48 -0
- package/dist/harness/receipts.js +297 -0
- package/dist/harness/receipts.test.js +148 -0
- package/dist/harness/report.js +225 -0
- package/dist/harness/report.test.js +297 -0
- package/dist/harness/runner.js +629 -0
- package/dist/harness/runner.test.js +555 -0
- package/dist/harness/stats.js +93 -0
- package/dist/harness/stats.test.js +124 -0
- package/dist/harness/target.js +90 -0
- package/dist/harness/target.test.js +60 -0
- package/dist/harness/trigger.js +368 -0
- package/dist/harness/trigger.test.js +249 -0
- package/dist/harness/types.js +1 -0
- package/dist/harness/verifier-summary.js +59 -0
- package/dist/harness/verifier-summary.test.js +99 -0
- package/dist/harness/waza-behavior.test.js +139 -0
- package/dist/invocation.js +21 -0
- package/dist/matrix/agents.json +200 -0
- package/dist/matrix/agents.schema.json +152 -0
- package/dist/mcp/probe.js +317 -0
- package/dist/mcp/probe.test.js +87 -0
- package/dist/version.js +4 -0
- package/docs/assets/skillfit-flow.en.svg +47 -0
- package/docs/assets/skillfit-flow.zh-CN.svg +47 -0
- package/docs/assets/skillfit-mark.svg +9 -0
- package/docs/audit-2026-09-24-triage.md +231 -0
- package/docs/audit-2026-09-24.md +876 -0
- package/docs/bench-authoring.md +407 -0
- package/docs/codex-upstream-audit.md +41 -0
- package/docs/config-experiments.md +119 -0
- package/docs/examples/bench-check.yml +32 -0
- package/docs/examples/eval-manifest.synthetic.json +61 -0
- package/docs/experiment-workflow.md +15 -0
- package/docs/first-real-eval.md +90 -0
- package/docs/growth-roadmap-2026-10.md +100 -0
- package/docs/installed-skill-evaluation.md +77 -0
- package/docs/metrics.md +318 -0
- package/docs/oss-task-evaluation.md +139 -0
- package/docs/plans/2026-10-01-oss-task-evaluation.md +73 -0
- package/docs/plans/2026-10-09-experiment-workflow.md +18 -0
- package/docs/plans/2026-10-09-grader-calibration-audit.md +13 -0
- package/docs/plans/2026-10-09-waza-resource-evaluation.md +46 -0
- package/docs/portable-codex.md +31 -0
- package/docs/reproducible-offline-example.md +29 -0
- package/docs/selectable-codex.md +41 -0
- package/docs/sharing-results.md +53 -0
- package/evidence/2026-07-skill-baseline.md +34 -0
- package/evidence/2026-09-22-codex-trigger-capture.md +36 -0
- package/evidence/2026-09-bench-calibration.md +46 -0
- package/evidence/2026-09-debugging-bench-exploratory.md +55 -0
- package/evidence/2026-09-debugging-hardening.md +42 -0
- package/evidence/2026-09-ocr-vs-code-review.md +31 -0
- package/evidence/2026-09-trigger-snapshot-correction.md +48 -0
- package/evidence/2026-10-01-codex-diagnosing-bugs-pilot.md +58 -0
- package/evidence/2026-10-01-oss-case-selection.md +42 -0
- package/evidence/2026-10-01-oss-workspace-smoke.md +110 -0
- package/evidence/README.md +47 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/README.md +27 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/artifact-index.json +118 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/output.md +5 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/prompt.txt +14 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/result.json +65 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/verifier.txt +2 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/LICENSE +21 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/package.json +3 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/src/ext-apps-bridge.js +3 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/src/resolve-view-resource.ts +100 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/test/basic.test.mjs +13 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/baseline/workspace/test/resolve-view-resource.test.mjs +102 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/manifest.json +206 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/original-console.txt +44 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/report.md +67 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/output.md +5 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/prompt.txt +163 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/result.json +65 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/verifier.txt +2 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/LICENSE +21 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/package.json +3 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/src/ext-apps-bridge.js +3 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/src/resolve-view-resource.ts +100 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/test/basic.test.mjs +13 -0
- package/evidence/artifacts/2026-10-01-oss-workspace-smoke/treatment/workspace/test/resolve-view-resource.test.mjs +136 -0
- package/evidence/inputs/README.md +15 -0
- package/evidence/inputs/diagnosing-bugs/LICENSE +21 -0
- package/evidence/inputs/diagnosing-bugs/SKILL.md +138 -0
- package/evidence/inputs/diagnosing-bugs/agents/openai.yaml +3 -0
- package/evidence/inputs/diagnosing-bugs/scripts/hitl-loop.template.sh +44 -0
- package/evidence/plans/2026-10-01-oss-workspace-smoke.json +29 -0
- package/package.json +47 -4
- package/profiles/codex-curated/catalog.json +28 -0
- package/profiles/codex-curated/profile.json +282 -0
- package/profiles/codex-curated/rules/global.md +12 -0
- package/profiles/codex-curated/skills/autonomous-iteration/SKILL.md +75 -0
- package/profiles/codex-curated/skills/autonomous-iteration/agents/openai.yaml +4 -0
- package/profiles/codex-curated/skills/vibe-coding/SKILL.md +45 -0
- package/profiles/codex-curated/skills/vibe-coding/agents/openai.yaml +4 -0
- package/profiles/codex-upstream-sources.json +2980 -0
- package/profiles/recommended/profile.json +12 -0
- package/profiles/recommended/rules/core-workflow.md +41 -0
- package/profiles/recommended/skills/commit-message/SKILL.md +18 -0
- package/skills/skillfit/SKILL.md +60 -0
|
@@ -0,0 +1,876 @@
|
|
|
1
|
+
# skillfit audit — 2026-09-24
|
|
2
|
+
|
|
3
|
+
**Status: draft for review.** This is not a contract and not a changelog entry. It is a findings list
|
|
4
|
+
produced by a full read of `src/`, `benches/`, `docs/`, and the contributor surface, intended to be
|
|
5
|
+
reviewed, triaged, and then either turned into issues or discarded. Nothing here has been fixed.
|
|
6
|
+
|
|
7
|
+
Baseline at time of audit: `main` @ `e1ced97`, `npm test` green (222 tests, 0 failures), build clean.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 0. How to read this document
|
|
12
|
+
|
|
13
|
+
Every finding carries a **verification status**, because they were not all established the same way:
|
|
14
|
+
|
|
15
|
+
- **[verified]** — the cited source was read directly during this audit and the claim was confirmed
|
|
16
|
+
line by line. Reproduction steps are given where they exist.
|
|
17
|
+
- **[reported]** — surfaced by an automated audit pass over the same files but *not* independently
|
|
18
|
+
re-confirmed. Treat these as leads, not as established defects. A reviewer should confirm or kill
|
|
19
|
+
each one before it becomes an issue.
|
|
20
|
+
|
|
21
|
+
Severities are about **blast radius on the project's own thesis**, not about lines of code:
|
|
22
|
+
|
|
23
|
+
- **T1** — the authoring path teaches users a wrong habit, or a gate reports green without gating.
|
|
24
|
+
- **T2** — a number the tool prints is wrong or untrustworthy.
|
|
25
|
+
- **T3** — robustness, safety, or self-inflicted breakage that does not corrupt a measurement.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 1. The lens this audit uses
|
|
30
|
+
|
|
31
|
+
The stated product intent is **not** "ship a large library of benches." It is:
|
|
32
|
+
|
|
33
|
+
> Distil a *paradigm* for writing benches — mined from open-source projects and published work —
|
|
34
|
+
> small but complete, such that a user can apply it to their own situation and produce their own bench.
|
|
35
|
+
|
|
36
|
+
Two consequences follow, and they re-rank everything below.
|
|
37
|
+
|
|
38
|
+
**The bundled benches are teaching material, not product.** So "only 10 tasks, guidance says 20–50"
|
|
39
|
+
is *not* a defect. Coverage and difficulty-mix targets in `docs/metrics.md` §composition are advice
|
|
40
|
+
for a user's own bench, not a quota the bundled examples must hit. This audit does not raise it.
|
|
41
|
+
|
|
42
|
+
**Conversely, a wrong example is worse than a missing feature.** A user learns by copying
|
|
43
|
+
`benches/debugging/`. If that bench omits a step the paradigm declares mandatory, every downstream
|
|
44
|
+
user bench inherits the omission — and the tool currently does not object. That is why T1 outranks
|
|
45
|
+
T2 here, even though T2 bugs are more intellectually interesting.
|
|
46
|
+
|
|
47
|
+
A third consequence: the paradigm's knowledge is complete but **has no single home**. See §6.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 2. T1 — the authoring path
|
|
52
|
+
|
|
53
|
+
### A1 · The oracle gate is optional and fails silently · [verified]
|
|
54
|
+
|
|
55
|
+
`src/commands/bench.ts:337`
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
if (task.oracle) {
|
|
59
|
+
const oracleResult = await probeOracle(bench.dir, task.fixture, task.oracle, task.verifier);
|
|
60
|
+
push(oracleResult.status, `${task.id}: ${oracleResult.message}`);
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
A task with no `oracle` field skips the gate with **no output at all** — not a WARN, not an INFO.
|
|
65
|
+
|
|
66
|
+
`docs/metrics.md:171` states the opposite: *"oracle solution passes the verifier at 100%
|
|
67
|
+
(**enforced**: register an `oracle` command per task and `bench check` fails when …)"*.
|
|
68
|
+
|
|
69
|
+
The oracle gate is the only mechanism that proves a task is *winnable* — that a correct solution
|
|
70
|
+
exists and the verifier recognises it. Without it, a task can be silently impossible and every arm
|
|
71
|
+
scores 0, which the tool then attributes to bench difficulty via the floor warning.
|
|
72
|
+
|
|
73
|
+
**Fix:** emit `WARN` (or `FAIL` under a `--strict` flag) when `task.oracle` is absent. The message
|
|
74
|
+
should say what is lost: "no oracle — task winnability is unverified."
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
### A2 · The bundled `debugging` bench has no oracles at all · [verified]
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
$ ls benches/debugging/ground-truth/
|
|
82
|
+
async-queue.md chunked-decoder.md debug-redaction.md feat-slug.md range-parser.md ttl-cache.md
|
|
83
|
+
$ grep -c oracle benches/debugging/bench.json
|
|
84
|
+
0
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Six tasks, zero oracle scripts, zero `oracle` fields. `bench check benches/debugging` reports
|
|
88
|
+
17/17 PASS with 0 warnings — because of A1.
|
|
89
|
+
|
|
90
|
+
This is disclosed honestly in `CHANGELOG.md` (*"The `debugging` bench intentionally has no oracles
|
|
91
|
+
yet — its command-kind tasks need verified reference patches, which are follow-up work"*), but
|
|
92
|
+
`docs/metrics.md:171` and `benches/README.md:54` do not carry the caveat, and a user reading the
|
|
93
|
+
bench directory sees only a green check.
|
|
94
|
+
|
|
95
|
+
**The cheap part:** the reference fixes already exist. Each `benches/debugging/ground-truth/*.md`
|
|
96
|
+
contains the corrected implementation as a fenced code block. Turning those into
|
|
97
|
+
`oracle-<id>.mjs` scripts is mechanical — the code-review bench already shows the shape
|
|
98
|
+
(`benches/code-review/ground-truth/oracle-r1.mjs` etc., 4 scripts, gate-validated in CI).
|
|
99
|
+
|
|
100
|
+
**Fix:** write the 6 oracle scripts, register them in `bench.json`, then land A1 so the omission
|
|
101
|
+
cannot recur.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
### A3 · `bench check --calibrate` reports PASS after running nothing · [verified]
|
|
106
|
+
|
|
107
|
+
`src/commands/bench.ts:425` routes calibration through `runTriggerExperiment`, whose first act is
|
|
108
|
+
(`src/harness/trigger.ts:279`):
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
const eligible = plan.bench.tasks.filter((task) => task.shouldTrigger !== undefined);
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Calibration is supposed to measure *inject-mode baseline difficulty*. It has no business depending
|
|
115
|
+
on trigger labels. But for any bench whose tasks lack `shouldTrigger`, `eligible` is empty, the run
|
|
116
|
+
loop never executes, and the summary at `bench.ts:454-456` evaluates:
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
push(discriminative === manifest.tasks.length ? 'PASS' : 'INFO',
|
|
120
|
+
`calibration: ${discriminative}/${manifest.tasks.length} task(s) in the discriminative band …`);
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
`0 === 0` → prints `PASS calibration: 0/0 task(s) in the discriminative band`.
|
|
124
|
+
|
|
125
|
+
**Why this is T1 and not T3:** `benches/contrib/README.md:13-15` instructs contributors to run
|
|
126
|
+
exactly this command and paste its output into the PR as the difficulty read. A first-time
|
|
127
|
+
contributor with an unlabelled bench follows the guide, spends an agent invocation, gets a green
|
|
128
|
+
line, and pastes a measurement that contains no measurements. The submission gate then accepts it.
|
|
129
|
+
|
|
130
|
+
**Fix:** two parts. (a) Fail loudly when `manifest.tasks.length === 0` — "calibration ran 0 tasks:
|
|
131
|
+
no task is eligible." (b) Decouple calibration from `runTriggerExperiment`; it should drive the
|
|
132
|
+
inject path with an empty skill bundle, which is what the surrounding code already intends
|
|
133
|
+
(`bench.ts:414-420` builds a `calibration-none` skill with an empty payload).
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
### A4 · The 2–8 facet-check rule is documented, unenforced, and violated by 4 of 10 tasks · [verified]
|
|
138
|
+
|
|
139
|
+
`benches/README.md:68` specifies *"the acceptance criteria decomposed into 2–8 named programmatic
|
|
140
|
+
checks"*. `bench check` never counts them. Actual per-task check totals, read from each verifier's
|
|
141
|
+
own `maxScore`:
|
|
142
|
+
|
|
143
|
+
| Task | Checks | Within 2–8? |
|
|
144
|
+
|---|---|---|
|
|
145
|
+
| `debugging/feat-slug` | **1** | no — under |
|
|
146
|
+
| `debugging/async-queue` | 6 | yes |
|
|
147
|
+
| `debugging/ttl-cache` | 8 | yes |
|
|
148
|
+
| `debugging/chunked-decoder` | **10** | no — over |
|
|
149
|
+
| `debugging/range-parser` | **12** (10 behaviour + 2 regression) | no — over |
|
|
150
|
+
| `debugging/debug-redaction` | **12** (5 behaviour + 5 regression + 2 secrecy) | no — over |
|
|
151
|
+
| `code-review/*` (4 tasks) | 2–3 | yes |
|
|
152
|
+
|
|
153
|
+
The rule exists because facet count drives the granularity of the Δscore signal: one check is
|
|
154
|
+
binary pass/fail wearing a costume (defeats the entire point of v2), and twelve checks over-weight
|
|
155
|
+
whatever they happen to measure. Neither bound is enforced, and the bundled examples — the thing
|
|
156
|
+
users copy — sit outside it in both directions.
|
|
157
|
+
|
|
158
|
+
**Fix:** `bench check` asserts the range from the verifier's emitted `checks` array. WARN outside
|
|
159
|
+
2–8, not FAIL, so existing benches degrade gracefully. Then bring the six tasks into range.
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
163
|
+
### A5 · `feat-slug` can be passed by rewriting the test file · [verified]
|
|
164
|
+
|
|
165
|
+
`benches/debugging/verifiers/feat-slug.mjs` in full is 23 lines; the grading core is:
|
|
166
|
+
|
|
167
|
+
```js
|
|
168
|
+
const result = spawnSync('node --test', { cwd: runDir, shell: true, encoding: 'utf8', env: scrubbedEnv() });
|
|
169
|
+
const passed = result.status === 0;
|
|
170
|
+
console.log(JSON.stringify({ passed, checks: [{ name: 'tests-pass', pass: passed }] }));
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Three problems compound:
|
|
174
|
+
|
|
175
|
+
1. **No tamper guard.** The fixture ships `test/slug.test.mjs` *visible and writable* inside the run
|
|
176
|
+
directory, and the verifier runs it in place. An agent that replaces the assertions with
|
|
177
|
+
`assert(true)` passes. Four sibling verifiers defend against exactly this by re-running against a
|
|
178
|
+
canonical pristine copy of the tests (`async-queue`, `chunked-decoder`, `debug-redaction`,
|
|
179
|
+
`ttl-cache` all contain that comparison); `feat-slug` has none.
|
|
180
|
+
2. **One check** (see A4), so there is no partial credit to distinguish "implemented" from "cheated."
|
|
181
|
+
3. `spawnSync('node --test', { shell: true })` resolves `node` from PATH rather than using
|
|
182
|
+
`process.execPath`, so the verifier can grade with a different Node than the harness runs on.
|
|
183
|
+
|
|
184
|
+
`benches/README.md:71` states the invariant plainly: *"A command verifier must fail on the untouched
|
|
185
|
+
fixture"*. It does. Nothing states the second half — that it must also fail on a *tampered* fixture
|
|
186
|
+
— but that is what makes the gate meaningful, and the other four tasks implement it.
|
|
187
|
+
|
|
188
|
+
**Fix:** port the canonical-test comparison from `ttl-cache.mjs` into `feat-slug.mjs`, add 2–4 real
|
|
189
|
+
edge-case checks (unicode, consecutive separators, empty input), and switch to `process.execPath`.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
### A6 · `range-parser` regression checks are gameable · [verified]
|
|
194
|
+
|
|
195
|
+
`benches/debugging/verifiers/range-parser.mjs:34-39`:
|
|
196
|
+
|
|
197
|
+
```js
|
|
198
|
+
const testCount = (testSource.match(/\btest\s*\(/g) || []).length;
|
|
199
|
+
const regressionChecks = [
|
|
200
|
+
['regression breadth', testCount >= 4],
|
|
201
|
+
['boundary regression cases', /negative|maxItems|invalid|reject/i.test(testSource)],
|
|
202
|
+
];
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
`testSource` is read from the run directory — agent-writable. Four empty `test('x', () => {})`
|
|
206
|
+
blocks plus the word "invalid" anywhere in the file satisfy both checks. The 10 behaviour checks are
|
|
207
|
+
sound (they `await import()` the module and assert real return values); only these 2 of 12 are
|
|
208
|
+
hollow, but they are 2 of the 12 that set the score, and this verifier also lacks the canonical-test
|
|
209
|
+
guard the other four have.
|
|
210
|
+
|
|
211
|
+
Note also: despite `verifierKind: "command"`, this verifier never spawns a command — it imports the
|
|
212
|
+
module directly. That is fine functionally but means the `command`/`output` distinction in the
|
|
213
|
+
manifest does not describe what the verifier actually does.
|
|
214
|
+
|
|
215
|
+
**Fix:** same as A5 — canonical comparison, or assert on behaviour rather than on the test file's
|
|
216
|
+
text.
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
### A7 · Decoys are recorded but never penalised · [verified]
|
|
221
|
+
|
|
222
|
+
`benches/code-review/verifiers/seeded-bugs.mjs` (and the `review-r2` / `review-r3` variants built
|
|
223
|
+
from the same template) define a `decoys` array — plausible-but-correct code — and compute
|
|
224
|
+
`decoyHits`. Then:
|
|
225
|
+
|
|
226
|
+
```js
|
|
227
|
+
const checks = bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) }));
|
|
228
|
+
const passed = missed.length === 0;
|
|
229
|
+
console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
`decoyHits` appears in the JSON for humans and **nowhere else**. It does not affect `passed`, does
|
|
233
|
+
not affect `checks`, does not affect the score. Flagging a decoy is free.
|
|
234
|
+
|
|
235
|
+
`benches/README.md:80` promises the opposite: *"Include decoys (plausible-but-correct code) so that
|
|
236
|
+
a treatment which simply 'reports more' is penalized by your scoring logic."* The scoring logic does
|
|
237
|
+
not penalise it. So the one structural defence against a verbose-treatment win is documented,
|
|
238
|
+
scaffolded, and inert.
|
|
239
|
+
|
|
240
|
+
Also gameable within the real checks: `missing-tests` is `anchor: /applyBulkDiscount/` with
|
|
241
|
+
`evidence: [/test/i]`, evaluated per line. Any single line containing both strings passes — e.g.
|
|
242
|
+
"applyBulkDiscount needs a test."
|
|
243
|
+
|
|
244
|
+
**Fix:** add a `no-false-positives` check that fails when `decoyHits.length > 0`, and tighten
|
|
245
|
+
`missing-tests` to require an actual assertion about coverage rather than the bare word "test".
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
### A8 · One check grades the agent's process, not its outcome · [verified]
|
|
250
|
+
|
|
251
|
+
`benches/debugging/verifiers/debug-redaction.mjs:257-260`:
|
|
252
|
+
|
|
253
|
+
```js
|
|
254
|
+
await check('regression', 'notes record the red-green commands', () => {
|
|
255
|
+
const notes = readNotes();
|
|
256
|
+
assert.match(notes, /RED\s*:.*node\s+--test.*fail(?:ed|ing)?/is);
|
|
257
|
+
assert.match(notes, /GREEN\s*:.*node\s+--test.*pass(?:ed|ing)?/is);
|
|
258
|
+
});
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
This is satisfiable by writing the two strings into a notes file, with no relationship to whether
|
|
262
|
+
the red/green cycle happened. `docs/metrics.md:174` lists "grade the outcome not the path" among the
|
|
263
|
+
adopted contribution gates, and `docs/metrics.md:93` makes the same point from the evidence side
|
|
264
|
+
(Skill2Env's LLM-judged process rubric *cost* 4pp of task pass rate — process signals are exactly
|
|
265
|
+
what the design says to keep out).
|
|
266
|
+
|
|
267
|
+
It is 1 of 12 checks here, so the scoring impact is small; the teaching impact is not, because it
|
|
268
|
+
models a category of check the paradigm explicitly rejects.
|
|
269
|
+
|
|
270
|
+
**Fix:** drop the check, or replace it with an outcome assertion (the restored-leaky-implementation
|
|
271
|
+
test at `debug-redaction.mjs:250-253` already does the real version of this).
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
### A9 · Two prompts enumerate the grading checklist · [verified]
|
|
276
|
+
|
|
277
|
+
`benches/debugging/prompts/ttl-cache.md` lists, verbatim, the three seeded defects plus the
|
|
278
|
+
validation contract:
|
|
279
|
+
|
|
280
|
+
> - cached values such as `false`, `0`, and an empty string sometimes look missing;
|
|
281
|
+
> - a value can still be returned exactly at its expiry boundary;
|
|
282
|
+
> - repeated reads unexpectedly keep an entry alive even though this cache promises fixed, non-sliding TTL.
|
|
283
|
+
>
|
|
284
|
+
> … TTL must be a finite non-negative number; invalid TTL values must throw `TypeError`.
|
|
285
|
+
|
|
286
|
+
Those are the checks. The same shape appears in `range-parser.md`.
|
|
287
|
+
|
|
288
|
+
These are spec-implementation tasks in debugging costume. That is not automatically wrong — but it
|
|
289
|
+
means they measure "can the agent follow a precise written spec," which is close to saturated for
|
|
290
|
+
any current model, and it is a different capability from diagnosis. A user copying this prompt style
|
|
291
|
+
will build a bench that cannot discriminate. `bench check --calibrate` is the tool designed to catch
|
|
292
|
+
this, and per A3 it can report green without measuring.
|
|
293
|
+
|
|
294
|
+
**Fix:** for a diagnosis task, ship a failing repro and a symptom, not an enumerated defect list.
|
|
295
|
+
Keep one spec-style task deliberately, labelled as such, so the contrast is instructive.
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
### A10 · The `debugging` bench cannot be rehearsed offline · [verified]
|
|
300
|
+
|
|
301
|
+
No `fixtures/*/.skillfit-mock.json` exists anywhere under `benches/debugging/`, and
|
|
302
|
+
`bench.ts:343-344` short-circuits the mock probes for command-kind tasks:
|
|
303
|
+
|
|
304
|
+
```ts
|
|
305
|
+
if ((task.verifierKind ?? 'output') === 'command') {
|
|
306
|
+
push('INFO', `${task.id}: command verifier — mock-arm probes not applicable`);
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
The reason is structural: `MockExecutor` produces `_output.md` text, while a command verifier grades
|
|
311
|
+
file state. So all six tasks are un-smoke-testable before spending tokens — which cuts against
|
|
312
|
+
`AGENTS.md`'s offline-testing rule in spirit, and against `benches/README.md:5`'s promise that
|
|
313
|
+
`bench check` validates a bench "before you spend a single token on runs."
|
|
314
|
+
|
|
315
|
+
**Fix (design question, not a one-liner):** either extend the mock marker to carry a *file patch*
|
|
316
|
+
for command-kind tasks, or have `bench check` run the oracle against the mock arm so at least the
|
|
317
|
+
winnability direction is exercised offline. A2 lands the oracles that would make the second option
|
|
318
|
+
possible.
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
### A11 · `benches/contrib/README.md` is a PR checklist, not an authoring guide · [verified]
|
|
323
|
+
|
|
324
|
+
Its five pre-PR rules assume the reader already knows how to build a case. It does not mention
|
|
325
|
+
`bench add --freeze`, `--decompose`, or `--from-commit`; does not mention `.skillfit-mock.json`,
|
|
326
|
+
`shouldTrigger`, negative controls, the 2–8 check range, or oracle registration. It links
|
|
327
|
+
`benches/README.md` once for "the same contract."
|
|
328
|
+
|
|
329
|
+
Worse, it routes contributors straight into the two broken gates: rule 2 requires `bench check` to
|
|
330
|
+
report 0 failures (which A1 and A4 make trivially satisfiable), and rule 3 requires the `--calibrate`
|
|
331
|
+
output (which A3 can fake).
|
|
332
|
+
|
|
333
|
+
**Fix:** this is the audience-facing half of the gap described in §6.
|
|
334
|
+
|
|
335
|
+
---
|
|
336
|
+
|
|
337
|
+
### A12 · Negative controls are 20% against a ≥30% target · [verified]
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
code-review: 1 false / 4 tasks = 25%
|
|
341
|
+
debugging: 1 false / 6 tasks = 17%
|
|
342
|
+
combined: 2 false / 10 tasks = 20%
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
`docs/metrics.md:168` and `benches/README.md:56` both specify ≥30%. Under the "examples are teaching
|
|
346
|
+
material" lens this is a mild finding on its own — but it means a user who copies the bundled
|
|
347
|
+
composition inherits a trigger bench that cannot measure false-trigger rate reliably, and
|
|
348
|
+
`bench.ts:385-390` only warns at *zero* negatives, not below the target fraction.
|
|
349
|
+
|
|
350
|
+
**Fix:** warn below 30% (not just at 0). Add two negative controls when convenient.
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
## 3. T2 — measurement integrity
|
|
355
|
+
|
|
356
|
+
These do not block the authoring story, but they determine whether the number a user gets at the end
|
|
357
|
+
of it means anything. All three headline items are **[verified]**.
|
|
358
|
+
|
|
359
|
+
### B1 · Executor errors are scored as trial failures · [verified]
|
|
360
|
+
|
|
361
|
+
`src/harness/runner.ts:162,166-182` — when the executor throws, `passed` stays `false` and the trial
|
|
362
|
+
is recorded with `error` set but `passed: false`. Then:
|
|
363
|
+
|
|
364
|
+
```ts
|
|
365
|
+
// runner.ts:243-245
|
|
366
|
+
function statsFor(records: TrialOutcome[]): ConditionStats {
|
|
367
|
+
const passes = records.filter((r) => r.passed).length;
|
|
368
|
+
const trials = records.length; // ← errors included in the denominator
|
|
369
|
+
// runner.ts:324-326
|
|
370
|
+
function trialFlags(records: TrialOutcome[]): boolean[] {
|
|
371
|
+
return [...records].sort((a, b) => a.trial - b.trial).map((r) => r.passed);
|
|
372
|
+
} // ← errors become `false`, feeding discordantCounts
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
`docs/metrics.md:41-42` claims this is handled: *"if the agent never touched the fixture (empty
|
|
376
|
+
output, executor error), the trial is excluded from rates and reported as an error, not a failure
|
|
377
|
+
(**implemented**)"*. It is implemented in the trigger path (`trigger.ts:196-199`) and **not** in the
|
|
378
|
+
inject path.
|
|
379
|
+
|
|
380
|
+
One API timeout in one arm manufactures a discordant pair, which moves the pass-rate delta, the
|
|
381
|
+
McNemar p-value, and the bootstrap CI. At the 3–5 trial scale this tool targets, a single timeout
|
|
382
|
+
can flip a verdict.
|
|
383
|
+
|
|
384
|
+
**Fix:** filter `r.error === null` in `statsFor` and `trialFlags`, carry an `errors` count on
|
|
385
|
+
`ConditionStats`, and add a warning when any arm has errors. Mirror `trigger.ts`.
|
|
386
|
+
|
|
387
|
+
### B2 · No counterbalancing, and no seed is ever set · [verified]
|
|
388
|
+
|
|
389
|
+
`src/harness/runner.ts:460-469`:
|
|
390
|
+
|
|
391
|
+
```ts
|
|
392
|
+
for (const task of plan.bench.tasks) {
|
|
393
|
+
for (const condition of CONDITIONS) { // all baseline trials…
|
|
394
|
+
for (let trial = 1; trial <= plan.trials; trial++) {
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
Every baseline run for a task completes before any treatment run. Any monotone drift over the run —
|
|
398
|
+
provider degradation, rate-limit backoff, thermal throttling, a filling context cache — is perfectly
|
|
399
|
+
confounded with condition.
|
|
400
|
+
|
|
401
|
+
`docs/metrics.md:27` says pairs share "the same fixture, prompt, and **seed**." A grep for
|
|
402
|
+
`seed|temperature` across `src/harness/executors/` and `src/matrix/agents.json` returns nothing: no
|
|
403
|
+
executor sets a seed or a temperature, and neither is recorded in the manifest. The only seeded PRNGs
|
|
404
|
+
in the codebase are the bootstrap (`stats.ts`) and the judge A/B order (`judge.ts`) — both correct,
|
|
405
|
+
neither relevant to the agent's own sampling.
|
|
406
|
+
|
|
407
|
+
**Fix:** interleave the loops (`for trial { for condition }`), or draw the order per trial from a
|
|
408
|
+
seeded PRNG and record it in the manifest. Separately: pass a seed/temperature where the agent
|
|
409
|
+
surface supports it, and record what was actually sent.
|
|
410
|
+
|
|
411
|
+
### B3 · The judge is not blind · [verified]
|
|
412
|
+
|
|
413
|
+
`src/harness/runner.ts:300`:
|
|
414
|
+
|
|
415
|
+
```ts
|
|
416
|
+
const judgeDir = join(plan.runsRoot, plan.runGroup, task.id);
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
That directory is the **parent** of `baseline/trial-N/` and `treatment/trial-N/`, and it is passed
|
|
420
|
+
as the judge executor's working directory (`runner.ts:309`, consumed at `judge.ts:86`). A
|
|
421
|
+
`--judge-agent` with file tools can read both arms' `_output.md` and their `_result.json` — which
|
|
422
|
+
names the condition and carries the skill bundle sha256.
|
|
423
|
+
|
|
424
|
+
`docs/metrics.md:127` promises "Blind pairwise comparison." The AB/BA position swap and
|
|
425
|
+
unanimity-only aggregation are implemented correctly (`judge.ts`, `runner.ts:268-282`); the
|
|
426
|
+
blinding premise underneath them is not.
|
|
427
|
+
|
|
428
|
+
**Fix:** run the judge in a fresh `mkdtempSync` directory containing only the two answer texts, and
|
|
429
|
+
write `judge-trial-N.json` to the task dir afterwards rather than using it as cwd.
|
|
430
|
+
|
|
431
|
+
### B4–B9 · [reported] — confirm or kill
|
|
432
|
+
|
|
433
|
+
| ID | Location | Claim |
|
|
434
|
+
|---|---|---|
|
|
435
|
+
| B4 | `src/harness/report.ts:191-203` | `docs/metrics.md:156` requires the CI half-width as "this bench resolves effects ≳ ±Xpp." No such line. Additionally `formatDeltaPp` rounds to integer pp, so a CI of `[-0.044, 0.610]` prints `[-4pp, +61pp]` — the resolution figure is destroyed by the formatter. |
|
|
436
|
+
| B5 | `src/harness/trigger.ts:53-63,228-238` | `docs/metrics.md:56` says recall, false-trigger rate, precision, F1 — "each with Wilson 95% CIs." Only the first two have them; `precision` and `f1` are bare `number \| null`. |
|
|
437
|
+
| B6 | `src/harness/trigger.ts:103-105` | `docs/metrics.md:69-70` says L1 installs into "a sandboxed skills directory containing the user's real set, not an isolated one," because routing quality depends on lexical competition. The code copies only the skill under test into an empty dir, so recall is measured with zero competition and is systematically optimistic. |
|
|
438
|
+
| B7 | `src/harness/judge.ts:25-41,47` | `docs/metrics.md:135` says agent output is "quoted/sanitized in judge prompts." `buildJudgePrompt` interpolates both answers verbatim, and `parseChecklist` uses `regex.exec(raw)` — the **first** match anywhere wins, so an agent answer embedding a checklist JSON before the judge's real reply flips the verdict. |
|
|
439
|
+
| B8 | `src/commands/eval.ts:68-74` + `src/harness/executors/api.ts:50` | `ApiExecutor.run(prompt, _workdir)` ignores the workdir, but `buildTaskPrompt(..., { workspace: true })` tells the model the repo "is also your current working directory: inspect, edit, and run things there directly." For a `verifierKind: "command"` bench, an API-key-only eval produces an impossible instruction, both arms score 0, and the tool emits a verdict plus a floor warning blaming bench difficulty. Should throw instead. |
|
|
440
|
+
| B9 | `src/harness/runner.ts:480-485` | Baseline and treatment score arrays are null-filtered **independently**, so the two arms can have different lengths inside a task; the pooled Δscore then weights arms differently per bootstrap resample. (On-disk manifests keep trial order, so no persisted corruption.) |
|
|
441
|
+
|
|
442
|
+
B9 is partly confirmed by direct read of `runner.ts:480-485`; the consequence for resampling
|
|
443
|
+
weights is inferred, not tested.
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
## 4. T3 — robustness and self-inflicted breakage
|
|
448
|
+
|
|
449
|
+
### C1 · A partial `install` failure bricks the tool and reports falsely · [verified]
|
|
450
|
+
|
|
451
|
+
`src/commands/install.ts:484-492` writes files sequentially:
|
|
452
|
+
|
|
453
|
+
```ts
|
|
454
|
+
for (const item of writes) {
|
|
455
|
+
for (const file of item.files) {
|
|
456
|
+
if (file.backup) await fs.copyFile(file.path, file.path + BACKUP_SUFFIX);
|
|
457
|
+
await writeFileAtomic(file.path, file.content);
|
|
458
|
+
```
|
|
459
|
+
|
|
460
|
+
`writeFileAtomic` is atomic *per file*; the loop is not atomic *across* files. If file 3 of 5 throws,
|
|
461
|
+
files 1–2 are already on disk, `validateWrites` (line 134) never runs, and `recordEntries` plus the
|
|
462
|
+
lockfile write (lines 140-141) never happen. On the next invocation, `planSkillItem` computes
|
|
463
|
+
(install.ts:427):
|
|
464
|
+
|
|
465
|
+
```ts
|
|
466
|
+
const pristine = entry !== undefined && missing.length === 0 && hashFiles(current) === entry.sha256;
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
`entry` is `undefined` because the lockfile was never updated → `pristine` false → `action:
|
|
470
|
+
'conflict'` → line 111 throws *"Nothing was written."* — which is untrue, and the state never
|
|
471
|
+
self-heals.
|
|
472
|
+
|
|
473
|
+
Two adjacent problems: `BACKUP_SUFFIX` is a single fixed slot (`.skillfit-bak`), so a second run
|
|
474
|
+
overwrites the good backup with the bad content; and the lockfile itself is written via
|
|
475
|
+
`writeFileAtomic` with **no backup**, against `AGENTS.md`'s "backup before write. No exceptions."
|
|
476
|
+
|
|
477
|
+
**Fix:** stage all files to `.tmp`, rename in one pass, update the lockfile as part of the same
|
|
478
|
+
commit, back up the lockfile, and make the recovery path able to adopt an unrecorded-but-hashed
|
|
479
|
+
write instead of hard-conflicting.
|
|
480
|
+
|
|
481
|
+
### C2 · `install --dry-run` exits non-zero on conflict · [verified]
|
|
482
|
+
|
|
483
|
+
`install.ts:109-112` throws on conflicts *before* the `opts.dryRun` early return at `:119-122`. A
|
|
484
|
+
dry run is supposed to report; it exits 1 instead. CI that runs `--dry-run` as a check fails on a
|
|
485
|
+
condition the check exists to surface.
|
|
486
|
+
|
|
487
|
+
### C3–C13 · [reported] — confirm or kill
|
|
488
|
+
|
|
489
|
+
| ID | Location | Claim |
|
|
490
|
+
|---|---|---|
|
|
491
|
+
| C3 | `src/harness/executors/cli.ts:162-165` | `child.stdin.write(prompt)` with no `'error'` handler. If the agent CLI exits before draining stdin (bad flag, auth failure), EPIPE fires as an *uncaught exception*, not a promise rejection — `main().catch` never sees it, the process dies mid-run leaving a half-populated run group. |
|
|
492
|
+
| C4 | `src/harness/executors/cli.ts:121-124`, `runner.ts:77-80` | `spawn(..., { shell: true })` then `child.kill()` signals the shell, not the agent process tree. Timed-out trials leave live agent processes burning tokens. No SIGKILL escalation. The 2-minute verifier timeout has the same hole. Needs `detached: true` + process-group kill on POSIX, `taskkill /T /F` on win32. |
|
|
493
|
+
| C5 | `install.ts:535-543`, `bench.ts:136-144` | `await rl.question(...)` with no `'close'` handler. On non-TTY stdin (CI without `--yes`) the promise never settles and the process **hangs forever**. |
|
|
494
|
+
| C6 | `src/commands/doctor.ts:468-471` | `doctor --agent bogus` writes to stderr and returns without setting `process.exitCode` → **exits 0** on a user error. |
|
|
495
|
+
| C7 | `src/harness/executors/cli.ts:256-266` | `turn.completed` usage is **overwritten**, not accumulated, across turns. Multi-turn sessions undercount tokens, corrupting ρ and cost-of-pass. |
|
|
496
|
+
| C8 | `install.ts:211-220` vs `doctor.ts:128-155` | Two divergent `parseFrontmatter` implementations. Install's does not strip a BOM and does not handle folded scalars, so a `description: >-` skill validates as the literal `>-`, and a BOM'd `SKILL.md` passes `doctor` but is rejected by `install`. |
|
|
497
|
+
| C9 | `src/commands/bench.ts:973-989` | `git ls-tree --format=%(objectsize) %(path)` parsed with `/^(\S+)\s(.+)$/`. Git quotes non-ASCII paths (so `gitShow` fails) and reports `-` for gitlinks, making `totalBytes` `NaN` and silently bypassing the `MINED_MAX_BYTES` guard. Use `-z` and `core.quotePath=false`. |
|
|
498
|
+
| C10 | `bench.ts:946-953` | Renames yield `status: 'R100'` and `path: "old\tnew"`; `gitShow` then fails. Filter `status[0] === 'R'` and take the post-image path. |
|
|
499
|
+
| C11 | `src/harness/report.ts:70-73` | The "Overall" line mixes populations: `installed` is a deduped cross-agent `Set` while `fired`/`never` are per-agent sums, so `never` triple-counts a skill installed for three agents and `fired` can exceed `installed.size`. |
|
|
500
|
+
| C12 | `src/harness/executors/cli.ts:154` | `if (this.label === 'kimi-code' …)` hardcodes an agent id in harness code, against `AGENTS.md`'s "never hardcode a path in command code." Should be a matrix capability flag. |
|
|
501
|
+
| C13 | `src/harness/executors/cli.ts:25-30` | `quoteShellArg` returns any whitespace-free argument **unquoted** into a `shell: true` spawn, so `a;rm -rf ~` passes through. Only `agents.json` feeds it today, but it is exported. |
|
|
502
|
+
|
|
503
|
+
Two smaller notes: `bench.ts:531` (`verifierForCmd`) and `:925` (`verifierForMinedTests`) embed the
|
|
504
|
+
user's `--verifier-cmd` string into a generated `.mjs` that is later run with `shell: true` on every
|
|
505
|
+
subsequent `check`/`eval` — the confirm prompt never says the string will be persisted and re-executed.
|
|
506
|
+
And `runner.ts:227` spawns verifiers with `shell: false`, so a `.cmd`/`.bat` verifier fails with
|
|
507
|
+
EINVAL on Windows.
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
511
|
+
## 5. Document ↔ code divergence
|
|
512
|
+
|
|
513
|
+
This is the table worth reviewing hardest, because the project's value proposition *is* rigour, and a
|
|
514
|
+
document that overstates the implementation is the one defect class that directly undermines it.
|
|
515
|
+
|
|
516
|
+
| Document claim | Reality | Finding |
|
|
517
|
+
|---|---|---|
|
|
518
|
+
| `metrics.md:41-42` — errored trials excluded, "(implemented)" | Implemented in trigger mode only; inject mode counts them as failures | B1 |
|
|
519
|
+
| `metrics.md:27` — pairs share "the same … seed" | No seed is set or recorded anywhere | B2 |
|
|
520
|
+
| `metrics.md:127` — "Blind pairwise comparison" | Judge cwd is the parent of both arms | B3 |
|
|
521
|
+
| `metrics.md:156` — CI half-width reported as run resolution | Not printed; formatter rounds it away | B4 |
|
|
522
|
+
| `metrics.md:56` — Wilson CIs on all four trigger metrics | Two of four | B5 |
|
|
523
|
+
| `metrics.md:69-70` — L1 installs alongside the user's real skill set | Installs into an empty dir | B6 |
|
|
524
|
+
| `metrics.md:135` — judge input "quoted/sanitized" | Interpolated verbatim; first-match parse | B7 |
|
|
525
|
+
| `metrics.md:171` — oracle gate "**enforced**" | Skipped silently when `oracle` absent | A1 |
|
|
526
|
+
| `metrics.md:174` — "grade the outcome not the path" | `debug-redaction` grades notes text | A8 |
|
|
527
|
+
| `benches/README.md:68` — "2–8 named programmatic checks" | Unenforced; 4 of 10 tasks outside range | A4 |
|
|
528
|
+
| `benches/README.md:80` — decoys "penalized by your scoring logic" | Computed, printed, never scored | A7 |
|
|
529
|
+
| `benches/README.md:5` — `bench check` validates "before you spend a single token" | `--calibrate` can report PASS having run 0 tasks | A3 |
|
|
530
|
+
| `CHANGELOG.md` (Unreleased) — debugging bench "intentionally has no oracles yet" | True, and honestly disclosed — but `metrics.md` / `benches/README.md` carry no matching caveat | A2 |
|
|
531
|
+
|
|
532
|
+
Two directions of fix are legitimate and the choice should be explicit per row: change the code, or
|
|
533
|
+
weaken the claim. What is not legitimate is leaving the row as-is. Where a claim is *aspirational*,
|
|
534
|
+
the existing convention in this doc set is to say so — `metrics.md:48` marks L1 "(Status: **spec;
|
|
535
|
+
implementation is the next milestone**)" — and that pattern should be applied to the rows above.
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
## 6. The missing artifact
|
|
540
|
+
|
|
541
|
+
The paradigm's knowledge is complete and well-sourced. It has no single home.
|
|
542
|
+
|
|
543
|
+
| Where | What it covers | Written for |
|
|
544
|
+
|---|---|---|
|
|
545
|
+
| `docs/metrics.md` | **Why** — measurement model, with citations to SkillsBench, SWE-Skills-Bench, STARS, Skill2Env, Harbor, OpenAI and Anthropic eval guidance | implementers |
|
|
546
|
+
| `benches/README.md` | **What** — directory layout, `bench.json` schema, verifier contract, fixture rules | reference readers |
|
|
547
|
+
| `benches/contrib/README.md` | **How to submit** — five pre-PR rules | contributors who already have a bench |
|
|
548
|
+
| `benches/` (2 benches) | **What one looks like** | copiers |
|
|
549
|
+
|
|
550
|
+
What does not exist is the mainline: *here are the seven steps, here is why each one is
|
|
551
|
+
non-optional, here is one task walked end to end.* Today those seven steps are reconstructable only
|
|
552
|
+
by reading all four sources and reconciling them — and the reconciliation currently fails, because
|
|
553
|
+
the examples contradict the reference (A2, A4, A7, A8) and the gates do not enforce the rules (A1,
|
|
554
|
+
A3, A4).
|
|
555
|
+
|
|
556
|
+
For the stated product intent, **that document is the product**; everything else is support for it.
|
|
557
|
+
|
|
558
|
+
The seven steps, as the code and docs currently imply them:
|
|
559
|
+
|
|
560
|
+
1. **Start from a real failure.** Not a hypothetical. A bug that escaped, a task the agent botched
|
|
561
|
+
twice, an incident thread. (`benches/README.md:79`, `contrib/README.md:8`)
|
|
562
|
+
2. **Freeze the scene.** `bench add --freeze --task <id> --prompt "…"` snapshots git-tracked files
|
|
563
|
+
into `fixtures/<id>/`. Shrink it: keep the trap, delete the rest — every fixture file is inlined
|
|
564
|
+
into the prompt, so size is tokens. (`benches/README.md:126-131`)
|
|
565
|
+
3. **Write the grader.** Either `--verifier-cmd`/`--expect` for the simple case, or
|
|
566
|
+
`--decompose --agent <id>` to have an agent draft `verifier.mjs` + `oracle.mjs`. Decompose admits
|
|
567
|
+
the draft only if both gates pass locally: the untouched fixture must fail (NOP) and the
|
|
568
|
+
oracle-solved fixture must exit 0 with every check green (oracle). A draft failing either is
|
|
569
|
+
discarded and nothing is written. (`benches/README.md:133-139`)
|
|
570
|
+
4. **Or mine it from history.** `bench add --from-commit <sha>` — the commit must touch at least one
|
|
571
|
+
test file and one non-test file; the parent becomes the fixture and the fix's own tests become the
|
|
572
|
+
hidden grader (SWE-bench FAIL_TO_PASS). Constraint: the fixture must run with **no build step and
|
|
573
|
+
no installed dependencies**, so TypeScript repos and `node_modules`-dependent tests need
|
|
574
|
+
`--include` narrowing or a hand-ported slice. (`benches/README.md:141-149`)
|
|
575
|
+
5. **Write the trigger variant.** `prompts/<id>.trigger.md` must present the work as files on disk
|
|
576
|
+
with a natural request. Never inline a repository snapshot in trigger mode — measured at 0/9
|
|
577
|
+
trigger recall with an inline snapshot versus the skill firing on the same tasks from disk
|
|
578
|
+
(`docs/metrics.md:63-67`, `evidence/2026-09-trigger-snapshot-correction.md`).
|
|
579
|
+
6. **Label and load it.** Set `shouldTrigger` (true/false), include ≥30% negative controls, and plant
|
|
580
|
+
decoys so verbosity does not win. Add `fixtures/<id>/.skillfit-mock.json` with `baseline` and
|
|
581
|
+
`treatment` canned outputs so the bench runs offline. Record the seed answer in `ground-truth/`.
|
|
582
|
+
7. **Rehearse before paying.** `bench check`, then `--calibrate --agent <id> --trials 2` for the
|
|
583
|
+
difficulty band, then `eval --dry-run`, then a real `--trials 3`.
|
|
584
|
+
|
|
585
|
+
Steps 3, 6, and 7 are where the current tooling does not hold the line (A1, A3, A4, A10, A12).
|
|
586
|
+
|
|
587
|
+
---
|
|
588
|
+
|
|
589
|
+
## 7. Suggested order of work
|
|
590
|
+
|
|
591
|
+
Ranked by "does this stop users from being misled," which under §1 is the thesis-critical axis.
|
|
592
|
+
|
|
593
|
+
**Wave 1 — make `bench check` enforce the paradigm it already documents.** Small, mechanical, and
|
|
594
|
+
self-revealing: once these gates exist, running them against the bundled benches produces the
|
|
595
|
+
remaining work list automatically.
|
|
596
|
+
|
|
597
|
+
1. A1 — warn when `oracle` is absent.
|
|
598
|
+
2. A4 — warn when facet-check count is outside 2–8.
|
|
599
|
+
3. A3 — fail when calibration ran 0 tasks; decouple calibration from trigger labels.
|
|
600
|
+
4. A12 — warn below 30% negative controls, not only at zero.
|
|
601
|
+
|
|
602
|
+
**Wave 2 — make the examples match the paradigm.**
|
|
603
|
+
|
|
604
|
+
5. A2 — write the six `debugging` oracles from the code blocks already in `ground-truth/*.md`.
|
|
605
|
+
6. A5, A6 — add tamper guards to `feat-slug` and `range-parser`; bring their check counts in range.
|
|
606
|
+
7. A7 — make decoys actually penalise.
|
|
607
|
+
8. A8 — drop or replace the process check.
|
|
608
|
+
9. A9 — de-spec the two leaking prompts (or relabel them as spec tasks).
|
|
609
|
+
|
|
610
|
+
**Wave 3 — measurement integrity.**
|
|
611
|
+
|
|
612
|
+
10. B1, B2, B3 — the three verified T2 defects. All are small diffs with outsized effect on whether
|
|
613
|
+
the printed numbers can be trusted.
|
|
614
|
+
11. Then triage B4–B9.
|
|
615
|
+
|
|
616
|
+
**Wave 4 — the authoring guide (§6) and T3 robustness (C1 first: it is the only finding that can
|
|
617
|
+
leave a user permanently stuck with a false error message).**
|
|
618
|
+
|
|
619
|
+
A defensible alternative ordering puts Wave 3 first on the grounds that a wrong number is worse than
|
|
620
|
+
a wrong example. The argument for Wave 1 first is that it is cheaper, unblocks Wave 2, and the
|
|
621
|
+
measured population is currently small enough that B1/B2 have not yet produced a published wrong
|
|
622
|
+
verdict — whereas every new user hits the authoring path on day one.
|
|
623
|
+
|
|
624
|
+
---
|
|
625
|
+
|
|
626
|
+
## 8. Checked and found sound — do not re-audit
|
|
627
|
+
|
|
628
|
+
Recorded so a reviewer does not spend time re-deriving them.
|
|
629
|
+
|
|
630
|
+
- **Determinism is clean.** No `Math.random()` anywhere in `src/`. The bootstrap PRNG
|
|
631
|
+
(`stats.ts:56`, default seed `20260919`) and the judge A/B order (`judge.ts:13`, sha256 of
|
|
632
|
+
`runGroup:task:trial`) are both properly seeded. `Date.now()` and `createdAt` appear only in
|
|
633
|
+
timestamps and run-group names, never in a hash or a statistic.
|
|
634
|
+
- **Content hashes are order-stable.** `hash.ts:26` sorts before hashing; `install.ts:458` sorts map
|
|
635
|
+
entries.
|
|
636
|
+
- **`mcnemarExactP` matches `docs/metrics.md:150-152` exactly.** Verified numerically:
|
|
637
|
+
`6,0 → 0.03125`; `5,0 → 0.0625`; `0,0 → 1`; clamped at 1.
|
|
638
|
+
- **`wilson95` is the textbook Wilson score interval.** Correct as implemented (the gap in B5 is
|
|
639
|
+
coverage — which metrics get one — not the formula).
|
|
640
|
+
- **All 10 bundled verifiers are deterministic** in the sense the contract requires: injected clocks,
|
|
641
|
+
no network, no randomness, `spawnSync` with fixed timeouts. All print a one-line JSON summary with
|
|
642
|
+
`passed` and `checks` as the last stdout line. All reads stay inside the bench dir + run dir (plus
|
|
643
|
+
OS tmp for canonical-fixture comparison).
|
|
644
|
+
- **No anti-cheat layout violations.** No ground-truth or answer file lives inside any fixture. The
|
|
645
|
+
visible `test/basic.test.mjs` in debugging fixtures is the command-verifier pattern, not a leak —
|
|
646
|
+
and for four of six tasks the hidden checks strictly exceed the visible tests. (The two exceptions
|
|
647
|
+
are A5 and A6.)
|
|
648
|
+
- **Trigger-mode readiness is complete on the labelling axis.** All 10 tasks have a `.trigger.md` and
|
|
649
|
+
a `shouldTrigger` label. Only the *fraction* is short (A12).
|
|
650
|
+
- **Bundled benches pass their own gate today:** `bench check` reports 13/13 and 17/17 with 0
|
|
651
|
+
warnings. That is the point — the gate is not checking the things §2 lists.
|
|
652
|
+
- Minor, noted for completeness: `stats.ts:74-77` uses `Math.floor(q * deltas.length)`, giving
|
|
653
|
+
indices 50/1950 of 2000 (the 2.55th/97.55th percentiles) — a hair inside the nominal 95% interval.
|
|
654
|
+
Interpolated percentiles would be exact. Cosmetic.
|
|
655
|
+
- `bench.ts:861` and `:1026` contain `TODO:` strings. These are **intentional template text** for
|
|
656
|
+
generated ground-truth files, not defects.
|
|
657
|
+
- `assertRelativeInside` (`bench.ts:16-25`) blocks `..` segments and does a prefix check but does not
|
|
658
|
+
`realpathSync`, so a symlink inside the bench dir can still escape. Benches are authored, trusted
|
|
659
|
+
content, so this is acceptable — worth one line in `SECURITY.md` stating that assumption.
|
|
660
|
+
|
|
661
|
+
---
|
|
662
|
+
|
|
663
|
+
## Appendix · Reproducing the verified findings
|
|
664
|
+
|
|
665
|
+
```bash
|
|
666
|
+
# A1/A2 — oracle gate skips silently; debugging bench has none
|
|
667
|
+
grep -n "if (task.oracle)" src/commands/bench.ts # → line 337
|
|
668
|
+
grep -c oracle benches/debugging/bench.json # → 0
|
|
669
|
+
ls benches/debugging/ground-truth/ # → .md only, no oracle-*.mjs
|
|
670
|
+
node dist/cli.js bench check benches/debugging # → 17/17 PASS, 0 warnings
|
|
671
|
+
|
|
672
|
+
# A3 — calibrate on a bench with no shouldTrigger labels prints PASS 0/0
|
|
673
|
+
grep -n "shouldTrigger !== undefined" src/harness/trigger.ts # → line 279
|
|
674
|
+
sed -n '450,458p' src/commands/bench.ts # → the 0 === 0 comparison
|
|
675
|
+
|
|
676
|
+
# A4 — facet-check counts
|
|
677
|
+
grep -n maxScore benches/debugging/verifiers/*.mjs
|
|
678
|
+
cat benches/debugging/verifiers/feat-slug.mjs # → 23 lines, 1 check, no guard
|
|
679
|
+
sed -n '34,39p' benches/debugging/verifiers/range-parser.mjs # → A6 gameable regression checks
|
|
680
|
+
|
|
681
|
+
# A7 — decoys computed, never scored
|
|
682
|
+
cat benches/code-review/verifiers/seeded-bugs.mjs # → decoyHits used only in the JSON
|
|
683
|
+
|
|
684
|
+
# A8 — process check
|
|
685
|
+
sed -n '257,260p' benches/debugging/verifiers/debug-redaction.mjs
|
|
686
|
+
|
|
687
|
+
# A9 — prompt enumerates the checks
|
|
688
|
+
cat benches/debugging/prompts/ttl-cache.md
|
|
689
|
+
|
|
690
|
+
# A12 — negative-control fraction
|
|
691
|
+
grep -o '"shouldTrigger": *[a-z]*' benches/*/bench.json | sort | uniq -c # → 2 false / 10
|
|
692
|
+
|
|
693
|
+
# B1 — errored trials counted in the denominator
|
|
694
|
+
sed -n '243,258p;324,326p' src/harness/runner.ts
|
|
695
|
+
|
|
696
|
+
# B2 — run order and absent seed
|
|
697
|
+
sed -n '460,469p' src/harness/runner.ts
|
|
698
|
+
grep -rn "seed\|temperature" src/harness/executors/ src/matrix/agents.json # → no matches
|
|
699
|
+
|
|
700
|
+
# B3 — judge cwd
|
|
701
|
+
sed -n '296,312p' src/harness/runner.ts # → judgeDir = runGroup/task.id
|
|
702
|
+
|
|
703
|
+
# C1 — partial write, no rollback, lockfile written last
|
|
704
|
+
sed -n '484,492p' src/commands/install.ts
|
|
705
|
+
sed -n '108,142p' src/commands/install.ts
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
---
|
|
709
|
+
|
|
710
|
+
## Disposition
|
|
711
|
+
|
|
712
|
+
Appended by the executing session per the triage work order. **The findings above are unchanged**;
|
|
713
|
+
outcomes are recorded here only. Vocabulary: `FIXED <commit>`, `KILLED <reason>`,
|
|
714
|
+
`DEFERRED <reason>`. Wave 0 adds one interim status — `CONFIRMED (queued Wave N)` — for leads that
|
|
715
|
+
reproduced and are awaiting their fix commit; those lines get updated to `FIXED` when it lands.
|
|
716
|
+
|
|
717
|
+
### Wave 0 — leads reproduced or killed
|
|
718
|
+
|
|
719
|
+
Executed 2026-09-25 on `af9ed30`. Host: win32, Node v24.18.0, git 2.48.1.windows.1.
|
|
720
|
+
|
|
721
|
+
Method key: **live** = a reproduction was actually run on this host; **read** = the cited source was
|
|
722
|
+
read and the behaviour is unambiguous from it. Repro scripts lived under `runs/` (gitignored, not
|
|
723
|
+
committed); decisive output is quoted inline so the evidence survives without them.
|
|
724
|
+
|
|
725
|
+
| ID | Status | Method | Evidence |
|
|
726
|
+
|---|---|---|---|
|
|
727
|
+
| B4 | CONFIRMED (queued Wave 3) | read | `grep -rn "resolv" src/harness/report.ts src/harness/stats.ts` → no match, so the "resolves effects ≳ ±Xpp" line required by `metrics.md:156` does not exist. `formatDeltaPp` (`report.ts:90-93`) is `Math.round(delta * 100)` and is applied to the CI bounds at `report.ts:193`, so a CI of `[-0.044, 0.610]` prints `[-4pp, +61pp]` — the resolution figure is destroyed by the formatter. **Triage §5's repro command is wrong:** there is no `--executor mock` flag (`resolveExecutor`, `eval.ts:68-74`, accepts `--agent` or an API key; mock is reachable only by injecting `options.executor` from tests). Verified by reading instead. |
|
|
728
|
+
| C3 | CONFIRMED (queued Wave 3) | live | Spawned a child that exits immediately, wrote an 8 MB prompt to `child.stdin` with no `'error'` listener attached. Output: `uncaughtException -> EOF write EOF`. The promise never settled — neither resolve nor reject fired — so `main().catch` cannot see it and the process dies mid-trial. On Windows the code is `EOF` rather than `EPIPE`; same defect. |
|
|
729
|
+
| C4 | CONFIRMED (queued Wave 3) | live | Mirrored `CliExecutor`'s spawn (`shell: true`, no `detached`) around a grandchild that records its own pid, then called `child.kill()`. Output: `after kill(): shell alive=false grandchild alive=true`. A timed-out trial leaves the agent process running and consuming tokens. |
|
|
730
|
+
| C5 | CONFIRMED (queued Wave 3), refined | live | Two distinct symptoms from the one missing `'close'` handler, and the audit named only the second. (a) stdin **closed** (`< /dev/null`): the `rl.question` callback never fires, the promise never settles, but the event loop drains and the process **exits 0 having written nothing** — worse than a hang, because CI reads it as success. (b) stdin **open but silent** (the CI pipe case): `timeout 8` → exit 124, **hangs forever**. |
|
|
731
|
+
| C6 | CONFIRMED (queued Wave 3) | live | `node dist/cli.js doctor --agent bogus` prints `Unknown agent "bogus". Known agents: claude-code, codex, kimi-code` and `exit=0`. |
|
|
732
|
+
| C7 | CONFIRMED (queued Wave 3) | live | Fed a transcript with two `turn.completed` events (`{1000,100}` then `{20,5}`). Observed `tokens = {"input":20,"output":5}` — last wins; accumulation would give `{1020,105}`. Decisive point the audit missed: the sibling token path **does** accumulate (`kimi-usage.ts:77-78`, `input += …`), so the two paths in one codebase disagree about whether usage records are increments. Residual risk to check when fixing: if Codex's `turn.completed` is actually *cumulative*, accumulating would double-count — the fix needs a multi-turn fixture asserting the chosen semantics. |
|
|
733
|
+
| C8 | CONFIRMED (queued Wave 3), **cited example wrong** | live | Ran the same `SKILL.md` through both exported `parseFrontmatter`s. Divergences: BOM prefix → install `null` vs doctor `{name,description}`; quoted value → install keeps `"does a thing"` with quotes, doctor unquotes; bare `>` → install `">"` vs doctor `"does a thing across two lines"`; bare `|` → install `"|"` vs doctor real text; spaces after the `---` fence → install `null`. **But the audit's own example, `description: >-`, is the one case where they AGREE** — both return the literal `">-"` (doctor's block-scalar branch tests `value === '>'` exactly, so chomping indicators fall through). That is still a latent bug (install's `!fm.description` check passes on the truthy `'>-'`), just not a divergence. Consequence of the real divergences: a BOM'd or quote-fenced `SKILL.md` that `doctor` calls healthy fails `install`'s post-write validation. |
|
|
734
|
+
| C9 | CONFIRMED (queued Wave 3) | live | Built a scratch repo containing `café-notes.txt`, ran `bench add --from-commit HEAD --source-dir <repo>`. Failed with: `git show ffa6f69…:"caf\303\251-notes.txt" failed` — `ls-tree` emits the path quoted with octal escapes and the `/^(\S+)\s(.+)$/` parse passes it to `git show` verbatim. No fixture was written; the failure is loud, not silent. Any repo with a non-ASCII filename cannot be mined at all. Second half (gitlink `objectsize` → `-` → `totalBytes` NaN → `MINED_MAX_BYTES` silently bypassed): the JS semantics were demonstrated (`[10, Number('-'), 20].reduce(+)` → `NaN`; `NaN > 1048576` → `false`), but the gitlink case itself was **not** reproduced live — no submodule in the scratch repo. Fix both together; `-z` plus `core.quotePath=false` closes the path half and an explicit `Number.isFinite` guard closes the NaN half. |
|
|
735
|
+
| C10 | **KILLED** | live | `git diff-tree --no-commit-id --name-status -r <sha>` — the exact invocation at `bench.ts:946`, with no `-M` — emitted `D plain.txt` + `A renamed.txt` for a `git mv`, **never `R100`**. Also false with `-c diff.renames=true`. Only an explicit `-M` produces `R100\told\tnew`. The `path: "old\tnew"` shape the audit describes is therefore unreachable from this code path, and the `status[0] === 'R'` filter it recommends would be dead code. |
|
|
736
|
+
| C11 | CONFIRMED (queued Wave 3), **citation corrected** | read | The location is `src/commands/report.ts:70-73`, not `src/harness/report.ts:70-73` (that range in the harness file is `RunManifest` type declarations). `installed` is `new Set(receipts.flatMap(r => r.installed))` — deduped across agents — while `fired` and `never` are `receipts.reduce(+)` per-agent sums, printed on one line as if they were the same population. So `never` multi-counts a skill installed for three agents, `fired` can exceed `installed.size`, and the three numbers never reconcile. Worth noting: commit `e190523` ("dedupe shared skill dirs in the Overall installed count") is what introduced the asymmetry — it fixed one term of a three-term line. |
|
|
737
|
+
| C12 | CONFIRMED (queued Wave 3) | read | `executors/cli.ts:154` — `if (this.label === 'kimi-code' && result.tokens === undefined)`. An agent id hardcoded in harness code, against `AGENTS.md`'s "never hardcode … in command code". Fix is a matrix capability flag plus an `agents.json` entry with a `verifiedAt` bump and docs link. |
|
|
738
|
+
| C13 | CONFIRMED (queued Wave 3) | live | `quoteShellArg` returned every whitespace-free payload unchanged: `a;rm`, `a&&rm`, `x$(whoami)`, ``a`id` ``, `a|rm`. All would reach a `shell: true` spawn unquoted. **Not currently exploitable** — `argv` is only ever fed from `agents.json` templates (via `forAgent`) with a non-user-controlled `{promptFile}` substitution — so this is a latent footgun in an exported function, not a live hole. Cheapest correct fix is to quote unconditionally; the alternative is documenting the trust boundary in `SECURITY.md`. |
|
|
739
|
+
| Note 1 (persisted `--verifier-cmd`) | CONFIRMED (queued Wave 3), severity lowered | read | `bench.ts:531` and `:925` both emit `spawnSync(${JSON.stringify(cmd)}, { cwd: runDir, shell: true, … })` into a generated `.mjs` that is **written into the bench** and re-executed under a shell on every later `bench check` and `eval`. Severity is documentation-level rather than a new escalation: a verifier is arbitrary code by design, so anyone accepting a contrib bench already accepts code execution (`ci.yml:25-26` runs `bench check` on bundled benches, and `benches/contrib/README.md` invites third-party ones). What is actually missing is disclosure — the confirm prompt never says the string will be persisted and re-run under a shell — plus a `SECURITY.md` line stating the trust boundary. |
|
|
740
|
+
| Note 2 (`shell: false` vs `.cmd`) | CONFIRMED (queued Wave 3) | live | `runProcess` spawns with `shell: false` (`runner.ts:70`). Spawning a `.cmd` on this host threw `Error: spawn EINVAL`. Inside `runProcess` the surrounding `try/catch` converts it to `{exitCode: null, error}`, which `runTrial` reads as `passed = false` — so a Windows user's `.cmd` verifier is silently reported as the **agent** failing the task rather than as a harness problem. |
|
|
741
|
+
|
|
742
|
+
**Wave 0 tally: 13 confirmed, 1 killed (C10), 0 deferred.** Three items needed correction before
|
|
743
|
+
they could be fixed: C8's cited example, C11's citation, and B4's repro command in triage §5.
|
|
744
|
+
|
|
745
|
+
All 13 confirmed leads are resolved in the **Wave 3** ledger below, so every `CONFIRMED (queued Wave 3)`
|
|
746
|
+
in this table now reads as fixed there. Two did not survive contact with the code: C9's prescribed
|
|
747
|
+
`-z` fix was measurably the wrong half of the answer, and Note 2's `shell: false` turned out to be a
|
|
748
|
+
security property worth keeping rather than a bug to remove.
|
|
749
|
+
|
|
750
|
+
### Wave 1 — fixed
|
|
751
|
+
|
|
752
|
+
One commit per finding, each carrying its audit ID. `npm test` was green before every commit; the count
|
|
753
|
+
grew 222 → 242 across the wave.
|
|
754
|
+
|
|
755
|
+
| ID | Status | What landed |
|
|
756
|
+
|---|---|---|
|
|
757
|
+
| A1 | FIXED `bac0914` | WARN when `tasks[].oracle` is absent, naming the consequence. WARN not FAIL per triage §2.5, so `bench add --freeze` mid-authoring still works. `metrics.md` "**enforced**" reworded to "enforced when registered". |
|
|
758
|
+
| A4 | FIXED `93511ec` | `bench check` reads the facet-check count back out of the verifier's own JSON summary and warns outside 2–8. Verifiers emitting no `checks` are left alone — checks are optional in the contract. |
|
|
759
|
+
| A3 | FIXED `e5ad924` | Calibration decoupled from `runTriggerExperiment` and driven through the inject path via the newly exported `runTrial`, single-armed (an empty payload is falsy at `prompt.ts:42`, so a treatment arm would be byte-identical and cost double). FAILs when zero tasks were measured. Also corrected the 30–70%-vs-10–90% conflation in `benches/README.md` and the `bench check` footer. |
|
|
760
|
+
| A12 (gate) | FIXED `8c472c3` | Negative-control fraction banded: zero warns as before, below 30% warns with the count, at or above passes. Bundled benches now report 25% and 17%. |
|
|
761
|
+
| B1 | FIXED `937bfdc` | `pairedSurvivors()` indexes both arms by trial number and drops the pair when either side errored; the same survivor set feeds pass flags, facet tables and score arrays. `ConditionStats` gains a required `errors` count; `buildWarnings` names each exclusion. `metrics.md` freezes the pairwise rule and the resulting manifest semantics. |
|
|
762
|
+
| B2 | FIXED `296cca3` | Loops interleaved (trial outermost). `ExecutorDescriptor` gains `sampling`; all three executors report `null` and the manifest normalizes absence to `null`. `metrics.md:27` weakened deliberately — the matrix CLIs expose no seed or temperature knob, so the "same seed" claim was unsatisfiable. |
|
|
763
|
+
| B3 | FIXED `13c2404` | `judgePair` owns a fresh `mkdtempSync` sandbox holding only `answerA.md` / `answerB.md`, removed after the pair is judged; the `workdir` parameter is gone. `judge-trial-N.json` is still written to the task directory, as an output location rather than a cwd. |
|
|
764
|
+
| B5 | FIXED `3bc0d72` | Wilson CI for precision (a proportion over the fired runs). F1 stays bare and the report line now says why inline; both docs record the exception. |
|
|
765
|
+
| B7 | FIXED `03be689` | Nonce-fenced answer blocks marked untrusted, plus last-match checklist parsing. The `Answer A:` / `Answer B:` labels are preserved because the rest of the codebase locates answers by them. |
|
|
766
|
+
| B8 | FIXED `8750fb7` | `assertExecutorSupportsBench` rejects an API executor against a command-graded bench at plan time, before the dry-run branch, so no run directory is created. Citation corrected to `runner.ts:143` as triage noted. |
|
|
767
|
+
| B9 | FIXED by `937bfdc` | No separate commit, per triage §1: the B1 survivor filter removes the per-arm asymmetry en passant. Severity was overstated — `pairedBootstrapCI` resamples tasks, so unequal arm lengths never corrupted the resample weights. |
|
|
768
|
+
| B6 | FIXED `695279b` (doc only) | Claim weakened to `(Status: spec, not implemented)` per triage §1. Both docs now tell the reader to treat trigger recall as an upper bound. Building real-set competition is a future enhancement: it needs fingerprinting and copying a user's installed skills, which raises unsettled privacy questions. |
|
|
769
|
+
|
|
770
|
+
### Wave 2 — fixed
|
|
771
|
+
|
|
772
|
+
The bundled examples now match the paradigm. Both benches report **0 warnings and 0 failures** from
|
|
773
|
+
`bench check` (code-review 27 passed, debugging 36 passed), so the teaching material no longer trips the
|
|
774
|
+
gates Wave 1 added.
|
|
775
|
+
|
|
776
|
+
| ID | Status | What landed |
|
|
777
|
+
|---|---|---|
|
|
778
|
+
| A2 | FIXED `1e087f9` | Six oracles for `debugging`, written from the verified code blocks already in `ground-truth/*.md`. Reference solutions live as real files under `ground-truth/solutions/<task-id>/` and the oracles copy them, rather than embedding source in a string — four of the six contain `\d` regexes and `${…}` template literals, both of which JS string escaping corrupts. All six gates passed on the first run, confirming the ground-truth verification notes were accurate. |
|
|
779
|
+
| A10 | FIXED `035683f` | Minimal move per triage §2.7: the `mock-arm probes not applicable` INFO now names the offline coverage that *does* exist (NOP + oracle gates), or says plainly that nothing offline shows the task is solvable when no oracle is registered. The file-patch mock extension stays out of scope. |
|
|
780
|
+
| A5 | FIXED `1e8a2ce` | `feat-slug` rewritten from a 1-check `node --test` passthrough to 6 checks: the visible suite is compared against the canonical fixture before it is run, and four checks import `src/slug.mjs` directly. `process.execPath` replaces PATH `node`. Verified live — a tampered suite with a stub implementation now exits 1 at 3/6, with `visible tests pass` still green, which is what proves the tamper check and not the test run closes the cheat. The non-ASCII check asserts slug *shape* only; the visible suite never specifies accent handling, so pinning an output would grade an invented requirement. |
|
|
781
|
+
| A6 | FIXED `88b0a64` | `range-parser` 12 → 8 checks. The two hollow regression checks (count `test(` occurrences; match `/negative\|maxItems\|invalid\|reject/i` over agent-writable source) are replaced by one behavioural check: the suite must pass on the final code *and* fail against the pristine buggy source restored into a temp copy. The four `TypeError` cases merge into one contract. Verified live — a keyword-stuffed empty suite scores 7/8 and exits 1. |
|
|
782
|
+
| A7 | FIXED `bf22333` | All three `code-review` verifiers gain a fourth check, `no-false-positives`, failing on any decoy hit and required for exit 0. This implements the rubric `r1.md` already specified ("reporting the style decoy costs −1") and `benches/README.md` already promised. `missing-tests` now requires a negation or obligation word near "test"/"coverage" instead of a bare `/test/i`. Measured: review-r1 mock baseline 1/3 → 1/4, pooled Δscore 7/12 → 9/16, binary verdicts unchanged. |
|
|
783
|
+
| A8 | FIXED `c38e14a` | `debug-redaction` 12 → 8 checks. Dropped the notes-regex process check and the `/debug\s*:\s*true/` keyword scan (the restore-original check strictly subsumes it); consolidated the two behavior checks that inspected the same debug report and the two secrecy scopes. Closes the last `metrics.md` divergence from "grade the outcome not the path". |
|
|
784
|
+
| A9 | FIXED `e3253a0`, **with a documented deviation** | `ttl-cache`'s prompt no longer enumerates the four seeded defects; it reports three user-visible incidents and states the contract they violate. **`range-parser` was deliberately *not* de-specced**, contrary to the triage row: its fixture ships a stub whose visible test asserts the *wrong* behaviour, so there is nothing working to diagnose, and its checks assert specific `TypeError`/`RangeError` behaviour that is not derivable from the stub. De-speccing it would make it unwinnable, not harder. It is kept and labelled as the bench's one spec-style task, which triage's own row permits. Both ground-truth files now open with a Task class paragraph explaining the distinction and the porting lesson. |
|
|
785
|
+
| A12 (content) | FIXED `e76d773` | Three negative controls: `summarize-s1` (code-review), `explain-cache` and `document-queue` (debugging). Fractions go 25% → 40% and 17% → 38%. The two debugging controls are built on the *correct* implementations, byte-identical to the sibling tasks' reference solutions — same domain, same file, opposite ask. All three are behavioural discriminators with a `no-defect-claims` / `not-a-review` check, and each mock's treatment arm models the derailment. |
|
|
786
|
+
| A4 (follow-through) | FIXED `e76d773` | `chunked-decoder` 10 → 8. **Not in the work order**: the audit listed it as out of range and Wave 2's table omitted it, which would have left it as the only thing keeping the bundled bench warning against its own gate. Committed with A12 because both are needed for the zero-warning invariant the tests now assert. |
|
|
787
|
+
|
|
788
|
+
Two side effects worth recording, both corrected in the same commit rather than left stale:
|
|
789
|
+
|
|
790
|
+
- `code-review`'s pooled **mock verdict moves from `effective` to `inconclusive`** (9 improved vs 3
|
|
791
|
+
regressed, p ≈ 0.146, Δpass +40pp). That is the honest reading of a skill that helps three review
|
|
792
|
+
tasks and derails a summarisation task at 3 trials × 5 tasks. Test assertions in `runner.test.ts`,
|
|
793
|
+
`eval.test.ts` and `bench.test.ts` were updated to values taken from a real mock run, not computed by
|
|
794
|
+
hand.
|
|
795
|
+
- The README trigger demo block was stale after B5 changed the Precision/F1 output format. Its four
|
|
796
|
+
metric lines are re-rendered from that run's recorded per-task counts through the same code path the
|
|
797
|
+
CLI uses, and the block is now labelled with its capture date. The four translations were missing the
|
|
798
|
+
Precision and F1 lines entirely, violating the rule that the demo console block stays verbatim in
|
|
799
|
+
every language; all five are now byte-identical.
|
|
800
|
+
|
|
801
|
+
### Wave 3 — fixed
|
|
802
|
+
|
|
803
|
+
Executed 2026-09-25 on `79c613a`…`e504e11`. `npm test` was green before every commit, read from the
|
|
804
|
+
full summary block each time: 250/250 at C1 → **270/270** at the end of the wave. C1 went first per
|
|
805
|
+
triage §3. Both bundled benches still report `bench check` 0 warnings / 0 failures (code-review 27
|
|
806
|
+
passed, debugging 36 passed).
|
|
807
|
+
|
|
808
|
+
| ID | Status | What landed |
|
|
809
|
+
|---|---|---|
|
|
810
|
+
| C1 | FIXED `79c613a`, **headline claim killed** | The claim that a partial write leaves `install` permanently conflicting while reporting "Nothing was written" did **not** reproduce: the conflict path needs a file that *differs* from the profile with no lockfile entry, and skillfit's own partial writes match the profile, so the next run adopts them and completes. Four real defects underneath it were fixed — the single `.skillfit-bak` slot that let a second `install` overwrite the user's pre-skillfit original (earliest backup now wins), per-file writes that left earlier items on disk when a later one failed (stage beside the target, rename in one pass, remove every staged file on failure), the lockfile written with no backup at all against the "backup before write, no exceptions" rule, and the stale lockfile entry that never self-corrected because later runs skip items whose content already matches. |
|
|
811
|
+
| C2 | FIXED `f4dc8c2` | The conflict check ran before the dry-run early return, so `install --dry-run` exited non-zero on exactly the condition it exists to surface. A dry run now prints the conflicts and exits 0; new `--strict` restores the non-zero exit for gates; a real run still always throws because it cannot proceed. `--help` plus the `install` row of all five READMEs. |
|
|
812
|
+
| C3 | FIXED `34c92e9` | Writing the prompt to `child.stdin` had no `'error'` listener, so an agent CLI that exited before draining stdin raised EPIPE (`EOF` on Windows) as an *uncaught exception*: `main().catch` never saw it, the process died mid-trial and left a half-populated run group. Now rejects with a message naming the command and kills the child. |
|
|
813
|
+
| C4 | FIXED `96ea5fb` | `child.kill()` signalled only the spawned process, which with `shell: true` is the shell — verified on Windows that the grandchild survived, so a timed-out trial left a live agent spending tokens against a run the harness had abandoned. New `src/harness/kill-tree.ts` kills the process group on POSIX (children spawned `detached`) and uses `taskkill /T /F` on Windows; both the executor timeout and the verifier's own 2-minute timeout use it. |
|
|
814
|
+
| C5 | FIXED `8ae7156` | Both Wave 0 symptoms closed by one shared helper, `src/commands/confirm.ts`, with an `rl.on('close')` handler: closed stdin means "no" on a terminal, and an error naming `--yes` otherwise, where nothing could ever have answered. Sharing it is the point — `parseFrontmatter` had the same two-copies problem and the two drifted (C8). |
|
|
815
|
+
| C6 | FIXED `2f3d71e` | `doctor --agent <typo>` exits 2, the CLI's existing usage-error code. Findings still never set an exit code, so a clean report stays 0. |
|
|
816
|
+
| C7 | FIXED `b8c3211` | `turn.completed` usage accumulates instead of last-wins, matching the sibling path in `kimi-usage.ts` that already summed the same kind of per-entry records. This corrupts ρ and cost-of-pass — the two claims `metrics.md` L3 says *are* provable at personal sample sizes. A multi-turn fixture pins the chosen semantics; the residual risk (a surface that reports *cumulative* usage would double-count, and the two readings are mutually exclusive) is recorded in a code comment. |
|
|
817
|
+
| C8 | FIXED `55802c1` | Extracted to `src/frontmatter.ts`, so doctor and install agree structurally rather than by test supervision. All four Wave 0 divergences closed (BOM, trailing fence whitespace, quoted values, `>`/`|` block scalars) plus the case the audit cited: `description: >-` was the one input where the two already *agreed*, both storing the literal marker as a two-character description that then passed a truthiness check. Chomping indicators are now handled. |
|
|
818
|
+
| C9 | FIXED `501c4d9` | Both halves. Paths: every git call in the mining path now passes `-c core.quotePath=false`. Wave 0's recommended `-z` does **not** suppress the quoting when `--format` is in use — measured on the scratch repo: `-z` alone still emits `14 "caf\303\251-notes.txt"`, `-z` + `core.quotePath=false` emits `14 café-notes.txt`. `-z` is kept for NUL separation, and the `ls-tree` record is split on its first space so a path containing a newline or tab also parses. Gitlink: the half Wave 0 could only demonstrate as JS semantics is now reproduced with `git update-index --add --cacheinfo 160000,…` — `ls-tree` prints `-`, and a non-numeric size is an error naming the path rather than `NaN` poisoning `totalBytes` and silently disabling the 1 MB / 200-file guard. |
|
|
819
|
+
| C10 | **KILLED** (Wave 0) | Not fixable: `diff-tree --name-status -r` without `-M` emits `D`+`A` and never `R100`, so the `path: "old\tnew"` shape is unreachable from this code path and the recommended `status[0] === 'R'` filter would be dead code. |
|
|
820
|
+
| C11 | FIXED `96dfa25` | Citation corrected to `src/commands/report.ts`. `fired` and `never` are now restricted to the deduped `installed` set, so `installed = fired + never` holds exactly and a skill that fired but has since been uninstalled no longer inflates the count. Per-agent lines still report per-agent counts; a test pins both so the distinction is not incidental. |
|
|
821
|
+
| C12 | FIXED `1e984f4` | `headless.usageFromSessionLog` in the matrix replaces `if (this.label === 'kimi-code')` in harness code. Set on kimi-code only, `verifiedAt` bumped to 2026-09-25 against the session-log location already documented at `sessions.docs` for that agent. A test scans the executor module for quoted agent ids so the `AGENTS.md` rule survives future edits. |
|
|
822
|
+
| C13 | FIXED `57c4b9e` | Unsafe characters are **rejected**, not quoted: inside double quotes a POSIX shell still expands `$(…)` and backticks while `cmd.exe` still expands `%VAR%`, so no single quoting scheme is correct for both and this codebase runs on both. Rejected set is ``; & | < > ` $`` plus CR/LF — backslash stays legal (every Windows path in the matrix is full of them) and parentheses stay legal (a `node -e` expression goes through a shell in an existing test). Every payload that actually injects is still caught, and no token in `agents.json` contains a rejected character, so no matrix agent changes behaviour. |
|
|
823
|
+
| B4 | FIXED `8365f5f` | `formatPp1` for interval bounds plus the `Run resolution: this bench resolves effects ≳ ±X.Xpp` line `metrics.md` requires. The task table keeps whole points, where the precision is noise. **This closes the last open row of the §5 divergence table.** |
|
|
824
|
+
| Note 1 | FIXED `753c748` | Disclosure, per Wave 0's lowered severity: `bench add` logs that the `--verifier-cmd` string is written into `verifiers/<task-id>.mjs` and re-executed under `shell: true` on every later `bench check` and `eval` — in both the dry-run plan and the real path, because the scripted `--yes` case is the one where nobody reads a prompt. `SECURITY.md` states the trust boundary. A sentence claiming the confirm prompt said so was written into `SECURITY.md` first and removed when it turned out not to be true; the disclosure was then implemented and the wording re-added. |
|
|
825
|
+
| Note 2 | FIXED `e504e11` | A verifier or oracle that produces no exit code — `.cmd`/`.bat` (`spawn EINVAL`) or a bare `npm` (`spawn ENOENT`) under `shell: false`, both re-reproduced live — is now a named harness error on the trial (excluded pairwise, per B1), a `bench check` FAIL quoting the spawn error, and a rejection reason in `--decompose`'s gates. The command-kind NOP gate was the sharp edge: `exitCode !== 0` is the condition it exists to require, so an unspawnable verifier *passed* it. `shell: false` is kept deliberately and the reasoning is in `SECURITY.md` — `CONTRIBUTING.md` solicits benches from strangers, and a shell would make `"verifier": "node v.mjs & curl …"` in a contributed `bench.json` run on every machine that checks it. |
|
|
826
|
+
|
|
827
|
+
Two things worth recording about method, both cases where following the work order literally would
|
|
828
|
+
have shipped a wrong fix:
|
|
829
|
+
|
|
830
|
+
- **C9's prescribed fix was wrong and was caught by measuring.** Triage §5 said "use `-z` and
|
|
831
|
+
`core.quotePath=false`"; `-z` turned out to be irrelevant to the quoting and only the `-c` flag
|
|
832
|
+
matters. The code comment now says which is which, so the next reader does not re-derive it.
|
|
833
|
+
- **C1's headline was killed rather than fixed**, and the four defects found while trying to reproduce
|
|
834
|
+
it were fixed instead. Reproducing first is what kept the commit honest about which claim it closes.
|
|
835
|
+
|
|
836
|
+
### Wave 4 — the authoring guide (§6) and A11
|
|
837
|
+
|
|
838
|
+
One commit, because the wave has one finding and one artifact and they are the same change: A11 *is*
|
|
839
|
+
"the contrib README assumes you already know how to build a case", and §6 *is* "the thing that teaches
|
|
840
|
+
it does not exist". `npm test` 274/274.
|
|
841
|
+
|
|
842
|
+
| ID | Status | What landed |
|
|
843
|
+
|---|---|---|
|
|
844
|
+
| §6 (the missing artifact) | FIXED | `docs/bench-authoring.md`. The seven steps, each with **do this** / **why it is not optional** / **what the tool checks**, walked end to end on `code-review/review-r1` rather than on an invented task — so every command, path, threshold and quoted verifier fragment in it is checkable against the repo. Plus the four properties the steps serve, the two gates and **what neither of them proves** (gameability, with `feat-slug` as the worked example), a "how a bench lies to you" table keyed on the symptom the author will actually see, the sources, and a copy-pasteable PR checklist. Written *after* Waves 1–3 per triage §3 so it describes gates that exist. |
|
|
845
|
+
| A11 | FIXED | `benches/contrib/README.md` keeps its five rules verbatim and now names the guide as required reading before rule 1, including the warning that rule 2 (`bench check` → 0 failures) is easy to satisfy while missing the point. The guide's checklist is written to be pasted into a PR body and deliberately does **not** demand 0 warnings — that would be a stricter bar on contributors than the repo currently asks for, and mid-authoring benches legitimately carry a no-oracle warning. |
|
|
846
|
+
|
|
847
|
+
Linked from all five READMEs, `benches/README.md` (twice: the header and "Porting your production
|
|
848
|
+
scenario"), `docs/metrics.md` (twice: the header and "Bench composition guidance"), and
|
|
849
|
+
`CONTRIBUTING.md`. New `src/docs.test.ts` pins two things that have drifted before: the link exists in
|
|
850
|
+
all five languages, and every threshold the guide quotes is read back out of `bench.ts` / `report.ts` /
|
|
851
|
+
`stats.ts` at test time, so changing a constant now breaks the doc's test instead of silently making
|
|
852
|
+
the doc wrong. It also resolves every relative link in the guide.
|
|
853
|
+
|
|
854
|
+
Two accuracy bugs were caught by writing the guide rather than by reading the code, and fixed in the
|
|
855
|
+
same commit in all three places they appeared (guide, `benches/README.md`, `SECURITY.md`):
|
|
856
|
+
|
|
857
|
+
- The Wave 3 wording for Note 2 said "`npm test` cannot be a verifier command on Windows". True of a
|
|
858
|
+
command written *directly into `bench.json`*, and false of the supported route: `--verifier-cmd`
|
|
859
|
+
wraps the shell command in a generated node script, which is exactly the mechanism Note 1's
|
|
860
|
+
disclosure is about. The two notes were documented as though they were unrelated. The runtime error
|
|
861
|
+
message now points at `--verifier-cmd` instead of just naming the restriction.
|
|
862
|
+
- `bench add --freeze` already writes `prompts/<id>.trigger.md` and registers `"promptTrigger"`; the
|
|
863
|
+
guide's first draft told authors to create both by hand. What it actually writes is the inject prompt
|
|
864
|
+
plus one generic appended line, which is a stub and not a trigger variant — so step 5 now says the
|
|
865
|
+
tool gives you a starting point and why leaving "the snapshot below" in it is the specific thing that
|
|
866
|
+
produces the 0/9 recall artifact.
|
|
867
|
+
|
|
868
|
+
### Nothing left queued
|
|
869
|
+
|
|
870
|
+
Every finding in this audit is now `FIXED` or `KILLED`. Every §5 divergence-table row is either fixed
|
|
871
|
+
in code or explicitly marked `(Status: spec)`; B4 closed the last one. Out of scope for this pass, per
|
|
872
|
+
triage §4, and unchanged: npm publish, Claude Code support, real-set competition in trigger mode (B6),
|
|
873
|
+
the file-patch mock extension (A10 full version).
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|