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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Sealed evaluation inputs
|
|
2
|
+
|
|
3
|
+
This feature is included in 0.10.1; see its [release record](releases/0.10.1.md)
|
|
4
|
+
for publication status. Existing npm archives and historical evidence are unchanged.
|
|
5
|
+
|
|
6
|
+
New evaluation sessions copy and verify their inputs **before the first agent
|
|
7
|
+
or judge dispatch**. Editing, moving or deleting the original Skill or bench
|
|
8
|
+
afterward no longer prevents export or offline replay. This is a local evidence
|
|
9
|
+
archive; it makes zero model calls and does not rerun an evaluation.
|
|
10
|
+
|
|
11
|
+
## When sealing happens
|
|
12
|
+
|
|
13
|
+
Live `eval` validates its declaration and runs [offline case gates](eval-case-preflight.md)
|
|
14
|
+
first. Its native session then exclusively claims a fresh output directory,
|
|
15
|
+
copies inputs, verifies their fingerprints and writes the frozen plan last.
|
|
16
|
+
A failed copy, changed source or inconsistent bench stops before dispatch and
|
|
17
|
+
removes only that session's newly claimed output. Existing outputs and sibling
|
|
18
|
+
runs are preserved. No partial snapshot is advertised as a completed run.
|
|
19
|
+
|
|
20
|
+
Preview remains read-only. In request JSON,
|
|
21
|
+
`plan.evaluation.inputSnapshot` is `{schemaVersion: 1, required: true,
|
|
22
|
+
status: "pending"}`; no input archive exists yet. Its policy is part of the
|
|
23
|
+
approved plan, while actual copy time is recorded only after execution starts.
|
|
24
|
+
|
|
25
|
+
Sealing also applies to sessions used by trigger mode and baseline calibration.
|
|
26
|
+
Their existing paired-export restrictions are unchanged. A separate global
|
|
27
|
+
configuration installation is never performed by this feature.
|
|
28
|
+
|
|
29
|
+
## What is saved
|
|
30
|
+
|
|
31
|
+
| Native path | Contents |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `_inputs/bench/` | Full pinned bench, including prompts, fixtures, verifiers, reference repairs and unselected tasks |
|
|
34
|
+
| `_inputs/target/` | Complete pinned target Skill or configuration experiment directory |
|
|
35
|
+
| `_inputs/baseline-skill/` | Previous complete Skill revision, when present |
|
|
36
|
+
| `_inputs/implementation/` | Compiled implementation used by the run |
|
|
37
|
+
| `_inputs/request.json` | Exact component request bytes, when present |
|
|
38
|
+
| `_inputs.json` | Version 1 snapshot inventory, fingerprints and directory/executable-file metadata |
|
|
39
|
+
|
|
40
|
+
The manifest identifies selected tasks as before; archiving the full bench keeps
|
|
41
|
+
its original content hash and all referenced files available. Empty directories
|
|
42
|
+
are retained. Executable permission bits are preserved on systems that support
|
|
43
|
+
them and checked on POSIX. Git metadata and the current run output are excluded;
|
|
44
|
+
symbolic links and unsupported file types are rejected. The archived bench must
|
|
45
|
+
load with the declared content hash before calls start. Keep Git metadata and
|
|
46
|
+
run outputs out of the task's input tree rather than relying on unrecorded files.
|
|
47
|
+
|
|
48
|
+
Only the listed project inputs are copied. Global configuration and globally
|
|
49
|
+
installed Skills keep their existing fingerprints/guards; their private contents
|
|
50
|
+
are not archived. External tools, installed dependencies outside these inputs,
|
|
51
|
+
credentials, operating-system state and server-side model identities are not
|
|
52
|
+
captured. Replay still needs Node.js 22+ and the verifier's external toolchains.
|
|
53
|
+
|
|
54
|
+
## Integrity and runtime behavior
|
|
55
|
+
|
|
56
|
+
`_plan.json.inputSnapshot` binds `_inputs.json` by SHA-256. Every indexed copy is
|
|
57
|
+
checked against the pre-copy fingerprint and exact file/directory inventory.
|
|
58
|
+
The final `_artifacts.json` also covers snapshot files. The normal session checks
|
|
59
|
+
both original input drift and archive integrity between calls. Editing the
|
|
60
|
+
originals during a live evaluation still stops further dispatches; this feature
|
|
61
|
+
does not make a changing cohort valid. The saved snapshots retain the initially
|
|
62
|
+
declared inputs for inspecting or exporting that stopped run.
|
|
63
|
+
|
|
64
|
+
A missing, changed, linked or incomplete declared snapshot fails closed. Neither
|
|
65
|
+
matching current originals nor `--input-root` overrides bypass a damaged archive.
|
|
66
|
+
An updated outer artifact index cannot hide a change that disagrees with the
|
|
67
|
+
plan-bound snapshot inventory. Hashes establish byte consistency, not independent
|
|
68
|
+
publisher authentication; retain a trusted copy of evidence hashes for provenance.
|
|
69
|
+
|
|
70
|
+
JSON assessment returns `inputSnapshot` with its descriptor and cost. Historical
|
|
71
|
+
runs return `null`, not a fabricated archive. Stopped/incomplete reports retain
|
|
72
|
+
their existing `evidence.verified: false` semantics; a snapshot alone never makes
|
|
73
|
+
them completed, improves their cost coverage or authorizes adoption.
|
|
74
|
+
|
|
75
|
+
## Export and replay after the originals change
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
skillfit report eval ./runs/my-run --json --replay
|
|
79
|
+
skillfit report eval ./runs/my-run --export ./exports/my-run --json
|
|
80
|
+
skillfit report eval ./runs/my-run --export ./exports/my-run --yes --json
|
|
81
|
+
node ./exports/my-run/reproduce.mjs
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Native replay defaults to the sealed bench. Portable export defaults to sealed
|
|
85
|
+
inputs and the sealed implementation/request, so it works after original files
|
|
86
|
+
change or disappear. The native run directory itself can also be moved before
|
|
87
|
+
export. Explicit recovery roots still require exactly matching fingerprints;
|
|
88
|
+
the snapshot is validated first. Existing/nested export destinations remain
|
|
89
|
+
forbidden, and previews still write nothing.
|
|
90
|
+
|
|
91
|
+
Runs without `inputSnapshot` use the original matching-root recovery contract
|
|
92
|
+
described in [replay packages](replay-packages.md). New software does not rewrite
|
|
93
|
+
old plans, synthesize missing historical inputs or repair damaged evidence by
|
|
94
|
+
substituting newer files. Historical published evidence remains append-only.
|
|
95
|
+
|
|
96
|
+
## Local overhead and privacy
|
|
97
|
+
|
|
98
|
+
`inputSnapshot.cost` records `modelCalls: 0`, observed `durationMs`, `files` and
|
|
99
|
+
`bytes`. Counts include the input payload and `_inputs.json`; bytes are apparent
|
|
100
|
+
file sizes, not filesystem allocation. Elapsed time covers snapshot copying and
|
|
101
|
+
verification, not later per-call guards or an external toolchain bill. Sealing
|
|
102
|
+
and integrity checks add local I/O and storage without changing primary-agent
|
|
103
|
+
token totals, call budgets, duration populations or statistical/adoption rules.
|
|
104
|
+
Per-call archive checks run within the existing trial timer where applicable;
|
|
105
|
+
`inputSnapshot.cost.durationMs` is only the one-time sealing interval.
|
|
106
|
+
|
|
107
|
+
Portable export preserves the unchanged native archive and also supplies the
|
|
108
|
+
portable input/runtime layout; it therefore contains additional copies. Its
|
|
109
|
+
existing byte/file preview includes those source copies. No automatic pruning
|
|
110
|
+
or redaction removes evidence. Snapshots can include repository data, reference
|
|
111
|
+
answers and private target resources: review the run/package before sharing.
|
|
112
|
+
|
|
113
|
+
## Offline regression checks
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
npm test
|
|
117
|
+
node --test dist/commands/eval-export.test.js dist/harness/experiment-session.test.js dist/harness/eval-component.test.js
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Tests use mock executors and local files. They cover archive presence before
|
|
121
|
+
dispatch, zero-call failure cleanup, source/archive drift, complete Skill/request
|
|
122
|
+
retention, changed/deleted originals, moved runs, stopped costs, portable replay,
|
|
123
|
+
legacy recovery, empty fixtures, executable files and corrupted/linked snapshots.
|
|
124
|
+
No real model API or agent CLI is called.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# Interrupt and retain an evaluation
|
|
2
|
+
|
|
3
|
+
This fix is included in 0.10.1; see the [release record](releases/0.10.1.md)
|
|
4
|
+
for publication status. The immutable npm 0.10.0 archive does not include it. It changes interruption
|
|
5
|
+
handling, not the statistical or adoption protocol.
|
|
6
|
+
|
|
7
|
+
## Stop a live run
|
|
8
|
+
|
|
9
|
+
Press **Ctrl+C** once during a live evaluation. The same path handles `SIGTERM`.
|
|
10
|
+
It covers paired inject/installed evaluations, JSON request execution, trigger
|
|
11
|
+
evaluations and live `bench check --calibrate`. It also stops an active harness
|
|
12
|
+
verifier or judge. Previews and read-only reports install no interrupt handlers.
|
|
13
|
+
|
|
14
|
+
The source also cancels [offline case preflight](eval-case-preflight.md) before
|
|
15
|
+
dispatch. Its verifier/oracle trees stop with exit 130/143 and zero model calls;
|
|
16
|
+
because a native run has not started, no stopped run directory is synthesized.
|
|
17
|
+
Once a run directory exists, the retained-evidence contract below applies.
|
|
18
|
+
|
|
19
|
+
The runner stops subsequent dispatches, terminates managed CLI/process trees
|
|
20
|
+
and waits for output to close. POSIX uses the process group; Windows uses
|
|
21
|
+
`taskkill /T`. Pipe draining is bounded when a descendant retains a pipe. HTTP
|
|
22
|
+
executors abort their local request. The process then seals retained records and
|
|
23
|
+
exits **130 for SIGINT** or **143 for SIGTERM**, including request-based JSON
|
|
24
|
+
execution. Diagnostics go to stderr; JSON stdout remains one document.
|
|
25
|
+
|
|
26
|
+
Repeated signals during cleanup keep the first interruption and do not bypass
|
|
27
|
+
sealing. There is no automatic retry, replacement, partner invocation or expansion.
|
|
28
|
+
Wait for the command to finish rather than treating the first signal as an
|
|
29
|
+
immediate process exit. After sealing, signal handlers and cancellation context
|
|
30
|
+
are removed so later operations do not inherit a cancelled run.
|
|
31
|
+
|
|
32
|
+
## Retained evidence
|
|
33
|
+
|
|
34
|
+
The native run directory keeps:
|
|
35
|
+
|
|
36
|
+
- `_plan.json` and `_calls.jsonl`: original declaration and actual dispatch events.
|
|
37
|
+
- In new source runs, `_inputs.json` and `_inputs/`: sealed inputs available even
|
|
38
|
+
if original Skill/bench/request paths later change or disappear.
|
|
39
|
+
- Existing per-trial output, transcripts and `_result.json`: settled final usage
|
|
40
|
+
stays final; recovered counters from an interrupted call stay partial; missing
|
|
41
|
+
usage stays unknown. Interruption is an execution error, not a graded failure.
|
|
42
|
+
- `_interruption.json`: version 1 signal name, receipt time, exit code and
|
|
43
|
+
`automaticRetry: false`.
|
|
44
|
+
- `_session.json`: stopped status, call counts and stop reason.
|
|
45
|
+
- `_artifacts.json`: inventory and hashes of retained files, including interruption
|
|
46
|
+
metadata. A stopped prefix does not acquire a completed efficacy verdict.
|
|
47
|
+
|
|
48
|
+
An interrupted judge additionally keeps `_interrupted-judge-<call>.json` with its
|
|
49
|
+
available output/usage or null when unavailable. Separate judge spending remains
|
|
50
|
+
outside the primary-agent cost totals; this record does not make that bill complete.
|
|
51
|
+
Trigger receipts retain interrupted output/tokens with partial/unknown status;
|
|
52
|
+
the existing paired JSON assessment/export contract is not extended to trigger
|
|
53
|
+
or judge runs by this fix.
|
|
54
|
+
|
|
55
|
+
Inspect a paired stopped run without another agent call:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
node dist/cli.js report eval ./runs/my-run --json
|
|
59
|
+
node dist/cli.js report eval ./runs/my-run --export ./exports/my-run --json
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Export uses [sealed inputs](evaluation-input-snapshots.md) for new source runs;
|
|
63
|
+
older runs still require matching recovered inputs. A fresh destination is required. A completed
|
|
64
|
+
export replays the same stopped status and cost coverage; it cannot authorize an
|
|
65
|
+
upgrade. Preserve this run, fix the cause and make a fresh bounded declaration if
|
|
66
|
+
further spending is authorized. Unused slots are not permission to continue.
|
|
67
|
+
|
|
68
|
+
Local cancellation cannot guarantee that a provider stops work already accepted
|
|
69
|
+
on its servers. Usage unavailable after HTTP cancellation remains unknown.
|
|
70
|
+
`SIGKILL`, power loss and storage failures can prevent sealing; a directory without
|
|
71
|
+
final session/index files remains incomplete. Built-in executors and managed local
|
|
72
|
+
processes participate in cancellation; unrelated services are outside that control.
|
|
73
|
+
|
|
74
|
+
## Offline regression checks
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
npm test
|
|
78
|
+
node --test dist/commands/eval-interruption.test.js dist/harness/interruption.test.js
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The tests inject fake Node CLI/process trees and a fake fetch implementation. They
|
|
82
|
+
check interrupted primary/verifier/judge work, trigger/calibration/request execution,
|
|
83
|
+
repeated signals, between-call interruption, partial and unknown costs, sealed
|
|
84
|
+
inventories, stopped-package replay, exit codes and handler/context cleanup.
|
|
85
|
+
POSIX integration tests deliver real OS signals to the harness. Windows tests emit
|
|
86
|
+
the corresponding Node signal event through an isolated harness because Node's
|
|
87
|
+
`child.kill('SIGINT')` forcibly terminates a Windows process; real Windows
|
|
88
|
+
`taskkill /T` still terminates the fake CLI and its descendant. These tests do not
|
|
89
|
+
establish physical-console event delivery or call any real model or agent CLI.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Read an evaluation report
|
|
2
|
+
|
|
3
|
+
Version 0.10.1 uses the same saved-evidence assessment for Markdown and JSON.
|
|
4
|
+
Both formats accept a manifest file, native run directory or portable replay
|
|
5
|
+
package directory. Neither starts an agent or changes the saved run.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
skillfit report eval ./runs/my-run
|
|
9
|
+
skillfit report eval ./runs/my-run --json
|
|
10
|
+
skillfit report eval ./runs/my-run/manifest.json
|
|
11
|
+
skillfit report eval ./exports/my-run --replay
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`--json` changes the format, not which evidence is checked. `--replay`,
|
|
15
|
+
`--records <run-dir>` and `--policy <policy.json>` work with either format.
|
|
16
|
+
Replay grades disposable delivery copies using trusted local verifiers; it
|
|
17
|
+
does not call a model. An overridden policy is post-hoc and cannot authorize
|
|
18
|
+
adoption unless it matches the policy frozen before execution. Portable packages
|
|
19
|
+
already pin their run/bench and reject external records/bench overrides.
|
|
20
|
+
|
|
21
|
+
## Completed, stopped and incomplete inputs
|
|
22
|
+
|
|
23
|
+
- A completed manifest retains the existing quality/facet/cost tables. Markdown
|
|
24
|
+
also shows the native audit status, separate acceptance decision, upgrade
|
|
25
|
+
eligibility and reasons. A statistical quality verdict is not an adoption
|
|
26
|
+
decision. `automaticUpgrade` remains false.
|
|
27
|
+
- A native directory without a final manifest shows `stopped` when a saved
|
|
28
|
+
session exists, otherwise `incomplete`. It displays the stop reason when
|
|
29
|
+
available, retained costs, missing/invalid receipt counts and unknown coverage.
|
|
30
|
+
It does not fabricate a paired quality verdict or overwrite the run.
|
|
31
|
+
- A standalone historical manifest stays readable. Missing native evidence
|
|
32
|
+
remains `unverified`; rendering it cannot authenticate the source or qualify
|
|
33
|
+
it for adoption. Available current preflight and input-snapshot metadata are
|
|
34
|
+
displayed separately; their presence alone does not validate a stopped run.
|
|
35
|
+
- Corrupt native evidence is reported as unverified with audit/acceptance
|
|
36
|
+
reasons. A changed portable package fails its inventory/hash verification
|
|
37
|
+
before rendering. An empty directory, missing path or malformed/unsupported
|
|
38
|
+
manifest is an input error.
|
|
39
|
+
|
|
40
|
+
Successful rendering keeps exit 0 even if acceptance is `reject` or
|
|
41
|
+
`inconclusive`; callers must inspect `acceptance` and `evidence` rather than
|
|
42
|
+
interpret the exit code as approval to upgrade. Invalid inputs fail nonzero.
|
|
43
|
+
JSON keeps its version 1 contract. Human reports abbreviate the local run root
|
|
44
|
+
as `[run]` in diagnostic text; JSON retains precise paths for investigation.
|
|
45
|
+
|
|
46
|
+
Saved costs stay in their original final/partial/unknown populations. Reports do
|
|
47
|
+
not replace missing cache counts with zero or estimate unrecorded billing.
|
|
48
|
+
See [cost accounting](eval-costs.md), [input snapshots](evaluation-input-snapshots.md)
|
|
49
|
+
and [portable packages](replay-packages.md). Review project data before sharing.
|
|
@@ -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);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Read-only proposal audit: saved usage arithmetic; optionally verify public archives.
|
|
2
|
+
// No agent CLI, model API, dependency install or network access.
|
|
3
|
+
import assert from 'node:assert/strict';
|
|
4
|
+
import { createHash } from 'node:crypto';
|
|
5
|
+
import { readFileSync, mkdtempSync, mkdirSync, rmSync } from 'node:fs';
|
|
6
|
+
import { join, resolve, sep } from 'node:path';
|
|
7
|
+
import { tmpdir } from 'node:os';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { execFileSync } from 'node:child_process';
|
|
10
|
+
|
|
11
|
+
const root = fileURLToPath(new URL('../../', import.meta.url));
|
|
12
|
+
assert.ok(process.argv.length === 2 || (process.argv.length === 3 && process.argv[2] === '--verify-archives'), 'Use no arguments or --verify-archives');
|
|
13
|
+
const load = path => JSON.parse(readFileSync(join(root, path), 'utf8'));
|
|
14
|
+
const sha256 = path => createHash('sha256').update(readFileSync(path)).digest('hex');
|
|
15
|
+
const inputs = load('docs/plans/2026-10-15-independent-comparison-inputs.json');
|
|
16
|
+
const budget = load('docs/plans/2026-10-15-independent-comparison-budget.json');
|
|
17
|
+
assert.equal(inputs.authorizedModelCalls, 0);
|
|
18
|
+
assert.equal(inputs.tasks.length, 8);
|
|
19
|
+
assert.equal(new Set(inputs.tasks.map(task => task.id)).size, 8);
|
|
20
|
+
assert.ok(inputs.tasks.every(task => !inputs.independence.previouslyScheduledTaskIds.includes(task.id)));
|
|
21
|
+
assert.equal(inputs.plannedCalls, 2 * inputs.tasks.length * inputs.trialsPerArm);
|
|
22
|
+
assert.equal(inputs.plannedCalls, 80);
|
|
23
|
+
assert.equal(budget.samples.length, 130);
|
|
24
|
+
assert.equal(budget.samples.filter(row => row.arm === 'baseline').length, 65);
|
|
25
|
+
assert.equal(budget.samples.filter(row => row.arm === 'treatment').length, 65);
|
|
26
|
+
const metrics = ['input', 'cachedInput', 'uncachedInput', 'output', 'durationSeconds'];
|
|
27
|
+
for (const row of budget.samples) {
|
|
28
|
+
assert.equal(row.input, row.cachedInput + row.uncachedInput);
|
|
29
|
+
for (const metric of metrics) assert.ok(Number.isFinite(row[metric]) && row[metric] >= 0);
|
|
30
|
+
}
|
|
31
|
+
const close = (actual, expected) => assert.ok(Math.abs(actual - expected) < 1e-6, `${actual} != ${expected}`);
|
|
32
|
+
const base = {}, marginalStress = {};
|
|
33
|
+
for (const metric of metrics) {
|
|
34
|
+
const groups = ['baseline', 'treatment'].map(arm => budget.samples.filter(row => row.arm === arm).map(row => row[metric]).sort((a, b) => a - b));
|
|
35
|
+
base[metric] = groups.reduce((sum, values) => sum + 40 * values.reduce((a, b) => a + b, 0) / values.length, 0);
|
|
36
|
+
marginalStress[metric] = 40 * 1.25 * groups.reduce((sum, values) => sum + values[Math.ceil(0.9 * values.length) - 1], 0);
|
|
37
|
+
close(base[metric], budget.projection.base80[metric]);
|
|
38
|
+
close(marginalStress[metric], budget.projection.marginalStress80[metric]);
|
|
39
|
+
}
|
|
40
|
+
const stress = { ...marginalStress, input: marginalStress.cachedInput + marginalStress.uncachedInput };
|
|
41
|
+
for (const metric of metrics) close(stress[metric], budget.projection.partitionConsistentStress80[metric]);
|
|
42
|
+
close(base.input, base.cachedInput + base.uncachedInput);
|
|
43
|
+
assert.equal(stress.input, stress.cachedInput + stress.uncachedInput);
|
|
44
|
+
let sourceRecordsVerified = 0;
|
|
45
|
+
if (process.argv[2] === '--verify-archives') {
|
|
46
|
+
// Plan: check archive hashes first, extract into a new owned temporary directory,
|
|
47
|
+
// read only result JSON, verify counters, and remove only that temporary copy.
|
|
48
|
+
for (const source of budget.sources) assert.equal(sha256(join(root, source.path)), source.sha256, source.path);
|
|
49
|
+
const temporary = mkdtempSync(join(tmpdir(), 'skillfit-proposal-cost-'));
|
|
50
|
+
try {
|
|
51
|
+
for (const source of budget.sources) {
|
|
52
|
+
const destination = join(temporary, source.id);
|
|
53
|
+
mkdirSync(destination);
|
|
54
|
+
execFileSync('tar', ['-xzf', join(root, source.path), '-C', destination]);
|
|
55
|
+
for (const row of budget.samples.filter(row => row.cohort === source.id)) {
|
|
56
|
+
const recordPath = resolve(destination, row.recordPath);
|
|
57
|
+
assert.ok(recordPath.startsWith(destination + sep));
|
|
58
|
+
assert.equal(sha256(recordPath), row.recordSha256);
|
|
59
|
+
const record = JSON.parse(readFileSync(recordPath, 'utf8'));
|
|
60
|
+
assert.equal(record.executorInvoked, true);
|
|
61
|
+
assert.equal(record.error, null);
|
|
62
|
+
assert.equal(record.usageStatus, 'final');
|
|
63
|
+
for (const metric of ['input', 'cachedInput', 'output']) assert.equal(record.tokens[metric], row[metric]);
|
|
64
|
+
assert.equal(record.durationSeconds, row.durationSeconds);
|
|
65
|
+
sourceRecordsVerified++;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
assert.equal(sourceRecordsVerified, 130);
|
|
69
|
+
} finally {
|
|
70
|
+
rmSync(temporary, { recursive: true, force: true });
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
console.log(JSON.stringify({ modelCalls: 0, authorizedModelCalls: 0, proposedCalls: inputs.plannedCalls, tasks: inputs.tasks.length, forecastSamples: budget.samples.length, sourceRecordsVerified, base80: base, stress80: stress, status: 'proposal-not-executed' }, null, 2));
|
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Use the existing CLI workflow to compare a pinned Skill with baseline on real failures. A historical replay does not create an upstream PR: its purpose is to grade both arms consistently before spending time installing a Skill.
|
|
4
4
|
|
|
5
|
+
Version 0.10.1 handles Ctrl+C/SIGTERM by stopping managed evaluation
|
|
6
|
+
processes, retaining available output/usage and sealing a stopped run before
|
|
7
|
+
exit 130/143. No partner/retry/replacement is dispatched after cancellation.
|
|
8
|
+
See [interruption and retained records](evaluation-interruption.md). Forced
|
|
9
|
+
termination/power loss may prevent sealing. The same release enforces offline
|
|
10
|
+
case gates and seals project input copies before dispatch. See [sealed inputs](evaluation-input-snapshots.md).
|
|
11
|
+
|
|
5
12
|
1. Prepare independent tasks from issue requirements and pinned bug/fix revisions. Keep the fix, grader and oracle outside trial workspaces. Run `bench check` offline and review its NOP, oracle and counterexample gates. The [lru-cache replay](../benches/contrib/oss-lru-cache/README.md) has three independently sourced failures; difficulty is initially unknown.
|
|
6
13
|
2. Dry-run baseline calibration with the input mode you will later evaluate. For the three-task replay: `skillfit bench check benches/contrib/oss-lru-cache --calibrate --agent codex --input workspace --trials 2 --max-calls 6 --dry-run`. Run without `--dry-run` only after reviewing the fixed plan. Keep saturated tasks as regression controls; repair broken graders/environments before interpreting a floor.
|
|
7
14
|
3. Declare a fresh paired run with the full Skill installed only in treatment: `skillfit eval <skill-dir> --mode installed --bench <bench-dir> --agent codex --trials 5 --max-calls <ceiling> --dry-run`. The declared count is tasks × trials × two arms, plus two judge calls per pair when enabled. The default ceiling equals the declared count. A lower ceiling rejects the entire plan; it never truncates tasks, retries errors, or adds replacement samples.
|
|
8
15
|
4. Run the reviewed command without `--dry-run`. Fresh groups retain `_plan.json` (bench/target/implementation hashes, Node/package/available CLI versions, allowlisted configured model settings, declared workspace paths and call budget), `_calls.jsonl` (append-only started/finished/failed events with prompt hashes), `_session.json` (completion/stop reason), and `_artifacts.json` (regular-file hashes and unfollowed symlink targets). Calibration also retains `_calibration.json` with task counts. Existing groups are never overwritten.
|
|
9
|
-
5.
|
|
16
|
+
5. Read a saved-evidence report: `skillfit report eval runs/<group>` (add `--json` for an Agent). Both formats accept the same completed or stopped run and show audit/acceptance reasons. See [report inputs](evaluation-reports.md). Inspect task checks, errors, token coverage, read observations and session completeness before deciding. Partial/stopped sessions produce no installation recommendation even if their surviving subset favors treatment. Preserve their receipts, then fix the cause and predeclare a fresh run. Do not pool adaptive calibration into validation.
|
|
10
17
|
|
|
11
18
|
Before and after each model/judge call, the harness checks pinned input bytes and matrix-listed user configuration/Skill roots. Executor failures or detected drift stop further actual calls. Returned output/transcripts are retained when a post-call check detects drift, but the trial is ungraded. Only pure project-trust registrations for predeclared disposable workspaces are excluded from the configuration hash, along with final blank newline separators; other fields, paths, trust values and bytes remain covered. Plans freeze each workspace's logical and physical path: pure trust registrations for either name are allowed, while alias retargeting stops further calls. Input symlinks are rejected; top-level global Skill directory aliases are pinned through their resolved content plus a watched inventory.
|
|
12
19
|
|
|
13
20
|
This is an inspection contract, not environment isolation or tamper-proof attestation. API configured model names and allowlisted CLI settings do not prove which server model served a response. Inherited plugins, unlisted paths, toolchains, server-side drift and sampling remain uncontrolled. Judge sandbox paths are temporary and not exempted from trust checks; a new unplanned trust registration stops the run. Only the selected primary agent's matrix configuration is fingerprinted; a different judge's environment remains unrecorded. Do not include raw configuration, auth files or credentials in published artifacts. Paths and agent output may still contain private project material; inspect them before sharing.
|
|
14
21
|
|
|
15
|
-
Paired installed-Skill read counts describe mechanical observations on surviving graded pairs. Read-unobserved is not proof of non-use; read-observed is not proof of benefit. Use separately labeled positive/negative trigger runs for trigger precision/recall. The frozen verdict formulas remain unchanged, and optional workflow metadata keeps legal legacy v4 manifests readable with unchanged
|
|
22
|
+
Paired installed-Skill read counts describe mechanical observations on surviving graded pairs. Read-unobserved is not proof of non-use; read-observed is not proof of benefit. Use separately labeled positive/negative trigger runs for trigger precision/recall. The frozen verdict formulas remain unchanged, and optional workflow metadata keeps legal legacy v4 manifests readable with unchanged quality tables and verdict formulas.
|
package/docs/first-real-eval.md
CHANGED
|
@@ -13,6 +13,12 @@ CLI coding runs can add `--input workspace` to work from files on disk without a
|
|
|
13
13
|
inline repository; use the same option for baseline calibration. Snapshot input
|
|
14
14
|
remains the compatible default.
|
|
15
15
|
|
|
16
|
+
For a new code-editing case, a source build supports `bench init my-bench --kind command`.
|
|
17
|
+
It creates a synthetic teaching fixture, independent verifier and reference
|
|
18
|
+
repair; this template is included in npm 0.10.0 and newer. Follow the
|
|
19
|
+
[starter walkthrough](bench-authoring.md#choose-a-starter), replace it with your
|
|
20
|
+
real task, and preview `--trials 1 --max-calls 2` before deciding to spend.
|
|
21
|
+
|
|
16
22
|
Choose one Skill, rules file, or MCP setup and one task family where it should help. Prefer tasks
|
|
17
23
|
frozen from failures you actually encountered. For a Skill, use the directory that contains its
|
|
18
24
|
`SKILL.md`; for rules or MCP, use the experiment directory described in
|
|
@@ -68,7 +74,10 @@ The first command creates a new directory under `runs/` and prints its `Manifest
|
|
|
68
74
|
exact path for the second command; the report command is read-only. Each task and trial has an
|
|
69
75
|
`_output.md`, `_verifier.txt`, and `_result.json` beside the summary manifest. Keep the manifest and
|
|
70
76
|
the pinned target and bench hashes so another person can inspect the same result. Review those files
|
|
71
|
-
for private paths or content before sharing.
|
|
77
|
+
for private paths or content before sharing. In 0.10.1, the report also accepts
|
|
78
|
+
the native run directory or a portable package directory, with the same audit
|
|
79
|
+
and acceptance result as `--json`. Stopped runs retain their available costs and
|
|
80
|
+
stay ineligible. See [report formats](evaluation-reports.md).
|
|
72
81
|
|
|
73
82
|
Read the **errors** first: a pair with an executor or verifier error was not graded, and neither arm
|
|
74
83
|
gets a failure for it. Then inspect baseline ceiling/floor warnings, the number and direction of
|