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.
Files changed (172) hide show
  1. package/README.md +68 -104
  2. package/README.zh-CN.md +68 -101
  3. package/benches/README.md +6 -2
  4. package/dist/cli.js +28 -16
  5. package/dist/commands/bench-calibration.js +5 -1
  6. package/dist/commands/bench-check-report.js +1 -34
  7. package/dist/commands/bench-draft.js +167 -0
  8. package/dist/commands/bench-draft.test.js +168 -0
  9. package/dist/commands/bench-manage.js +5 -4
  10. package/dist/commands/bench-source.js +101 -0
  11. package/dist/commands/bench-source.test.js +84 -0
  12. package/dist/commands/bench.js +157 -328
  13. package/dist/commands/eval-api-failure.test.js +46 -0
  14. package/dist/commands/eval-layout.test.js +126 -0
  15. package/dist/commands/eval-preflight-error.js +9 -0
  16. package/dist/commands/eval-preflight.js +4 -11
  17. package/dist/commands/eval-report.js +6 -459
  18. package/dist/commands/eval.js +7 -32
  19. package/dist/commands/install.js +14 -98
  20. package/dist/harness/agent-preflight.js +18 -2
  21. package/dist/harness/bench-check.js +277 -0
  22. package/dist/harness/bench-diagnostics.js +34 -0
  23. package/dist/harness/bench-location.js +29 -0
  24. package/dist/harness/bench-location.test.js +33 -0
  25. package/dist/harness/bench.js +8 -3
  26. package/dist/harness/eval-acceptance.js +1 -1
  27. package/dist/harness/eval-audit.js +2 -2
  28. package/dist/harness/eval-manifest.js +456 -0
  29. package/dist/harness/evaluation-layout.js +30 -0
  30. package/dist/harness/executors/api.js +20 -7
  31. package/dist/harness/executors/cli.js +15 -25
  32. package/dist/harness/experiment-session.js +5 -15
  33. package/dist/harness/hash.js +3 -1
  34. package/dist/harness/runner.js +5 -4
  35. package/dist/harness/single-arm-audit.js +1 -1
  36. package/dist/harness/trigger.js +1 -1
  37. package/dist/harness/verifier-timeout.js +8 -0
  38. package/dist/harness/verifier-timeout.test.js +76 -0
  39. package/dist/install/constants.js +1 -0
  40. package/dist/install/transaction.js +112 -0
  41. package/docs/README.md +65 -0
  42. package/docs/architecture.md +86 -0
  43. package/docs/archive-delivery.md +83 -0
  44. package/docs/archive-inventory.md +91 -0
  45. package/docs/bench-authoring.md +23 -3
  46. package/docs/bench-drafting.md +75 -0
  47. package/docs/case-management.md +12 -1
  48. package/docs/eval-agent-preflight.md +15 -2
  49. package/docs/eval-costs.md +28 -2
  50. package/docs/eval-planning.md +14 -0
  51. package/docs/evaluation-input-snapshots.md +20 -4
  52. package/docs/evaluation-reports.md +1 -1
  53. package/docs/first-real-eval.md +28 -3
  54. package/docs/growth-roadmap-2026-10.md +23 -18
  55. package/docs/package-contents.md +73 -0
  56. package/docs/plans/2026-10-17-workflow-foundations.md +37 -2
  57. package/docs/plans/2026-10-20-archive-replay-verification.json +125 -0
  58. package/docs/plans/2026-10-20-archive-source-verification.json +256 -0
  59. package/docs/plans/2026-10-20-delivery-verification.json +146 -0
  60. package/docs/plans/2026-10-20-docs-architecture-cleanup.md +233 -0
  61. package/docs/plans/2026-10-20-install-transactions-and-archive-delivery.md +233 -0
  62. package/docs/plans/2026-10-21-npm-0.13.0-release.md +41 -0
  63. package/docs/releases/0.11.0-ci-registry-install.json +130 -0
  64. package/docs/releases/0.11.0-feature-smoke.json +1576 -0
  65. package/docs/releases/0.11.0-local-attempt-1.json +24 -0
  66. package/docs/releases/0.11.0-local-attempt-1.log +19 -0
  67. package/docs/releases/0.11.0-local-registry-install.json +25 -0
  68. package/docs/releases/0.11.0-registry-metadata.json +33 -0
  69. package/docs/releases/0.11.0-signatures.txt +12 -0
  70. package/docs/releases/0.11.0-verification.json +95 -0
  71. package/docs/releases/0.11.0.md +54 -11
  72. package/docs/releases/0.12.0-attestation-check.json +22 -0
  73. package/docs/releases/0.12.0-attestations.json +155 -0
  74. package/docs/releases/0.12.0-ci-registry-install.json +90 -0
  75. package/docs/releases/0.12.0-feature-smoke.json +34 -0
  76. package/docs/releases/0.12.0-feature-smoke.mjs +73 -0
  77. package/docs/releases/0.12.0-foundations-smoke.json +1576 -0
  78. package/docs/releases/0.12.0-local-registry-install.json +75 -0
  79. package/docs/releases/0.12.0-preparation-attempt-1.json +22 -0
  80. package/docs/releases/0.12.0-registry-metadata.json +96 -0
  81. package/docs/releases/0.12.0-signatures.txt +6 -0
  82. package/docs/releases/0.12.0-verification.json +99 -0
  83. package/docs/releases/0.12.0.md +82 -0
  84. package/docs/releases/0.13.0-feature-smoke.mjs +114 -0
  85. package/docs/releases/0.13.0-preparation.json +102 -0
  86. package/docs/releases/0.13.0.md +61 -0
  87. package/docs/releases/archive-delivery-smoke.mjs +37 -0
  88. package/docs/reproducible-offline-example.md +1 -1
  89. package/docs/schemas/agent-preflight.schema.json +1 -1
  90. package/docs/verifier-contract.md +9 -0
  91. package/evidence/README.md +24 -1
  92. package/evidence/archive-catalog.v1.json +8044 -0
  93. package/evidence/fetch-archives.mjs +211 -0
  94. package/package.json +9 -2
  95. package/skills/skillfit/SKILL.md +25 -5
  96. package/dist/cli.test.js +0 -193
  97. package/dist/commands/bench-calibration.test.js +0 -237
  98. package/dist/commands/bench-check-json.test.js +0 -242
  99. package/dist/commands/bench-manage.test.js +0 -87
  100. package/dist/commands/bench.test.js +0 -1162
  101. package/dist/commands/bundle.test.js +0 -142
  102. package/dist/commands/calibration-cli.test.js +0 -145
  103. package/dist/commands/doctor.test.js +0 -280
  104. package/dist/commands/eval-agent-preflight.test.js +0 -245
  105. package/dist/commands/eval-export-modes.test.js +0 -350
  106. package/dist/commands/eval-export.test.js +0 -279
  107. package/dist/commands/eval-interruption.test.js +0 -238
  108. package/dist/commands/eval-preflight.test.js +0 -382
  109. package/dist/commands/eval-report.test.js +0 -367
  110. package/dist/commands/eval.test.js +0 -503
  111. package/dist/commands/evaluation-report.test.js +0 -243
  112. package/dist/commands/install.test.js +0 -555
  113. package/dist/commands/replay-cancellation.test.js +0 -105
  114. package/dist/commands/report.test.js +0 -110
  115. package/dist/commands/setup.test.js +0 -150
  116. package/dist/commands/upstream.test.js +0 -139
  117. package/dist/commands/workflow-entrypoints.test.js +0 -137
  118. package/dist/docs.test.js +0 -154
  119. package/dist/frontmatter.test.js +0 -49
  120. package/dist/harness/bench.test.js +0 -109
  121. package/dist/harness/bundle.test.js +0 -71
  122. package/dist/harness/codex-usage.test.js +0 -87
  123. package/dist/harness/costs.test.js +0 -92
  124. package/dist/harness/eval-budget.test.js +0 -237
  125. package/dist/harness/eval-component.test.js +0 -770
  126. package/dist/harness/eval-efficiency.test.js +0 -56
  127. package/dist/harness/execution-timing.test.js +0 -61
  128. package/dist/harness/executors/api.test.js +0 -136
  129. package/dist/harness/executors/cli.test.js +0 -510
  130. package/dist/harness/executors/mock.test.js +0 -43
  131. package/dist/harness/experiment-session.test.js +0 -317
  132. package/dist/harness/installed-skill.test.js +0 -162
  133. package/dist/harness/interruption.test.js +0 -31
  134. package/dist/harness/judge-accounting.test.js +0 -216
  135. package/dist/harness/judge.test.js +0 -181
  136. package/dist/harness/kimi-usage.test.js +0 -62
  137. package/dist/harness/native-diff.test.js +0 -53
  138. package/dist/harness/oss-lru-cache.test.js +0 -79
  139. package/dist/harness/oss-normalize-url.test.js +0 -64
  140. package/dist/harness/oss-regression-witness.test.js +0 -89
  141. package/dist/harness/oss-skill-followup.test.js +0 -59
  142. package/dist/harness/prompt.test.js +0 -48
  143. package/dist/harness/receipts.test.js +0 -148
  144. package/dist/harness/report.test.js +0 -297
  145. package/dist/harness/runner.test.js +0 -635
  146. package/dist/harness/skill-revision.test.js +0 -148
  147. package/dist/harness/stats.test.js +0 -124
  148. package/dist/harness/target.test.js +0 -60
  149. package/dist/harness/trigger.test.js +0 -261
  150. package/dist/harness/verifier-summary.test.js +0 -99
  151. package/dist/harness/verifier.test.js +0 -128
  152. package/dist/harness/waza-behavior.test.js +0 -139
  153. package/dist/mcp/probe.test.js +0 -139
  154. package/evidence/artifacts/2026-10-12-diagnosing-revision/calibration-records.tar.gz +0 -0
  155. package/evidence/artifacts/2026-10-12-diagnosing-revision/interrupted-records.tar.gz +0 -0
  156. package/evidence/artifacts/2026-10-12-diagnosing-revision/validation-records.tar.gz +0 -0
  157. package/evidence/artifacts/2026-10-12-diagnosing-v2/regression-records.tar.gz +0 -0
  158. package/evidence/artifacts/2026-10-12-diagnosing-v2/transfer-records.tar.gz +0 -0
  159. package/evidence/artifacts/2026-10-12-normalize-url-v2-available/readiness-records.tar.gz +0 -0
  160. package/evidence/artifacts/2026-10-12-normalize-url-v2-comparison/records.tar.gz +0 -0
  161. package/evidence/artifacts/2026-10-12-normalize-url-v2-recovery/records.tar.gz +0 -0
  162. package/evidence/artifacts/2026-10-12-normalize-url-v2-validated/records.tar.gz +0 -0
  163. package/evidence/artifacts/2026-10-13-debugging-completed-development/package.tar.gz +0 -0
  164. package/evidence/artifacts/2026-10-13-debugging-controls-and-sleep-stop/package.tar.gz +0 -0
  165. package/evidence/artifacts/2026-10-13-debugging-development-stops/package.tar.gz +0 -0
  166. package/evidence/artifacts/2026-10-14-debugging-followup-routing-stop/package.tar.gz +0 -0
  167. package/evidence/artifacts/2026-10-14-debugging-independent-validation/package.tar.gz +0 -0
  168. package/evidence/artifacts/2026-10-14-debugging-reading-pilot-and-cost-review/package.tar.gz +0 -0
  169. package/evidence/artifacts/2026-10-14-debugging-spending-stop/package.tar.gz +0 -0
  170. package/evidence/artifacts/2026-10-15-independent-comparison-regression-stop/package.tar.gz +0 -0
  171. package/evidence/artifacts/2026-10-15-native-diff-mechanism/package.tar.gz +0 -0
  172. package/evidence/artifacts/2026-10-15-receiver-mechanism-stop/package.tar.gz +0 -0
