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
package/docs/metrics.md
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# skillfit metrics (v2, frozen 2026-09-23)
|
|
2
|
+
|
|
3
|
+
This document defines what skillfit measures and how verdicts are computed. It is the contract that
|
|
4
|
+
`src/harness/` implements and that bench authors design against. Changes here are deliberate: edit with a
|
|
5
|
+
reasoned PR, cite sources, and bump the date.
|
|
6
|
+
|
|
7
|
+
Status reviewed 2026-10-01: L1 records complete installed-resource fingerprints and distinguishes
|
|
8
|
+
implemented trigger rates from task-class breakdowns and installed-skill competition that remain
|
|
9
|
+
specification. The v2 verdict protocol is unchanged.
|
|
10
|
+
|
|
11
|
+
Additive workflow review 2026-10-09: optional managed-session and native read metadata below
|
|
12
|
+
describe execution coverage and observations. They do not change the v2 statistical formulas,
|
|
13
|
+
verdict thresholds, pairwise exclusions or legal legacy manifest interpretation.
|
|
14
|
+
|
|
15
|
+
This is the **why**. The **how** — turning one of your own failures into a task that satisfies this
|
|
16
|
+
contract — is [bench-authoring.md](bench-authoring.md).
|
|
17
|
+
|
|
18
|
+
v2 (2026-09-23): adds graded facet scores (L2), the oracle gate, and floor/facet-saturation warnings.
|
|
19
|
+
Motivation: binary pass/fail extracts one bit per trial, which is why quality claims stayed unprovable at
|
|
20
|
+
individual-user sample sizes. [Skill2Env](https://github.com/NVlabs/Skill2Env) (Table 1) shows the
|
|
21
|
+
sensitivity gap empirically: the same training moved its graded S2EBench mean 56.6→75.1 while pass@1
|
|
22
|
+
moved only 33.4→37.7. Its counter-evidence shapes the design too: mixing an LLM-judged process rubric
|
|
23
|
+
into the reward *reduced* task pass rates (50.1% vs 54.1% outcome-only), so facet checks must be
|
|
24
|
+
programmatic and the judge stays advisory. Skill-sourced task generation (its S2EBench was built from the
|
|
25
|
+
same distribution it evaluated) is rejected here for efficacy claims.
|
|
26
|
+
|
|
27
|
+
Grounding: the framework synthesizes [SkillsBench](https://arxiv.org/abs/2602.12670) (paired evaluation,
|
|
28
|
+
per-task pass rates), [SWE-Skills-Bench](https://www.alphaxiv.org/abs/2603.15401) (ΔP / token overhead ρ),
|
|
29
|
+
the [STARS](https://arxiv.org/abs/2604.10286) capability-vs-activation split, [OpenAI's skill eval
|
|
30
|
+
guidance](https://developers.openai.com/blog/eval-skills) (trigger test classes), [Anthropic's eval
|
|
31
|
+
guidance](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) (bench composition),
|
|
32
|
+
[Skill2Env](https://github.com/NVlabs/Skill2Env) (graded programmatic scoring, oracle/NOP acceptance
|
|
33
|
+
gates), and the LLM-judge literature cited in §5.
|
|
34
|
+
|
|
35
|
+
## Unit of analysis
|
|
36
|
+
|
|
37
|
+
One **run** = one (task, condition, trial). Runs are **paired** on (task, trial): baseline and treatment see
|
|
38
|
+
the same fixture and the same prompt, and the two arms of a pair are executed **adjacently** — the trial loop
|
|
39
|
+
is outermost, so condition is never confounded with elapsed time (provider drift, rate-limit degradation,
|
|
40
|
+
a filling cache would otherwise land entirely on whichever arm ran second).
|
|
41
|
+
|
|
42
|
+
Sampling is **not pinned**, and this is a deliberate weakening of an earlier claim: the headless CLI surfaces
|
|
43
|
+
in the capability matrix expose no seed or temperature knob, so the harness controls order rather than
|
|
44
|
+
sampling. The manifest records `executor.sampling` as `null` where the surface offers nothing, instead of
|
|
45
|
+
implying a control that does not exist; a future surface that accepts a seed should populate it. Statistical
|
|
46
|
+
treatment is always *paired*: per-task first, then pooled across tasks with tasks as the resampling unit.
|
|
47
|
+
Never pool unpaired.
|
|
48
|
+
|
|
49
|
+
## L0 — bench health (guard metrics)
|
|
50
|
+
|
|
51
|
+
A bench that cannot discriminate must not produce verdicts.
|
|
52
|
+
|
|
53
|
+
- **Ceiling**: warn when a task's baseline pass rate ≥ 90% (implemented). Saturated tasks "graduate" to
|
|
54
|
+
regression duty — they verify no harm, but measure no lift
|
|
55
|
+
([SWE-Skills-Bench found 24/49 skills ceiling-bound](https://www.alphaxiv.org/abs/2603.15401)).
|
|
56
|
+
The same rule applies per facet: a check whose baseline pass rate ≥ 90% is flagged as saturated
|
|
57
|
+
(implemented).
|
|
58
|
+
- **Floor**: warn when baseline pass rate ≤ 10% (implemented) — the task is too hard or broken, and
|
|
59
|
+
all-zero arms are equally uninformative.
|
|
60
|
+
- **Engagement sanity**: if the agent never engaged with the fixture, the executor errored, or the
|
|
61
|
+
verifier produced no exit code at all (unspawnable command, killed by its timeout, or output over
|
|
62
|
+
the capture limit), the trial is excluded from rates and reported as an error, not a failure
|
|
63
|
+
(implemented). Non-engagement means the final message is empty or whitespace. For an output task
|
|
64
|
+
that message is the deliverable. For a command task the deliverable is the file edit, so an empty
|
|
65
|
+
message still counts when the disposable worktree differs from the fixture commit. Exclusion is *pairwise*: since
|
|
66
|
+
every statistic here is paired, dropping a trial from one arm alone would misalign the (task, trial) pairs
|
|
67
|
+
that McNemar and the paired bootstrap resample, so an error in either arm removes that pair from both, and
|
|
68
|
+
each arm reports its `errors` count next to its graded `trials`.
|
|
69
|
+
Command tasks whose disposable Git initialization/reflog verification fails are likewise
|
|
70
|
+
environment errors before their executor starts; inherited disabled reflog is overridden only
|
|
71
|
+
in the disposable repository. This does not change the paired exclusion or verdict formulas.
|
|
72
|
+
|
|
73
|
+
## L1 — trigger quality (activation)
|
|
74
|
+
|
|
75
|
+
Paired installed-Skill runs may additionally record `skillReads` counts (`observed`,
|
|
76
|
+
`unobserved`, `unknown`) per arm, task and overall, with the **surviving graded pair**
|
|
77
|
+
denominator. These mechanical transcript observations are not trigger recall/precision and do
|
|
78
|
+
not establish use, causation or benefit. Errored pairs are excluded from these counts as from
|
|
79
|
+
the quality rates. Older v4 manifests without these fields remain valid.
|
|
80
|
+
|
|
81
|
+
Optional `experiment` metadata records declared/planned calls, the ceiling, actual started and
|
|
82
|
+
finished calls, completion state and frozen plan hash. A stopped/incomplete experiment cannot
|
|
83
|
+
support an installation recommendation, regardless of the unchanged statistical verdict on its
|
|
84
|
+
surviving observations. Enabled judges contribute two declared calls per pair. No replacement
|
|
85
|
+
samples, retries or partial task-set truncation are added to meet a budget; see
|
|
86
|
+
[the bounded workflow](experiment-workflow.md) for the fingerprint/ledger contract and limits.
|
|
87
|
+
|
|
88
|
+
Whether the agent invokes the skill when it should, and only then. A skill's realized value is gated by this:
|
|
89
|
+
an excellent skill that never fires — or fires everywhere — is worthless. Public benchmarks measure efficacy
|
|
90
|
+
conditional on injection; trigger quality is skillfit's differentiating layer. (Status: **partial** — without `--compete-installed`, trigger mode installs one Skill alone and recall is an upper bound. That flag copies other user-level Skills from the matrix directories; system Skills and plugins outside those directories are not copied. Optional `triggerClass` values are `explicit`, `implicit`, and `contextual`; unlabeled positive tasks stay in the pooled recall. Claude Code capture is implemented against the documented shape and is not machine-verified. Codex detection counts a `SKILL.md` read.)
|
|
91
|
+
|
|
92
|
+
- **Task classes** (adopted from OpenAI's eval-skills taxonomy): `explicit` (skill named in prompt),
|
|
93
|
+
`implicit` (in-domain task, skill not named), `contextual` (noisy realistic task), `negative`
|
|
94
|
+
(`shouldTrigger: false` — decoy tasks measuring over-triggering). The current manifest records only
|
|
95
|
+
`shouldTrigger: true/false` and pools the positive classes; reporting explicit and implicit results
|
|
96
|
+
separately remains specification because they exercise different mechanisms.
|
|
97
|
+
- **Metrics**: trigger recall (fires on should-trigger tasks), false-trigger rate (fires on negative tasks),
|
|
98
|
+
and precision (positives fired / all fired) — each a proportion over its own denominator, each with a
|
|
99
|
+
Wilson 95% CI. F1 is reported **bare**: it is a harmonic mean of two proportions and has no closed-form
|
|
100
|
+
binomial interval, so an interval printed for it would be invented precision rather than a measurement.
|
|
101
|
+
- **Detection is mechanical, per agent** (see `src/matrix/agents.json`): Kimi Code —
|
|
102
|
+
`-p --output-format=stream-json` (assistant `tool_calls` events naming the `Skill` tool); Codex CLI —
|
|
103
|
+
`exec --json` (no skill event exists → detection via the `command_execution` item that reads the skill's
|
|
104
|
+
`SKILL.md`; normalize shell-escaped path separators before matching); Claude Code —
|
|
105
|
+
`-p --output-format stream-json --verbose` (`--bare` forbidden: it skips skill discovery) — implemented
|
|
106
|
+
against the documented shape but not yet machine-verified.
|
|
107
|
+
- **Environment errors**: unavailable disposable Git initialization/reflog excludes a command trigger trial
|
|
108
|
+
before its executor starts. The existing error exclusion and trigger-rate formulas remain unchanged.
|
|
109
|
+
- **Presentation fidelity**: trigger-mode tasks present work as files on disk with a natural request; the
|
|
110
|
+
harness never inlines a repository snapshot in trigger mode. A self-contained prompt suppresses skill
|
|
111
|
+
consultation (measured: 0/9 trigger recall with an inline snapshot vs. the skill firing on the same tasks
|
|
112
|
+
from disk — see evidence/2026-09-trigger-snapshot-correction.md). Trigger-mode prompt variants live in
|
|
113
|
+
per-task `promptTrigger` files.
|
|
114
|
+
- **Content identity**: trigger manifests retain `skill.bundleSha256/files` for the injectable
|
|
115
|
+
Markdown/YAML/JSON bundle and additionally record `skill.installedSha256/installedFiles` for every
|
|
116
|
+
installed regular file, including scripts, binary assets and hidden files. The full fingerprint hashes
|
|
117
|
+
sorted relative paths and file bytes before the agent runs; it does not fingerprint permissions or
|
|
118
|
+
empty directories. Each trial receipt records the observed `skillInstalledSha256/skillInstalledFiles`.
|
|
119
|
+
Every copy must match the planned installed fingerprint before its executor starts. Keep the source
|
|
120
|
+
unchanged throughout a run; a mismatch stops the experiment before the affected agent call. The input
|
|
121
|
+
root is resolved, while nested symbolic links and non-regular resources are rejected before a run
|
|
122
|
+
directory is created because their content cannot be pinned by this file-byte contract. These are
|
|
123
|
+
additive fields in trigger schema v1; older manifests lack a full installed fingerprint and must be
|
|
124
|
+
labelled unrecorded, never reconstructed from their injectable hash.
|
|
125
|
+
- **Environment fidelity caveats**: routing quality depends on the *whole installed skill set* (lexical
|
|
126
|
+
competition). (Status: **spec, not implemented** — the harness installs only the skill under test into an
|
|
127
|
+
otherwise empty sandboxed skills directory, so measured recall is *optimistic*: it faces no competition from
|
|
128
|
+
the user's real set. Reproducing that competition means fingerprinting and copying a user's installed skills
|
|
129
|
+
into a sandbox, which raises privacy questions this project has not settled; it is tracked as a future
|
|
130
|
+
enhancement rather than built here. Read trigger recall as an upper bound until then.) A triggered skill
|
|
131
|
+
cannot unload mid-session — one false trigger taxes the rest of the session, which is why false-trigger rate
|
|
132
|
+
is a first-class metric.
|
|
133
|
+
|
|
134
|
+
## L2 — conditional efficacy (the paired A/B core)
|
|
135
|
+
|
|
136
|
+
Measured with the Skill force-injected (`eval --mode inject`, the compatible default), isolating content quality from routing.
|
|
137
|
+
`eval --mode installed` uses the same paired statistics but measures native discovery plus complete
|
|
138
|
+
Skill resources, so its delta is realized task efficacy under the recorded environment, not efficacy
|
|
139
|
+
conditional on guaranteed activation. Keep these delivery surfaces distinct when comparing studies.
|
|
140
|
+
|
|
141
|
+
- **ΔP** = treatment pass rate − baseline pass rate (per task, then pooled).
|
|
142
|
+
- **ρ** = (tokens_treatment − tokens_baseline) / tokens_baseline, input and output separately.
|
|
143
|
+
- **pass@1** (mean pass rate) and **pass^k** (all k trials pass — reliability the user actually pays for).
|
|
144
|
+
pass@k is *not* a headline metric: it hides variance that costs real tokens in agent settings.
|
|
145
|
+
- Per-task numbers are **descriptive** (a few trials can never be significant alone); inference happens only
|
|
146
|
+
at bench level (§4).
|
|
147
|
+
|
|
148
|
+
### Facet scores (graded outcome signal)
|
|
149
|
+
|
|
150
|
+
A verifier may decompose its acceptance criteria into named **checks** and report them in its JSON summary:
|
|
151
|
+
`{"passed": bool, "checks": [{"name": string, "pass": bool}]}`. The trial **score** is the fraction of
|
|
152
|
+
checks passed ∈ [0,1]. A bench should carry 2–8 checks per task — the bound `bench check` warns on
|
|
153
|
+
when it is violated, because one check degenerates to the binary signal facets were introduced to
|
|
154
|
+
replace, and a long tail lets an arbitrary subset dominate the score.
|
|
155
|
+
|
|
156
|
+
- **The exit code remains the sole pass/fail authority** — checks never flip a verdict, and the McNemar
|
|
157
|
+
protocol below is unchanged. When the exit code and the checks disagree, the run records a warning and
|
|
158
|
+
the exit code wins. This is the Skill2Env rubric lesson applied: graded signals must be *programmatic*
|
|
159
|
+
(its LLM-judged rubric reward cost 4pp of task pass rate), so the judge is never a check source.
|
|
160
|
+
- **Δscore** = treatment mean score − baseline mean score, reported per task (descriptive) and pooled at
|
|
161
|
+
bench level with a paired bootstrap 95% CI (tasks as the resampling unit, ≥1000 resamples, seeded) —
|
|
162
|
+
the same protocol as ΔP, one level down in granularity. Trials without checks are excluded pairwise:
|
|
163
|
+
a trial stays in Δscore only when both arms scored it, so the denominators match. A task enters the
|
|
164
|
+
CI only when that leaves at least one scored pair.
|
|
165
|
+
- Equal weight per check, per bench version: the check list is frozen by the bench content hash, and the
|
|
166
|
+
report prints the per-facet table so the weighting is transparent rather than hidden.
|
|
167
|
+
- Why bother: at personal sample sizes binary ΔP rarely reaches significance; graded scores carry several
|
|
168
|
+
bits per trial and resolve effects pass/fail cannot (Skill2Env Table 1: graded mean moved ~4× more than
|
|
169
|
+
pass@1 under the same treatment). Scores do not fix *saturation* — a facet the baseline always passes is
|
|
170
|
+
1.0 on both arms — which is why facet-saturation warnings exist (L0).
|
|
171
|
+
|
|
172
|
+
## L3 — realized value (the "should I install it" answer)
|
|
173
|
+
|
|
174
|
+
`EV ≈ P(trigger | relevant) · ΔP · V − P(trigger) · C_body − P(false trigger) · (C_body + δ_derail · V) − C_metadata`
|
|
175
|
+
|
|
176
|
+
- `V` = value of one task pass (user-set; default 1), `C_body` = tokens of the loaded skill body,
|
|
177
|
+
`δ_derail` = quality loss from a false trigger (bounded by observed negative deltas, up to −10pp in
|
|
178
|
+
SWE-Skills-Bench), `C_metadata` = always-on routing cost ≈ 30–50 tokens/skill/turn.
|
|
179
|
+
- **Cost-of-pass** per arm: `v = mean cost / pass rate`; report `v_treatment / v_baseline` (replaces
|
|
180
|
+
ΔP/ρ, which is unstable near ρ = 0; after the [cost-of-pass](https://openreview.net/pdf?id=vC9S20zsgN)
|
|
181
|
+
formulation).
|
|
182
|
+
- Honest budget rule: at individual-user sample sizes, **cost claims are provable, quality claims are
|
|
183
|
+
bounded** (token deltas reach significance far more easily than pass-rate deltas — cf. the
|
|
184
|
+
[ETH AGENTS.md study](https://arxiv.org/abs/2602.11988): −3% quality not significant, +20% cost
|
|
185
|
+
significant at p<0.001). Reports say which of the two a verdict rests on.
|
|
186
|
+
|
|
187
|
+
## L4 — judge (soft quality, optional)
|
|
188
|
+
|
|
189
|
+
The deterministic verifier is the sole pass/fail authority; the judge never flips a verdict. This is not
|
|
190
|
+
just conservatism: Skill2Env's rubric arm (LLM-judged process score mixed into the reward at fixed
|
|
191
|
+
weight) *reduced* task pass rates relative to outcome-only training — process-signal contamination of
|
|
192
|
+
outcome optimization is a measured failure mode, not a hypothetical one.
|
|
193
|
+
|
|
194
|
+
- Blind pairwise comparison, **AB/BA position-swapped** double call; winner only on consistent verdicts,
|
|
195
|
+
else tie ([Zheng et al.](https://arxiv.org/abs/2306.05685)).
|
|
196
|
+
- k=3 samples per side; ties conservative ([Markham 2026](https://arxiv.org/html/2604.13717v3)).
|
|
197
|
+
- Judge model must come from a **different family** than the agent under test
|
|
198
|
+
([self-preference bias](https://arxiv.org/abs/2404.13076)).
|
|
199
|
+
- **Binary rubric checklists**, not 1–10 Likert scales ([Husain](https://hamel.dev/blog/posts/llm-judge/index.html)).
|
|
200
|
+
- Calibration gate: a bench's rubric needs ≥30 human-labeled examples; report Cohen's κ, warn below 0.6
|
|
201
|
+
([Thakur et al.](https://arxiv.org/abs/2406.12624)).
|
|
202
|
+
- Agent output is **fenced**, not merely quoted: each answer sits between nonce-delimited
|
|
203
|
+
`<<<BEGIN ANSWER A …>>>` / `<<<END ANSWER A …>>>` markers (fresh random nonce per judge call, so an
|
|
204
|
+
answer cannot reproduce them), and the prompt states that the blocks are untrusted data whose embedded
|
|
205
|
+
instructions and JSON must be disregarded. The checklist is parsed from the **last** JSON object in the
|
|
206
|
+
judge's reply rather than the first match anywhere, so an answer that gets echoed while the judge reasons
|
|
207
|
+
cannot take the verdict. Judge input remains a prompt-injection surface: this closes the accidental
|
|
208
|
+
collision and raises the cost of a deliberate one, and it does not make an untrusted judge trustworthy.
|
|
209
|
+
|
|
210
|
+
Implementation status (2026-09-22): blind pairwise with **AB/BA position-swapped double calls and
|
|
211
|
+
winner-only-if-unanimous aggregation** is implemented (`--judge-agent` drives any matrix agent CLI, or
|
|
212
|
+
`SKILLFIT_JUDGE=1` + API key; means are computed over unanimous trials only and `consistentTrials` is
|
|
213
|
+
reported per task). Blinding is enforced on the filesystem, not just in the prompt (2026-09-25): a CLI
|
|
214
|
+
judge has file tools, so it runs in a fresh temporary directory containing only `answerA.md` and
|
|
215
|
+
`answerB.md`, never in the run group where both arms' `_output.md` and `_result.json` (which names the
|
|
216
|
+
condition and the evaluation-target hash) are reachable. The directory is removed after the pair is judged;
|
|
217
|
+
`judge-trial-N.json` is written to the task directory afterwards. The judge scores answers with a **binary checklist** (`correct` / `complete` /
|
|
218
|
+
`grounded`, 0–3 per answer) instead of a Likert scale. The k=3 majority-ensemble recommendation was
|
|
219
|
+
**considered and rejected**: a position-biased judge can still win a 2-of-3 majority by order luck,
|
|
220
|
+
which hides the bias inside the vote instead of surfacing it; the unanimous AB/BA gate is stricter and
|
|
221
|
+
reports `consistentTrials` as the bias signal. The κ calibration gate remains open.
|
|
222
|
+
|
|
223
|
+
## Verdict protocol (what "effective" means)
|
|
224
|
+
|
|
225
|
+
- Collect discordant pairs across the bench: `b` = pairs where only treatment passed, `c` = pairs where only
|
|
226
|
+
baseline passed.
|
|
227
|
+
- **McNemar exact test** (two-sided binomial on b+c): `p = 2 · P(X ≥ max(b,c))`, X ~ Binomial(b+c, 0.5).
|
|
228
|
+
- If `b + c < 6`, significance is unattainable (best possible p = 0.031 at 6/0) → verdict `inconclusive`,
|
|
229
|
+
reason states the discordant count.
|
|
230
|
+
- Verdict `effective` iff p < 0.05 and ΔP > 0; `ineffective` iff p < 0.05 and ΔP < 0; else `inconclusive`.
|
|
231
|
+
- Always report alongside: b/c counts, **paired bootstrap 95% CI** for ΔP (≥1000 resamples over tasks,
|
|
232
|
+
seeded and deterministic, pairs kept together), the **paired bootstrap 95% CI for Δscore** when the
|
|
233
|
+
bench emits checks, and the observed CI half-width. A bootstrap half-width is not a validated
|
|
234
|
+
minimum detectable effect. A collapsed Δpass or Δscore interval can arise when the observed tasks/pairs lack
|
|
235
|
+
variation, and must not be presented as zero uncertainty or arbitrarily fine resolution. This
|
|
236
|
+
interpretation guard changes no CI or verdict calculation.
|
|
237
|
+
- Scale labels: below 5 trials × 8 tasks, results are stamped **indicative**, not conclusive
|
|
238
|
+
(completed graded pairs after exclusions, rather than requested repetitions).
|
|
239
|
+
(SkillsBench norm: 5 trials/task). The exact-test verdict and this scale label answer different
|
|
240
|
+
questions: an `effective` or `ineffective` verdict can occur below the scale bar, but then it is a
|
|
241
|
+
within-bench statistical signal, **not** a claim that the configuration generalizes to a user's
|
|
242
|
+
broader task mix. The CLI defaults to 5 trials per condition; 5 is a starting point, not a power
|
|
243
|
+
guarantee. Add representative, discriminative tasks before multiplying repetitions of a narrow
|
|
244
|
+
fixture. Review the CI width, discordant pairs, baseline ceiling/floor, and errors before any
|
|
245
|
+
efficacy claim. Predeclare the task set and trial count; adding trials after seeing the p-value
|
|
246
|
+
until it crosses a threshold invalidates the nominal 0.05 interpretation.
|
|
247
|
+
- Manifest `schemaVersion: 4` carries a typed evaluation target (`skill`, `rules`, or `mcp`), its
|
|
248
|
+
content hash and file list, plus per-trial pass flags and per-trial facet scores per
|
|
249
|
+
(task, condition) so all of the above is recomputed from raw outcomes, never from aggregates. Those
|
|
250
|
+
arrays hold **graded trials only** — an errored pair is removed from both arms, so the two arrays stay
|
|
251
|
+
index-aligned and re-pairing from the manifest is correct, but an index is no longer a trial number.
|
|
252
|
+
Each condition also reports `errors` alongside `trials`, and the per-trial `_result.json` files remain
|
|
253
|
+
the authoritative record of which trial was dropped and why.
|
|
254
|
+
|
|
255
|
+
## Bench composition guidance (for authors and the upcoming scaffolding tooling)
|
|
256
|
+
|
|
257
|
+
These are the targets. [bench-authoring.md](bench-authoring.md) is the walkthrough that gets a bench to
|
|
258
|
+
them, step by step, on one real task.
|
|
259
|
+
|
|
260
|
+
- 20–50 tasks drawn from real failures is a healthy personal bench
|
|
261
|
+
([Anthropic](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents)); grow from observed
|
|
262
|
+
failures, stop at theoretical saturation.
|
|
263
|
+
- ≥30% negative-trigger tasks once L1 lands; difficulty mix roughly 50% easy / 30% medium / 20% hard.
|
|
264
|
+
- Adopt [SkillsBench's contribution gates](https://arxiv.org/html/2602.12670v1): human-authored prompts
|
|
265
|
+
(LLM-written tasks under-measure the model), oracle solution passes the verifier at 100% (**enforced
|
|
266
|
+
when registered**: `bench check` fails a task whose oracle-solved fixture does not exit 0 with every
|
|
267
|
+
check passing, and *warns* on a task that registers no oracle at all, since winnability is then
|
|
268
|
+
unverified — a warning rather than a failure because `bench add --freeze` legitimately produces
|
|
269
|
+
oracle-less tasks mid-authoring; the NOP half, verifier must fail the untouched fixture, is enforced
|
|
270
|
+
unconditionally), minimal deterministic assertions, realistic data, anti-cheat layout (tests and ground truth
|
|
271
|
+
never enter the fixture), grade the outcome not the path. An agent may *draft* the verifier + oracle
|
|
272
|
+
(`bench add --freeze --decompose`), but the draft is admitted only after both gates pass locally, and a
|
|
273
|
+
bench generated from the skill under test is inadmissible for efficacy claims (same-distribution
|
|
274
|
+
contamination — the S2EBench lesson).
|
|
275
|
+
- Layout stays [Harbor](https://github.com/harbor-framework/benchmark-template)-compatible so personal
|
|
276
|
+
benches can graduate into shared benchmark tooling.
|
|
277
|
+
|
|
278
|
+
## Workspace configuration experiments
|
|
279
|
+
|
|
280
|
+
Paired runs can select `--input workspace` to present task files on disk without
|
|
281
|
+
an inline snapshot. CLI executors only; the compatible default remains
|
|
282
|
+
`snapshot`. Calibration must use the same selection. New v4 manifests and trial
|
|
283
|
+
receipts record `inputMode`; its absence in an older manifest is reported as
|
|
284
|
+
legacy/not recorded. Skill content remains force-injected in the treatment, so
|
|
285
|
+
this changes task presentation, not L1/L2 or the statistical verdict protocol.
|
|
286
|
+
The initial workspace prompt estimate excludes subsequent tool reads and replies.
|
|
287
|
+
|
|
288
|
+
Paired `--mode installed` is a separate, opt-in delivery surface for Skill/CLI experiments and
|
|
289
|
+
requires workspace input. Prompts remain identical; only treatment receives the complete Skill at
|
|
290
|
+
the matrix-defined project directory. Compatible v4 `skillDelivery` metadata records the selection
|
|
291
|
+
and directory. Here `target.bundleSha256/files` fingerprint all regular resources (sorted relative
|
|
292
|
+
paths and bytes, including scripts and binary assets; excluding permissions and empty directories).
|
|
293
|
+
Per-run receipts retain nullable mechanical activation observations and available raw transcripts.
|
|
294
|
+
Source drift, unsafe paths, symlinks and fixture collisions fail before the affected agent call.
|
|
295
|
+
Inherited agent configuration is not isolated, and installation does not guarantee activation.
|
|
296
|
+
Old v4 manifests and inject mode retain their existing interpretation. Paired tests, scale labels,
|
|
297
|
+
error exclusions, CI calculations and verdict semantics above are unchanged. See
|
|
298
|
+
[installed-skill-evaluation.md](installed-skill-evaluation.md) for usage and limits.
|
|
299
|
+
|
|
300
|
+
New condition summaries also record `tokenCoverage.input/output`: the number of
|
|
301
|
+
graded surviving runs that supplied each field. Existing `tokens` totals and
|
|
302
|
+
verdict semantics are unchanged. Missing or partial coverage cannot establish a
|
|
303
|
+
complete overhead claim; legacy totals without coverage are shown as unrecorded.
|
|
304
|
+
|
|
305
|
+
Rules and MCP targets use the same paired statistics as Skill targets but a different treatment
|
|
306
|
+
mechanism. Both arms start from the same fixture and receive an identical prompt snapshot. The
|
|
307
|
+
baseline/treatment project overlays are applied only after that snapshot, so the local CLI must load
|
|
308
|
+
the configuration through its real project path. API executors are inadmissible because they cannot
|
|
309
|
+
observe workspace configuration. See [config-experiments.md](config-experiments.md).
|
|
310
|
+
|
|
311
|
+
`mcp check` is a protocol and catalog preflight, not an efficacy result. It proves that a compatible
|
|
312
|
+
stdio server initializes and exposes structurally usable tool definitions without calling a tool.
|
|
313
|
+
Only a paired task experiment can support a claim that the MCP setup improves outcomes.
|
|
314
|
+
|
|
315
|
+
## Non-goals (v1)
|
|
316
|
+
|
|
317
|
+
No cross-model leaderboards, no hosted dashboards, no trajectory-level scoring. skillfit answers one
|
|
318
|
+
question per user: *is this configuration worth enabling for my agent on my tasks?*
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Evaluate a Skill on a real OSS task
|
|
2
|
+
|
|
3
|
+
This workflow measures a pinned task on your agent. It produces inspectable
|
|
4
|
+
observations and evidence gaps, not a guaranteed yes/no answer from one task.
|
|
5
|
+
Use a broader frozen task set before claiming general benefit for OSS work.
|
|
6
|
+
|
|
7
|
+
For Skills that include scripts/assets, use [paired installed delivery](installed-skill-evaluation.md)
|
|
8
|
+
with `--mode installed --agent <id>` to compare complete resources and native discovery. The default
|
|
9
|
+
`inject` mode measures supplied text; do not mix the two measurements or assume installation guarantees activation.
|
|
10
|
+
|
|
11
|
+
## 1. Preserve the request and starting state
|
|
12
|
+
|
|
13
|
+
Choose a real failure independently of the Skill you want to test. Save the
|
|
14
|
+
original issue request as `issue.md`, omitting the solution discussion. Record
|
|
15
|
+
the repository URL, pre-fix commit, relevant environment and where the request
|
|
16
|
+
came from. If you paraphrase it, retain both versions and explain the changes.
|
|
17
|
+
|
|
18
|
+
For a historical fix that includes regression tests:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
skillfit bench init my-oss-bench --dry-run
|
|
22
|
+
skillfit bench init my-oss-bench --yes
|
|
23
|
+
skillfit bench add my-oss-bench --from-commit <fix-sha> --source-dir <local-repo> --prompt-file issue.md --dry-run
|
|
24
|
+
skillfit bench add my-oss-bench --from-commit <fix-sha> --source-dir <local-repo> --prompt-file issue.md --yes
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The parent is the fixture; the fix's tests remain hidden in the verifier. The
|
|
28
|
+
supplied request replaces the fix commit message, which may reveal the solution.
|
|
29
|
+
Without it, the old commit-message behavior remains. The importer normalizes
|
|
30
|
+
trailing whitespace/newlines as it does for frozen tasks.
|
|
31
|
+
|
|
32
|
+
Commit mining keeps its existing 200-file / 1-MB cap; use `--include` or author
|
|
33
|
+
a prepared fixture for larger tasks. `--input workspace` changes presentation
|
|
34
|
+
during evaluation, not those importer limits. For an unresolved failure, use
|
|
35
|
+
`bench add --freeze` with an executable verifier and a reference repair; see
|
|
36
|
+
[bench authoring](bench-authoring.md). Keep enough callers and dependencies to
|
|
37
|
+
exercise the actual defect. Explain any mocks or extracted code in provenance.
|
|
38
|
+
|
|
39
|
+
## 2. Review the acceptance contract and offline environment
|
|
40
|
+
|
|
41
|
+
Map each of 2–8 checks to a requirement in the issue or an explicit behavior to
|
|
42
|
+
preserve. A merged PR can contain extra improvements: do not silently require
|
|
43
|
+
them when the original issue never asked for them. Hidden assertions with an
|
|
44
|
+
unreviewed contract can mistake a reasonable repair for a failed task.
|
|
45
|
+
|
|
46
|
+
Register an oracle command in `bench.json`. Run:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
skillfit bench check my-oss-bench
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The untouched fixture must fail and the reference must pass every check.
|
|
53
|
+
For coding tasks, check the resulting files and real regression tests; narration
|
|
54
|
+
about writing tests is not a substitute. Keep verifiers and reference repairs
|
|
55
|
+
outside the fixture. Preserve source licenses and pinned source hashes.
|
|
56
|
+
|
|
57
|
+
Prepare a self-contained offline runtime **before** measuring. The harness copies
|
|
58
|
+
files and runs commands; it does not install packages, containers or services.
|
|
59
|
+
Neither import path automatically vendors dependencies. A task that needs an
|
|
60
|
+
unavailable library or build step is not ready. Dependency setup and runtime
|
|
61
|
+
stubs must be identical in both arms and recorded. Any prepared binary assets
|
|
62
|
+
stay on disk in workspace mode; they are not converted into prompt text.
|
|
63
|
+
|
|
64
|
+
## 3. Select presentation, pin the inputs and inspect the plan
|
|
65
|
+
|
|
66
|
+
For CLI coding agents, prefer files on disk:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
skillfit eval <skill-dir> --bench my-oss-bench --agent codex --input workspace --trials 5 --dry-run
|
|
70
|
+
skillfit bench check my-oss-bench --calibrate --agent codex --input workspace --trials 3 --dry-run
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`workspace` skips repository snapshot creation entirely. Both arms receive the
|
|
74
|
+
same request and copied fixture; treatment additionally receives the Skill's
|
|
75
|
+
force-injected content. `snapshot` remains the default for compatibility and API
|
|
76
|
+
text tasks. Workspace requires a CLI executor; trigger mode already uses disk
|
|
77
|
+
files and rejects explicit `--input`. This is presentation, not a new security
|
|
78
|
+
sandbox. The agent's own permissions and inherited configuration still apply.
|
|
79
|
+
|
|
80
|
+
Review the hashes, total agent calls and initial prompt estimate. Workspace
|
|
81
|
+
estimates omit subsequent file reads, replies and retries. Record CLI version,
|
|
82
|
+
configured model/reasoning, sandbox, timeout and inherited rules/Skills/MCP.
|
|
83
|
+
An unknown served model should be reported as unknown. Remove treatment
|
|
84
|
+
contamination through a controlled profile rather than editing your daily setup.
|
|
85
|
+
Pin the bench, Skill and runner revision before the run; avoid rebuilding the
|
|
86
|
+
runner or editing task files while calls are in progress.
|
|
87
|
+
|
|
88
|
+
## 4. Calibrate, then declare a separate validation run
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
skillfit bench check my-oss-bench --calibrate --agent codex --input workspace --trials 3
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Calibration uses the same disk presentation with no injected Skill and records
|
|
95
|
+
`inputMode` in its baseline receipts. A few calls are a pilot, not a reliable
|
|
96
|
+
difficulty estimate. Inspect errors before ceiling/floor warnings. Preserve all
|
|
97
|
+
pilot results. If you revise prompts/checks, pin a new version and do not pool
|
|
98
|
+
results across versions. Add independent real failures when a task saturates;
|
|
99
|
+
do not rewrite tasks until the Skill wins.
|
|
100
|
+
|
|
101
|
+
Freeze the task set and trial count for a separate validation. The protocol's
|
|
102
|
+
scale bar is 8 distinct tasks × 5 trials per condition; that is 80 calls and still
|
|
103
|
+
does not guarantee sufficient power. A single task can only inform that task.
|
|
104
|
+
|
|
105
|
+
## 5. Run and inspect the decision
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
skillfit eval <skill-dir> --bench my-oss-bench --agent codex --input workspace --trials 5
|
|
109
|
+
skillfit report eval <manifest-path>
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
The report shows pass counts, mean check scores, each check's denominator,
|
|
113
|
+
uncertainty, errors, presentation and token coverage. Its installation section
|
|
114
|
+
separates observed quality from missing evidence. `inconclusive` means the run
|
|
115
|
+
does not reliably distinguish a benefit or regression; it does not mean the
|
|
116
|
+
Skill is ineffective. Preserve raw manifests and each arm's receipts alongside
|
|
117
|
+
the pinned inputs. `report eval` is read-only and never reruns the agent.
|
|
118
|
+
|
|
119
|
+
For a Skill, force injection measures conditional quality. Separately prepare
|
|
120
|
+
relevant and negative-trigger tasks, then measure natural activation:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
skillfit eval <skill-dir> --bench <trigger-bench> --agent codex --mode trigger --trials 5 --dry-run
|
|
124
|
+
skillfit eval <skill-dir> --bench <trigger-bench> --agent codex --mode trigger --trials 5
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Trigger mode is a single arm, not a quality comparison. It currently does not
|
|
128
|
+
reproduce competition from your complete installed Skill set. Usage totals with
|
|
129
|
+
missing fields or unknown coverage cannot establish complete token overhead;
|
|
130
|
+
even complete usage is not a billing estimate. Maintainer acceptance, code review
|
|
131
|
+
and deployment outcomes remain separate from this offline task experiment.
|
|
132
|
+
|
|
133
|
+
## Reproducible starting example
|
|
134
|
+
|
|
135
|
+
[`oss-mcp-use-utf8`](../benches/contrib/oss-mcp-use-utf8/README.md) includes pinned
|
|
136
|
+
real source, a local runtime adaptation, an eight-check contract and an oracle.
|
|
137
|
+
Its earlier baseline saturated, so use it to validate the workflow and guard
|
|
138
|
+
regressions, not to establish Skill lift. The vendored Matt input is an evaluation
|
|
139
|
+
fixture and does not install anything into your agent.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Real OSS task evaluation — implementation plan
|
|
2
|
+
|
|
3
|
+
Date: 2026-10-01. Owner: the “检查 Codex MCP 和 Skills 配置” session.
|
|
4
|
+
Integration and review: the “按审计工单执行各波修复” session.
|
|
5
|
+
Base: `628bf69` (includes the five-trial default and Codex writable sandbox).
|
|
6
|
+
|
|
7
|
+
## Outcome
|
|
8
|
+
|
|
9
|
+
Turn a pinned real coding task into a repeatable local Skill comparison, with a
|
|
10
|
+
report that explains what the observations support and what remains unmeasured.
|
|
11
|
+
A single task can inform a decision about that task; it cannot establish general
|
|
12
|
+
OSS contribution efficacy. Maintainer acceptance is outside this experiment.
|
|
13
|
+
|
|
14
|
+
## Work, in order
|
|
15
|
+
|
|
16
|
+
1. **Preserve real task presentation.** Add `eval --input workspace` for paired
|
|
17
|
+
CLI experiments. Both arms get the same task request and identical copied
|
|
18
|
+
files; they inspect files on disk instead of receiving an inline repository.
|
|
19
|
+
Treatment still force-injects Skill content so activation remains a separate
|
|
20
|
+
measurement. Retain `snapshot` as the compatible default. Reject unsupported
|
|
21
|
+
API and trigger combinations before a run. Record the input mode in receipts
|
|
22
|
+
and the manifest, and expose it in dry-run plans and Markdown reports. Give
|
|
23
|
+
baseline calibration the same option so calibration and evaluation match.
|
|
24
|
+
2. **Preserve the issue request when importing a fix.** Honor the existing
|
|
25
|
+
`--prompt` / `--prompt-file` options for `bench add --from-commit`. Do not force
|
|
26
|
+
a fix commit's subject/body into the task when an original issue prompt was
|
|
27
|
+
supplied. Keep the pre-fix fixture and hidden fix tests unchanged.
|
|
28
|
+
3. **Make the decision understandable.** Extend `report eval` with recorded facet
|
|
29
|
+
scores and a bounded installation decision: synthetic runs, executor errors,
|
|
30
|
+
saturation, sample size, missing activation and missing token cost must be
|
|
31
|
+
visible. Preserve the frozen statistical verdict protocol and existing v4
|
|
32
|
+
manifests; do not equate an inconclusive result with an ineffective Skill.
|
|
33
|
+
4. **Ship a reproducible real case.** Move the previously calibrated mcp-use
|
|
34
|
+
Unicode HTML resource case into a self-contained bench with pinned source,
|
|
35
|
+
license/provenance, a requirements-to-check mapping, a reference repair and
|
|
36
|
+
offline NOP/oracle gates. It is a workflow/regression example, not a new
|
|
37
|
+
difficulty claim. Run one predeclared workspace A/B pair with the pinned Matt
|
|
38
|
+
`diagnosing-bugs` Skill to verify the new path, and write a new dated report.
|
|
39
|
+
Keep the earlier exploratory evidence and raw runs unchanged.
|
|
40
|
+
5. **Document and hand off.** Explain the import → check → calibrate → fixed
|
|
41
|
+
paired run → activation → report workflow, including dependency preparation,
|
|
42
|
+
environment caveats and single-task scope. Mirror user-visible flags in all
|
|
43
|
+
five READMEs. Run the full offline suite and bench checks, commit on
|
|
44
|
+
`codex/oss-task-evaluation`, and send the implementation, validation results,
|
|
45
|
+
evidence and open limitations to the integration session for review/merge.
|
|
46
|
+
|
|
47
|
+
## Acceptance
|
|
48
|
+
|
|
49
|
+
- A CLI executor sees no fixture source text in a workspace prompt, can edit the
|
|
50
|
+
copied fixture, and is graded afterward; baseline/treatment fixtures match.
|
|
51
|
+
- Existing snapshot experiments retain their presentation and scoring semantics.
|
|
52
|
+
- Unsupported combinations fail before creating output directories.
|
|
53
|
+
- Calibration and paired runs use the same selected input presentation.
|
|
54
|
+
- A supplied issue request survives commit import without fix-message hints;
|
|
55
|
+
existing trailing whitespace/newline normalization is retained.
|
|
56
|
+
- Real bench: untouched fixture fails; reference solution passes every check;
|
|
57
|
+
regression tests fail again when the original source is restored.
|
|
58
|
+
- Reports show per-facet observations, input mode and actionable evidence gaps
|
|
59
|
+
without changing `effective` / `ineffective` / `inconclusive` semantics.
|
|
60
|
+
- `npm test` is fully green before commits; tests call no real model or agent CLI.
|
|
61
|
+
- One real paired smoke run is separate from tests and clearly labelled indicative.
|
|
62
|
+
- The main checkout's three evidence drafts stay intact. This session does not
|
|
63
|
+
merge; the integration session owns conflict resolution and merge.
|
|
64
|
+
|
|
65
|
+
## Boundaries and deferred work
|
|
66
|
+
|
|
67
|
+
No global Skill installation, upstream contribution PR, npm publication, new
|
|
68
|
+
runtime dependency, automatic network dependency installation or unplanned
|
|
69
|
+
80-call experiment. Full installed-Skill competition, verified model identity,
|
|
70
|
+
complete environment isolation and a sufficiently varied efficacy benchmark
|
|
71
|
+
remain further work. Workspace presentation removes prompt inlining; it does
|
|
72
|
+
not make arbitrary repositories dependency-free or prevent a CLI from accessing
|
|
73
|
+
resources allowed by its own sandbox.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Reusable experiment workflow and independent OSS cases
|
|
2
|
+
|
|
3
|
+
## Authority, base and write plan
|
|
4
|
+
|
|
5
|
+
The user approved the next iteration after the completed installed-Skill pilot. Work on codex/experiment-workflow in the attached worktree, based on e47d15c51c4584432baa7dfd64d7037e6cc97815. Preserve the primary checkout and previous branches. Source, dist, index and starting state are backed up in /private/tmp/skillfit-workflow-backup-xhGqXf. New files have absent preimages; preserve modified preimages again for repair iterations. Verify edits, run npm test before commits, and hand off to the existing approval session for independent review and local integration. No remote push or npm release.
|
|
6
|
+
|
|
7
|
+
## Smallest complete delivery
|
|
8
|
+
|
|
9
|
+
1. Extend existing eval (paired and trigger) with one optional --max-calls ceiling. Reject a planned experiment exceeding it before filesystem/model writes. Count both executor and optional AB/BA judge calls; do not truncate a task set, retry errored runs or resume with new samples. The default ceiling is the declared number of calls.
|
|
10
|
+
2. Automatically retain a frozen plan, non-secret runtime/configuration fingerprints, an append-only call ledger, final session state and file-hash index under the fresh run group. Pin target resources, bench inputs and implementation files. Validate before every model/judge call; stop further calls on input/environment drift or executor failures and preserve receipts. A partial or stopped run is never installation evidence. No isolation guarantee or global configuration writes.
|
|
11
|
+
3. All agent-specific version commands, paths, selected configuration keys and the controlled project trust exception come from the agent matrix; bump verifiedAt with primary documentation. Record hashes, allowlisted model/settings only, never authentication data or raw configuration contents. Ignore only pure trusted blocks for predeclared disposable workspaces, leaving every other configuration byte covered. Mock/injected tests use temporary roots/probes and never call real CLIs.
|
|
12
|
+
4. Retain optional mechanical Skill-read counts on surviving graded pairs in compatible v4 metadata. Reports distinguish read-observed/read-unobserved/unknown, show the frozen run's completion/call coverage and give concrete next actions for errors, saturation and insufficient evidence. Existing verdict formulas/protocol and legal legacy v4 rendering remain unchanged. No recommendation from unverified or partial runs.
|
|
13
|
+
5. Prepare three independently sourced historical OSS failures, starting from pinned upstream bug/fix commits rather than Skill instructions. Include original requirements/provenance/license, deterministic Node-based verifiers, reference solutions and anti-tamper controls. Use async barriers/injected clocks rather than time-sensitive grading. Retain full relevant source, document any extraction/runtime adaptation and claim limits. Difficulty remains unknown until measured.
|
|
14
|
+
6. Offline tests cover budgets including judges, no writes on rejected plans, ledger caps, per-call source/config drift, controlled trust registration, failure stops, artifacts on partial errors, per-arm read counts, old manifest compatibility, and NOP/oracle/counterexample gates for the new tasks.
|
|
15
|
+
|
|
16
|
+
## Calibration after independent grader review
|
|
17
|
+
|
|
18
|
+
Predeclare at most six real baseline calls (three tasks x two trials), using the same workspace/CLI/runtime as installed evaluation and no evaluated Skill in baseline. No replacements; keep errors and saturation. If all tasks saturate, retain them as regressions and report the difficulty-selection result. Do not expand into paired validation until a separate fixed task set, budget and protocol are declared; calibration is not confirmatory evidence. Existing published evidence remains untouched.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Calibration grader audit amendment
|
|
2
|
+
|
|
3
|
+
The user authorized the experiment-workflow iteration. After independently approved implementation 7fdf25b, six predeclared baseline executions completed without errors or replacements in calibrate-20261009-42194. Original inputs, receipts, scores, ledger and artifact hashes are retained unchanged under /Users/stevenhuang/code/skillfit/runs/experiment-workflow-20261009/original and frozen-inputs-7fdf25b.tar. Do not treat the original apparent pass-rate floor as difficulty or Skill headroom: independent approval review reproduced two grader P2 defects.
|
|
4
|
+
|
|
5
|
+
Write plan: after the frozen run finishes, back up current grader, tests, prompt/docs preimages to /private/tmp/skillfit-workflow-backup-xhGqXf/grader-before-audit.tar. Use absent preimages for new files. Compare cancellation rejection with the actual AbortSignal.reason, without unspecified text requirements. Use Node's trusted structured reporter to match actual leaf tests by relative file, full parent path and name; require unique identities and at least one submission-pass/original-assertion-fail/reference-pass witness. The complete submitted suite must pass without skip/todo/cancellation; import failures, process exits, cancellations and killed/timeout executions cannot supply the original failure witness. A stronger submitted suite may contain other tests that fail on the imperfect reference fix. Never parse stdout/stderr/diagnostic text as test events.
|
|
6
|
+
|
|
7
|
+
Offline regressions: default and explicit abort reasons, stronger mixed suites, unrelated-field marker, duplicate/ambiguous names, skips/todos/cancellations, import failure, early exit and spoofed output. Verify on bench minimum Node 22.13 plus current Node 24, with no new dependencies. Run npm test, recheck public smoke compatibility, and append offline regrade results under a new audit directory with its own grader hash and index. Keep all original records intact. This is post hoc diagnostic correction, not a new calibration or validation run; zero additional model calls and no Skill efficacy conclusion.
|
|
8
|
+
|
|
9
|
+
Send concrete implementation and both original/corrected evidence to the existing approval session for independent review and local integration. No push or npm publication.
|
|
10
|
+
|
|
11
|
+
Minimum-version verification found Node 22.13 cannot strip the historical type-only namespace. Switch only the local loader to built-in transform mode, preserving upstream source/license bytes. Archived trial adapters and original grading remain untouched. The post hoc offline audit uses frozen original fixtures plus the corrected trusted graders/runtime, so a legitimate adapter compatibility update cannot be misclassified as agent tampering.
|
|
12
|
+
|
|
13
|
+
The stronger lifecycle suite exceeded the original-side whole-file 5-second guard. That timeout is not a failure witness. The grader may instead replay at most two uniquely identifiable named candidates alone on all three sides, accepting only an actual completed original assertion failure and the same submitted/reference pass. The complete submitted suite still has to pass. Targeted filtering and the two-probe ceiling are recorded in the evidence. This is offline verification only, not model/sample retrying.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Waza behavior benches and installed Skill evaluation
|
|
2
|
+
|
|
3
|
+
## Authority and starting point
|
|
4
|
+
|
|
5
|
+
The user approved the proposed behavior benches and complete-resource paired evaluation, and asked about CLI distribution. Implement on codex/waza-skill-evaluation, based on b03ced571a75af49d7dcfeb253c76091794b8b12, using the existing clean attached worktree. Preserve the primary checkout and prior branch. Tracked preimages and generated dist are archived in /private/tmp/skillfit-waza-backup-zomy57q6. Newly created files have absent preimages.
|
|
6
|
+
|
|
7
|
+
## Product direction
|
|
8
|
+
|
|
9
|
+
Keep TypeScript source, a Node.js command-line entry point and npm packaging. Core runtime dependencies remain zero. Shell/Python may be optional user tools or tested Skill resources; they are not required for the skillfit CLI. Package publication is a separate authorized release step, not part of this change.
|
|
10
|
+
|
|
11
|
+
## Implementation plan
|
|
12
|
+
|
|
13
|
+
1. Add paired mode installed for Skill targets and CLI executors. Copy the complete pinned Skill directory, including scripts/assets, only into each disposable treatment workspace at the agent matrix's project Skill location. Baseline and treatment prompts stay identical and receive no injected Skill body. Preserve inject/trigger modes and old manifests.
|
|
14
|
+
2. Reject unsafe paths, symlinks, fixture collisions, source drift and unavailable filesystem executors before model calls where possible. Fingerprint all installed resources and verify the copied bytes. Do not edit global agent configuration or install toolchains. Installed mode measures realized task outcomes with native discovery, not guaranteed activation or sandbox isolation.
|
|
15
|
+
3. Record delivery mode and installation path in compatible v4 metadata and readable reports. Preserve paired statistics, verdict semantics and all published evidence. Preserve available JSONL transcripts as local receipts, without treating absent activation evidence as non-use.
|
|
16
|
+
4. Adapt three Waza behavior cases into offline command benches: explicit hold before commit/push, reuse a valid documentation-check receipt, and recheck a stale receipt. Supply independent command verifiers and reference oracles. Check real files/Git state/receipts, with counterexamples for tempting but wrong actions. Retain provenance and limits; these single-turn tasks do not test authorization persistence across actual interruptions.
|
|
17
|
+
5. Add offline node:test regressions using injected executors/temporary roots. Verify actual script/binary copying, unchanged baseline, identical prompts, collisions/path safety, full hashes, legacy report compatibility and benchmark false-positive/false-negative controls.
|
|
18
|
+
6. Run npm test, offline bench gates and CLI dry-run/report smokes. Review the exact diff and hand off for independent review. Do not publish npm, push GitHub or modify the shared OSS contribution control state.
|
|
19
|
+
|
|
20
|
+
## Live pilot, after implementation gates
|
|
21
|
+
|
|
22
|
+
Use pinned Waza 6b6c736561eaf24c4d1c5360c3c90767ab470805 check/hunt sources, retaining license and all resource hashes. Before any calls, freeze runtime/configuration, prompts, bench/verifier/oracle hashes and stopping plan in a dated runs record. Maximum pilot: three baseline calibration calls (one per behavior task), six check calls (one paired trial per behavior task), and two hunt calls (one pair on the existing real UTF-8 replay): eleven calls, with no significance-chasing replacements. Keep all errors and saturated cases. This pilot checks execution and supports only indicative task-specific observations; it cannot establish general installation benefit. Any missing essential runtime or unreviewed grader blocks its affected calls, not the already-authorized implementation.
|
|
23
|
+
|
|
24
|
+
## Documentation and evidence
|
|
25
|
+
|
|
26
|
+
Document installed mode alongside its inherited-configuration and natural-discovery limitations. Update metrics.md with the new measurement surface while leaving its test and verdict formulas unchanged. Existing evidence is append-only. New empirical claims require actual manifests and receipts; offline tests are engineering verification only.
|
|
27
|
+
|
|
28
|
+
## Implementation gates completed (2026-10-09)
|
|
29
|
+
|
|
30
|
+
- npm test: 372 passed, 0 failed, 0 skipped; includes 7 installed-resource and 4 behavior regression tests. The first full run exposed one stale exact-message assertion for the extended paired-mode error; its expected text was updated and the complete suite rerun.
|
|
31
|
+
- Waza behavior bench: 14 passes, 0 warnings, 0 failures; all three NOP/oracle pairs and 4/5/5 facet contracts passed.
|
|
32
|
+
- Contributed bench gate: both benches pass. The pre-existing UTF-8 bench retains its negative-control warning.
|
|
33
|
+
- CLI installed dry-run: pinned Waza check has 15 resources, workspace input, equal initial prompt estimates and matrix destination .agents/skills/check; no run directory created.
|
|
34
|
+
- Published 2026-10-01 OSS workspace smoke v4 manifest still renders inconclusive with baseline/treatment 1/1. No published evidence was changed.
|
|
35
|
+
- git diff --check passed. No runtime dependency or matrix changes.
|
|
36
|
+
- Real model calls remain pending an independent review of the new graders and an environment/input freeze. Offline results are not efficacy observations.
|
|
37
|
+
|
|
38
|
+
## Independent review follow-up plan (before live calls)
|
|
39
|
+
|
|
40
|
+
Approval session independently reproduced two P2 issues on b009bd8: Kimi's second project Skill directory could contaminate baseline, and inherited core.logAllRefUpdates=false could make a correct hold fail. Backups: pre-review-fixes.tar in the existing backup directory. Check every matrix project Skill directory before either arm (plus explicit installation override). Explicitly enable and verify reflog in disposable Git initialization and the offline hold oracle; Git initialization failure on command tasks becomes an environment error, excluding the pair before any model call. Add offline regressions for alternative paths, a disabled global reflog setting, and unavailable reflog/setup exclusion. Preserve formulas, valid legacy manifests and published evidence. Repeat npm test and bench/report gates; freeze a new pilot plan only after review fixes pass. No live calls have occurred.
|
|
41
|
+
|
|
42
|
+
Review fixes verified: npm test 376/376, no failures or skips. Four new P2 regressions were run against isolated old b009bd8 runtime modules/oracle: 0 passed / 4 failed, as required; the repaired runtime passes all four. Red log: /private/tmp/skillfit-waza-p2-red-zqpeyz7s/red.log. Both contributed bench gates pass (Waza 14/0/0; existing UTF-8 negative-control warning retained). Published smoke report remains byte-identical. The original frozen pilot inputs are retained as superseded pre-call preparation; no model calls occurred before the review fixes.
|
|
43
|
+
|
|
44
|
+
Sibling review found trigger trials also ignored Git initialization failure. Apply the same environment-error guard before the trigger executor, preserving its existing error exclusion and v1 compatibility; add one offline stub regression under forced unavailable reflog, verifying zero calls and zero recall/false-trigger denominator. Back up in pre-trigger-git-fix.tar, repeat full tests and red/green verification. Paired pilot remains unstarted.
|
|
45
|
+
|
|
46
|
+
Trigger sibling verified: command tasks only, preserving output-task behavior. npm test 377/377, no failures/skips. The added trigger regression fails against the old trigger module (red log /private/tmp/skillfit-trigger-p2-red-8gt006h8/red.log) and passes after the guard. An initial test draft overlapped Skill source and output directories; separating those fixtures resolved the test setup error without weakening assertions. Approval session has cleared the two paired-mode P2 fixes and the behavior graders; its remaining trigger finding is fixed here. No live model calls before this commit.
|