skillfit 0.9.1 → 0.10.1
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/README.md +48 -14
- package/README.zh-CN.md +48 -14
- package/benches/README.md +23 -0
- package/benches/contrib/README.md +1 -0
- package/benches/contrib/oss-skill-independent/README.md +60 -0
- package/benches/contrib/oss-skill-independent/bench.json +79 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/LICENSE +22 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/Readme.md +1015 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/esm.mjs +15 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/index.js +27 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/lib/argument.js +147 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/lib/command.js +1944 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/lib/error.js +45 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/lib/help.js +396 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/lib/option.js +208 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/lib/suggestSimilar.js +100 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/package-support.json +16 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/package.json +63 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/typings/index.d.ts +774 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/typings/index.test-d.ts +416 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-async-listener-order/upstream-package.json +69 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/LICENSE +22 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/Readme.md +1149 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/esm.mjs +16 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/index.js +24 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/lib/argument.js +149 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/lib/command.js +2662 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/lib/error.js +39 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/lib/help.js +713 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/lib/option.js +367 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/lib/suggestSimilar.js +101 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/package-support.json +16 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/package.json +71 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/typings/esm.d.mts +3 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/typings/index.d.ts +1045 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/typings/index.test-d.ts +737 -0
- package/benches/contrib/oss-skill-independent/fixtures/commander-output-isolation/upstream-package.json +82 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/index.d.ts +40 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/index.js +68 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/package.json +54 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/readme.md +99 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/upstream-package.json +54 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/vendor/yocto-queue/index.js +67 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/vendor/yocto-queue/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-async-context/vendor/yocto-queue/package.json +46 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/index.d.ts +136 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/index.js +132 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/package.json +57 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/readme.md +181 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/upstream-package.json +58 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/vendor/yocto-queue/index.js +84 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/vendor/yocto-queue/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/limit-map-iteration-rejection/vendor/yocto-queue/package.json +48 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/index.d.ts +136 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/index.js +116 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/package.json +60 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/readme.md +170 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/throttle-sync-throw/upstream-package.json +60 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/index.d.ts +149 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/index.js +93 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/package.json +52 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/readme.md +192 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-custom-timers/upstream-package.json +52 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/index.d.ts +151 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/index.js +114 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/package.json +48 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/readme.md +158 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-infinity-abort/upstream-package.json +48 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/index.d.ts +151 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/index.js +122 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/license +9 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/package.json +50 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/readme.md +190 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/fixtures/timeout-rejection-listener/upstream-package.json +50 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/LICENSE +22 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/Readme.md +1015 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/esm.mjs +15 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/index.js +27 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/lib/argument.js +147 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/lib/command.js +1948 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/lib/error.js +45 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/lib/help.js +396 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/lib/option.js +208 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/lib/suggestSimilar.js +100 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/package-support.json +16 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/package.json +63 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/regression.test.mjs +5 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/typings/index.d.ts +774 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/typings/index.test-d.ts +416 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-async-listener-order/upstream-package.json +69 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/LICENSE +22 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/Readme.md +1149 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/esm.mjs +16 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/index.js +24 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/lib/argument.js +149 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/lib/command.js +2666 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/lib/error.js +39 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/lib/help.js +713 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/lib/option.js +367 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/lib/suggestSimilar.js +101 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/package-support.json +16 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/package.json +71 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/regression.test.mjs +5 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/typings/esm.d.mts +3 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/typings/index.d.ts +1045 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/typings/index.test-d.ts +737 -0
- package/benches/contrib/oss-skill-independent/ground-truth/commander-output-isolation/upstream-package.json +82 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/async-hooks-stub.js +15 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/index.d.ts +40 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/index.js +71 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/package.json +61 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/readme.md +99 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/regression.test.mjs +6 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/upstream-package.json +54 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/vendor/yocto-queue/index.js +67 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/vendor/yocto-queue/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-async-context/vendor/yocto-queue/package.json +46 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/index.d.ts +136 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/index.js +148 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/package.json +57 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/readme.md +181 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/regression.test.mjs +5 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/upstream-package.json +58 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/vendor/yocto-queue/index.js +84 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/vendor/yocto-queue/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/limit-map-iteration-rejection/vendor/yocto-queue/package.json +48 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-commander-async-listener-order.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-commander-output-isolation.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-limit-async-context.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-limit-map-iteration-rejection.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-throttle-sync-throw.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-timeout-custom-timers.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-timeout-infinity-abort.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/oracle-timeout-rejection-listener.mjs +1 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/index.d.ts +136 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/index.js +121 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/package.json +60 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/readme.md +170 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/regression.test.mjs +6 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/throttle-sync-throw/upstream-package.json +60 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/index.d.ts +149 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/index.js +95 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/package.json +52 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/readme.md +192 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/regression.test.mjs +5 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-custom-timers/upstream-package.json +52 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/index.d.ts +151 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/index.js +114 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/package.json +48 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/readme.md +158 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/regression.test.mjs +5 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-infinity-abort/upstream-package.json +48 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/index.d.ts +151 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/index.js +122 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/license +9 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/package.json +50 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/readme.md +190 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/regression.test.mjs +5 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/test.mjs +4 -0
- package/benches/contrib/oss-skill-independent/ground-truth/timeout-rejection-listener/upstream-package.json +50 -0
- package/benches/contrib/oss-skill-independent/prompts/commander-async-listener-order.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/commander-output-isolation.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/limit-async-context.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/limit-map-iteration-rejection.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/throttle-sync-throw.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/timeout-custom-timers.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/timeout-infinity-abort.md +3 -0
- package/benches/contrib/oss-skill-independent/prompts/timeout-rejection-listener.md +3 -0
- package/benches/contrib/oss-skill-independent/provenance.json +1903 -0
- package/benches/contrib/oss-skill-independent/task-specs.json +63 -0
- package/benches/contrib/oss-skill-independent/test-clock.mjs +65 -0
- package/benches/contrib/oss-skill-independent/verifiers/cases.mjs +197 -0
- package/benches/contrib/oss-skill-independent/verifiers/commander-async-listener-order.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/commander-output-isolation.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/grade.mjs +48 -0
- package/benches/contrib/oss-skill-independent/verifiers/limit-async-context.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/limit-map-iteration-rejection.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/probe.mjs +16 -0
- package/benches/contrib/oss-skill-independent/verifiers/regression-evidence.mjs +105 -0
- package/benches/contrib/oss-skill-independent/verifiers/test-reporter.mjs +29 -0
- package/benches/contrib/oss-skill-independent/verifiers/throttle-sync-throw.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/timeout-custom-timers.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/timeout-infinity-abort.mjs +1 -0
- package/benches/contrib/oss-skill-independent/verifiers/timeout-rejection-listener.mjs +1 -0
- package/dist/cli.js +183 -64
- package/dist/commands/bench-check-json.test.js +221 -0
- package/dist/commands/bench-check-report.js +48 -0
- package/dist/commands/bench-command-template.js +129 -0
- package/dist/commands/bench-manage.js +91 -0
- package/dist/commands/bench-manage.test.js +87 -0
- package/dist/commands/bench.js +166 -128
- package/dist/commands/bench.test.js +101 -0
- package/dist/commands/eval-component.js +25 -1
- package/dist/commands/eval-export.js +178 -0
- package/dist/commands/eval-export.test.js +279 -0
- package/dist/commands/eval-interruption.test.js +238 -0
- package/dist/commands/eval-preflight.js +61 -0
- package/dist/commands/eval-preflight.test.js +239 -0
- package/dist/commands/eval-report.js +44 -13
- package/dist/commands/eval-report.test.js +2 -2
- package/dist/commands/eval.js +94 -61
- package/dist/commands/eval.test.js +58 -1
- package/dist/harness/bench.js +21 -2
- package/dist/harness/eval-audit.js +45 -5
- package/dist/harness/eval-budget.js +51 -0
- package/dist/harness/eval-budget.test.js +212 -0
- package/dist/harness/eval-component.test.js +36 -0
- package/dist/harness/eval-contract.js +5 -1
- package/dist/harness/executors/api.js +10 -1
- package/dist/harness/executors/api.test.js +43 -0
- package/dist/harness/executors/cli.js +24 -3
- package/dist/harness/experiment-session.js +60 -9
- package/dist/harness/experiment-session.test.js +43 -1
- package/dist/harness/input-snapshot.js +150 -0
- package/dist/harness/interruption.js +48 -0
- package/dist/harness/interruption.test.js +31 -0
- package/dist/harness/replay-package.js +85 -0
- package/dist/harness/runner.js +74 -15
- package/dist/harness/trigger.js +20 -4
- package/docs/bench-authoring.md +40 -0
- package/docs/bench-check-json.md +122 -0
- package/docs/case-management.md +65 -0
- package/docs/eval-case-preflight.md +110 -0
- package/docs/eval-component.md +88 -49
- package/docs/eval-costs.md +9 -0
- package/docs/evaluation-input-snapshots.md +124 -0
- package/docs/evaluation-interruption.md +89 -0
- package/docs/evaluation-reports.md +49 -0
- package/docs/examples/check-receiver-mechanism-proposal.mjs +124 -0
- package/docs/examples/prepare-native-diff-probe.mjs +75 -0
- package/docs/examples/reproduce-independent-comparison-budget.mjs +73 -0
- package/docs/experiment-workflow.md +9 -2
- package/docs/first-real-eval.md +10 -1
- package/docs/growth-roadmap-2026-10.md +62 -93
- package/docs/metrics.md +52 -0
- package/docs/plans/2026-10-14-evidence-and-release-sequence.md +29 -12
- package/docs/plans/2026-10-15-independent-comparison-budget.json +1769 -0
- package/docs/plans/2026-10-15-independent-comparison-inputs.json +373 -0
- package/docs/plans/2026-10-15-independent-comparison-proposal.md +177 -0
- package/docs/plans/2026-10-15-native-diff-mechanism.md +105 -0
- package/docs/plans/2026-10-15-receiver-mechanism-proposal.json +342 -0
- package/docs/plans/2026-10-15-receiver-mechanism-proposal.md +146 -0
- package/docs/plans/2026-10-15-receiver-mechanism-verification.json +105 -0
- package/docs/plans/2026-10-16-case-workflow-and-release.md +49 -0
- package/docs/releases/0.10.0-ci-registry-install.json +140 -0
- package/docs/releases/0.10.0-feature-smoke.json +22 -0
- package/docs/releases/0.10.0-feature-smoke.mjs +62 -0
- package/docs/releases/0.10.0-signatures.txt +7 -0
- package/docs/releases/0.10.0-verification.json +76 -0
- package/docs/releases/0.10.0.md +81 -0
- package/docs/releases/0.10.1-feature-smoke.mjs +95 -0
- package/docs/releases/0.10.1.md +38 -0
- package/docs/releases/0.9.1-first-publication.json +249 -0
- package/docs/releases/0.9.1-verification.json +122 -0
- package/docs/releases/0.9.1.md +33 -1
- package/docs/releases/trusted-publishing.md +61 -0
- package/docs/replay-packages.md +97 -0
- package/docs/schemas/bench-check.schema.json +109 -0
- package/docs/schemas/eval-preflight.schema.json +57 -0
- package/docs/schemas/eval-request.schema.json +12 -0
- package/docs/schemas/eval-result.schema.json +11 -0
- package/docs/sharing-results.md +11 -2
- package/docs/skill-evaluation-evidence.md +52 -0
- package/evidence/2026-10-15-diagnosing-receiver-correction.md +140 -0
- package/evidence/2026-10-15-independent-comparison-regression-stop.md +162 -0
- package/evidence/2026-10-15-independent-offline-readiness.md +144 -0
- package/evidence/2026-10-15-native-diff-mechanism.md +196 -0
- package/evidence/2026-10-15-receiver-mechanism-stop.md +154 -0
- package/evidence/artifacts/2026-10-15-diagnosing-receiver-correction/README.md +35 -0
- package/evidence/artifacts/2026-10-15-diagnosing-receiver-correction/expected.json +577 -0
- package/evidence/artifacts/2026-10-15-diagnosing-receiver-correction/receiver-contract.test.mjs +138 -0
- package/evidence/artifacts/2026-10-15-diagnosing-receiver-correction/replay.mjs +127 -0
- package/evidence/artifacts/2026-10-15-diagnosing-receiver-correction/verification.json +105 -0
- package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/README.md +32 -0
- package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/checks.json +32 -0
- package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/verification.json +25 -0
- package/evidence/artifacts/2026-10-15-independent-offline-readiness/README.md +17 -0
- package/evidence/artifacts/2026-10-15-independent-offline-readiness/verification.json +1548 -0
- package/evidence/artifacts/2026-10-15-native-diff-mechanism/README.md +48 -0
- package/evidence/artifacts/2026-10-15-native-diff-mechanism/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/README.md +38 -0
- package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/checks.json +118 -0
- package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/verification.json +36 -0
- package/evidence/inputs/diagnosing-bugs-compact-v4.1-receiver/LICENSE +21 -0
- package/evidence/inputs/diagnosing-bugs-compact-v4.1-receiver/SKILL.md +51 -0
- package/evidence/inputs/diagnosing-bugs-compact-v4.1-receiver/agents/openai.yaml +3 -0
- package/evidence/inputs/diagnosing-bugs-compact-v4.1-receiver/scripts/hitl-loop.template.sh +44 -0
- package/package.json +1 -1
- package/skills/skillfit/SKILL.md +17 -5
package/docs/bench-authoring.md
CHANGED
|
@@ -9,10 +9,43 @@ If you want to know what the numbers mean once you have them, that is
|
|
|
9
9
|
[docs/metrics.md](metrics.md). This document is the part in between: **how to build a bench whose
|
|
10
10
|
numbers you can trust.**
|
|
11
11
|
|
|
12
|
+
## Choose a starter
|
|
13
|
+
|
|
14
|
+
Available in 0.10.0: use `--kind command` for tasks where
|
|
15
|
+
the agent must edit files. The existing `output` starter remains the default.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node dist/cli.js bench init my-bench --kind command --dry-run
|
|
19
|
+
node dist/cli.js bench init my-bench --kind command --yes
|
|
20
|
+
node dist/cli.js bench check my-bench
|
|
21
|
+
node dist/cli.js bench check my-bench --json
|
|
22
|
+
node dist/cli.js eval skills/skillfit --bench my-bench --agent codex --input workspace --trials 1 --max-calls 2 --dry-run
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The starter is a synthetic addition bug: the original fails, the reference
|
|
26
|
+
repair passes, and equivalent implementations are accepted. Its verifier checks
|
|
27
|
+
behavior separately from the editable fixture and rejects changes to protected
|
|
28
|
+
`package.json` / `test.mjs`. The oracle and grading probes stay outside the
|
|
29
|
+
fixture. No dependency installation is needed. All commands above make zero
|
|
30
|
+
model calls; creating the scaffold writes ten files to a fresh directory.
|
|
31
|
+
|
|
32
|
+
Replace the fixture, prompt, verifier, oracle and ground truth together with
|
|
33
|
+
your own task. Then check it again and preview the call count. One teaching
|
|
34
|
+
case cannot establish Skill efficacy. The starter is not trigger-labeled;
|
|
35
|
+
trigger studies need appropriate positive tasks and negative controls. The
|
|
36
|
+
seven steps below explain how to build those real cases.
|
|
37
|
+
|
|
12
38
|
---
|
|
13
39
|
|
|
14
40
|
## What a bench is
|
|
15
41
|
|
|
42
|
+
After creating a bench, use `bench list/show` to inspect registrations and
|
|
43
|
+
`bench edit/remove` to preview changes. Applying with `--yes` backs up and validates
|
|
44
|
+
the manifest; removal preserves task files and cannot empty a schema-1 bench.
|
|
45
|
+
For a small development preview, select cases with repeated `eval --task <id>` or
|
|
46
|
+
request `taskIds`. Keep independent validation tasks separate and preserve the
|
|
47
|
+
sample-size requirements. See [case management](case-management.md).
|
|
48
|
+
|
|
16
49
|
A bench is a folder of small tasks your agent has already failed at, plus a program that decides —
|
|
17
50
|
with no human reading and no second LLM judging — whether this attempt succeeded.
|
|
18
51
|
|
|
@@ -305,6 +338,13 @@ band it never measured. Errored runs are excluded from the rate rather than coun
|
|
|
305
338
|
|
|
306
339
|
---
|
|
307
340
|
|
|
341
|
+
Agent callers can add `--json` to the offline check. It returns stable gate
|
|
342
|
+
identifiers, task IDs, related paths, suggested repairs and captured verifier
|
|
343
|
+
failures without human log text on stdout. Exit 0 may still contain warnings;
|
|
344
|
+
exit 1 means failed integrity gates and exit 2 means validation did not complete.
|
|
345
|
+
JSON mode rejects `--calibrate` before starting any verifier or agent. This is a
|
|
346
|
+
source feature, not in npm 0.9.1; see the [version 1 contract](bench-check-json.md).
|
|
347
|
+
|
|
308
348
|
## The two gates
|
|
309
349
|
|
|
310
350
|
`bench check` runs your task in both directions before you spend anything on it.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Offline bench checks for Agents
|
|
2
|
+
|
|
3
|
+
Available in skillfit 0.10.0:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
node dist/cli.js bench check my-bench --json
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Standard output contains one JSON document, with no human progress text or
|
|
10
|
+
calibration suggestions. Without `--json`, the existing human-readable output
|
|
11
|
+
and validation rules are unchanged. `--help` and `--version` keep their standard
|
|
12
|
+
CLI behavior. No agent executor, judge or model is started.
|
|
13
|
+
Checks execute the bench's local verifier/oracle programs on disposable copies,
|
|
14
|
+
under the existing offline bench contract; this is not a sandbox for untrusted code.
|
|
15
|
+
|
|
16
|
+
`--json` cannot be combined with `--calibrate`, including calibration dry runs.
|
|
17
|
+
That combination returns an error before loading/executing the bench. Use the
|
|
18
|
+
existing human calibration command separately only after choosing a budget.
|
|
19
|
+
JSON output is a format option, not spending authorization or Skill adoption.
|
|
20
|
+
|
|
21
|
+
## Version 1 contract
|
|
22
|
+
|
|
23
|
+
The [JSON Schema](schemas/bench-check.schema.json) describes all fields. The
|
|
24
|
+
stable discriminators are `schemaVersion: 1`, `kind: "skillfit.bench-check"` and
|
|
25
|
+
`scope: "offline-integrity"`. Clients should branch on identifiers and statuses,
|
|
26
|
+
not parse the English `message` text.
|
|
27
|
+
|
|
28
|
+
| Field | Meaning |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `status` | `passed` means zero failed integrity gates; `failed` means at least one gate failed; `error` means the check did not complete, such as invalid options or an unexpected local execution error |
|
|
31
|
+
| `dir` | Absolute bench directory, or `null` on an error |
|
|
32
|
+
| `bench` | Loaded bench name, complete SHA-256 and task count; `null` if loading failed or on an error |
|
|
33
|
+
| `checks` | Ordered gate results, including warnings and informational coverage notes |
|
|
34
|
+
| `summary` | `total`, `passed`, `warnings`, `failures`, `info`; `null` on an error |
|
|
35
|
+
| `error` | `null` for completed validation; otherwise `{code: "INVALID_OR_FAILED_CHECK", message}` with empty `checks` and no summary |
|
|
36
|
+
|
|
37
|
+
Each check contains `code`, `status` (`PASS`, `WARN`, `FAIL`, `INFO`), `message`,
|
|
38
|
+
`taskId`, `location`, `remediation` and `evidence`. Bench-wide checks use a null
|
|
39
|
+
`taskId`. `location.path` is relative to `dir`; `location.field` identifies a
|
|
40
|
+
`bench.json` field such as `tasks[].oracle`, with `taskId` selecting the task.
|
|
41
|
+
Fixture or marker locations use their path and a null field. A loader failure
|
|
42
|
+
may only identify `bench.json`; its message retains the exact parsing/path error.
|
|
43
|
+
|
|
44
|
+
Every warning/failure has a nonempty `remediation`. These are review suggestions,
|
|
45
|
+
not commands that the CLI automatically executes. Passing/informational checks
|
|
46
|
+
have null remediation.
|
|
47
|
+
|
|
48
|
+
Process-backed gates include `evidence`: the actual `command`, `exitCode`
|
|
49
|
+
(null if it did not produce one), `error`, captured `output`, `outputTruncated`
|
|
50
|
+
and parsed named verifier `checks`. The output retains at most the last 8,192
|
|
51
|
+
JavaScript string code units; named checks are parsed before truncation. Other
|
|
52
|
+
gates have null evidence. For an `ORACLE` gate, evidence comes from the failing
|
|
53
|
+
oracle, or from the verifier after applying the oracle; `evidence.command`
|
|
54
|
+
identifies which program actually produced it. Output, paths and diagnostics
|
|
55
|
+
can contain local project data; review them before sharing.
|
|
56
|
+
|
|
57
|
+
A failed reference repair can expose a check like this:
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
{
|
|
61
|
+
"code": "ORACLE",
|
|
62
|
+
"status": "FAIL",
|
|
63
|
+
"message": "example-task: oracle solution does not pass the verifier — the task is unwinnable or the oracle is stale",
|
|
64
|
+
"taskId": "example-task",
|
|
65
|
+
"location": {"path": "bench.json", "field": "tasks[].oracle"},
|
|
66
|
+
"remediation": "Inspect the oracle and verifier output; register a reference repair that passes every check.",
|
|
67
|
+
"evidence": {
|
|
68
|
+
"command": "node verifiers/example-task.mjs",
|
|
69
|
+
"exitCode": 1,
|
|
70
|
+
"error": null,
|
|
71
|
+
"output": "{\"passed\":false,\"checks\":[{\"name\":\"negative-numbers\",\"pass\":false}]}",
|
|
72
|
+
"outputTruncated": false,
|
|
73
|
+
"checks": [{"name": "negative-numbers", "pass": false}]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
This is one illustrative check, not a complete result or a model-quality score.
|
|
79
|
+
|
|
80
|
+
## Gate identifiers
|
|
81
|
+
|
|
82
|
+
Only applicable gates emit results. A missing code is not an implicit pass;
|
|
83
|
+
inspect coverage notes and warnings before deciding what the bench establishes.
|
|
84
|
+
|
|
85
|
+
| Code | What is checked |
|
|
86
|
+
| --- | --- |
|
|
87
|
+
| `BENCH_LOAD` | Manifest schema, referenced files and bench content hash |
|
|
88
|
+
| `UNTOUCHED_FIXTURE` | A command verifier must run and fail on the unsolved fixture |
|
|
89
|
+
| `MISSING_OUTPUT`, `EMPTY_OUTPUT` | An output verifier must reject absent/empty responses |
|
|
90
|
+
| `FACET_COUNT` | The existing 2–8 named-check recommendation |
|
|
91
|
+
| `ORACLE` | Reference repair executes and passes the verifier with full named checks, or warns when no oracle is registered |
|
|
92
|
+
| `MOCK_COVERAGE` | Why mock probes are unavailable or not applicable |
|
|
93
|
+
| `MOCK_MARKER` | A present mock marker must parse |
|
|
94
|
+
| `MOCK_BASELINE`, `MOCK_TREATMENT` | Observed mock-arm results or omitted-arm notes; process failures are `FAIL` in source after 0.10.0 |
|
|
95
|
+
| `FIXTURE_SIZE` | Existing fixture-size check and 64 KiB warning |
|
|
96
|
+
| `TRIGGER_LABEL` | An unlabeled task is skipped in trigger mode |
|
|
97
|
+
| `NEGATIVE_CONTROLS` | Existing negative-control coverage and 30% target |
|
|
98
|
+
|
|
99
|
+
A nonzero verifier exit can be a **PASS** for `UNTOUCHED_FIXTURE`, `MISSING_OUTPUT`
|
|
100
|
+
or `EMPTY_OUTPUT`: those gates deliberately test unsolved/absent work. Read the
|
|
101
|
+
gate status before interpreting process evidence. A verifier that cannot start
|
|
102
|
+
never counts as reproducing a failure.
|
|
103
|
+
|
|
104
|
+
Source after npm 0.10.0 identifies omitted mock arms as `INFO` with null evidence,
|
|
105
|
+
and treats a mock verifier without an exit verdict as a hard failure. A functioning
|
|
106
|
+
verifier's ordinary pass/fail on supplied mock output remains informational.
|
|
107
|
+
Standalone no-oracle status remains `WARN`; automatic
|
|
108
|
+
[eval preflight](eval-case-preflight.md) separately classifies unmeasured evidence
|
|
109
|
+
as `UNKNOWN`. The version 1 JSON shape and status vocabulary are unchanged.
|
|
110
|
+
|
|
111
|
+
## Exit status and acceptance
|
|
112
|
+
|
|
113
|
+
- **0:** validation completed without failed gates; warnings may still exist.
|
|
114
|
+
- **1:** validation completed with failed gates, including a missing or malformed bench.
|
|
115
|
+
- **2:** invalid options, a forbidden calibration combination, or an unexpected execution error; validation did not complete.
|
|
116
|
+
|
|
117
|
+
Agents should inspect failures first, then warnings and evidence coverage. A
|
|
118
|
+
`passed` result does not prove model difficulty, Skill improvement, statistical
|
|
119
|
+
significance or eligibility to upgrade. Missing oracles still warn; command
|
|
120
|
+
cases still skip text-only mock probes. Partial execution errors cannot be
|
|
121
|
+
interpreted as a completed check. See the [authoring guide](bench-authoring.md)
|
|
122
|
+
and [metrics protocol](metrics.md).
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Select and manage cases
|
|
2
|
+
|
|
3
|
+
Available in skillfit 0.10.0. A case is a task entry in `bench.json`, with references
|
|
4
|
+
to its fixture, prompts, verifier and optional oracle. These commands manage that
|
|
5
|
+
registration; use your editor to change the referenced file contents.
|
|
6
|
+
|
|
7
|
+
## Inspect and select
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
skillfit bench list ./my-bench --json
|
|
11
|
+
skillfit bench show ./my-bench fix-cache --json
|
|
12
|
+
skillfit eval ./my-skill --bench ./my-bench --agent codex --task fix-cache --task fix-order --trials 1 --max-calls 4 --dry-run
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
List/show read the validated manifest without running verifiers or an agent. Their
|
|
16
|
+
version-1 JSON envelopes have `kind: "skillfit.bench-list"` or
|
|
17
|
+
`"skillfit.bench-task"`, bench identity/hash and `tasks`. Unspecified verifier kind
|
|
18
|
+
is reported as `output`; unlabeled `shouldTrigger` is null.
|
|
19
|
+
|
|
20
|
+
Repeat `--task` for positional eval, or set `"taskIds": ["fix-cache", "fix-order"]`
|
|
21
|
+
inside a JSON request. Omit the selection to evaluate every task. Explicit empty,
|
|
22
|
+
duplicate, unsafe or unknown IDs fail before calls or output-directory creation.
|
|
23
|
+
The manifest's task order is retained, regardless of flag order. Trigger mode still
|
|
24
|
+
requires the existing trigger labels and controls on the chosen tasks.
|
|
25
|
+
|
|
26
|
+
The preview counts only selected tasks, including enabled judge calls. The native
|
|
27
|
+
plan freezes selected IDs and order while retaining the complete bench content
|
|
28
|
+
hash. Reports contain exactly that selected population; replay checks it against
|
|
29
|
+
the plan. A subset remains a subset: small samples stay indicative, and the
|
|
30
|
+
eight-task/five-pair adoption floor is unchanged. Choosing favorable tasks after
|
|
31
|
+
seeing outcomes does not create independent validation.
|
|
32
|
+
|
|
33
|
+
## Edit or unregister
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
skillfit bench edit ./my-bench fix-cache --set prompt=prompts/cache-v2.md --set shouldTrigger=true --json
|
|
37
|
+
skillfit bench edit ./my-bench fix-cache --set prompt=prompts/cache-v2.md --set shouldTrigger=true --yes --json
|
|
38
|
+
skillfit bench edit ./my-bench fix-cache --unset shouldTrigger --yes --json
|
|
39
|
+
skillfit bench remove ./my-bench fix-cache --json
|
|
40
|
+
skillfit bench remove ./my-bench fix-cache --yes --json
|
|
41
|
+
skillfit bench check ./my-bench --json
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Edits/removals default to a read-only before/after plan. `--yes` applies it;
|
|
45
|
+
`--dry-run` takes precedence. The first original manifest is retained in
|
|
46
|
+
`bench.json.skillfit-bak`. A pre-existing backup is preserved; symlink backups
|
|
47
|
+
are rejected. Manifest writes validate the result and roll back on failure.
|
|
48
|
+
|
|
49
|
+
Repeat `--set field=value` to edit `fixture`, `prompt`, `promptTrigger`, `verifier`,
|
|
50
|
+
`verifierKind`, `oracle`, `rubric` or `shouldTrigger`. Values may contain `=`;
|
|
51
|
+
`shouldTrigger` accepts only literal `true` or `false`. Repeat `--unset field` for
|
|
52
|
+
`promptTrigger`, `oracle`, `rubric` or `shouldTrigger`. Required fields, task IDs,
|
|
53
|
+
unknown fields and duplicate field operations are rejected. Referenced paths and
|
|
54
|
+
task structure are validated before writing; run `bench check` afterwards to test
|
|
55
|
+
the verifier and oracle behavior. No agent is called by these operations.
|
|
56
|
+
|
|
57
|
+
Remove unregisters the task and **keeps all files**, including shared fixtures,
|
|
58
|
+
prompts and verifiers. Schema 1 requires a nonempty bench: add a real case before
|
|
59
|
+
removing the final starter. Unknown manifest/provenance fields are preserved.
|
|
60
|
+
|
|
61
|
+
JSON changes return `schemaVersion: 1`, `kind: "skillfit.bench-change"`, status
|
|
62
|
+
`planned`, `applied` or `unchanged`, action, task ID, before/after entries, backup
|
|
63
|
+
path, previous/current hashes and `filesPreserved: true`. Invalid list/show/edit/
|
|
64
|
+
remove operations return `kind: "skillfit.bench-error"` and exit 2; successful
|
|
65
|
+
inspection or planning exits 0. stdout is one JSON document when `--json` is set.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# Offline case gates before evaluation
|
|
2
|
+
|
|
3
|
+
This behavior is included in 0.10.1. The immutable npm 0.10.0 archive predates it.
|
|
4
|
+
See the [release record](releases/0.10.1.md) for publication status.
|
|
5
|
+
|
|
6
|
+
Every live `eval` runs the existing offline `bench check` probes before creating
|
|
7
|
+
the native run directory or dispatching its first agent/judge call. This covers
|
|
8
|
+
inject, installed Skill revisions, rules/MCP configuration experiments, trigger
|
|
9
|
+
mode and JSON requests. There is no force/skip flag. Invalid plans, exhausted
|
|
10
|
+
call ceilings and existing run groups are rejected before probing.
|
|
11
|
+
|
|
12
|
+
Only the selected tasks are probed. Trigger mode further limits probes to tasks
|
|
13
|
+
with a `shouldTrigger` label, matching the actual dispatch population. The full
|
|
14
|
+
bench must still load, and its full content hash stays pinned. A broken verifier
|
|
15
|
+
on a structurally valid, unselected task does not block a selected task.
|
|
16
|
+
|
|
17
|
+
## What blocks execution
|
|
18
|
+
|
|
19
|
+
The gate reuses `bench check` diagnostics and disposable copies:
|
|
20
|
+
|
|
21
|
+
- Command task: the untouched fixture must fail its verifier.
|
|
22
|
+
- Output task: missing and empty `_output.md` must be rejected.
|
|
23
|
+
- Registered oracle: its command must succeed and the repaired fixture must pass
|
|
24
|
+
the verifier with every reported named check passing.
|
|
25
|
+
- Verifier/oracle processes without an exit verdict, malformed mock markers and
|
|
26
|
+
other incomplete local checks fail closed. An ordinary mock output that fails
|
|
27
|
+
a functioning verifier is informational, since it can represent a negative
|
|
28
|
+
example; a crashed/timed-out mock probe is a hard failure.
|
|
29
|
+
- Bench, candidate and baseline fingerprints must remain equal to the preview's
|
|
30
|
+
inputs after all probes. Changes or unreadable inputs block execution.
|
|
31
|
+
|
|
32
|
+
On any `FAIL`, zero agent/judge calls are dispatched and no run directory or
|
|
33
|
+
quality verdict is created. Human output includes gate codes, reasons and
|
|
34
|
+
remedies. Request JSON returns `kind: "skillfit.eval-error"`,
|
|
35
|
+
`error.code: "CASE_PREFLIGHT_FAILED"`, `casePreflight.status: "blocked"` and all
|
|
36
|
+
diagnostics; exit code is 2. Keep that JSON if the failed check needs archiving.
|
|
37
|
+
|
|
38
|
+
## Warning, unknown and not applicable
|
|
39
|
+
|
|
40
|
+
`casePreflight.checks` uses these statuses:
|
|
41
|
+
|
|
42
|
+
| Status | Meaning | Blocks calls? |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| `FAIL` | A required gate failed or could not finish | Yes |
|
|
45
|
+
| `WARN` | Observed concern: large fixture, facet-count bounds, weak/missing negative controls | No |
|
|
46
|
+
| `UNKNOWN` | Evidence was not obtained: no oracle, absent output mock coverage, omitted mock arm, live difficulty not measured | No |
|
|
47
|
+
| `INFO` | Context or inapplicable check, such as text mock probes for file-edit tasks | No |
|
|
48
|
+
| `PASS` | This particular offline gate passed | No |
|
|
49
|
+
|
|
50
|
+
`ORACLE` without a reference repair is `UNKNOWN` here; standalone `bench check`
|
|
51
|
+
keeps its version 1 `WARN` contract. `MOCK_COVERAGE` for command tasks is `INFO`
|
|
52
|
+
because text mock answers do not implement file edits. A `LIVE_DIFFICULTY`
|
|
53
|
+
unknown is always present: offline probes neither calibrate a live agent nor
|
|
54
|
+
establish Skill benefit or generalization. Missing optional facets do not become
|
|
55
|
+
a fabricated graded signal. A nonzero untouched-fixture exit alone does not
|
|
56
|
+
prove the intended defect caused the failure; review it and supply an independent
|
|
57
|
+
oracle. Checks execute trusted local bench code, not a sandbox for untrusted code.
|
|
58
|
+
|
|
59
|
+
`status: "ready"` means zero hard failures in this offline scope. Warnings and
|
|
60
|
+
unknowns remain explicit in `summary`; ready does not authorize adoption. The
|
|
61
|
+
existing statistical, complete-cost and independence requirements stay unchanged,
|
|
62
|
+
and `automaticUpgrade` remains false. This gate makes no calibration or repair
|
|
63
|
+
calls and does not retry, add tasks or expand the declared budget.
|
|
64
|
+
|
|
65
|
+
## Preview, records and cost
|
|
66
|
+
|
|
67
|
+
`--dry-run` never executes verifiers/oracles or creates run files. Its machine
|
|
68
|
+
plan declares `casePreflight: {schemaVersion: 1, scope: "offline-case-integrity",
|
|
69
|
+
required: true, status: "pending"}`. A preview is not a passed case check. JSON
|
|
70
|
+
requests still require the matching preview hash before probes start; observed
|
|
71
|
+
probe output and elapsed time do not enter that hash, so harmless timing changes
|
|
72
|
+
cannot invalidate the approved plan.
|
|
73
|
+
|
|
74
|
+
After a successful gate, `_plan.json.details.casePreflight` freezes the complete
|
|
75
|
+
report before dispatch: selected IDs, full bench fingerprint, individual gate
|
|
76
|
+
codes/statuses, locations, remedies and bounded process evidence. The native
|
|
77
|
+
artifact index covers that plan. JSON assessment returns `casePreflight`, including
|
|
78
|
+
for stopped runs; incomplete/stopped evidence remains subject to the enclosing
|
|
79
|
+
`evidence.verified` field. A missing historical report is `null`, never an implied
|
|
80
|
+
pass. Offline reporting and portable replay preserve the original preflight;
|
|
81
|
+
they do not rerun it against current inputs or change historical records.
|
|
82
|
+
|
|
83
|
+
`casePreflight.cost` records **0 model calls** and observed offline wall time in
|
|
84
|
+
`durationMs`. This time includes local probes and fingerprint verification. It is
|
|
85
|
+
separate from primary-agent call durations, token totals and spending stop lines;
|
|
86
|
+
it is not a CPU, toolchain or dollar bill. Agent/judge budgets and all existing
|
|
87
|
+
cost coverage rules remain unchanged.
|
|
88
|
+
|
|
89
|
+
Ctrl+C/SIGTERM during probing terminates managed verifier/oracle process trees,
|
|
90
|
+
dispatches no agent and exits 130/143. Because the run has not started, no stopped
|
|
91
|
+
run directory is synthesized. Once dispatch preparation has created a native run,
|
|
92
|
+
the normal [interruption and retained-record contract](evaluation-interruption.md)
|
|
93
|
+
applies.
|
|
94
|
+
|
|
95
|
+
## Reproduce offline
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
npm test
|
|
99
|
+
node --test dist/commands/eval-preflight.test.js dist/commands/eval-interruption.test.js dist/commands/eval-export.test.js
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The tests use mock executors and local fake processes. They cover all delivery
|
|
103
|
+
modes, zero-call hard stops, separate warnings/unknowns, selected/trigger scope,
|
|
104
|
+
missing/empty outputs, oracle failures, process failure, malformed/partial mock
|
|
105
|
+
coverage, input mutation, unchanged previews, request JSON, interruption, and
|
|
106
|
+
portable retention. No real agent CLI or model API is called.
|
|
107
|
+
|
|
108
|
+
Machine contracts: [preflight schema](schemas/eval-preflight.schema.json),
|
|
109
|
+
[evaluation result schema](schemas/eval-result.schema.json),
|
|
110
|
+
[standalone bench-check JSON](bench-check-json.md).
|
package/docs/eval-component.md
CHANGED
|
@@ -7,55 +7,39 @@ It never installs, publishes or upgrades a Skill. These interfaces are included
|
|
|
7
7
|
in [0.9.0](releases/0.9.0.md). Use npm 0.9.0 or newer, or build the current
|
|
8
8
|
checkout; npm 0.8.0 does not include them.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
and
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
retains one interrupted recovery invocation and 79 uninvoked entries, plus the
|
|
44
|
-
separate readiness check. Cumulative spending reaches 174 calls. Its offline
|
|
45
|
-
replay keeps partial native costs and the unattested local readiness supplement
|
|
46
|
-
separate; unfinished work receives no grade and remains ineligible. The later
|
|
47
|
-
development proposal was unexecuted at that publication, with no automatic
|
|
48
|
-
expansion or promotion.
|
|
49
|
-
|
|
50
|
-
The [subsequent four-call reading pilot and cost review](../evidence/2026-10-14-debugging-reading-pilot-and-cost-review.md)
|
|
51
|
-
retains four passing deliveries but rejects the more expensive reading draft;
|
|
52
|
-
cumulative spending reaches 178 calls. Its portable offline archive also
|
|
53
|
-
reproduces the corrected diff counts, response costs and separate cohort
|
|
54
|
-
summaries. A narrowed candidate remains unvalidated. The merged native diff
|
|
55
|
-
helper is a common environment repair; delivery and offline tests do not prove
|
|
56
|
-
actual Agent use or net savings. The [ordered delivery plan](plans/2026-10-14-evidence-and-release-sequence.md)
|
|
57
|
-
requires a fresh budget before live experimentation and leaves adoption gates
|
|
58
|
-
unchanged.
|
|
10
|
+
Build the bench around the task being evaluated, with deterministic acceptance
|
|
11
|
+
checks and an independent reference repair. Bundled and contributed benches are
|
|
12
|
+
examples, not a universal test of every Skill. See the [authoring guide](bench-authoring.md).
|
|
13
|
+
|
|
14
|
+
In 0.10.1, execution requires an automatic offline
|
|
15
|
+
[case preflight](eval-case-preflight.md) after preview-hash confirmation and before
|
|
16
|
+
any agent/judge call. `plan.evaluation.casePreflight.status` is `pending`; preview
|
|
17
|
+
executes no verifier/oracle. Hard failures return `CASE_PREFLIGHT_FAILED` and a
|
|
18
|
+
structured `casePreflight` report with zero calls and no native run directory.
|
|
19
|
+
Warnings and unknowns remain separate and nonblocking. Successful probes are
|
|
20
|
+
frozen in the native plan and included in JSON assessment/replay; they do not
|
|
21
|
+
authorize adoption or alter statistical/cost requirements.
|
|
22
|
+
|
|
23
|
+
The same source build [seals original inputs](evaluation-input-snapshots.md)
|
|
24
|
+
before dispatch. Preview declares `plan.evaluation.inputSnapshot.status: "pending"`;
|
|
25
|
+
completed/stopped JSON assessment includes `inputSnapshot` with the plan-bound
|
|
26
|
+
index hash and local copy/storage cost. Native replay/export use sealed inputs
|
|
27
|
+
after originals change or disappear; a damaged archive cannot be overridden.
|
|
28
|
+
Historical runs return null and retain matching-root recovery. Snapshot copies
|
|
29
|
+
make zero model calls and do not change acceptance or incomplete-cost semantics.
|
|
30
|
+
|
|
31
|
+
The [maintained evidence index](skill-evaluation-evidence.md) links all development
|
|
32
|
+
and independent cohorts, their exact costs and offline replay packages. As of
|
|
33
|
+
October 15, the debugging study totals 195 actual calls with seven historical
|
|
34
|
+
final usages unknown. No candidate qualifies for adoption: favorable point
|
|
35
|
+
estimates, incomplete costs and observed regressions remain distinct outcomes.
|
|
36
|
+
|
|
37
|
+
The latest [receiver mechanism probe](../evidence/2026-10-15-receiver-mechanism-stop.md)
|
|
38
|
+
stops after one failed v4.1 call; its control never runs. The preceding
|
|
39
|
+
[independent comparison](../evidence/2026-10-15-independent-comparison-regression-stop.md)
|
|
40
|
+
stops at 12/80 after an observed correctness regression. Both are closed; unused
|
|
41
|
+
slots authorize no retry, replacement or expansion. The eight-task offline
|
|
42
|
+
readiness record establishes task integrity, not Skill efficacy.
|
|
59
43
|
|
|
60
44
|
The [concrete request example](examples/eval-request.diagnosing-v2.json) compares
|
|
61
45
|
the two complete public debugging Skill versions on eight pinned real defects.
|
|
@@ -131,6 +115,41 @@ Timeouts retain their measured duration and available partial usage. A larger
|
|
|
131
115
|
deadline increases the maximum elapsed budget without changing the call ceiling;
|
|
132
116
|
it neither guarantees completion nor repairs provider availability.
|
|
133
117
|
|
|
118
|
+
Available in 0.10.0: optional `spendingBudget` freezes five whole-batch
|
|
119
|
+
stop lines in the request, preview and native plan. All five fields are required
|
|
120
|
+
when supplied: `input`, `cachedInput`, `uncachedInput`, `output` (positive safe
|
|
121
|
+
integer token counts), and `durationSeconds` (positive finite seconds). For
|
|
122
|
+
example, the independent proposal uses 40000000, 36000000, 5000000, 1250000 and
|
|
123
|
+
43200 respectively. These absolute spending lines are separate from the
|
|
124
|
+
adoption policy's relative cost ceilings and the `maxCalls` ceiling. Old requests
|
|
125
|
+
that omit the field retain their previous interpretation.
|
|
126
|
+
|
|
127
|
+
Before every call, the engine checks accumulated spending from **all actual
|
|
128
|
+
agent invocations**, including functional failures and excluded partners. Reaching
|
|
129
|
+
any line prevents the next invocation. A currently running call may overshoot;
|
|
130
|
+
this is a between-call guard, not a provider token cap. Missing, partial or invalid
|
|
131
|
+
final usage, an execution error, or a configuration guard error stops further
|
|
132
|
+
calls immediately. There is no retry, replacement or automatic expansion. If the
|
|
133
|
+
last predeclared call reaches a line with complete evidence, the completed cohort
|
|
134
|
+
is retained; exceeding a line is never hidden or clamped. A stopped prefix cannot
|
|
135
|
+
authorize adoption. Judges and trigger evaluations reject this option because
|
|
136
|
+
their separate spending is outside this paired-agent accounting.
|
|
137
|
+
|
|
138
|
+
The native `_budget.jsonl` records before/after snapshots. Completed receipt audit
|
|
139
|
+
recomputes every snapshot in declared execution order and checks its sealed
|
|
140
|
+
bytes; resealing a fabricated lower total does not pass. Stopped reports retain
|
|
141
|
+
available receipts and expose invalid receipt paths as unknown usage while leaving
|
|
142
|
+
the original files untouched. `spendingBudget` in results includes frozen limits,
|
|
143
|
+
event count, latest recorded state and read errors. Its stopped-run summary is
|
|
144
|
+
informational, not evidence of a complete verified comparison.
|
|
145
|
+
|
|
146
|
+
Optional `taskIds` (0.10.0+) selects a nonempty set of unique task IDs. Unknown or
|
|
147
|
+
unsafe IDs fail before calls. The bench's manifest order is preserved, and only
|
|
148
|
+
selected cases contribute to planned calls, costs and outcomes. The complete bench
|
|
149
|
+
hash and selected IDs/order are frozen into the plan. CLI positional eval uses
|
|
150
|
+
repeatable `--task <id>` instead. Selection never lowers the adoption scale or
|
|
151
|
+
creates independent validation; see [case management](case-management.md).
|
|
152
|
+
|
|
134
153
|
```bash
|
|
135
154
|
node dist/cli.js eval --request ./request.json --dry-run
|
|
136
155
|
node dist/cli.js eval --request ./request.json --plan-sha <plan.sha256>
|
|
@@ -174,6 +193,7 @@ callers should retain unknown/new fields for forward-compatible reporting.
|
|
|
174
193
|
| `costs.populations` | Surviving paired costs and all agent invocations, including graded failures, errored calls and excluded successful partners |
|
|
175
194
|
| `costs.changes` | Descriptive total and per-success changes; null when coverage or the baseline denominator cannot support the comparison |
|
|
176
195
|
| `costs.efficiency` | Explicit policy version 2 only: all-invocation uncached-input point, task-block interval, per-task changes and fixed protocol |
|
|
196
|
+
| `spendingBudget` | Optional frozen absolute stop lines and retained event state; completed native audit verifies snapshots against receipts |
|
|
177
197
|
| `evidence` | Native file/receipt integrity, policy binding, replay coverage and evidence locations; `pairs` retains each pair's outcomes, named-check changes and full cost observations |
|
|
178
198
|
| `acceptance` | `decision`, `eligibleForUpgrade`, policy, reason codes and scope; `automaticUpgrade` is always false |
|
|
179
199
|
|
|
@@ -281,6 +301,17 @@ and retain/share an external copy of evidence hashes for provenance.
|
|
|
281
301
|
|
|
282
302
|
## Offline assessment and replay
|
|
283
303
|
|
|
304
|
+
Version 0.10.1 seals Ctrl+C/SIGTERM interruptions with available trial
|
|
305
|
+
receipts, `_interruption.json`, stopped `_session.json` and `_artifacts.json`.
|
|
306
|
+
Request execution preserves exit 130/143 and returns a stopped assessment after
|
|
307
|
+
sealing. Partial/unknown costs stay incomplete and ineligible; no automatic retry
|
|
308
|
+
or replacement occurs. See [the interruption contract](evaluation-interruption.md).
|
|
309
|
+
The npm 0.10.0 archive predates this fix.
|
|
310
|
+
|
|
311
|
+
Markdown and JSON accept the same manifest/run/package inputs and assessment
|
|
312
|
+
options in 0.10.1. Markdown also displays stopped/incomplete spending and the
|
|
313
|
+
separate acceptance decision. See [report inputs and states](evaluation-reports.md).
|
|
314
|
+
|
|
284
315
|
```bash
|
|
285
316
|
node dist/cli.js report eval ./runs/revision-validation-001 --json
|
|
286
317
|
node dist/cli.js report eval ./runs/revision-validation-001 --json --replay
|
|
@@ -309,6 +340,14 @@ samples. A model upgrade or changed inputs requires a fresh bounded declaration.
|
|
|
309
340
|
|
|
310
341
|
## Verify the component offline
|
|
311
342
|
|
|
343
|
+
Use `report eval <run-dir> --export <new-dir> --json` for a read-only export plan,
|
|
344
|
+
then `--yes` to build a portable directory with unchanged receipts, matching
|
|
345
|
+
inputs, pinned runtime and a checksum/replay entry point. Native paired runs
|
|
346
|
+
without a judge are supported, including stopped runs. Missing inputs prevent
|
|
347
|
+
export; partial/unknown costs and ineligible acceptance remain visible. See
|
|
348
|
+
[portable offline packages](replay-packages.md) for relocated inputs and privacy
|
|
349
|
+
review. This does not rerun an agent or produce new efficacy observations.
|
|
350
|
+
|
|
312
351
|
```bash
|
|
313
352
|
npm test
|
|
314
353
|
node --test dist/harness/eval-component.test.js
|
package/docs/eval-costs.md
CHANGED
|
@@ -45,6 +45,15 @@ is recorded as zero. Other executors can supply cache counts through the same
|
|
|
45
45
|
optional `TokenUsage.cachedInput` field. Existing surfaces without such counts
|
|
46
46
|
continue to report unknown cache coverage.
|
|
47
47
|
|
|
48
|
+
In 0.10.1, the Chat Completions API executor reads
|
|
49
|
+
`usage.prompt_tokens_details.cached_tokens` into `TokenUsage.cachedInput`, as
|
|
50
|
+
documented by the [official OpenAI API reference](https://developers.openai.com/api/reference/resources/chat/subresources/completions/methods/create).
|
|
51
|
+
It requires a nonnegative safe integer no greater than a valid input total.
|
|
52
|
+
An explicit zero is preserved; missing, malformed, fractional, negative or
|
|
53
|
+
incompatible cache counts remain unknown. Input already includes cached tokens;
|
|
54
|
+
uncached input is still computed by subtraction, with no double counting.
|
|
55
|
+
This fixes new receipts only; historical unknown cache usage is not backfilled.
|
|
56
|
+
|
|
48
57
|
Each measure contains `knownTotal` and coverage counts `final`, `partial` and
|
|
49
58
|
`unknown`, which sum to its population's run count. A successful stream with
|
|
50
59
|
missing input/output usage on a completed turn retains available increments as
|