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,66 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
const runDir = process.argv[2];
|
|
5
|
+
if (!runDir) {
|
|
6
|
+
console.error('usage: node review-r2.mjs <run-dir>');
|
|
7
|
+
process.exit(2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const bugs = [
|
|
11
|
+
{
|
|
12
|
+
id: 'unregistered-error-code',
|
|
13
|
+
anchor: /invoice\.js/,
|
|
14
|
+
evidence: [/QTY_NEGATIVE/, /INVALID_QUANTITY/, /stable.?code|code table|not in the (table|spec)/i, /\b20\b/],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'intermediate-rounding',
|
|
18
|
+
anchor: /invoice\.js/,
|
|
19
|
+
evidence: [/\b22\b/, /double.?round|rounds? (the )?(unit|intermediate|per[- ]line)|before (the )?(qty|quantity|multipl)/i, /§3/],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 'input-mutation',
|
|
23
|
+
anchor: /invoice\.js/,
|
|
24
|
+
evidence: [/\b33\b/, /line\.qty\s*=/, /§2/, /purity|mutat/i],
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const decoys = [
|
|
29
|
+
{ id: 'sorts-new-array', anchor: /invoice\.js/, evidence: [/\.sort\(/, /\b25\b/] },
|
|
30
|
+
{ id: 'formatCents', anchor: /money\.js/, evidence: [/formatCents/] },
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
const outputPath = path.join(runDir, '_output.md');
|
|
34
|
+
let output;
|
|
35
|
+
try {
|
|
36
|
+
output = fs.readFileSync(outputPath, 'utf8');
|
|
37
|
+
} catch {
|
|
38
|
+
// `no-false-positives` is false here as well: an empty review is not a precise one, and crediting
|
|
39
|
+
// silence with "no false positives" would hand a quarter of the facet score to an agent that
|
|
40
|
+
// reviewed nothing.
|
|
41
|
+
const checks = [
|
|
42
|
+
...bugs.map((bug) => ({ name: bug.id, pass: false })),
|
|
43
|
+
{ name: 'no-false-positives', pass: false },
|
|
44
|
+
];
|
|
45
|
+
console.log(JSON.stringify({ passed: false, hits: [], missed: ['*'], decoys: [], checks, error: `missing ${outputPath}` }));
|
|
46
|
+
process.exit(1);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const lines = output.split(/\r?\n/);
|
|
50
|
+
|
|
51
|
+
function hit(rule) {
|
|
52
|
+
return lines.some((line) => rule.anchor.test(line) && rule.evidence.some((re) => re.test(line)));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const hits = bugs.filter(hit).map((bug) => bug.id);
|
|
56
|
+
const missed = bugs.filter((bug) => !hits.includes(bug.id)).map((bug) => bug.id);
|
|
57
|
+
const decoyHits = decoys.filter(hit).map((decoy) => decoy.id);
|
|
58
|
+
// Decoys are plausible-but-correct code. Until this check existed they were counted and printed but
|
|
59
|
+
// never scored, so a review that simply reported more beat one that reported less and was right.
|
|
60
|
+
const checks = [
|
|
61
|
+
...bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) })),
|
|
62
|
+
{ name: 'no-false-positives', pass: decoyHits.length === 0 },
|
|
63
|
+
];
|
|
64
|
+
const passed = missed.length === 0 && decoyHits.length === 0;
|
|
65
|
+
console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
|
|
66
|
+
process.exit(passed ? 0 : 1);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
const runDir = process.argv[2];
|
|
5
|
+
if (!runDir) {
|
|
6
|
+
console.error('usage: node review-r3.mjs <run-dir>');
|
|
7
|
+
process.exit(2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const bugs = [
|
|
11
|
+
{
|
|
12
|
+
id: 'dropped-empty-guard',
|
|
13
|
+
anchor: /pricing(\.test)?\.js/,
|
|
14
|
+
evidence: [/EMPTY_ORDER/, /empty (order|array|input)/i, /§4/],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'promo-bulk-stack',
|
|
18
|
+
anchor: /pricing\.js/,
|
|
19
|
+
evidence: [/never (itself |further )?discount/i, /on top of|also applies|combin|stack|both/i, /§3/, /\b1[34]\b/],
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const decoys = [
|
|
24
|
+
{ id: 'formatOrder', anchor: /pricing\.js/, evidence: [/formatOrder/] },
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
const outputPath = path.join(runDir, '_output.md');
|
|
28
|
+
let output;
|
|
29
|
+
try {
|
|
30
|
+
output = fs.readFileSync(outputPath, 'utf8');
|
|
31
|
+
} catch {
|
|
32
|
+
// `no-false-positives` is false here as well: an empty review is not a precise one, and crediting
|
|
33
|
+
// silence with "no false positives" would hand a third of the facet score to an agent that
|
|
34
|
+
// reviewed nothing.
|
|
35
|
+
const checks = [
|
|
36
|
+
...bugs.map((bug) => ({ name: bug.id, pass: false })),
|
|
37
|
+
{ name: 'no-false-positives', pass: false },
|
|
38
|
+
];
|
|
39
|
+
console.log(JSON.stringify({ passed: false, hits: [], missed: ['*'], decoys: [], checks, error: `missing ${outputPath}` }));
|
|
40
|
+
process.exit(1);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const lines = output.split(/\r?\n/);
|
|
44
|
+
|
|
45
|
+
function hit(rule) {
|
|
46
|
+
return lines.some((line) => rule.anchor.test(line) && rule.evidence.some((re) => re.test(line)));
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const hits = bugs.filter(hit).map((bug) => bug.id);
|
|
50
|
+
const missed = bugs.filter((bug) => !hits.includes(bug.id)).map((bug) => bug.id);
|
|
51
|
+
const decoyHits = decoys.filter(hit).map((decoy) => decoy.id);
|
|
52
|
+
// Decoys are plausible-but-correct code. Until this check existed they were counted and printed but
|
|
53
|
+
// never scored, so a review that simply reported more beat one that reported less and was right.
|
|
54
|
+
const checks = [
|
|
55
|
+
...bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) })),
|
|
56
|
+
{ name: 'no-false-positives', pass: decoyHits.length === 0 },
|
|
57
|
+
];
|
|
58
|
+
const passed = missed.length === 0 && decoyHits.length === 0;
|
|
59
|
+
console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
|
|
60
|
+
process.exit(passed ? 0 : 1);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
const runDir = process.argv[2];
|
|
5
|
+
if (!runDir) {
|
|
6
|
+
console.error('usage: node seeded-bugs.mjs <run-dir>');
|
|
7
|
+
process.exit(2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const bugs = [
|
|
11
|
+
{
|
|
12
|
+
id: 'bare-error',
|
|
13
|
+
anchor: /order\.js/,
|
|
14
|
+
evidence: [/\b25\b/, /INVALID_QUANTITY/, /AppError/, /bare\s+`?Error/i],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 'discount-boundary',
|
|
18
|
+
anchor: /order\.js/,
|
|
19
|
+
evidence: [/\b30\b/, />=\s*10/, /off-by-one/i, /boundary/i],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 'missing-tests',
|
|
23
|
+
anchor: /applyBulkDiscount/,
|
|
24
|
+
// A bare /test/i passed on any line that named the function and contained the word "test", so
|
|
25
|
+
// "applyBulkDiscount test" scored the same as a reasoned coverage finding. Require an actual
|
|
26
|
+
// claim about missing coverage rather than the topic word.
|
|
27
|
+
evidence: [
|
|
28
|
+
/\b(?:no|lacks?|lacking|missing|without|has no)\b[^.\n]{0,40}\b(?:tests?|coverage|covered)\b/i,
|
|
29
|
+
/\b(?:should|needs?|must|requires?)\b[^.\n]{0,40}\b(?:tests?|coverage)\b/i,
|
|
30
|
+
/\buntested\b/i,
|
|
31
|
+
/\bnot covered\b/i,
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
const decoys = [
|
|
37
|
+
{ id: 'c-style-loop', anchor: /order\.js/, evidence: [/\b2[23]\b/] },
|
|
38
|
+
{ id: 'percentoff', anchor: /money\.js/, evidence: [/percentOff/] },
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
const outputPath = path.join(runDir, '_output.md');
|
|
42
|
+
let output;
|
|
43
|
+
try {
|
|
44
|
+
output = fs.readFileSync(outputPath, 'utf8');
|
|
45
|
+
} catch {
|
|
46
|
+
// `no-false-positives` is false here as well: an empty review is not a precise one, and crediting
|
|
47
|
+
// silence with "no false positives" would hand a quarter of the facet score to an agent that
|
|
48
|
+
// reviewed nothing.
|
|
49
|
+
const checks = [
|
|
50
|
+
...bugs.map((bug) => ({ name: bug.id, pass: false })),
|
|
51
|
+
{ name: 'no-false-positives', pass: false },
|
|
52
|
+
];
|
|
53
|
+
console.log(JSON.stringify({ passed: false, hits: [], missed: ['*'], decoys: [], checks, error: `missing ${outputPath}` }));
|
|
54
|
+
process.exit(1);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const lines = output.split(/\r?\n/);
|
|
58
|
+
|
|
59
|
+
function hit(rule) {
|
|
60
|
+
return lines.some((line) => rule.anchor.test(line) && rule.evidence.some((re) => re.test(line)));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const hits = bugs.filter(hit).map((bug) => bug.id);
|
|
64
|
+
const missed = bugs.filter((bug) => !hits.includes(bug.id)).map((bug) => bug.id);
|
|
65
|
+
const decoyHits = decoys.filter(hit).map((decoy) => decoy.id);
|
|
66
|
+
// Decoys are plausible-but-correct code. Until this check existed they were counted and printed but
|
|
67
|
+
// never scored, so a review that simply reported more beat one that reported less and was right.
|
|
68
|
+
const checks = [
|
|
69
|
+
...bugs.map((bug) => ({ name: bug.id, pass: hits.includes(bug.id) })),
|
|
70
|
+
{ name: 'no-false-positives', pass: decoyHits.length === 0 },
|
|
71
|
+
];
|
|
72
|
+
const passed = missed.length === 0 && decoyHits.length === 0;
|
|
73
|
+
console.log(JSON.stringify({ passed, hits, missed, decoys: decoyHits, checks }));
|
|
74
|
+
process.exit(passed ? 0 : 1);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
|
|
4
|
+
const runDir = process.argv[2];
|
|
5
|
+
if (!runDir) {
|
|
6
|
+
console.error('usage: node summarize-s1.mjs <run-dir>');
|
|
7
|
+
process.exit(2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const CHECK_NAMES = ['three-bullets', 'names-user-visible-changes', 'not-a-review'];
|
|
11
|
+
|
|
12
|
+
// The three things the merged diff actually changed for a caller of the library.
|
|
13
|
+
const CHANGES = [
|
|
14
|
+
{
|
|
15
|
+
id: 'bulk-threshold',
|
|
16
|
+
evidence: [
|
|
17
|
+
/\b(?:10|ten)\b[^.\n]{0,60}(?:discount|bulk|item|order|qualif|threshold)/i,
|
|
18
|
+
/(?:discount|bulk|threshold|qualif|pricing)[^.\n]{0,60}\b(?:10|ten)\b/i,
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
id: 'stable-error-code',
|
|
23
|
+
evidence: [/INVALID_QUANTITY/i, /stable[^.\n]{0,30}code/i, /error code/i, /branch on/i],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 'single-rounding',
|
|
27
|
+
evidence: [
|
|
28
|
+
/round\w*[^.\n]{0,40}(?:once|final|per line|end|drift|penny)/i,
|
|
29
|
+
/(?:once|drift|penny)[^.\n]{0,40}round/i,
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
// Review framing. A changelog entry that starts citing the spec and reporting violations is the
|
|
35
|
+
// wrong artefact, which is what makes this task a behavioural negative control and not just a label.
|
|
36
|
+
const REVIEW_FRAMING = /SPEC\s*§|\bviolates?\b|\bbugs?\b|\bdefects?\b|off-by-one|\bshould be\b|\bneeds? (?:to be )?fix/i;
|
|
37
|
+
|
|
38
|
+
const BULLET = /^\s*(?:[-*+]|\d+[.)])\s+\S/;
|
|
39
|
+
|
|
40
|
+
const outputPath = path.join(runDir, '_output.md');
|
|
41
|
+
let output;
|
|
42
|
+
try {
|
|
43
|
+
output = fs.readFileSync(outputPath, 'utf8');
|
|
44
|
+
} catch {
|
|
45
|
+
console.log(JSON.stringify({
|
|
46
|
+
passed: false,
|
|
47
|
+
changes: [],
|
|
48
|
+
bullets: 0,
|
|
49
|
+
reviewFraming: false,
|
|
50
|
+
checks: CHECK_NAMES.map((name) => ({ name, pass: false })),
|
|
51
|
+
error: `missing ${outputPath}`,
|
|
52
|
+
}));
|
|
53
|
+
process.exit(1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const lines = output.split(/\r?\n/);
|
|
57
|
+
const bullets = lines.filter((line) => BULLET.test(line));
|
|
58
|
+
const matchedChanges = CHANGES.filter((change) => change.evidence.some((re) => re.test(output))).map(
|
|
59
|
+
(change) => change.id,
|
|
60
|
+
);
|
|
61
|
+
const reviewFraming = REVIEW_FRAMING.test(output);
|
|
62
|
+
|
|
63
|
+
const results = {
|
|
64
|
+
'three-bullets': bullets.length === 3,
|
|
65
|
+
// Two of three: a changelog entry is allowed to fold two changes into one bullet or to phrase one
|
|
66
|
+
// differently, but an entry that names none of them did not read the diff.
|
|
67
|
+
'names-user-visible-changes': matchedChanges.length >= 2,
|
|
68
|
+
'not-a-review': !reviewFraming,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const checks = CHECK_NAMES.map((name) => ({ name, pass: results[name] === true }));
|
|
72
|
+
const passed = checks.every((check) => check.pass);
|
|
73
|
+
console.log(JSON.stringify({
|
|
74
|
+
passed,
|
|
75
|
+
bullets: bullets.length,
|
|
76
|
+
changes: matchedChanges,
|
|
77
|
+
reviewFraming,
|
|
78
|
+
checks,
|
|
79
|
+
}));
|
|
80
|
+
process.exit(passed ? 0 : 1);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# benches/contrib — community benches
|
|
2
|
+
|
|
3
|
+
Drop your bench here as `benches/contrib/<name>/` when you want to submit it. A contrib bench follows the
|
|
4
|
+
same contract as the bundled ones ([benches/README.md](../README.md)), plus a few submission rules.
|
|
5
|
+
|
|
6
|
+
**Read [docs/bench-authoring.md](../../docs/bench-authoring.md) first.** It is the guide this checklist
|
|
7
|
+
assumes: the seven steps from "something went wrong" to a task you can measure, why each one is
|
|
8
|
+
non-optional, and the ways a bench produces confident wrong numbers. The rules below are the short
|
|
9
|
+
form; the guide is what makes them make sense, and rule 2 in particular is easy to satisfy while
|
|
10
|
+
missing the point entirely.
|
|
11
|
+
|
|
12
|
+
## Before you open the PR
|
|
13
|
+
|
|
14
|
+
1. **Build it from something real.** A task your agent actually failed at (freeze it), a fix from real
|
|
15
|
+
git history (mine it), or a deliberately seeded incident — not a toy.
|
|
16
|
+
2. **Pass the offline gate:** `node dist/cli.js bench check benches/contrib/<name>` must report
|
|
17
|
+
**0 failures**, with no missing-oracle warning. This runs both offline gates: the untouched fixture
|
|
18
|
+
must fail (NOP), and the reference solution must pass (oracle). Include the complete output in the PR.
|
|
19
|
+
`node scripts/check-contrib-benches.mjs` checks every contributed directory using the same CLI.
|
|
20
|
+
3. **Show the difficulty when available:** `--calibrate --agent <id> --trials 2` makes live agent
|
|
21
|
+
calls and is optional for the first submission. If you ran it, paste the pass-rate bands. If not,
|
|
22
|
+
say difficulty is uncalibrated. A saturated task (baseline ≥ 90%) can still be a regression net,
|
|
23
|
+
but cannot measure lift on that agent.
|
|
24
|
+
4. **Keep it self-contained:** fixtures must not need a build step or installed dependencies for the
|
|
25
|
+
verifier to run, must not contain secrets or customer data, and must stay small. Default snapshot
|
|
26
|
+
input inlines fixtures into prompts; `--input workspace` presents them on disk to a CLI instead.
|
|
27
|
+
5. **Record the seed answer** in `ground-truth/` — what a correct outcome looks like and why the verifier
|
|
28
|
+
is right.
|
|
29
|
+
|
|
30
|
+
## What maintainers do
|
|
31
|
+
|
|
32
|
+
- Re-run `bench check` offline in CI. A passing mock probe tests the output-verifier wiring, not
|
|
33
|
+
agent quality; command verifiers use the NOP and oracle gates.
|
|
34
|
+
- Review the calibration when supplied; a live-agent rerun is separate from offline CI.
|
|
35
|
+
- Land the bench under `benches/contrib/<name>/` with your name credited in the merge commit, and link it
|
|
36
|
+
from this README below.
|
|
37
|
+
|
|
38
|
+
## Index
|
|
39
|
+
|
|
40
|
+
| Bench | Domain | Contributor | Notes |
|
|
41
|
+
|---|---|---|---|
|
|
42
|
+
| [oss-mcp-use-utf8](oss-mcp-use-utf8/README.md) | MCP App HTML decoding | skillfit replay of MIT-licensed mcp-use source | Pinned real-source workflow/regression example; earlier baselines saturated; no general Skill efficacy claim |
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Independent historical lru-cache failures
|
|
2
|
+
|
|
3
|
+
Three real upstream defects, selected from issues and maintainer fixes before consulting any evaluated Skill:
|
|
4
|
+
|
|
5
|
+
| Task | Original requirement | Preimage | Fix |
|
|
6
|
+
|---|---|---|---|
|
|
7
|
+
| fetch-size | [issue 269](https://github.com/isaacs/node-lru-cache/issues/269) | `f33a3e42` | `c8cae78c` |
|
|
8
|
+
| fetch-abort | [issue 274](https://github.com/isaacs/node-lru-cache/issues/274) | `914ea50a` | `c7e46cdc` |
|
|
9
|
+
| fetch-lifecycle | [maintainer lifecycle fix](https://github.com/isaacs/node-lru-cache/commit/451737cf4f82dc268b88530a559f900837261733) | `425dd43e` | `451737cf` |
|
|
10
|
+
|
|
11
|
+
Full SHAs, byte hashes, source/license files and extraction notes are retained in `provenance.json`, `fixtures/`, and `ground-truth/`. Each historical source is verbatim. The old CJS cases load directly; the TS case uses Node's built-in TypeScript transformation in a temporary directory (type-only namespaces are erased even on Node 22.13), mapping two local `.js` import suffixes to compiled `.mjs`. No third-party runtime dependencies or network. **Node >=22.13 is required for this bench**, independently of the CLI's Node >=22 requirement.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
node dist/cli.js bench check benches/contrib/oss-lru-cache
|
|
15
|
+
node dist/cli.js bench check benches/contrib/oss-lru-cache --calibrate --agent codex --input workspace --trials 2 --max-calls 6 --dry-run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
After reviewing the offline NOP/oracle/counterexample gates, run the same calibration command without `--dry-run`. Calibration is baseline-only, is not Skill evidence, and retains saturation/errors without replacement calls. Declare a separate paired validation set and budget only after inspecting calibration.
|
|
19
|
+
|
|
20
|
+
The fixtures contain full relevant implementation modules with original ISC licenses and existing smoke checks. The prompts require a new executable regression. Graders are outside trial workspaces, protect existing assets, and verify that a new test fully passes the submitted implementation and contains a uniquely matched test case that fails on the original source and passes on the unmodified upstream reference fix. Hidden behavior probes use deferred providers and event-loop turn barriers; no wall-clock TTL or latency grading.
|
|
21
|
+
|
|
22
|
+
Scope: one upstream repository, one async cache family, extracted runtime behavior. These tasks do not reproduce upstream CI, type compatibility, browser builds, release preparation, maintainer review or PR acceptance. Difficulty is uncalibrated until a pinned baseline run is retained. They do not establish general OSS contribution quality, and all three are positive bug-fix cases rather than a trigger-negative set.
|
|
23
|
+
|
|
24
|
+
The case-level third-side gate rejects tests that only assert a new unrelated field/interface. It uses trusted Node reporter events with relative file, complete parent path and name; ambiguous duplicate identities, cancelled/timed-out/import-failed original runs and spoofed stdout cannot supply a witness. The entire submitted suite must pass without skip/todo/cancellation; other tests may expose failures in the imperfect reference fix. This is mechanical corroboration, not a proof of semantic relevance. Independently review test content before calibration.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "oss-lru-cache",
|
|
4
|
+
"description": "Three independent historical asynchronous cache defects from pinned upstream source and maintainer fixes. Difficulty is uncalibrated. One repository and one task family, not general OSS evidence.",
|
|
5
|
+
"tasks": [
|
|
6
|
+
{
|
|
7
|
+
"id": "fetch-size",
|
|
8
|
+
"fixture": "fixtures/fetch-size",
|
|
9
|
+
"prompt": "prompts/fetch-size.md",
|
|
10
|
+
"verifier": "node verifiers/fetch-size.mjs",
|
|
11
|
+
"verifierKind": "command",
|
|
12
|
+
"oracle": "node ground-truth/oracle-fetch-size.mjs",
|
|
13
|
+
"rubric": "ground-truth/fetch-size.md",
|
|
14
|
+
"shouldTrigger": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "fetch-abort",
|
|
18
|
+
"fixture": "fixtures/fetch-abort",
|
|
19
|
+
"prompt": "prompts/fetch-abort.md",
|
|
20
|
+
"verifier": "node verifiers/fetch-abort.mjs",
|
|
21
|
+
"verifierKind": "command",
|
|
22
|
+
"oracle": "node ground-truth/oracle-fetch-abort.mjs",
|
|
23
|
+
"rubric": "ground-truth/fetch-abort.md",
|
|
24
|
+
"shouldTrigger": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "fetch-lifecycle",
|
|
28
|
+
"fixture": "fixtures/fetch-lifecycle",
|
|
29
|
+
"prompt": "prompts/fetch-lifecycle.md",
|
|
30
|
+
"verifier": "node verifiers/fetch-lifecycle.mjs",
|
|
31
|
+
"verifierKind": "command",
|
|
32
|
+
"oracle": "node ground-truth/oracle-fetch-lifecycle.mjs",
|
|
33
|
+
"rubric": "ground-truth/fetch-lifecycle.md",
|
|
34
|
+
"shouldTrigger": true
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
# Historical lru-cache replay
|
|
2
|
+
|
|
3
|
+
Run `npm test` for existing smoke checks. Fix the implementation and add new `*.test.mjs` regression tests. Do not change existing tests, package metadata, runtime adapter or licenses. No install step or network is needed. The TypeScript case uses Node’s built-in type stripping (Node 22.13+).
|