skillfit 0.11.0 → 0.13.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 +68 -104
- package/README.zh-CN.md +68 -101
- package/benches/README.md +6 -2
- package/dist/cli.js +28 -16
- package/dist/commands/bench-calibration.js +5 -1
- package/dist/commands/bench-check-report.js +1 -34
- package/dist/commands/bench-draft.js +167 -0
- package/dist/commands/bench-draft.test.js +168 -0
- package/dist/commands/bench-manage.js +5 -4
- package/dist/commands/bench-source.js +101 -0
- package/dist/commands/bench-source.test.js +84 -0
- package/dist/commands/bench.js +157 -328
- package/dist/commands/eval-api-failure.test.js +46 -0
- package/dist/commands/eval-layout.test.js +126 -0
- package/dist/commands/eval-preflight-error.js +9 -0
- package/dist/commands/eval-preflight.js +4 -11
- package/dist/commands/eval-report.js +6 -459
- package/dist/commands/eval.js +7 -32
- package/dist/commands/install.js +14 -98
- package/dist/harness/agent-preflight.js +18 -2
- package/dist/harness/bench-check.js +277 -0
- package/dist/harness/bench-diagnostics.js +34 -0
- package/dist/harness/bench-location.js +29 -0
- package/dist/harness/bench-location.test.js +33 -0
- package/dist/harness/bench.js +8 -3
- package/dist/harness/eval-acceptance.js +1 -1
- package/dist/harness/eval-audit.js +2 -2
- package/dist/harness/eval-manifest.js +456 -0
- package/dist/harness/evaluation-layout.js +30 -0
- package/dist/harness/executors/api.js +20 -7
- package/dist/harness/executors/cli.js +15 -25
- package/dist/harness/experiment-session.js +5 -15
- package/dist/harness/hash.js +3 -1
- package/dist/harness/runner.js +5 -4
- package/dist/harness/single-arm-audit.js +1 -1
- package/dist/harness/trigger.js +1 -1
- package/dist/harness/verifier-timeout.js +8 -0
- package/dist/harness/verifier-timeout.test.js +76 -0
- package/dist/install/constants.js +1 -0
- package/dist/install/transaction.js +112 -0
- package/docs/README.md +65 -0
- package/docs/architecture.md +86 -0
- package/docs/archive-delivery.md +83 -0
- package/docs/archive-inventory.md +91 -0
- package/docs/bench-authoring.md +23 -3
- package/docs/bench-drafting.md +75 -0
- package/docs/case-management.md +12 -1
- package/docs/eval-agent-preflight.md +15 -2
- package/docs/eval-costs.md +28 -2
- package/docs/eval-planning.md +14 -0
- package/docs/evaluation-input-snapshots.md +20 -4
- package/docs/evaluation-reports.md +1 -1
- package/docs/first-real-eval.md +28 -3
- package/docs/growth-roadmap-2026-10.md +23 -18
- package/docs/package-contents.md +73 -0
- package/docs/plans/2026-10-17-workflow-foundations.md +37 -2
- package/docs/plans/2026-10-20-archive-replay-verification.json +125 -0
- package/docs/plans/2026-10-20-archive-source-verification.json +256 -0
- package/docs/plans/2026-10-20-delivery-verification.json +146 -0
- package/docs/plans/2026-10-20-docs-architecture-cleanup.md +233 -0
- package/docs/plans/2026-10-20-install-transactions-and-archive-delivery.md +233 -0
- package/docs/plans/2026-10-21-npm-0.13.0-release.md +41 -0
- package/docs/releases/0.11.0-ci-registry-install.json +130 -0
- package/docs/releases/0.11.0-feature-smoke.json +1576 -0
- package/docs/releases/0.11.0-local-attempt-1.json +24 -0
- package/docs/releases/0.11.0-local-attempt-1.log +19 -0
- package/docs/releases/0.11.0-local-registry-install.json +25 -0
- package/docs/releases/0.11.0-registry-metadata.json +33 -0
- package/docs/releases/0.11.0-signatures.txt +12 -0
- package/docs/releases/0.11.0-verification.json +95 -0
- package/docs/releases/0.11.0.md +54 -11
- package/docs/releases/0.12.0-attestation-check.json +22 -0
- package/docs/releases/0.12.0-attestations.json +155 -0
- package/docs/releases/0.12.0-ci-registry-install.json +90 -0
- package/docs/releases/0.12.0-feature-smoke.json +34 -0
- package/docs/releases/0.12.0-feature-smoke.mjs +73 -0
- package/docs/releases/0.12.0-foundations-smoke.json +1576 -0
- package/docs/releases/0.12.0-local-registry-install.json +75 -0
- package/docs/releases/0.12.0-preparation-attempt-1.json +22 -0
- package/docs/releases/0.12.0-registry-metadata.json +96 -0
- package/docs/releases/0.12.0-signatures.txt +6 -0
- package/docs/releases/0.12.0-verification.json +99 -0
- package/docs/releases/0.12.0.md +82 -0
- package/docs/releases/0.13.0-feature-smoke.mjs +114 -0
- package/docs/releases/0.13.0-preparation.json +102 -0
- package/docs/releases/0.13.0.md +61 -0
- package/docs/releases/archive-delivery-smoke.mjs +37 -0
- package/docs/reproducible-offline-example.md +1 -1
- package/docs/schemas/agent-preflight.schema.json +1 -1
- package/docs/verifier-contract.md +9 -0
- package/evidence/README.md +24 -1
- package/evidence/archive-catalog.v1.json +8044 -0
- package/evidence/fetch-archives.mjs +211 -0
- package/package.json +9 -2
- package/skills/skillfit/SKILL.md +25 -5
- package/dist/cli.test.js +0 -193
- package/dist/commands/bench-calibration.test.js +0 -237
- package/dist/commands/bench-check-json.test.js +0 -242
- package/dist/commands/bench-manage.test.js +0 -87
- package/dist/commands/bench.test.js +0 -1162
- package/dist/commands/bundle.test.js +0 -142
- package/dist/commands/calibration-cli.test.js +0 -145
- package/dist/commands/doctor.test.js +0 -280
- package/dist/commands/eval-agent-preflight.test.js +0 -245
- package/dist/commands/eval-export-modes.test.js +0 -350
- package/dist/commands/eval-export.test.js +0 -279
- package/dist/commands/eval-interruption.test.js +0 -238
- package/dist/commands/eval-preflight.test.js +0 -382
- package/dist/commands/eval-report.test.js +0 -367
- package/dist/commands/eval.test.js +0 -503
- package/dist/commands/evaluation-report.test.js +0 -243
- package/dist/commands/install.test.js +0 -555
- package/dist/commands/replay-cancellation.test.js +0 -105
- package/dist/commands/report.test.js +0 -110
- package/dist/commands/setup.test.js +0 -150
- package/dist/commands/upstream.test.js +0 -139
- package/dist/commands/workflow-entrypoints.test.js +0 -137
- package/dist/docs.test.js +0 -154
- package/dist/frontmatter.test.js +0 -49
- package/dist/harness/bench.test.js +0 -109
- package/dist/harness/bundle.test.js +0 -71
- package/dist/harness/codex-usage.test.js +0 -87
- package/dist/harness/costs.test.js +0 -92
- package/dist/harness/eval-budget.test.js +0 -237
- package/dist/harness/eval-component.test.js +0 -770
- package/dist/harness/eval-efficiency.test.js +0 -56
- package/dist/harness/execution-timing.test.js +0 -61
- package/dist/harness/executors/api.test.js +0 -136
- package/dist/harness/executors/cli.test.js +0 -510
- package/dist/harness/executors/mock.test.js +0 -43
- package/dist/harness/experiment-session.test.js +0 -317
- package/dist/harness/installed-skill.test.js +0 -162
- package/dist/harness/interruption.test.js +0 -31
- package/dist/harness/judge-accounting.test.js +0 -216
- package/dist/harness/judge.test.js +0 -181
- package/dist/harness/kimi-usage.test.js +0 -62
- package/dist/harness/native-diff.test.js +0 -53
- package/dist/harness/oss-lru-cache.test.js +0 -79
- package/dist/harness/oss-normalize-url.test.js +0 -64
- package/dist/harness/oss-regression-witness.test.js +0 -89
- package/dist/harness/oss-skill-followup.test.js +0 -59
- package/dist/harness/prompt.test.js +0 -48
- package/dist/harness/receipts.test.js +0 -148
- package/dist/harness/report.test.js +0 -297
- package/dist/harness/runner.test.js +0 -635
- package/dist/harness/skill-revision.test.js +0 -148
- package/dist/harness/stats.test.js +0 -124
- package/dist/harness/target.test.js +0 -60
- package/dist/harness/trigger.test.js +0 -261
- package/dist/harness/verifier-summary.test.js +0 -99
- package/dist/harness/verifier.test.js +0 -128
- package/dist/harness/waza-behavior.test.js +0 -139
- package/dist/mcp/probe.test.js +0 -139
- package/evidence/artifacts/2026-10-12-diagnosing-revision/calibration-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-revision/interrupted-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-revision/validation-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-v2/regression-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-diagnosing-v2/transfer-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-available/readiness-records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-comparison/records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-recovery/records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-12-normalize-url-v2-validated/records.tar.gz +0 -0
- package/evidence/artifacts/2026-10-13-debugging-completed-development/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-13-debugging-controls-and-sleep-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-13-debugging-development-stops/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-followup-routing-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-independent-validation/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-reading-pilot-and-cost-review/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-14-debugging-spending-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-native-diff-mechanism/package.tar.gz +0 -0
- package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/package.tar.gz +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Historical archive inventory
|
|
2
|
+
|
|
3
|
+
This inventory pins the 19 compressed files at source commit
|
|
4
|
+
`56b4dc68e115475e197c6510c9cb2235a5ad2c62`. The Git originals stay in place.
|
|
5
|
+
It describes recorded offline procedures, not permission to run historical live
|
|
6
|
+
entry points. No model calls are needed for the procedures below.
|
|
7
|
+
|
|
8
|
+
## Supporting files and compatibility
|
|
9
|
+
|
|
10
|
+
The existing full npm package includes all 19 archives and the public
|
|
11
|
+
`evidence/` tree: artifact READMEs/indexes, frozen source/runtime/scripts,
|
|
12
|
+
licenses, declarations, reports and inputs. Restoration will copy an explicit
|
|
13
|
+
file-level allowlist of that pinned public evidence tree (excluding the 19
|
|
14
|
+
archives), retaining the original relative paths. This also keeps sibling
|
|
15
|
+
spending ledgers and the receiver-correction replay available. It does not
|
|
16
|
+
scan the checkout, copy user configuration, or substitute the active runtime
|
|
17
|
+
for frozen code. A single archive selection still includes this shared support
|
|
18
|
+
set; choose all archives for aggregate/cross-archive procedures.
|
|
19
|
+
|
|
20
|
+
The first nine archives use the neighboring frozen `replay/` tree. The later
|
|
21
|
+
10 packages embed their executable replay payloads; the neighboring README,
|
|
22
|
+
index and report are still needed to interpret them. Extract manually into a
|
|
23
|
+
fresh directory before invoking the documented offline entry. The restoration
|
|
24
|
+
tool itself must neither extract nor execute code.
|
|
25
|
+
|
|
26
|
+
These were already npm-distributed bytes. Paths shown as repository-root
|
|
27
|
+
commands work from the restored workspace root; artifact-local commands run
|
|
28
|
+
from the linked README's directory. Historical `npm ci`/`npm test` references
|
|
29
|
+
to a complete source checkout remain source-development checks: partial frozen
|
|
30
|
+
source trees are not complete checkouts. Root `scripts/replay-*.mjs` are source
|
|
31
|
+
helpers; use the frozen `replay/scripts/` commands specified in the artifact
|
|
32
|
+
READMEs. No new Node 22 or Windows claim follows from copying the files.
|
|
33
|
+
|
|
34
|
+
Four tracked `.DS_Store` files are excluded automatically by npm even from the
|
|
35
|
+
full package, but are listed by frozen indexes. The catalog carries their exact
|
|
36
|
+
public bytes as base64 support payloads (with the same size/hash checks). This
|
|
37
|
+
preserves those indexes in restored workspaces without modifying the historical
|
|
38
|
+
files or depending on extra downloads.
|
|
39
|
+
|
|
40
|
+
## Original offline entry points
|
|
41
|
+
|
|
42
|
+
| Artifact directory | Original offline procedure after extraction | Recorded requirements / npm surface |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| [2026-10-12-diagnosing-revision](../evidence/artifacts/2026-10-12-diagnosing-revision/README.md) | `replay/scripts/regrade-diagnosing-revision.mjs <phase>`; analyzer; frozen report | Node 24.21.0 recorded; bench >=22.13; frozen sibling replay shipped |
|
|
45
|
+
| [2026-10-12-diagnosing-v2](../evidence/artifacts/2026-10-12-diagnosing-v2/README.md) | `replay/scripts/replay-diagnosing-v2.mjs <phase>`; analyzer; oninsert control | Node 24.21.0 recorded; built-in TypeScript transform >=22.13; both archives and sibling replay shipped |
|
|
46
|
+
| [2026-10-12-normalize-url-v2-available](../evidence/artifacts/2026-10-12-normalize-url-v2-available/README.md) | Extract readiness records; compare exported files with `export-index.json` | No paired grading; frozen inputs and export index shipped; do not invoke live entry |
|
|
47
|
+
| [2026-10-12-normalize-url-v2-comparison](../evidence/artifacts/2026-10-12-normalize-url-v2-comparison/README.md) | `replay/scripts/replay-normalize-url-v2-comparison.mjs <phase>`; analyzer; frozen report | Node 24.21.0 recorded; frozen sibling runtime/tests shipped |
|
|
48
|
+
| [2026-10-12-normalize-url-v2-recovery](../evidence/artifacts/2026-10-12-normalize-url-v2-recovery/README.md) | `replay/scripts/replay-normalize-url-v2-recovery.mjs <phase>`; analyzer; frozen report | Node 24.21.0 recorded; frozen sibling runtime shipped |
|
|
49
|
+
| [2026-10-12-normalize-url-v2-validated](../evidence/artifacts/2026-10-12-normalize-url-v2-validated/README.md) | `replay/scripts/replay-normalize-url-v2-validated.mjs <phase>`; analyzer; frozen report | Node 24.21.0 recorded; aggregate spending also needs three stopped sibling archives |
|
|
50
|
+
| [2026-10-13-debugging-completed-development](../evidence/artifacts/2026-10-13-debugging-completed-development/README.md) | `replay/scripts/replay-completed-development.mjs` inside extracted package | Node >=22 documented; embedded runtime; 23 frozen checks |
|
|
51
|
+
| [2026-10-13-debugging-controls-and-sleep-stop](../evidence/artifacts/2026-10-13-debugging-controls-and-sleep-stop/README.md) | `replay-all.mjs` inside extracted package | Node >=22 documented; embedded runtimes; 23 frozen checks |
|
|
52
|
+
| [2026-10-13-debugging-development-stops](../evidence/artifacts/2026-10-13-debugging-development-stops/README.md) | Extract nested `records.tar.gz`; `replay/scripts/replay-development-stops.mjs <records>` | Node >=22 documented; embedded runtime; 23 frozen checks |
|
|
53
|
+
| [2026-10-14-debugging-followup-routing-stop](../evidence/artifacts/2026-10-14-debugging-followup-routing-stop/README.md) | `replay-routing-stop.mjs` inside extracted package | Node >=22 documented; embedded runtime; 23 frozen checks |
|
|
54
|
+
| [2026-10-14-debugging-independent-validation](../evidence/artifacts/2026-10-14-debugging-independent-validation/README.md) | `replay-validation.mjs` inside extracted package | Node >=22 documented; embedded runtime; 23 frozen checks |
|
|
55
|
+
| [2026-10-14-debugging-reading-pilot-and-cost-review](../evidence/artifacts/2026-10-14-debugging-reading-pilot-and-cost-review/README.md) | `replay.mjs` inside extracted package | Node >=22 documented; 24.21.0 recorded; embedded frozen code |
|
|
56
|
+
| [2026-10-14-debugging-spending-stop](../evidence/artifacts/2026-10-14-debugging-spending-stop/README.md) | `replay-spending-stop.mjs` inside extracted package | Node 24.21.0 recorded; embedded runtime; optional 23 frozen checks |
|
|
57
|
+
| [2026-10-15-independent-comparison-regression-stop](../evidence/artifacts/2026-10-15-independent-comparison-regression-stop/README.md) | `replay.mjs` inside extracted package | Node 24.21.0 verified; correction replay additionally consumes this archive |
|
|
58
|
+
| [2026-10-15-native-diff-mechanism](../evidence/artifacts/2026-10-15-native-diff-mechanism/README.md) | `replay.mjs` inside extracted package | Node 24.21.0 specified; embedded frozen code |
|
|
59
|
+
| [2026-10-15-receiver-mechanism-stop](../evidence/artifacts/2026-10-15-receiver-mechanism-stop/README.md) | `replay.mjs` inside extracted package | Node 24.21.0 verified; embedded verifier/controller tests |
|
|
60
|
+
|
|
61
|
+
Historical shell examples use POSIX tools (`tar`, `mktemp`, sometimes `shasum`)
|
|
62
|
+
and several frozen verifiers invoke platform-specific shell commands. The
|
|
63
|
+
restorer is portable; these historical recipes retain their original platform
|
|
64
|
+
requirements. A recipe reporting recorded failed deliveries is successful when
|
|
65
|
+
its assertions reproduce those failures, not when every delivery passes.
|
|
66
|
+
|
|
67
|
+
## Exact compressed bytes
|
|
68
|
+
|
|
69
|
+
| Original path | Bytes | SHA-256 |
|
|
70
|
+
| --- | ---: | --- |
|
|
71
|
+
| `evidence/artifacts/2026-10-12-diagnosing-revision/calibration-records.tar.gz` | 197,977 | `dcb85c9f345e73c8e3777d8ce7421a17d974806e0ebe770400a93b262fce6d47` |
|
|
72
|
+
| `evidence/artifacts/2026-10-12-diagnosing-revision/interrupted-records.tar.gz` | 646,293 | `15d53b45e2ef814767e56aa755ad7ecf64617af80e00d5ab3e4c17f8d9126078` |
|
|
73
|
+
| `evidence/artifacts/2026-10-12-diagnosing-revision/validation-records.tar.gz` | 1,129,096 | `031efa9d44293f4b70b8c9d3c1f363d7529585e4639c4c464285f22e5f53d9a5` |
|
|
74
|
+
| `evidence/artifacts/2026-10-12-diagnosing-v2/regression-records.tar.gz` | 253,786 | `e2fc25da07dad3dbabf34d8067ce659972615353665f61208fbc8c34b755acba` |
|
|
75
|
+
| `evidence/artifacts/2026-10-12-diagnosing-v2/transfer-records.tar.gz` | 111,515 | `508ffd7b9ac8b9bcc438202a4c352f3bb7a31df91a9f27867568a31d42d10158` |
|
|
76
|
+
| `evidence/artifacts/2026-10-12-normalize-url-v2-available/readiness-records.tar.gz` | 1,082 | `74fc0f675ddb111fef493a52cc7f4971bc12e7f5d5ffa2053d705f7afb71a57c` |
|
|
77
|
+
| `evidence/artifacts/2026-10-12-normalize-url-v2-comparison/records.tar.gz` | 69,855 | `29ce6dc3f14da6b4bfe7a1ac65c1965d38bae9e40dc83352fab685c510363e43` |
|
|
78
|
+
| `evidence/artifacts/2026-10-12-normalize-url-v2-recovery/records.tar.gz` | 86,844 | `e27b441c4605134076bb6674b1712bbb23c46bd4d28b643120be950a0c50543e` |
|
|
79
|
+
| `evidence/artifacts/2026-10-12-normalize-url-v2-validated/records.tar.gz` | 129,523 | `86ed1f03513e4e7342d3e1e5849cb5007344d16ff11e2d612ae4073c8e5ba907` |
|
|
80
|
+
| `evidence/artifacts/2026-10-13-debugging-completed-development/package.tar.gz` | 1,282,702 | `84c5be909da00037634106e292be9424f435b309f48876859d2f0d63bae2de36` |
|
|
81
|
+
| `evidence/artifacts/2026-10-13-debugging-controls-and-sleep-stop/package.tar.gz` | 3,563,737 | `8d2939ee8f1c25a5d8230e54a9faf024e71a5918e1e507144a82426bb15340c7` |
|
|
82
|
+
| `evidence/artifacts/2026-10-13-debugging-development-stops/package.tar.gz` | 1,538,623 | `1ca51e483eb9e71116c0a7519c5334cdd58f13f571e84c723f4502e7b0becef7` |
|
|
83
|
+
| `evidence/artifacts/2026-10-14-debugging-followup-routing-stop/package.tar.gz` | 2,495,332 | `f03479742b5a86738ea8dc470a911d5392c7893bf15aa2b4c33ae6de78970343` |
|
|
84
|
+
| `evidence/artifacts/2026-10-14-debugging-independent-validation/package.tar.gz` | 2,900,849 | `1a4b136b87b2f3288896b6a48416710551bd149529f118b0e02e7740fd5286f1` |
|
|
85
|
+
| `evidence/artifacts/2026-10-14-debugging-reading-pilot-and-cost-review/package.tar.gz` | 985,095 | `61c48885f2b91d79f55fb0bc6edd5dc8302ad32465ddf0d3ca7ccf164a4e8aa6` |
|
|
86
|
+
| `evidence/artifacts/2026-10-14-debugging-spending-stop/package.tar.gz` | 1,815,660 | `3665e15042c3df6f94ca5554f8a63120f943d97028ac4965d2e175d969d3b2a2` |
|
|
87
|
+
| `evidence/artifacts/2026-10-15-independent-comparison-regression-stop/package.tar.gz` | 1,214,300 | `6a4d29e55a1b48b7e8cd4e790eb057341b08e92ede7e6fe903a015a6edfe3ed6` |
|
|
88
|
+
| `evidence/artifacts/2026-10-15-native-diff-mechanism/package.tar.gz` | 830,563 | `0662db8ba95ab7a440098a10a48d6ba95a7cf900ee98cc7733aab2d3192c201f` |
|
|
89
|
+
| `evidence/artifacts/2026-10-15-receiver-mechanism-stop/package.tar.gz` | 630,986 | `b520022e2c6250bfa2b20c864e2f63d9436647a05d69b16b312ec636d36a0a43` |
|
|
90
|
+
|
|
91
|
+
Total: 19 archives, 19,883,818 bytes.
|
package/docs/bench-authoring.md
CHANGED
|
@@ -119,15 +119,24 @@ skillfit bench init my-bench
|
|
|
119
119
|
cd /path/to/where/it/broke
|
|
120
120
|
skillfit bench add ../my-bench --freeze --task review-r1 \
|
|
121
121
|
--prompt "Review CHANGES.diff against SPEC.md. Report only concrete defects: severity, exact file:line, one sentence on which clause of the spec it violates." \
|
|
122
|
+
--expect "INVALID_QUANTITY" \
|
|
122
123
|
--should-trigger yes
|
|
123
124
|
```
|
|
124
125
|
|
|
125
|
-
This snapshots the **git-tracked
|
|
126
|
-
|
|
126
|
+
This snapshots the **git-tracked ordinary files** of the current directory into `fixtures/review-r1/`,
|
|
127
|
+
writes the prompt to `prompts/review-r1.md` plus a
|
|
127
128
|
`prompts/review-r1.trigger.md` stub you will fix in step 5, and registers the task in `bench.json`.
|
|
128
129
|
For a multi-paragraph prompt use `--prompt-file <path>` instead; the path is read relative to the
|
|
129
130
|
current directory, and the *content* is copied into the bench.
|
|
130
131
|
|
|
132
|
+
In version 0.12.0, an empty index or a failed Git read is an error, never a
|
|
133
|
+
fallback to ignored/untracked files. Narrow a Git fixture with repeated `--include <file-or-dir>`;
|
|
134
|
+
outside Git these explicit selections are required. Git metadata and `node_modules` are excluded.
|
|
135
|
+
Selected symbolic links, submodules, non-ordinary entries and files inside the destination bench
|
|
136
|
+
are rejected before copying. Freeze imports are capped at 200 files / 1 MiB; narrow the selection
|
|
137
|
+
when it exceeds either limit. A tracked secret or a secret inside an explicitly selected non-Git
|
|
138
|
+
directory can still be included: review the selected files before sharing or authorizing a draft.
|
|
139
|
+
|
|
131
140
|
Then shrink the fixture by hand. Keep the trap, delete the rest. `review-r1`'s is six small files —
|
|
132
141
|
`SPEC.md`, `CHANGES.diff`, three source files and one test — totalling 4 KB.
|
|
133
142
|
|
|
@@ -158,6 +167,13 @@ for pass, non-zero for fail. Three ways to get one, cheapest first:
|
|
|
158
167
|
--decompose --agent <id>
|
|
159
168
|
```
|
|
160
169
|
|
|
170
|
+
Version 0.12.0 confirms a drafting call **before** invoking an agent. Dry runs and declined
|
|
171
|
+
confirmations make zero calls. `--yes` authorizes exactly one call, without retry or automatic
|
|
172
|
+
evaluation/upgrade. Drafting supports `--max-calls`, `--spending-budget`,
|
|
173
|
+
`--executor-timeout-seconds`, `--runs-root` and `--run-group`. Predictable output conflicts are
|
|
174
|
+
checked before dispatch. Failed/interrupted drafts retain their available inputs, outputs, costs
|
|
175
|
+
and gate results. See [draft records and offline replay](bench-drafting.md).
|
|
176
|
+
|
|
161
177
|
For anything you care about, write `verifiers/<task-id>.mjs` by hand. `review-r1`'s is
|
|
162
178
|
`verifiers/seeded-bugs.mjs`, and it does two things:
|
|
163
179
|
|
|
@@ -194,7 +210,11 @@ Two rules that are easy to get wrong:
|
|
|
194
210
|
**What the tool checks.** For an `output`-kind task, that the verifier rejects a missing `_output.md`
|
|
195
211
|
and rejects an empty one — both FAIL, and together they are the NOP gate for tasks that grade text.
|
|
196
212
|
Also that the check count is in range (WARN), and that the exit code and the JSON `passed` flag agree
|
|
197
|
-
(WARN).
|
|
213
|
+
(WARN). Each verifier/oracle gets a default 2-minute timeout. Version 0.12.0 accepts
|
|
214
|
+
`verifierTimeoutSeconds` (integer 1–3600) per task; set it with
|
|
215
|
+
`bench add --verifier-timeout-seconds 600` or
|
|
216
|
+
`bench edit <dir> <task-id> --set verifierTimeoutSeconds=600 --yes`. This is separate from the model
|
|
217
|
+
executor deadline and also applies during preflight and offline replay. A verifier with no exit code is reported as a
|
|
198
218
|
bench defect, never as the agent failing.
|
|
199
219
|
|
|
200
220
|
> **The command in `bench.json` is spawned without a shell.** Its first token must be an executable the
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Author a verifier with one recorded drafting call
|
|
2
|
+
|
|
3
|
+
Available in skillfit 0.12.0. Drafting helps author a case; it is not evidence that a Skill
|
|
4
|
+
improves results. It does not run a comparison or authorize an upgrade.
|
|
5
|
+
|
|
6
|
+
## Preview, then authorize
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
skillfit bench add ./my-bench --freeze --source-dir ./failure --include src --include test \
|
|
10
|
+
--task real-failure --prompt-file issue.md --decompose --verifier-kind command --agent codex \
|
|
11
|
+
--max-calls 1 --executor-timeout-seconds 300 --verifier-timeout-seconds 600 \
|
|
12
|
+
--runs-root ./runs --run-group draft-real-failure --dry-run
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Preview validates the selected files, destination paths, record-directory layout, one-call ceiling
|
|
16
|
+
and deadlines. It creates no files and invokes no agent. Re-run without `--dry-run` to confirm,
|
|
17
|
+
or with `--yes` to authorize. Declining also makes zero calls. A record group that already exists
|
|
18
|
+
is never overwritten, including failed/interrupted groups. There is no retry or follow-up call.
|
|
19
|
+
|
|
20
|
+
Git imports select tracked ordinary files; an empty/broken index fails. Non-Git sources require
|
|
21
|
+
explicit `--include` selections. Selected links, non-files and destination-bench files are rejected.
|
|
22
|
+
Inputs, prompts and public outputs can contain private data: review records before sharing them.
|
|
23
|
+
|
|
24
|
+
Optional `--spending-budget budget.json` uses the existing five-field spending contract:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"input": 100000,
|
|
29
|
+
"cachedInput": 100000,
|
|
30
|
+
"uncachedInput": 100000,
|
|
31
|
+
"output": 10000,
|
|
32
|
+
"durationSeconds": 300
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
All fields must be positive; token limits are integers. Known unsupported CLI counters block before
|
|
37
|
+
dispatch. Missing/partial final counters or executor errors stop a budgeted draft after retaining
|
|
38
|
+
available usage, without adding a task. These are observed stop lines, not provider-side prepaid
|
|
39
|
+
caps: one in-flight call can exceed a line. Reaching a line with complete final usage prevents more
|
|
40
|
+
calls but still permits the remaining offline gates. The executor deadline bounds model execution,
|
|
41
|
+
separately from the case's verifier/oracle deadline. Cancellation cannot establish that a remote
|
|
42
|
+
provider stopped billing. Without a budget, absent counters remain unknown, never zero. Login
|
|
43
|
+
remains unknown offline. Injected test executors are responsible for honoring their own deadlines.
|
|
44
|
+
|
|
45
|
+
## Retained evidence
|
|
46
|
+
|
|
47
|
+
Each authorized draft claims a fresh record directory before dispatch:
|
|
48
|
+
|
|
49
|
+
| File | Meaning |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `_plan.json` | `kind: skillfit.bench-draft-plan`, input hashes, executor, package/Node versions, deadlines/budgets, unknown authentication |
|
|
52
|
+
| `_inputs/fixture/`, `prompt.md` | Original selected bytes and exact drafting prompt |
|
|
53
|
+
| `workspace/` | Agent workspace, including generated verifier/oracle scripts when supplied |
|
|
54
|
+
| `_calls.jsonl` | Started/finished dispatch events; at most one call |
|
|
55
|
+
| `_result.json`, `_output.md`, optional `_transcript.jsonl` | Available public usage, final/partial/unknown status, duration, output and raw executor response; no request credential headers |
|
|
56
|
+
| `_budget.jsonl` | Before/after observations when a budget is set |
|
|
57
|
+
| `_gates.jsonl` | Untouched-fixture, oracle and solved-fixture results reached by this attempt |
|
|
58
|
+
| `_summary.json` | `kind: skillfit.bench-draft-result`; completed only after adding the task, otherwise stopped; observed costs/coverage, no automatic retry or upgrade |
|
|
59
|
+
|
|
60
|
+
`Ctrl+C` / `SIGTERM` stops the subprocess tree and seals available records as stopped. Interrupted
|
|
61
|
+
counters stay partial when that is all the executor can establish. Gates also observe cancellation;
|
|
62
|
+
an interrupted draft is not added. Force termination, machine or storage failure can prevent sealing.
|
|
63
|
+
A missing summary is not completion evidence.
|
|
64
|
+
|
|
65
|
+
## Recheck the case offline
|
|
66
|
+
|
|
67
|
+
After adding a task, `skillfit bench check ./my-bench --json` repeats the NOP/oracle gates without
|
|
68
|
+
an agent. For a rejected draft that supplied both scripts, copy `_inputs/fixture/` to two fresh
|
|
69
|
+
scratch directories. From the saved `workspace/`, run `node verifier.mjs <untouched-copy>`, then
|
|
70
|
+
`node oracle.mjs <solved-copy>` and `node verifier.mjs <solved-copy>`, each with the recorded
|
|
71
|
+
per-command deadline. Compare output and exit codes with `_gates.jsonl`. Preserve original records.
|
|
72
|
+
|
|
73
|
+
This reproduces the case checks and accounting from retained counters, not unreported provider
|
|
74
|
+
usage, undisclosed settings or an identical future generation. Authoring records have their own
|
|
75
|
+
kind; `report eval` remains for evaluation records.
|
package/docs/case-management.md
CHANGED
|
@@ -6,6 +6,15 @@ registration; use your editor to change the referenced file contents.
|
|
|
6
6
|
|
|
7
7
|
## Inspect and select
|
|
8
8
|
|
|
9
|
+
Version 0.12.0 accepts bundled names (for example `code-review`) in
|
|
10
|
+
read-only `bench check/list/show`, calibration planning and ordinary eval. These
|
|
11
|
+
share one resolver: a local manifest wins; an explicit or existing broken local
|
|
12
|
+
path fails instead of selecting a different bundled case. JSON includes the
|
|
13
|
+
resolved directory and its original content hash. With no path, `bench check`
|
|
14
|
+
still checks the current directory; eval retains its explicit-choice requirement
|
|
15
|
+
when several bundled benches exist. `init/add/edit/remove` continue to use local
|
|
16
|
+
directories; a bare bundled name cannot modify the installed package.
|
|
17
|
+
|
|
9
18
|
```bash
|
|
10
19
|
skillfit bench list ./my-bench --json
|
|
11
20
|
skillfit bench show ./my-bench fix-cache --json
|
|
@@ -47,7 +56,9 @@ Edits/removals default to a read-only before/after plan. `--yes` applies it;
|
|
|
47
56
|
are rejected. Manifest writes validate the result and roll back on failure.
|
|
48
57
|
|
|
49
58
|
Repeat `--set field=value` to edit `fixture`, `prompt`, `promptTrigger`, `verifier`,
|
|
50
|
-
`verifierKind`, `oracle`, `rubric` or `shouldTrigger`.
|
|
59
|
+
`verifierKind`, `oracle`, `rubric` or `shouldTrigger`. Version 0.12.0 also allows
|
|
60
|
+
`verifierTimeoutSeconds` (integer 1–3600, default 120), including `--unset` to restore the default.
|
|
61
|
+
It applies to each verifier/oracle process, separately from model execution. Values may contain `=`;
|
|
51
62
|
`shouldTrigger` accepts only literal `true` or `false`. Repeat `--unset field` for
|
|
52
63
|
`promptTrigger`, `oracle`, `rubric` or `shouldTrigger`. Required fields, task IDs,
|
|
53
64
|
unknown fields and duplicate field operations are rejected. Referenced paths and
|
|
@@ -11,6 +11,7 @@ share the check implementation. This is separate from [offline case integrity](e
|
|
|
11
11
|
| --- | --- |
|
|
12
12
|
| `CLI_AVAILABLE` | Checks the selected matrix command's executable on PATH using filesystem access; no `which`, `where`, agent invocation or version probe runs as part of this check. Missing/non-executable files are `FAIL`. API execution needs no CLI (`INFO`). |
|
|
13
13
|
| `MATRIX_CAPABILITY` | Matches headless/streaming/Skill delivery declarations and existing executor/input/task compatibility rules. An incompatible choice is `FAIL`; a matrix match does not prove installed-version flag support. |
|
|
14
|
+
| `USAGE_CAPABILITY` | Version 0.12.0 checks the adapter's known token counters. A strict whole-batch budget with unavailable required counters is `FAIL` for either primary or judge, before case probes or spending. API/injected coverage stays `UNKNOWN`; runtime final-usage checks still apply. |
|
|
14
15
|
| `EXECUTOR_INJECTED` | `UNKNOWN` for a test/programmatic injected executor; it cannot attest an actual CLI installation. Existing synthetic-evidence restrictions still apply. |
|
|
15
16
|
| `AUTHENTICATION` | Always `UNKNOWN`: no login command, credential file or network request is used to infer authentication. Existing keys/config files do not prove valid credentials. |
|
|
16
17
|
| `GLOBAL_SKILL_CONFLICT` | For the primary CLI Agent evaluating a Skill, checks readable direct Skill entries in matrix-listed user/global roots. A matching directory name or frontmatter name is `FAIL` because baseline may already load the Skill. |
|
|
@@ -31,13 +32,25 @@ disposable trial directory. Use a normal installed executable on an absolute PAT
|
|
|
31
32
|
The existing native runtime version capture can still probe a CLI during an
|
|
32
33
|
authorized real run; it is separate from this read-only preflight.
|
|
33
34
|
|
|
34
|
-
Streaming is required for native trigger detection
|
|
35
|
-
|
|
35
|
+
Streaming is required for native trigger detection. Version 0.12.0 also
|
|
36
|
+
uses a matrix-defined structured command for ordinary paired, calibration and
|
|
37
|
+
judge invocations whenever available, without implying a Skill trigger event.
|
|
38
|
+
Other CLI surfaces keep their existing text fallback. The optional judge's CLI is
|
|
36
39
|
checked too, so an unavailable judge blocks before primary-agent spending. API
|
|
37
40
|
filesystem/config limitations remain hard errors. Injected executors skip real
|
|
38
41
|
binary attestation and use explicitly injected home roots for tests; no actual
|
|
39
42
|
user home is scanned for an unconfigured injected executor.
|
|
40
43
|
|
|
44
|
+
The current Codex JSON adapter can retain input, cached-input and output counters.
|
|
45
|
+
The current Kimi adapter can recover input/output but not cache partitioning;
|
|
46
|
+
the Claude text adapter does not collect token counters. This describes skillfit's
|
|
47
|
+
implemented readers, not everything the vendor CLI might support. Because all
|
|
48
|
+
five spending lines are required, a known missing token/cache reader blocks that
|
|
49
|
+
budgeted combination before any call. A new plan without these token limits
|
|
50
|
+
still needs explicit spending review and cannot turn unknown costs into zero.
|
|
51
|
+
No adapter declaration establishes login, installed-version flag compatibility
|
|
52
|
+
or actual final usage; missing/partial counters during a run still stop it.
|
|
53
|
+
|
|
41
54
|
## Preview, block and recheck
|
|
42
55
|
|
|
43
56
|
```bash
|
package/docs/eval-costs.md
CHANGED
|
@@ -30,7 +30,7 @@ spending totals. An executor invocation does not prove that a provider accepted
|
|
|
30
30
|
a request or billed it. These counts do not include the optional judge, earlier
|
|
31
31
|
calibration cohorts or another experiment's setup spending.
|
|
32
32
|
|
|
33
|
-
## All executor roles (
|
|
33
|
+
## All executor roles (0.11.0 and newer)
|
|
34
34
|
|
|
35
35
|
New paired manifests and JSON reports add `invocationCosts`, independently of
|
|
36
36
|
the unchanged primary Agent's `overall.costs`. It contains `agent`, `judge` and
|
|
@@ -44,7 +44,7 @@ Every judge order saves a version-1 `skillfit.judge-call` receipt under
|
|
|
44
44
|
`<task>/judge-trial-<n>/call-1.json` or `call-2.json`. It retains the anonymous
|
|
45
45
|
prompt and hash, output, available raw output, executor, invocation/error state,
|
|
46
46
|
token coverage and monotonic elapsed interval. Invalid grading JSON still costs
|
|
47
|
-
an invocation and stops subsequent work. Failure/interruption retains partial or
|
|
47
|
+
an invocation and stops subsequent work. Failure/interruption retains final, partial or
|
|
48
48
|
unknown usage; it never becomes a free or successfully graded call. Missing
|
|
49
49
|
credentials for an explicitly enabled judge block before primary spending.
|
|
50
50
|
|
|
@@ -77,6 +77,17 @@ pair as an execution error; see [execution timing](eval-timing.md).
|
|
|
77
77
|
|
|
78
78
|
## Cache and coverage
|
|
79
79
|
|
|
80
|
+
Version 0.12.0 reads matrix-defined JSON streams in ordinary CLI eval and
|
|
81
|
+
CLI judging too, independently of Skill-trigger detection. Codex inject, rules and
|
|
82
|
+
MCP comparisons can retain the same per-turn counters as installed/trigger mode.
|
|
83
|
+
Only assistant text is graded; raw stream evidence and partial failure counters
|
|
84
|
+
are retained separately. Ordinary parsing does not fabricate a trigger flag.
|
|
85
|
+
Offline `USAGE_CAPABILITY` checks block strict spending budgets when an adapter is
|
|
86
|
+
known to lack required counters, including an enabled judge. API and injected
|
|
87
|
+
executors retain unknown offline coverage; actual missing counters still stop
|
|
88
|
+
after an invocation, with no retry or guessed cache zeros. Historical receipts
|
|
89
|
+
remain unchanged; this does not recover token counts from old plain-text runs.
|
|
90
|
+
|
|
80
91
|
Cached input is the cache-read subset already included in input; adding it to
|
|
81
92
|
input would double-count. `uncachedInput = input - cachedInput` only when both
|
|
82
93
|
counts are present and `0 <= cachedInput <= input`. Uncached tokens can include
|
|
@@ -114,6 +125,21 @@ elapsed time can still be compared when token usage is unknown. Earlier v4
|
|
|
114
125
|
manifests without cost summaries remain readable and explicitly identify this
|
|
115
126
|
missing information; the report does not silently enrich them from local files.
|
|
116
127
|
|
|
128
|
+
## Failed API responses (version 0.12.0)
|
|
129
|
+
|
|
130
|
+
API response parsing retains the public response and any valid reported usage
|
|
131
|
+
before rejecting a missing/non-text answer, malformed JSON or non-2xx status.
|
|
132
|
+
A complete response's supplied counters remain final for those fields even when
|
|
133
|
+
its answer cannot be graded. Missing fields stay unknown; malformed JSON cannot
|
|
134
|
+
establish usage. Neither a format failure nor an HTTP error proves the call was
|
|
135
|
+
free. Connection failures without a readable response still have unknown usage.
|
|
136
|
+
|
|
137
|
+
These errors remain ungraded execution failures and stop subsequent calls. Agent
|
|
138
|
+
responses are retained in `_transcript.jsonl`; failed API judge responses are in
|
|
139
|
+
their independent judge receipts. Request authorization headers/keys are not
|
|
140
|
+
added to the evidence. Reports/export/replay preserve the original counters,
|
|
141
|
+
with no API retry or new observation. Earlier unknown costs are not backfilled.
|
|
142
|
+
|
|
117
143
|
## Spending per success
|
|
118
144
|
|
|
119
145
|
For each measure and population:
|
package/docs/eval-planning.md
CHANGED
|
@@ -76,6 +76,13 @@ executor identity or compiled implementation invalidate confirmation. Preview
|
|
|
76
76
|
declares offline case preflight and input snapshots pending; execution performs
|
|
77
77
|
both before dispatch.
|
|
78
78
|
|
|
79
|
+
Version 0.12.0 checks output layout during preview and again at session
|
|
80
|
+
setup. Keep `--runs-root` outside the bench, candidate/baseline Skill or config
|
|
81
|
+
experiment, compiled runtime and `.git` metadata. A directory alias cannot bypass
|
|
82
|
+
this check. Use sibling input/output directories; invalid layouts fail before
|
|
83
|
+
verifiers, model calls or run creation. Git-root benches are supported: bench
|
|
84
|
+
hashing and sealed snapshots both exclude Git metadata while retaining task bytes.
|
|
85
|
+
|
|
79
86
|
Budget files are parsed into fixed numeric limits before planning. Those values,
|
|
80
87
|
rather than the source file's path/format, are bound to the hash and sealed in
|
|
81
88
|
the native plan. Editing the file before a new invocation changes the plan when
|
|
@@ -139,6 +146,13 @@ combined `invocationCosts`. Historical missing judge costs remain unknown, never
|
|
|
139
146
|
zero. An enabled API judge without credentials is an error before spending;
|
|
140
147
|
login validity still cannot be confirmed offline. See [cost accounting](eval-costs.md).
|
|
141
148
|
|
|
149
|
+
Version 0.12.0 adds a preflight `USAGE_CAPABILITY` check: a CLI adapter
|
|
150
|
+
known to lack one of the required token counters cannot start a budgeted batch,
|
|
151
|
+
whether it is the primary executor, a judge or baseline calibration. Normal Codex
|
|
152
|
+
eval/judge commands use the existing matrix JSON surface to retain these counters.
|
|
153
|
+
API/injected coverage remains unknown until a response; the runtime guards remain
|
|
154
|
+
necessary and never replace missing cache evidence with zero.
|
|
155
|
+
|
|
142
156
|
Ordinary `--json` returns the same `skillfit.eval-result` envelope and English
|
|
143
157
|
error reasons as requests, with diagnostics on stderr. Ordinary native runs seal
|
|
144
158
|
the reviewed plan and audit it against actual parameters; both entries retain
|
|
@@ -41,10 +41,26 @@ configuration installation is never performed by this feature.
|
|
|
41
41
|
The manifest identifies selected tasks as before; archiving the full bench keeps
|
|
42
42
|
its original content hash and all referenced files available. Empty directories
|
|
43
43
|
are retained. Executable permission bits are preserved on systems that support
|
|
44
|
-
them and checked on POSIX. Git metadata
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
them and checked on POSIX. Git metadata is excluded; symbolic links and
|
|
45
|
+
unsupported file types are rejected. The archived bench must load with the
|
|
46
|
+
declared content hash before calls start.
|
|
47
|
+
|
|
48
|
+
Version 0.12.0 uses the same Git-metadata exclusion for bench content
|
|
49
|
+
hashes and input snapshots, including `.git` directories and worktree metadata
|
|
50
|
+
files. A bench may be the root of its own Git repository. Git bookkeeping changes
|
|
51
|
+
do not alter its task fingerprint; real prompt, fixture and verifier changes do.
|
|
52
|
+
Task definitions cannot reference files inside `.git`. Git-free bench hashes and
|
|
53
|
+
historical receipts are unchanged; portable packages retain their original runtime.
|
|
54
|
+
|
|
55
|
+
Previews and live setup reject output inside the bench, candidate/baseline Skill,
|
|
56
|
+
configuration experiment or compiled runtime, and inside Git metadata. Existing
|
|
57
|
+
directory aliases and not-yet-created descendants are resolved before checking.
|
|
58
|
+
Use a sibling output parent, for example `--bench ./my-bench --runs-root ./runs`,
|
|
59
|
+
rather than `--bench ./my-bench --runs-root ./my-bench/runs`. This prevents later
|
|
60
|
+
cohorts from archiving previous outputs as case inputs. A rejected preview runs
|
|
61
|
+
no verifier/oracle, creates no run directory and calls no executor. Existing old
|
|
62
|
+
outputs are preserved; move or recover inputs explicitly rather than deleting
|
|
63
|
+
them automatically. Recheck and preview any moved bench before running.
|
|
48
64
|
|
|
49
65
|
Only the listed project inputs are copied. Global configuration and globally
|
|
50
66
|
installed Skills keep their existing fingerprints/guards; their private contents
|
|
@@ -132,7 +132,7 @@ Paired Markdown and JSON additionally show `invocationCosts`: separate primary,
|
|
|
132
132
|
judge and combined populations. The original Agent A/B quality and cost tables
|
|
133
133
|
remain unchanged. Successful, failed and interrupted judge orders have independent
|
|
134
134
|
receipts and final/partial/unknown usage. Missing historical judge usage stays
|
|
135
|
-
unknown. See [all executor roles](eval-costs.md#all-executor-roles-
|
|
135
|
+
unknown. See [all executor roles](eval-costs.md#all-executor-roles-0110-and-newer).
|
|
136
136
|
|
|
137
137
|
Budget stops retain `session.stopCode` and safe reason text. Single-arm reports
|
|
138
138
|
show the same frozen `spendingBudget` limits/latest state as paired reports.
|
package/docs/first-real-eval.md
CHANGED
|
@@ -5,6 +5,32 @@ oracle is registered, it also checks that the reference solution passes; without
|
|
|
5
5
|
the task's winnability is unverified. It does not measure an agent. A paired `eval` calls your agent on both arms
|
|
6
6
|
and records what actually happened. This guide applies to macOS, Linux, and Windows; use the native
|
|
7
7
|
`node dist/cli.js` commands from a built source checkout in either Bash or PowerShell.
|
|
8
|
+
For the installed release, replace that command prefix with
|
|
9
|
+
`npx skillfit@0.12.0`; no source checkout is required for your own cases.
|
|
10
|
+
|
|
11
|
+
## Start with the installed CLI
|
|
12
|
+
|
|
13
|
+
From your project directory, create and check a fresh teaching case, then preview
|
|
14
|
+
your own Skill directory (replace `./my-skill` with an existing `SKILL.md` parent):
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx skillfit@0.12.0 bench init my-bench --kind command --dry-run
|
|
18
|
+
npx skillfit@0.12.0 bench init my-bench --kind command --yes
|
|
19
|
+
npx skillfit@0.12.0 bench check ./my-bench --json
|
|
20
|
+
npx skillfit@0.12.0 eval ./my-skill --bench ./my-bench --mode installed --agent codex --trials 1 --max-calls 2 --runs-root ./runs --run-group first-eval --json --dry-run
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
These commands make zero model calls; `--yes` creates only the fresh bench.
|
|
24
|
+
Replace its teaching files with an independent real task and rerun checking before
|
|
25
|
+
interpreting Skill benefit. Read the environment checks even if preview exits 0.
|
|
26
|
+
Keep inputs and runs as siblings. Continue below to declare the claim, inspect the
|
|
27
|
+
plan and authorize execution; do not remove `--dry-run` just to try the example.
|
|
28
|
+
|
|
29
|
+
Version 0.12.0 also resolves bundled names such as `code-review` and
|
|
30
|
+
`debugging` consistently in eval, `bench check/list/show` and calibration preview.
|
|
31
|
+
A local bench wins; explicit or existing local paths never silently fall back to
|
|
32
|
+
a bundled example. Write operations still require your own local directory.
|
|
33
|
+
Those source fixes are not present in the immutable 0.11.0 package.
|
|
8
34
|
|
|
9
35
|
## 1. Choose a claim and a bench
|
|
10
36
|
|
|
@@ -118,12 +144,11 @@ that into a broad efficacy claim. The [metrics protocol](metrics.md) defines the
|
|
|
118
144
|
When the paired result is useful, run `--mode trigger` separately to ask whether the agent would
|
|
119
145
|
load the Skill on its own. Trigger mode has one arm and uses 5 trials per task by default. It does
|
|
120
146
|
not yet reproduce competition from the user's whole installed Skill set, so its recall is an
|
|
121
|
-
optimistic estimate. Share paired and trigger results separately.
|
|
122
|
-
0.10.1 reads both through `report eval`, with distinct JSON kinds and metrics;
|
|
147
|
+
optimistic estimate. Share paired and trigger results separately. Version 0.11.0 reads both through `report eval`, with distinct JSON kinds and metrics;
|
|
123
148
|
calibration directories or `_calibration.json` also work. See [report types](evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
|
|
124
149
|
Single-arm reports do not enter the paired acceptance policy or authorize upgrades.
|
|
125
150
|
|
|
126
|
-
|
|
151
|
+
Version 0.11.0 also supports `--json --dry-run`, repeated `--task`,
|
|
127
152
|
spending lines and a per-call deadline. Confirm its ordinary `plan.sha256` and
|
|
128
153
|
explicit fresh `--run-group` for JSON execution. Only selected labeled tasks
|
|
129
154
|
count toward calls; retain negative controls. Trigger already presents files on
|
|
@@ -7,12 +7,16 @@ create a case, verify its acceptance checks, preview a small budget, then inspec
|
|
|
7
7
|
outcomes and complete spending. Bundled benches teach the format. Repeatedly
|
|
8
8
|
optimizing one external debugging Skill is not the product roadmap.
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
and
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
Version **0.12.0** is published and verified in the [release record](releases/0.12.0.md).
|
|
11
|
+
It includes the October 16–17 workflow foundations and the subsequent case-authoring,
|
|
12
|
+
input-layout and usage-accounting fixes. Publication status and archive verification
|
|
13
|
+
belong to that record; [CHANGELOG](../CHANGELOG.md) describes versioned behavior.
|
|
14
|
+
|
|
15
|
+
Current local maintenance follows the [documentation and architecture cleanup
|
|
16
|
+
plan](plans/2026-10-20-docs-architecture-cleanup.md). Its execution progress and
|
|
17
|
+
checks are recorded there; it adds no live model evaluations or efficacy claims.
|
|
18
|
+
The completed [workflow foundations audit](plans/2026-10-17-workflow-foundations.md#completion-audit)
|
|
19
|
+
remains a historical delivery record.
|
|
16
20
|
|
|
17
21
|
## Available foundations
|
|
18
22
|
|
|
@@ -25,10 +29,10 @@ for this delivery.
|
|
|
25
29
|
| Share or contribute | [Report guide](sharing-results.md), [offline CI example](examples/bench-check.yml), [bench guide](bench-authoring.md), contribution/issue templates | CI stays offline and never calls a model |
|
|
26
30
|
| First run across operating systems | Native Node CLI, mirrored READMEs, macOS/Linux/Windows CI | Local agents and credentials are needed only for live evaluation |
|
|
27
31
|
|
|
28
|
-
The [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
The [study index](skill-evaluation-evidence.md) owns current debugging-study status,
|
|
33
|
+
cumulative spending and unknown usage. The [public evidence index](../evidence/README.md)
|
|
34
|
+
navigates all dated reports. These are examples of the CLI's evidence gates, not a
|
|
35
|
+
universal Skill benchmark.
|
|
32
36
|
|
|
33
37
|
## Delivery order
|
|
34
38
|
|
|
@@ -64,18 +68,19 @@ report export, failure freezing or existing budget controls.
|
|
|
64
68
|
|
|
65
69
|
See [planning](eval-planning.md), [interruption](evaluation-interruption.md),
|
|
66
70
|
[cost accounting](eval-costs.md), [report types](evaluation-reports.md) and
|
|
67
|
-
[portable packages](replay-packages.md). These are
|
|
68
|
-
|
|
69
|
-
protocol, dated evidence and automatic-upgrade
|
|
71
|
+
[portable packages](replay-packages.md). These features are published and checked
|
|
72
|
+
in [0.11.0](releases/0.11.0.md), with 794 offline tests and Linux/macOS/Windows CI
|
|
73
|
+
passing. The statistical protocol, dated evidence and automatic-upgrade
|
|
74
|
+
prohibition are unchanged.
|
|
70
75
|
|
|
71
76
|
## Later decisions
|
|
72
77
|
|
|
73
78
|
The 0.10.1 release includes interruption cleanup, offline case preflight, sealed
|
|
74
|
-
inputs, API cache counts and shared paired report inputs.
|
|
75
|
-
|
|
79
|
+
inputs, API cache counts and shared paired report inputs. Version 0.11.0 also
|
|
80
|
+
reads calibration and trigger summaries through the public report dispatcher,
|
|
76
81
|
with their correct states/metrics and separate descriptive JSON kinds. See
|
|
77
82
|
[report types](evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
|
|
78
|
-
This reporting correction adds no live calls
|
|
83
|
+
This reporting correction adds no live calls.
|
|
79
84
|
|
|
80
85
|
The same source line now shares ordinary/Agent paired plans, budget stop lines
|
|
81
86
|
and executor deadlines, with ordinary JSON preview/confirmation and explicit
|
|
@@ -83,11 +88,11 @@ no-Skill request baselines. [Shared planning](eval-planning.md) documents defaul
|
|
|
83
88
|
frozen limits and unchanged adoption restrictions. Version 0.11.0 includes
|
|
84
89
|
these additions, with registry delivery tracked in its release record.
|
|
85
90
|
|
|
86
|
-
|
|
91
|
+
Version 0.11.0 also performs [offline Agent environment preflight](eval-agent-preflight.md)
|
|
87
92
|
in preview and before dispatch: CLI availability, matrix compatibility, existing
|
|
88
93
|
same-name global Skill conflicts and unknown offline authentication. Checks are
|
|
89
94
|
sealed and preserved by reporting/replay without a new machine probe. This
|
|
90
|
-
|
|
95
|
+
check makes no live calls; authentication remains unknown offline.
|
|
91
96
|
|
|
92
97
|
- Improve error messages based on actual failed case-authoring attempts.
|
|
93
98
|
- Verify Claude Code trigger capture when working authentication is available.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# npm package contents
|
|
2
|
+
|
|
3
|
+
The CLI package includes runtime code and the offline inputs needed by its
|
|
4
|
+
published CLI examples. Development checks use the source checkout; normal CLI
|
|
5
|
+
execution has zero runtime dependencies.
|
|
6
|
+
|
|
7
|
+
## Retained content
|
|
8
|
+
|
|
9
|
+
- Active compiled JavaScript and matrix JSON, including native report/export support.
|
|
10
|
+
- Bundled cases, profiles, driver Skill, schemas and documentation.
|
|
11
|
+
- `evidence/inputs/` used by request examples and pinned historical replay support.
|
|
12
|
+
- The [versioned archive catalog](../evidence/archive-catalog.v1.json), independent
|
|
13
|
+
`evidence/fetch-archives.mjs` and [restoration guide](archive-delivery.md).
|
|
14
|
+
- Six compiled test files required by the 0.12.0 and 0.13.0 installed-feature recipes.
|
|
15
|
+
|
|
16
|
+
Other active `dist/**/*.test.js` files stay in source development and `npm test`.
|
|
17
|
+
The package's explicit file patterns exclude them; nested historical replay tests
|
|
18
|
+
retain their original bytes and paths. Four historical metadata files normally
|
|
19
|
+
excluded by npm are encoded in the catalog so restored frozen indexes stay exact.
|
|
20
|
+
|
|
21
|
+
## Explicit historical archive restoration
|
|
22
|
+
|
|
23
|
+
The 19 compressed files in [the inventory](archive-inventory.md) are excluded
|
|
24
|
+
precisely by `evidence/artifacts/.npmignore`; their Git originals remain unchanged.
|
|
25
|
+
The package keeps their READMEs, reports, declarations, licensed inputs and frozen
|
|
26
|
+
source/runtime/scripts. Historical archive recipes need an explicit
|
|
27
|
+
[restore step](archive-delivery.md) before extracting or replaying saved records.
|
|
28
|
+
Normal npm installation and CLI commands never fetch them automatically.
|
|
29
|
+
|
|
30
|
+
Downloads use a full fixed source commit and verify size/SHA-256. A local source
|
|
31
|
+
supports entirely offline restoration. Both modes write a fresh workspace at
|
|
32
|
+
original relative paths, preserving existing outputs. All 19 archives and their
|
|
33
|
+
1,583 supporting files were verified after detached installation, and the 19
|
|
34
|
+
original offline replay/export procedures passed on the recorded Node 24.21.0
|
|
35
|
+
macOS environment. Their original runtime/platform requirements remain.
|
|
36
|
+
|
|
37
|
+
A same-snapshot full/candidate comparison removed exactly the 19 archives and
|
|
38
|
+
nothing else: 22,473,981 to 2,811,158 compressed bytes (87.49% less), before final
|
|
39
|
+
documentation additions. These are development measurements, not sizes of the
|
|
40
|
+
published 0.12.0 tarball. Published releases and their receipts/recipes are
|
|
41
|
+
unchanged. This distribution starts with 0.13.0; its
|
|
42
|
+
[release record](releases/0.13.0.md) tracks actual publication and verification.
|
|
43
|
+
|
|
44
|
+
## Package checks
|
|
45
|
+
|
|
46
|
+
After building, create and inspect an actual package without lifecycle scripts
|
|
47
|
+
or registry access (POSIX shell example):
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm run build
|
|
51
|
+
pack_dir=$(mktemp -d)
|
|
52
|
+
npm pack --ignore-scripts --offline --json --pack-destination "$pack_dir" > "$pack_dir/pack.json"
|
|
53
|
+
node scripts/check-package.mjs "$pack_dir/pack.json"
|
|
54
|
+
node scripts/npm-release.mjs check "$pack_dir/pack.json"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Use a writable npm cache if the default cache is unavailable. The check verifies
|
|
58
|
+
required runtime, inputs, six retained tests, catalog/tool and every directly
|
|
59
|
+
shipped catalog support path. It rejects external or unknown archives, unknown
|
|
60
|
+
roots, known credential/private paths, extra active tests and duplicate/missing
|
|
61
|
+
files. It is an inventory check rather than a general secret scanner.
|
|
62
|
+
|
|
63
|
+
[scripts/package-policy.json](../scripts/package-policy.json) limits the package
|
|
64
|
+
to 4 MiB compressed and 19 MiB unpacked. These ceilings leave room above the
|
|
65
|
+
measured lean package while retaining over 80% compressed reduction from the
|
|
66
|
+
same-snapshot full baseline. Do not raise them to hide accidental contents.
|
|
67
|
+
|
|
68
|
+
`npm test` checks the catalog against retained source bytes, creates an actual
|
|
69
|
+
offline npm package, extracts it and runs its shipped
|
|
70
|
+
[archive-delivery smoke](releases/archive-delivery-smoke.mjs). This verifies all
|
|
71
|
+
restored bytes, preview purity and collision protection with zero network/model
|
|
72
|
+
calls. The release preparation check applies the same inventory policy; the
|
|
73
|
+
versioned installed-feature recipe remains the separate CLI workflow check.
|