@@ -0,0 +1,61 @@
1
+ # skillfit 0.13.0
2
+
3
+ This release separates installation file transactions and makes historical
4
+ archive downloads explicit. The implementation was reviewed in
5
+ [PR #45](https://github.com/remote-controlled-man/skillfit/pull/45).
6
+ Publication follows the existing [manual OIDC procedure](trusted-publishing.md).
7
+ This preparation record does not establish npm availability; publication and
8
+ independent verification receipts will be appended after registry checks.
9
+
10
+ ## Included behavior
11
+
12
+ - Installation planning delegates file operations to a dedicated transaction
13
+ module. First backups survive competing writes, and failed rollback/cleanup
14
+ preserves recovery copies and the original errors. Existing CLI parameters,
15
+ confirmation, previews and user configuration backup behavior remain.
16
+ - npm excludes exactly 19 historical compressed archives. Git originals and
17
+ frozen replay support remain. A shipped catalog/restore tool retrieves
18
+ fixed-commit bytes, checks size/SHA-256 and prepares a fresh historical
19
+ workspace. Normal install/eval/CLI commands never download archives.
20
+ - Restoration supports zero-write previews, selected IDs, all archives and a
21
+ fully offline local source. Existing outputs, package contents and source
22
+ directories are protected from overwrite. See the
23
+ [restore guide](../archive-delivery.md) and [inventory](../archive-inventory.md).
24
+
25
+ ## Compatibility and installed verification
26
+
27
+ Existing historical recipes now need explicit restoration before extraction.
28
+ Version 0.12.0 and earlier keep their original npm contents and immutable recipes.
29
+ The CLI/restorer requires Node >=22. Frozen historical recipes retain their
30
+ original Node 24.21.0/TypeScript/POSIX requirements; no new Windows replay claim
31
+ is made. Statistical/adoption contracts and real Skill efficacy evidence remain
32
+ unchanged. Runtime dependencies, real model/API and Agent CLI calls added: **0**.
33
+
34
+ The new recipe preserves the pinned seven-group foundations checks, five moved
35
+ portable replays, 29 packaged regressions and synthetic stream probes from the
36
+ previous release. It also verifies temporary configuration previews, first
37
+ backups, idempotent reinstall and a moved bundle's preview/install/reinstall.
38
+ All configuration writes use isolated temporary homes.
39
+
40
+ ```bash
41
+ node docs/releases/0.13.0-feature-smoke.mjs /absolute/path/to/node_modules/skillfit /tmp/skillfit-0.13.0-feature-smoke
42
+ node docs/releases/archive-delivery-smoke.mjs /absolute/path/to/node_modules/skillfit /absolute/path/to/verified-archive-workspace /tmp/skillfit-0.13.0-archive-smoke
43
+ ```
44
+
45
+ Choose fresh output directories and preserve failed attempts. The independent
46
+ archive check restores and verifies 19 archives plus 1,583 support files, refuses
47
+ existing destinations and proves preview purity and zero network use. It does
48
+ not establish registry availability. The
49
+ [release plan](../plans/2026-10-21-npm-0.13.0-release.md) tracks preparation,
50
+ review, publication and actual verification results separately.
51
+
52
+ ## Preparation validation
53
+
54
+ The [local preparation receipt](0.13.0-preparation.json) records 877/877 offline
55
+ tests, zero failures/skips, architecture/documentation/bench checks and an actual
56
+ 2,820,832-byte package with 2,644 installed files compared individually. The
57
+ installed recipe passed all seven foundations groups, five moved portable
58
+ replays, 29 packaged regressions and temporary configuration/bundle checks.
59
+ All 19 archives and 1,583 support files restored offline with collision/preview
60
+ checks. These measurements precede final preparation records and do not
61
+ represent the registry archive. No blocking review findings remain.
@@ -0,0 +1,37 @@
1
+ import assert from 'node:assert/strict';
2
+ import { createHash } from 'node:crypto';
3
+ import { promises as fs } from 'node:fs';
4
+ import path from 'node:path';
5
+ import { pathToFileURL } from 'node:url';
6
+
7
+ // Supplement the versioned feature recipe. Source archives are explicit local
8
+ // inputs; installed code/support files must work without a source checkout.
9
+ assert.equal(process.argv.length, 5, 'Provide installed package, local archive root and fresh output parent.');
10
+ const installed = await fs.realpath(process.argv[2]), source = await fs.realpath(process.argv[3]);
11
+ const requested = path.resolve(process.argv[4]);
12
+ const parent = path.join(await fs.realpath(path.dirname(requested)), path.basename(requested));
13
+ for (const input of [installed, source]) {
14
+ assert.ok(!parent.startsWith(input + path.sep) && parent !== input, 'Keep outputs outside the installed package and archive source.');
15
+ }
16
+ await fs.mkdir(parent); // Exclusive: previous receipts are never overwritten.
17
+ const { readCatalog, restoreArchives } = await import(pathToFileURL(path.join(installed, 'evidence/fetch-archives.mjs')));
18
+ const catalog = await readCatalog(installed), output = path.join(parent, 'restored');
19
+ for (const row of catalog.archives) await assert.rejects(fs.lstat(path.join(installed, row.path)), { code: 'ENOENT' });
20
+ let networkAttempts = 0;
21
+ const fetchImpl = () => { networkAttempts++; throw new Error('Network forbidden in installed archive smoke'); };
22
+ assert.equal((await restoreArchives({ all: true, output, fetchImpl, log: () => {} })).status, 'planned');
23
+ await assert.rejects(fs.lstat(output), { code: 'ENOENT' });
24
+ await restoreArchives({ all: true, output, from: source, offline: true, yes: true, fetchImpl, log: () => {} });
25
+ for (const row of [...catalog.archives, ...catalog.supportFiles]) {
26
+ const bytes = await fs.readFile(path.join(output, row.path));
27
+ assert.equal(bytes.length, row.bytes, row.path);
28
+ assert.equal(createHash('sha256').update(bytes).digest('hex'), row.sha256, row.path);
29
+ }
30
+ await assert.rejects(restoreArchives({ all: true, output, from: source, offline: true, yes: true, fetchImpl, log: () => {} }), /already exists/);
31
+ assert.equal(networkAttempts, 0);
32
+ const receipt = { kind: 'skillfit.archive-delivery-smoke', version: JSON.parse(await fs.readFile(path.join(installed, 'package.json'), 'utf8')).version,
33
+ nodeVersion: process.version, sourceCommit: catalog.source.commit, archivesRestored: catalog.archives.length,
34
+ supportFilesRestored: catalog.supportFiles.length, inlineSupportFiles: catalog.supportFiles.filter(row => row.inlineBase64 !== undefined).length,
35
+ previewWrites: 0, networkAttempts, modelCalls: 0, collisionPreserved: true };
36
+ await fs.writeFile(path.join(parent, 'archive-delivery-smoke.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
37
+ console.log(JSON.stringify(receipt));
@@ -2,7 +2,7 @@
2
2
 
3
3
  This example checks the two benches bundled with skillfit. It uses deterministic Node verifiers and
4
4
  reference solutions, with no agent CLI or model API call. After cloning, installing dev dependencies,
5
- and building as shown in the [quick start](../README.md#quick-start), run:
5
+ and building as shown in the [quick start](../README.md#run-from-source), run:
6
6
 
7
7
  ```bash
8
8
  node dist/cli.js bench check benches/code-review
@@ -12,7 +12,7 @@
12
12
  "checks": { "type": "array", "minItems": 1, "items": {
13
13
  "type": "object", "required": ["code", "role", "agent", "status", "message", "remediation", "paths"],
14
14
  "properties": {
15
- "code": { "enum": ["CLI_AVAILABLE", "MATRIX_CAPABILITY", "EXECUTOR_INJECTED", "AUTHENTICATION", "GLOBAL_SKILL_CONFLICT", "GLOBAL_SKILL_SCAN", "ENVIRONMENT_CHANGED"] },
15
+ "code": { "enum": ["CLI_AVAILABLE", "MATRIX_CAPABILITY", "EXECUTOR_INJECTED", "AUTHENTICATION", "GLOBAL_SKILL_CONFLICT", "GLOBAL_SKILL_SCAN", "ENVIRONMENT_CHANGED", "USAGE_CAPABILITY"] },
16
16
  "role": { "enum": ["agent", "judge"] }, "agent": { "type": ["string", "null"] },
17
17
  "status": { "enum": ["PASS", "FAIL", "UNKNOWN", "INFO"] }, "message": { "type": "string" },
18
18
  "remediation": { "type": ["string", "null"] }, "paths": { "type": "array", "items": { "type": "string" } }
@@ -35,6 +35,15 @@ before executing it. This parser does not make untrusted verifiers safe.
35
35
 
36
36
  ## A failure is a grade; an infrastructure error is not
37
37
 
38
+ Version 0.12.0 supports optional task field `verifierTimeoutSeconds` (integer 1–3600,
39
+ default 120). It bounds each verifier/oracle command in checks, preflight, evaluation, calibration,
40
+ trigger mode and offline regrading, using the frozen bench's value during replay. Set it with
41
+ `bench add --verifier-timeout-seconds <n>` or
42
+ `bench edit <dir> <id> --set verifierTimeoutSeconds=<n> --yes`; use
43
+ `--unset verifierTimeoutSeconds` to restore the default. This does not change the model's
44
+ `--executor-timeout-seconds`. A timed-out grader remains an infrastructure error with retained
45
+ agent usage, not a failed model answer. Old benches keep their previous limit.
46
+
38
47
  For a functioning verifier, exit 0 means pass and a nonzero exit means task
39
48
  failure. JSON `passed`/named checks remain informational/graded signals; they do
40
49
  not override that exit-code authority. Legacy exit-only graders and assertion/
@@ -7,7 +7,30 @@ Two rules:
7
7
  1. **Evidence expires.** Results are pinned to a model, a harness version, and a bench. A model upgrade can invalidate yesterday's conclusion — re-run before re-recommending.
8
8
  2. **Negative results are results.** "No measurable gain" is a publishable answer. It is what keeps configs lean.
9
9
 
10
- ## Index
10
+ <a id="index"></a>
11
+
12
+ ## Debugging study followups
13
+
14
+ The [maintained study index](../docs/skill-evaluation-evidence.md) owns the current
15
+ status, cumulative accounting and adoption limits. These later dated reports
16
+ retain each cohort separately; their results are not pooled here.
17
+
18
+ | Date | Report |
19
+ | --- | --- |
20
+ | 2026-10-15 | [Receiver mechanism probe: candidate failed, stopped after one call](2026-10-15-receiver-mechanism-stop.md) |
21
+ | 2026-10-15 | [Native diff mechanism: four authorized development calls](2026-10-15-native-diff-mechanism.md) |
22
+ | 2026-10-15 | [Eight-task offline readiness and spending-stop verification](2026-10-15-independent-offline-readiness.md) |
23
+ | 2026-10-15 | [Independent original/v4 comparison: stopped on a correctness regression](2026-10-15-independent-comparison-regression-stop.md) |
24
+ | 2026-10-15 | [Receiver correction: offline development after the v4 rejection](2026-10-15-diagnosing-receiver-correction.md) |
25
+ | 2026-10-14 | [Debugging evaluation stopped for a spending review](2026-10-14-debugging-spending-stop.md) |
26
+ | 2026-10-14 | [Rejected reading pilot and post-hoc cost review](2026-10-14-debugging-reading-pilot-and-cost-review.md) |
27
+ | 2026-10-14 | [Independent debugging Skill validation](2026-10-14-debugging-independent-validation.md) |
28
+ | 2026-10-14 | [Debugging followup interrupted by workspace routing failure](2026-10-14-debugging-followup-routing-stop.md) |
29
+ | 2026-10-13 | [Debugging Skill development stops and recorded costs](2026-10-13-debugging-development-stops.md) |
30
+ | 2026-10-13 | [Debugging v4 controls: mixed costs and an interrupted validation batch](2026-10-13-debugging-controls-and-sleep-stop.md) |
31
+ | 2026-10-13 | [Completed debugging Skill development: v3 rejected, v4 still experimental](2026-10-13-debugging-completed-development.md) |
32
+
33
+ ## Earlier reports
11
34
 
12
35
  | Date | Experiment | Agents | Headline |
13
36
  |---|---|---|---|