skillfit 0.9.0 → 0.10.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/README.md +41 -15
- package/README.zh-CN.md +41 -15
- 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 +166 -53
- 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 +68 -38
- package/dist/commands/bench.test.js +101 -0
- package/dist/commands/eval-component.js +17 -0
- package/dist/commands/eval-export.js +152 -0
- package/dist/commands/eval-export.test.js +122 -0
- package/dist/commands/eval.js +14 -3
- package/dist/commands/eval.test.js +58 -1
- package/dist/harness/bench.js +21 -2
- package/dist/harness/eval-audit.js +42 -4
- package/dist/harness/eval-budget.js +51 -0
- package/dist/harness/eval-budget.test.js +210 -0
- package/dist/harness/eval-component.test.js +36 -0
- package/dist/harness/eval-contract.js +5 -1
- package/dist/harness/replay-package.js +85 -0
- package/dist/harness/runner.js +22 -1
- package/docs/bench-authoring.md +40 -0
- package/docs/bench-check-json.md +115 -0
- package/docs/case-management.md +65 -0
- package/docs/eval-component.md +60 -49
- 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/first-real-eval.md +6 -0
- package/docs/growth-roadmap-2026-10.md +57 -93
- package/docs/metrics.md +21 -0
- package/docs/plans/2026-10-14-evidence-and-release-sequence.md +30 -13
- 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 +30 -0
- package/docs/releases/0.10.0.md +45 -0
- package/docs/releases/0.9.0-verification.json +38 -0
- package/docs/releases/0.9.0.md +20 -3
- 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 +65 -0
- package/docs/releases/trusted-publishing.md +114 -0
- package/docs/replay-packages.md +88 -0
- package/docs/schemas/bench-check.schema.json +109 -0
- package/docs/schemas/eval-request.schema.json +12 -0
- package/docs/sharing-results.md +6 -0
- 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 +3 -3
- 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,115 @@
|
|
|
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, retained as informational checks |
|
|
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
|
+
## Exit status and acceptance
|
|
105
|
+
|
|
106
|
+
- **0:** validation completed without failed gates; warnings may still exist.
|
|
107
|
+
- **1:** validation completed with failed gates, including a missing or malformed bench.
|
|
108
|
+
- **2:** invalid options, a forbidden calibration combination, or an unexpected execution error; validation did not complete.
|
|
109
|
+
|
|
110
|
+
Agents should inspect failures first, then warnings and evidence coverage. A
|
|
111
|
+
`passed` result does not prove model difficulty, Skill improvement, statistical
|
|
112
|
+
significance or eligibility to upgrade. Missing oracles still warn; command
|
|
113
|
+
cases still skip text-only mock probes. Partial execution errors cannot be
|
|
114
|
+
interpreted as a completed check. See the [authoring guide](bench-authoring.md)
|
|
115
|
+
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.
|
package/docs/eval-component.md
CHANGED
|
@@ -7,55 +7,22 @@ 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
|
-
80 deliveries and exact cost interval replay offline. The [v4 reproduction example](examples/eval-request.diagnosing-v4-efficiency.json)
|
|
27
|
-
keeps that policy and symmetric 1200-second deadlines; it does not create fresh
|
|
28
|
-
independent evidence for a candidate selected from these public outcomes.
|
|
29
|
-
|
|
30
|
-
The [fresh followup bench](../benches/contrib/oss-skill-followup/README.md) supplies
|
|
31
|
-
eight different defects from three new repositories. Its [bounded protocol](plans/2026-10-14-skill-followup.md)
|
|
32
|
-
and [request example](examples/eval-request.diagnosing-v4-followup-efficiency.json)
|
|
33
|
-
retain the candidate and policy rather than relaxing a completed cohort's gate.
|
|
34
|
-
Task integrity, native eligibility and generalization remain separate claims.
|
|
35
|
-
|
|
36
|
-
The [routing-interrupted followup](../evidence/2026-10-14-debugging-followup-routing-stop.md)
|
|
37
|
-
demonstrates the incomplete-evidence gate: 23 passing pairs cannot authorize an
|
|
38
|
-
upgrade when an executor fails, three tasks remain uninvoked and token usage is
|
|
39
|
-
unknown. Its 46 completed deliveries replay offline; failed work remains ungraded,
|
|
40
|
-
individual cost increases remain visible, and the frozen policy stays unchanged.
|
|
41
|
-
|
|
42
|
-
The [subsequent user spending stop](../evidence/2026-10-14-debugging-spending-stop.md)
|
|
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
|
+
The [maintained evidence index](skill-evaluation-evidence.md) links all development
|
|
15
|
+
and independent cohorts, their exact costs and offline replay packages. As of
|
|
16
|
+
October 15, the debugging study totals 195 actual calls with seven historical
|
|
17
|
+
final usages unknown. No candidate qualifies for adoption: favorable point
|
|
18
|
+
estimates, incomplete costs and observed regressions remain distinct outcomes.
|
|
19
|
+
|
|
20
|
+
The latest [receiver mechanism probe](../evidence/2026-10-15-receiver-mechanism-stop.md)
|
|
21
|
+
stops after one failed v4.1 call; its control never runs. The preceding
|
|
22
|
+
[independent comparison](../evidence/2026-10-15-independent-comparison-regression-stop.md)
|
|
23
|
+
stops at 12/80 after an observed correctness regression. Both are closed; unused
|
|
24
|
+
slots authorize no retry, replacement or expansion. The eight-task offline
|
|
25
|
+
readiness record establishes task integrity, not Skill efficacy.
|
|
59
26
|
|
|
60
27
|
The [concrete request example](examples/eval-request.diagnosing-v2.json) compares
|
|
61
28
|
the two complete public debugging Skill versions on eight pinned real defects.
|
|
@@ -131,6 +98,41 @@ Timeouts retain their measured duration and available partial usage. A larger
|
|
|
131
98
|
deadline increases the maximum elapsed budget without changing the call ceiling;
|
|
132
99
|
it neither guarantees completion nor repairs provider availability.
|
|
133
100
|
|
|
101
|
+
Available in 0.10.0: optional `spendingBudget` freezes five whole-batch
|
|
102
|
+
stop lines in the request, preview and native plan. All five fields are required
|
|
103
|
+
when supplied: `input`, `cachedInput`, `uncachedInput`, `output` (positive safe
|
|
104
|
+
integer token counts), and `durationSeconds` (positive finite seconds). For
|
|
105
|
+
example, the independent proposal uses 40000000, 36000000, 5000000, 1250000 and
|
|
106
|
+
43200 respectively. These absolute spending lines are separate from the
|
|
107
|
+
adoption policy's relative cost ceilings and the `maxCalls` ceiling. Old requests
|
|
108
|
+
that omit the field retain their previous interpretation.
|
|
109
|
+
|
|
110
|
+
Before every call, the engine checks accumulated spending from **all actual
|
|
111
|
+
agent invocations**, including functional failures and excluded partners. Reaching
|
|
112
|
+
any line prevents the next invocation. A currently running call may overshoot;
|
|
113
|
+
this is a between-call guard, not a provider token cap. Missing, partial or invalid
|
|
114
|
+
final usage, an execution error, or a configuration guard error stops further
|
|
115
|
+
calls immediately. There is no retry, replacement or automatic expansion. If the
|
|
116
|
+
last predeclared call reaches a line with complete evidence, the completed cohort
|
|
117
|
+
is retained; exceeding a line is never hidden or clamped. A stopped prefix cannot
|
|
118
|
+
authorize adoption. Judges and trigger evaluations reject this option because
|
|
119
|
+
their separate spending is outside this paired-agent accounting.
|
|
120
|
+
|
|
121
|
+
The native `_budget.jsonl` records before/after snapshots. Completed receipt audit
|
|
122
|
+
recomputes every snapshot in declared execution order and checks its sealed
|
|
123
|
+
bytes; resealing a fabricated lower total does not pass. Stopped reports retain
|
|
124
|
+
available receipts and expose invalid receipt paths as unknown usage while leaving
|
|
125
|
+
the original files untouched. `spendingBudget` in results includes frozen limits,
|
|
126
|
+
event count, latest recorded state and read errors. Its stopped-run summary is
|
|
127
|
+
informational, not evidence of a complete verified comparison.
|
|
128
|
+
|
|
129
|
+
Optional `taskIds` (0.10.0+) selects a nonempty set of unique task IDs. Unknown or
|
|
130
|
+
unsafe IDs fail before calls. The bench's manifest order is preserved, and only
|
|
131
|
+
selected cases contribute to planned calls, costs and outcomes. The complete bench
|
|
132
|
+
hash and selected IDs/order are frozen into the plan. CLI positional eval uses
|
|
133
|
+
repeatable `--task <id>` instead. Selection never lowers the adoption scale or
|
|
134
|
+
creates independent validation; see [case management](case-management.md).
|
|
135
|
+
|
|
134
136
|
```bash
|
|
135
137
|
node dist/cli.js eval --request ./request.json --dry-run
|
|
136
138
|
node dist/cli.js eval --request ./request.json --plan-sha <plan.sha256>
|
|
@@ -174,6 +176,7 @@ callers should retain unknown/new fields for forward-compatible reporting.
|
|
|
174
176
|
| `costs.populations` | Surviving paired costs and all agent invocations, including graded failures, errored calls and excluded successful partners |
|
|
175
177
|
| `costs.changes` | Descriptive total and per-success changes; null when coverage or the baseline denominator cannot support the comparison |
|
|
176
178
|
| `costs.efficiency` | Explicit policy version 2 only: all-invocation uncached-input point, task-block interval, per-task changes and fixed protocol |
|
|
179
|
+
| `spendingBudget` | Optional frozen absolute stop lines and retained event state; completed native audit verifies snapshots against receipts |
|
|
177
180
|
| `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
181
|
| `acceptance` | `decision`, `eligibleForUpgrade`, policy, reason codes and scope; `automaticUpgrade` is always false |
|
|
179
182
|
|
|
@@ -309,6 +312,14 @@ samples. A model upgrade or changed inputs requires a fresh bounded declaration.
|
|
|
309
312
|
|
|
310
313
|
## Verify the component offline
|
|
311
314
|
|
|
315
|
+
Use `report eval <run-dir> --export <new-dir> --json` for a read-only export plan,
|
|
316
|
+
then `--yes` to build a portable directory with unchanged receipts, matching
|
|
317
|
+
inputs, pinned runtime and a checksum/replay entry point. Native paired runs
|
|
318
|
+
without a judge are supported, including stopped runs. Missing inputs prevent
|
|
319
|
+
export; partial/unknown costs and ineligible acceptance remain visible. See
|
|
320
|
+
[portable offline packages](replay-packages.md) for relocated inputs and privacy
|
|
321
|
+
review. This does not rerun an agent or produce new efficacy observations.
|
|
322
|
+
|
|
312
323
|
```bash
|
|
313
324
|
npm test
|
|
314
325
|
node --test dist/harness/eval-component.test.js
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Read-only proposal audit. No model, agent CLI, network or live launcher.
|
|
2
|
+
import assert from 'node:assert/strict';
|
|
3
|
+
import {readFileSync} from 'node:fs';
|
|
4
|
+
import {resolve} from 'node:path';
|
|
5
|
+
import {fileURLToPath} from 'node:url';
|
|
6
|
+
import {hashFileSet, listFilesRecursive, sha256File, sha256Text} from '../../dist/harness/hash.js';
|
|
7
|
+
import {loadBench} from '../../dist/harness/bench.js';
|
|
8
|
+
import {parseAcceptancePolicy} from '../../dist/harness/eval-contract.js';
|
|
9
|
+
import {parseSpendingBudget, spendingBudgetState} from '../../dist/harness/eval-budget.js';
|
|
10
|
+
|
|
11
|
+
const root = fileURLToPath(new URL('../../', import.meta.url));
|
|
12
|
+
assert.equal(process.argv.length, 3, 'Supply the extracted unchanged failure archive directory');
|
|
13
|
+
const saved = resolve(process.argv[2]);
|
|
14
|
+
const json = path => JSON.parse(readFileSync(path, 'utf8'));
|
|
15
|
+
const p = json(resolve(root, 'docs/plans/2026-10-15-receiver-mechanism-proposal.json'));
|
|
16
|
+
assert.equal(p.authorizedModelCalls, 0);
|
|
17
|
+
assert.equal(p.readyForModelCalls, false);
|
|
18
|
+
assert.equal(p.liveControllerImplemented, false);
|
|
19
|
+
assert.equal(p.plannedMaximumExecutorCalls, 2);
|
|
20
|
+
assert.equal(p.execution.executorTimeoutSeconds, 600);
|
|
21
|
+
assert.deepEqual(p.execution.order.map(row => row.arm), ['candidate', 'control']);
|
|
22
|
+
assert.ok(Object.values(p.execution.extraCalls).every(value => value === 0));
|
|
23
|
+
assert.equal(p.purpose, 'development');
|
|
24
|
+
assert.equal(p.independentValidation, false);
|
|
25
|
+
assert.equal(p.automaticUpgrade, false);
|
|
26
|
+
assert.equal(p.oldStoppedCohort.transferUnusedAllowance, false);
|
|
27
|
+
assert.equal(p.historicalStudyCalls + p.plannedMaximumExecutorCalls, p.maximumStudyCallsIfSeparatelyAuthorized);
|
|
28
|
+
for (const pin of p.pins) assert.equal(sha256File(resolve(root, pin.path)), pin.sha256, pin.path);
|
|
29
|
+
const basis = p.historicalBudgetBasis;
|
|
30
|
+
assert.equal(sha256File(resolve(root, basis.archive)), basis.archiveSha256);
|
|
31
|
+
assert.equal(sha256File(resolve(saved, 'package-index.json')), basis.extractedIndexSha256);
|
|
32
|
+
const index = json(resolve(saved, 'package-index.json'));
|
|
33
|
+
for (const row of index.files) assert.equal(sha256File(resolve(saved, row.path)), row.sha256, row.path);
|
|
34
|
+
const historical = json(resolve(saved, 'execution/analysis.json'));
|
|
35
|
+
assert.equal(historical.cumulative.actualExecutorCalls, p.historicalStudyCalls);
|
|
36
|
+
assert.equal(historical.cumulative.missingPublicFinalUsage, p.historicalUnknownPublicFinalUsages);
|
|
37
|
+
const bench = loadBench(resolve(root, p.task.sourceBench));
|
|
38
|
+
assert.equal(bench.contentSha256, p.task.sourceBenchSha256);
|
|
39
|
+
assert.deepEqual(bench.tasks.find(task => task.id === p.task.id), p.task.definition);
|
|
40
|
+
assert.equal(sha256File(resolve(bench.dir, p.task.prompt)), p.task.promptSha256);
|
|
41
|
+
const fixture = resolve(bench.dir, p.task.fixture);
|
|
42
|
+
assert.equal(hashFileSet(fixture, listFilesRecursive(fixture)), p.task.fixtureSha256);
|
|
43
|
+
for (const arm of Object.values(p.arms).filter(value => value.path)) {
|
|
44
|
+
const dir = resolve(root, arm.path);
|
|
45
|
+
assert.equal(hashFileSet(dir, listFilesRecursive(dir)), arm.sha256);
|
|
46
|
+
}
|
|
47
|
+
const control = resolve(root, p.arms.control.path), candidate = resolve(root, p.arms.candidate.path);
|
|
48
|
+
assert.deepEqual(listFilesRecursive(control), listFilesRecursive(candidate));
|
|
49
|
+
for (const file of listFilesRecursive(control).filter(file => file !== 'SKILL.md')) {
|
|
50
|
+
assert.equal(sha256File(resolve(control, file)), sha256File(resolve(candidate, file)));
|
|
51
|
+
}
|
|
52
|
+
assert.equal(readFileSync(resolve(candidate, 'SKILL.md')).length - readFileSync(resolve(control, 'SKILL.md')).length, p.arms.onlySkillDelta.addedBytes);
|
|
53
|
+
const policy = parseAcceptancePolicy(p.acceptance.adoptionPolicyUnchanged);
|
|
54
|
+
assert.equal(sha256Text(JSON.stringify(policy)), p.acceptance.adoptionPolicySha256);
|
|
55
|
+
assert.equal(policy.minTasks, 8);
|
|
56
|
+
assert.equal(policy.minTrialsPerTask, 5);
|
|
57
|
+
const limits = parseSpendingBudget(p.budget.stopLines), metrics = Object.keys(limits);
|
|
58
|
+
const round = n => Math.round(n * 1000) / 1000;
|
|
59
|
+
for (const sample of basis.samples) {
|
|
60
|
+
const path = resolve(saved, sample.recordPath), row = json(path);
|
|
61
|
+
assert.equal(sha256File(path), sample.recordSha256);
|
|
62
|
+
assert.deepEqual(sample.metrics, {input: row.tokens.input, cachedInput: row.tokens.cachedInput,
|
|
63
|
+
uncachedInput: row.tokens.input - row.tokens.cachedInput, output: row.tokens.output, durationSeconds: row.durationSeconds});
|
|
64
|
+
assert.equal(row.passed, sample.passed);
|
|
65
|
+
}
|
|
66
|
+
for (const metric of metrics) {
|
|
67
|
+
assert.equal(basis.historicalMixedOriginalAndV4Reference[metric], round(basis.samples.reduce((sum, row) => sum + row.metrics[metric], 0)));
|
|
68
|
+
assert.equal(basis.twiceHistoricalV4Reference[metric], round(basis.samples[0].metrics[metric] * 2));
|
|
69
|
+
assert.equal(p.budget.secondCallAdmission.firstReceiptMustBeStrictlyBelow[metric] * 2, limits[metric]);
|
|
70
|
+
}
|
|
71
|
+
const observation = (input = 197021, cachedInput = 172800, output = 5912, durationSeconds = 184.285) => ({
|
|
72
|
+
executorInvoked: true, passed: true, error: null, usageStatus: 'final',
|
|
73
|
+
tokens: {input, cachedInput, output}, durationSeconds,
|
|
74
|
+
});
|
|
75
|
+
// A simulation of the proposed rule, not certification of a future live controller.
|
|
76
|
+
const mayStartControl = (receipts, flags = [true, true, true, true, true, true]) => {
|
|
77
|
+
if (receipts.length !== 1 || !flags.every(value => value === true)) return false;
|
|
78
|
+
const state = spendingBudgetState(limits, receipts);
|
|
79
|
+
return !state.reason && metrics.every(metric => state.metrics[metric].knownTotal < p.budget.secondCallAdmission.firstReceiptMustBeStrictlyBelow[metric]);
|
|
80
|
+
};
|
|
81
|
+
const simulations = [];
|
|
82
|
+
const check = (name, operation) => { operation(); simulations.push(name); };
|
|
83
|
+
check('Complete low-cost candidate may reach the control gate', () => assert.equal(mayStartControl([observation()]), true));
|
|
84
|
+
check('No call or a completed pair cannot start the control', () => {
|
|
85
|
+
assert.equal(mayStartControl([]), false); assert.equal(mayStartControl([observation(), observation()]), false);
|
|
86
|
+
});
|
|
87
|
+
check('Each false or unknown prerequisite blocks the control', () => {
|
|
88
|
+
for (let i = 0; i < 6; i++) for (const value of [false, null]) {
|
|
89
|
+
const flags = Array(6).fill(true); flags[i] = value;
|
|
90
|
+
assert.equal(mayStartControl([observation()], flags), false);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
const reachedRows = {
|
|
94
|
+
input: observation(600000, 500000, 1, 1), cachedInput: observation(500001, 500000, 1, 1),
|
|
95
|
+
uncachedInput: observation(100001, 1, 1, 1), output: observation(2, 1, 20000, 1),
|
|
96
|
+
durationSeconds: observation(2, 1, 1, 1200),
|
|
97
|
+
};
|
|
98
|
+
for (const metric of metrics) check(`${metric}: at the batch line stops further calls`, () => {
|
|
99
|
+
const state = spendingBudgetState(limits, [reachedRows[metric]]);
|
|
100
|
+
assert.ok(state.reached.includes(metric)); assert.equal(state.reason, 'SPENDING_BUDGET_REACHED');
|
|
101
|
+
assert.equal(mayStartControl([reachedRows[metric]]), false);
|
|
102
|
+
});
|
|
103
|
+
const reserveRows = {
|
|
104
|
+
input: observation(300000, 250000, 1, 1), cachedInput: observation(250001, 250000, 1, 1),
|
|
105
|
+
uncachedInput: observation(50001, 1, 1, 1), output: observation(2, 1, 10000, 1),
|
|
106
|
+
durationSeconds: observation(2, 1, 1, 600),
|
|
107
|
+
};
|
|
108
|
+
for (const metric of metrics) check(`${metric}: at the first-call admission line also stops`, () => {
|
|
109
|
+
assert.equal(spendingBudgetState(limits, [reserveRows[metric]]).reason, null);
|
|
110
|
+
assert.equal(mayStartControl([reserveRows[metric]]), false);
|
|
111
|
+
});
|
|
112
|
+
for (const [name, row, reason] of [
|
|
113
|
+
['Missing final usage', {...observation(), tokens: null, usageStatus: 'unknown'}, 'FINAL_USAGE_MISSING'],
|
|
114
|
+
['Partial final usage', {...observation(), usageStatus: 'partial'}, 'FINAL_USAGE_MISSING'],
|
|
115
|
+
['Execution failure', {...observation(), error: 'failed'}, 'EXECUTION_FAILED'],
|
|
116
|
+
]) check(`${name} prevents continuation`, () => {
|
|
117
|
+
assert.equal(spendingBudgetState(limits, [row]).reason, reason); assert.equal(mayStartControl([row]), false);
|
|
118
|
+
});
|
|
119
|
+
console.log(JSON.stringify({kind: 'skillfit.receiver-mechanism-proposal-audit', proposalValid: true,
|
|
120
|
+
modelCalls: 0, agentCliCalls: 0, authorizedFutureModelCalls: 0, readyForModelCalls: false,
|
|
121
|
+
liveControllerTested: false, indexedHistoricalFilesVerified: index.files.length,
|
|
122
|
+
historicalStudyCalls: p.historicalStudyCalls, policySha256: p.acceptance.adoptionPolicySha256,
|
|
123
|
+
stopLines: limits, historicalMixedReference: basis.historicalMixedOriginalAndV4Reference,
|
|
124
|
+
twiceV4Reference: basis.twiceHistoricalV4Reference, simulations}, null, 2));
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { cpSync, existsSync, lstatSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { dirname, join, resolve } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
import { hashFileSet, listFilesRecursive, sha256File } from '../../dist/harness/hash.js';
|
|
6
|
+
import { nativeDiffDescriptor } from '../../dist/harness/native-diff.js';
|
|
7
|
+
|
|
8
|
+
// Offline input preparation only. This example never runs an agent or eval.
|
|
9
|
+
const root = fileURLToPath(new URL('../../', import.meta.url));
|
|
10
|
+
const args = process.argv.slice(2);
|
|
11
|
+
assert.ok(args.length === 0 || (args.length === 2 && ['--out', '--write'].includes(args[0])),
|
|
12
|
+
'Use --out <fresh-directory-under-runs> for a read-only plan, or --write to prepare');
|
|
13
|
+
const destination = resolve(root, args[1] ?? 'runs/native-diff-probe-inputs');
|
|
14
|
+
const runs = join(root, 'runs');
|
|
15
|
+
assert.equal(dirname(destination), runs, 'Prepare only in a fresh direct child of this checkout\'s runs directory');
|
|
16
|
+
if (existsSync(runs)) assert.ok(lstatSync(runs).isDirectory(), 'Runs directory must not be a symlink');
|
|
17
|
+
assert.equal(existsSync(destination), false, 'Destination already exists; preserve it and choose a fresh directory');
|
|
18
|
+
|
|
19
|
+
const sources = {
|
|
20
|
+
baseline: join(root, 'evidence/inputs/diagnosing-bugs'),
|
|
21
|
+
candidate: join(root, 'evidence/inputs/diagnosing-bugs-compact-v4'),
|
|
22
|
+
bench: join(root, 'benches/contrib/oss-skill-followup'),
|
|
23
|
+
};
|
|
24
|
+
const inventory = directory => {
|
|
25
|
+
const files = listFilesRecursive(directory);
|
|
26
|
+
return { sha256: hashFileSet(directory, files), files: files.map(path => ({ path, sha256: sha256File(join(directory, path)) })) };
|
|
27
|
+
};
|
|
28
|
+
const sourceInventory = Object.fromEntries(Object.entries(sources).map(([name, directory]) => [name, inventory(directory)]));
|
|
29
|
+
const bench = JSON.parse(readFileSync(join(sources.bench, 'bench.json'), 'utf8'));
|
|
30
|
+
const tasks = bench.tasks.filter(task => task.id === 'duration-large-digits');
|
|
31
|
+
assert.equal(tasks.length, 1);
|
|
32
|
+
const request = {
|
|
33
|
+
schemaVersion: 1, baselineSkill: './baseline', candidateSkill: './candidate', bench: './bench',
|
|
34
|
+
agent: 'codex', purpose: 'development', pairOrder: 'balanced', executorTimeoutSeconds: 1200,
|
|
35
|
+
trials: 2, maxCalls: 4, runsRoot: './results', runGroup: 'native-diff-probe-001',
|
|
36
|
+
policy: {
|
|
37
|
+
schemaVersion: 2, objective: 'efficiency', minTasks: 8, minTrialsPerTask: 5,
|
|
38
|
+
minUncachedInputReductionFraction: 0.1, minImprovedTaskFraction: 0.75,
|
|
39
|
+
maxCostIncreaseFraction: { input: 0, cachedInput: 0, uncachedInput: 0, output: 0, durationSeconds: 0.25 },
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const plan = {
|
|
43
|
+
schemaVersion: 1, kind: 'skillfit.offline-probe-preparation', destination,
|
|
44
|
+
dryRun: args[0] !== '--write', modelCalls: 0, authorizedLiveCalls: 0,
|
|
45
|
+
proposedCallsRequiringFreshAuthorization: 4, task: tasks[0].id,
|
|
46
|
+
nativeDiffTool: nativeDiffDescriptor(), sourceInventory, request,
|
|
47
|
+
limits: ['development only', 'no automatic expansion or upgrade', 'does not isolate the causal effect of the common helper'],
|
|
48
|
+
};
|
|
49
|
+
console.log(JSON.stringify(plan, null, 2));
|
|
50
|
+
if (plan.dryRun) process.exit(0);
|
|
51
|
+
|
|
52
|
+
mkdirSync(join(root, 'runs'), { recursive: true });
|
|
53
|
+
mkdirSync(destination);
|
|
54
|
+
const writeJson = (file, value) => {
|
|
55
|
+
writeFileSync(file, JSON.stringify(value, null, 2) + '\n', { flag: 'wx' });
|
|
56
|
+
assert.deepEqual(JSON.parse(readFileSync(file, 'utf8')), value);
|
|
57
|
+
};
|
|
58
|
+
writeJson(join(destination, 'preparation-plan.json'), plan);
|
|
59
|
+
for (const [name, source] of Object.entries(sources)) {
|
|
60
|
+
cpSync(source, join(destination, name), { recursive: true, errorOnExist: true, force: false });
|
|
61
|
+
assert.deepEqual(inventory(join(destination, name)), sourceInventory[name], 'Copied inputs differ');
|
|
62
|
+
}
|
|
63
|
+
// Keep the full bench assets and oracle checks, but schedule exactly one task.
|
|
64
|
+
// The original bench definition is backed up before the local projection.
|
|
65
|
+
writeJson(join(destination, 'bench/bench.original.json'), bench);
|
|
66
|
+
writeFileSync(join(destination, 'bench/bench.json'), JSON.stringify({ ...bench,
|
|
67
|
+
name: 'native-diff-development-probe',
|
|
68
|
+
description: 'One reused development defect; no independent validation or live-call authorization.', tasks,
|
|
69
|
+
}, null, 2) + '\n');
|
|
70
|
+
assert.equal(JSON.parse(readFileSync(join(destination, 'bench/bench.json'), 'utf8')).tasks.length, 1);
|
|
71
|
+
writeJson(join(destination, 'prepared-inputs.json'), {
|
|
72
|
+
...Object.fromEntries(Object.keys(sources).map(name => [name, inventory(join(destination, name))])),
|
|
73
|
+
nativeDiffTool: nativeDiffDescriptor(), modelCalls: 0,
|
|
74
|
+
});
|
|
75
|
+
writeJson(join(destination, 'request.json'), request);
|