skillfit 0.11.0 → 0.12.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 +28 -5
- package/README.zh-CN.md +28 -5
- package/benches/README.md +6 -2
- package/dist/cli.js +28 -16
- package/dist/commands/bench-calibration.js +5 -1
- 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 +165 -103
- package/dist/commands/bench.test.js +7 -3
- package/dist/commands/eval-agent-preflight.test.js +24 -0
- package/dist/commands/eval-api-failure.test.js +46 -0
- package/dist/commands/eval-cli-usage.test.js +75 -0
- package/dist/commands/eval-interruption.test.js +26 -1
- package/dist/commands/eval-layout.test.js +126 -0
- package/dist/commands/eval.js +7 -32
- package/dist/commands/npm-first-run.test.js +74 -0
- package/dist/harness/agent-preflight.js +18 -2
- 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-audit.js +1 -1
- package/dist/harness/evaluation-layout.js +30 -0
- package/dist/harness/executors/api.js +20 -7
- package/dist/harness/executors/api.test.js +39 -0
- package/dist/harness/executors/cli.js +15 -25
- package/dist/harness/executors/cli.test.js +33 -2
- 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/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/first-real-eval.md +28 -3
- package/docs/growth-roadmap-2026-10.md +23 -14
- package/docs/plans/2026-10-17-workflow-foundations.md +37 -2
- 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-feature-smoke.mjs +73 -0
- package/docs/releases/0.12.0.md +68 -0
- package/docs/schemas/agent-preflight.schema.json +1 -1
- package/docs/verifier-contract.md +9 -0
- package/package.json +1 -1
- package/skills/skillfit/SKILL.md +25 -5
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"kind": "skillfit.release-verification-attempt",
|
|
4
|
+
"version": "0.11.0",
|
|
5
|
+
"sourceCommit": "62be7fe93cfb3291de00357f38aa575f25679649",
|
|
6
|
+
"attempt": 1,
|
|
7
|
+
"status": "failed",
|
|
8
|
+
"phase": "registry-availability-read",
|
|
9
|
+
"exitCode": 1,
|
|
10
|
+
"observations": [
|
|
11
|
+
{
|
|
12
|
+
"at": "2026-10-16T17:08:05.427Z",
|
|
13
|
+
"versionStatus": 404,
|
|
14
|
+
"latestStatus": 200
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"errorCode": "ECONNRESET",
|
|
18
|
+
"error": "Client network socket disconnected before secure TLS connection was established",
|
|
19
|
+
"log": "verification.log",
|
|
20
|
+
"publicationInvoked": false,
|
|
21
|
+
"modelCalls": 0,
|
|
22
|
+
"agentCliCalls": 0,
|
|
23
|
+
"followUp": "Preserve this failure. Later read-only verification uses a new directory; never upload again."
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
node:internal/modules/run_main:107
|
|
2
|
+
triggerUncaughtException(
|
|
3
|
+
^
|
|
4
|
+
|
|
5
|
+
[TypeError: fetch failed] {
|
|
6
|
+
[cause]: Error: Client network socket disconnected before secure TLS connection was established
|
|
7
|
+
at TLSSocket.onConnectEnd (node:internal/tls/wrap:1827:19)
|
|
8
|
+
at TLSSocket.emit (node:events:526:24)
|
|
9
|
+
at endReadableNT (node:internal/streams/readable:1764:12)
|
|
10
|
+
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
|
|
11
|
+
code: 'ECONNRESET',
|
|
12
|
+
path: undefined,
|
|
13
|
+
host: 'registry.npmjs.org',
|
|
14
|
+
port: 443,
|
|
15
|
+
localAddress: null
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
Node.js v24.21.0
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"verifiedAt": "2026-10-16T17:19:45.071Z",
|
|
4
|
+
"version": "0.11.0",
|
|
5
|
+
"latest": "0.11.0",
|
|
6
|
+
"integrity": "sha512-t6xajvQrkYD3/orFQVuPX9iEwAlR60Qq1MLHwII8D/8cPj4iqRMWCJQmzGCuRPaiET1BN+D/xdCzUikz0sPFaQ==",
|
|
7
|
+
"sha256": "01b96ab271ae25ba04399e70a5b6a7889bd4657311e3b2b31326e798c4548461",
|
|
8
|
+
"sourceCommit": "62be7fe93cfb3291de00357f38aa575f25679649",
|
|
9
|
+
"installedFilesVerified": 2667,
|
|
10
|
+
"zeroRuntimeDependencies": true,
|
|
11
|
+
"globalInstall": false,
|
|
12
|
+
"modelCalls": 0,
|
|
13
|
+
"smoke": {
|
|
14
|
+
"version": true,
|
|
15
|
+
"help": true,
|
|
16
|
+
"requestPreview": true
|
|
17
|
+
},
|
|
18
|
+
"attempts": [
|
|
19
|
+
{
|
|
20
|
+
"at": "2026-10-16T17:19:39.987Z",
|
|
21
|
+
"versionStatus": 200,
|
|
22
|
+
"latestStatus": 200
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"observedAt": "2026-10-16T17:20:22.059Z",
|
|
3
|
+
"version": "0.11.0",
|
|
4
|
+
"latest": "0.11.0",
|
|
5
|
+
"publishedAt": "2026-10-16T17:17:18.634Z",
|
|
6
|
+
"dist": {
|
|
7
|
+
"shasum": "c2b1814d82448d13405c01f0c2a4d7e3c8cf012a",
|
|
8
|
+
"tarball": "https://registry.npmjs.org/skillfit/-/skillfit-0.11.0.tgz",
|
|
9
|
+
"fileCount": 2667,
|
|
10
|
+
"integrity": "sha512-t6xajvQrkYD3/orFQVuPX9iEwAlR60Qq1MLHwII8D/8cPj4iqRMWCJQmzGCuRPaiET1BN+D/xdCzUikz0sPFaQ==",
|
|
11
|
+
"signatures": [
|
|
12
|
+
{
|
|
13
|
+
"sig": "MEUCIDUilhQrr00qZXHXAbWZBvXb9+TTWuu8sd9vptosJ9mUAiEA/R/S5iAl4LYJGiDlIesoxVvzcfjjnqWdrVQx82P/pxo=",
|
|
14
|
+
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"sig": "MEYCIQCw0qUmYxMBN/h75dDa76uGxtTC2N58mOkKSQ87cOLvdgIhANcTKCXwH9QiY7KWpzTvnTGGbjpbqTFkUDN1jgVWRcwt",
|
|
18
|
+
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"attestations": {
|
|
22
|
+
"url": "https://registry.npmjs.org/-/npm/v1/attestations/skillfit@0.11.0",
|
|
23
|
+
"provenance": {
|
|
24
|
+
"predicateType": "https://slsa.dev/provenance/v1"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unpackedSize": 38235354
|
|
28
|
+
},
|
|
29
|
+
"trustedPublisher": {
|
|
30
|
+
"id": "github",
|
|
31
|
+
"oidcConfigId": "ea2de82d-9a5c-4d94-b23c-a8923fffeec4"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
audited 1 package in 3s
|
|
2
|
+
|
|
3
|
+
1 package has a verified registry signature
|
|
4
|
+
|
|
5
|
+
1 package has a verified attestation
|
|
6
|
+
(use --json --include-attestations to view attestation details)
|
|
7
|
+
|
|
8
|
+
npm notice
|
|
9
|
+
npm notice New major version of npm available! 11.19.0 -> 12.2.0
|
|
10
|
+
npm notice Changelog: https://github.com/npm/cli/releases/tag/v12.2.0
|
|
11
|
+
npm notice To update run: npm install -g npm@12.2.0
|
|
12
|
+
npm notice
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"verifiedAt": "2026-10-16T17:21:02.347Z",
|
|
4
|
+
"version": "0.11.0",
|
|
5
|
+
"latest": "0.11.0",
|
|
6
|
+
"integrity": "sha512-t6xajvQrkYD3/orFQVuPX9iEwAlR60Qq1MLHwII8D/8cPj4iqRMWCJQmzGCuRPaiET1BN+D/xdCzUikz0sPFaQ==",
|
|
7
|
+
"sha256": "01b96ab271ae25ba04399e70a5b6a7889bd4657311e3b2b31326e798c4548461",
|
|
8
|
+
"sourceCommit": "62be7fe93cfb3291de00357f38aa575f25679649",
|
|
9
|
+
"publishedAt": "2026-10-16T17:17:18.634Z",
|
|
10
|
+
"releaseDate": "2026-10-17",
|
|
11
|
+
"releaseTimeZone": "Asia/Shanghai",
|
|
12
|
+
"registry": "https://registry.npmjs.org/",
|
|
13
|
+
"tarball": "https://registry.npmjs.org/skillfit/-/skillfit-0.11.0.tgz",
|
|
14
|
+
"packageBytes": 22417363,
|
|
15
|
+
"installedFilesVerified": 2667,
|
|
16
|
+
"zeroRuntimeDependencies": true,
|
|
17
|
+
"globalInstall": false,
|
|
18
|
+
"modelCalls": 0,
|
|
19
|
+
"agentCliCalls": 0,
|
|
20
|
+
"automaticUpgrade": false,
|
|
21
|
+
"fullOfflineTestsPassed": 794,
|
|
22
|
+
"platformCI": {
|
|
23
|
+
"runUrl": "https://github.com/remote-controlled-man/skillfit/actions/runs/38934720554",
|
|
24
|
+
"linux": true,
|
|
25
|
+
"macOS": true,
|
|
26
|
+
"windows": true
|
|
27
|
+
},
|
|
28
|
+
"publication": {
|
|
29
|
+
"authentication": "GitHub Actions OIDC trusted publishing",
|
|
30
|
+
"repository": "remote-controlled-man/skillfit",
|
|
31
|
+
"workflow": "npm-release.yml",
|
|
32
|
+
"environment": "npm-release",
|
|
33
|
+
"previewRunUrl": "https://github.com/remote-controlled-man/skillfit/actions/runs/38936210102",
|
|
34
|
+
"runUrl": "https://github.com/remote-controlled-man/skillfit/actions/runs/38936960037",
|
|
35
|
+
"uploadCount": 1,
|
|
36
|
+
"workflowConclusion": "success",
|
|
37
|
+
"previewMatchesPublishedArchive": true,
|
|
38
|
+
"registryAttempts": 22,
|
|
39
|
+
"unavailableReadsRetained": 21
|
|
40
|
+
},
|
|
41
|
+
"ciRegistryReceipt": {
|
|
42
|
+
"path": "0.11.0-ci-registry-install.json",
|
|
43
|
+
"sha256": "84ea1021247005a5ba291f81708245e70f89a65b97d0c6ffd24b2547de1e48b0"
|
|
44
|
+
},
|
|
45
|
+
"localRegistryReceipt": {
|
|
46
|
+
"path": "0.11.0-local-registry-install.json",
|
|
47
|
+
"sha256": "8475407b2e8158f4b91fb1e532013f17fa2c0f80e26dd92f53553d3e151c8bcd"
|
|
48
|
+
},
|
|
49
|
+
"retainedLocalFailures": [
|
|
50
|
+
{
|
|
51
|
+
"path": "0.11.0-local-attempt-1.json",
|
|
52
|
+
"sha256": "b3fa3ea76b08a0a2a8bd396a7fc544682d550aba42e6af541c488c404fa89d44",
|
|
53
|
+
"log": {
|
|
54
|
+
"path": "0.11.0-local-attempt-1.log",
|
|
55
|
+
"sha256": "be6ec1274c4e936a15ad8426f861fcc1ade62657cf9485bca8d34d7b58a20b2f"
|
|
56
|
+
},
|
|
57
|
+
"errorCode": "ECONNRESET",
|
|
58
|
+
"successfulFollowUpAttempt": 2,
|
|
59
|
+
"publicationRetried": false
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"registryMetadata": {
|
|
63
|
+
"path": "0.11.0-registry-metadata.json",
|
|
64
|
+
"sha256": "52f1d76ebcb80f8a44a699324b93cc757b355ebfaf30349703bf07c761c48c51"
|
|
65
|
+
},
|
|
66
|
+
"featureSmoke": {
|
|
67
|
+
"path": "0.11.0-feature-smoke.json",
|
|
68
|
+
"sha256": "b1c0595218635dfc93c8d5f5c74178901dd7f3cd3d51364f5168c8a3bd67d888",
|
|
69
|
+
"recipe": "0.11.0-feature-smoke.mjs",
|
|
70
|
+
"recipeSha256": "aeb14d990bc65e05ec1ea7dc42ac6cadbd5af2bf11603430972ccaddbe4ee870",
|
|
71
|
+
"checks": {
|
|
72
|
+
"versionAndPublicFlags": true,
|
|
73
|
+
"publicPreviewsArePureWithoutAgentCli": true,
|
|
74
|
+
"calibrationHardFailurePreventsSpending": true,
|
|
75
|
+
"judgeBothOrdersRetainCompleteRoleAndTotalCosts": true,
|
|
76
|
+
"triggerBudgetAndIncompleteUsageStopWithoutRetries": true,
|
|
77
|
+
"allModesMoveDeleteOriginalReplayWithExactCosts": true,
|
|
78
|
+
"noAdoptionFromSyntheticOrStoppedEvidence": true
|
|
79
|
+
},
|
|
80
|
+
"syntheticExecutorCalls": 8,
|
|
81
|
+
"portableReplays": 5,
|
|
82
|
+
"networkAttempts": 0
|
|
83
|
+
},
|
|
84
|
+
"registryAudit": {
|
|
85
|
+
"exitCode": 0,
|
|
86
|
+
"packages": 1,
|
|
87
|
+
"verifiedRegistrySignatures": 1,
|
|
88
|
+
"verifiedAttestations": 1,
|
|
89
|
+
"log": "0.11.0-signatures.txt",
|
|
90
|
+
"sha256": "456a91c845d6f47a0b82c2ad1556632120fd39c2aaaf09ea1d32c0afa097d129"
|
|
91
|
+
},
|
|
92
|
+
"verificationKind": "CI registry installation plus independent local file-by-file installation and offline feature replay",
|
|
93
|
+
"comparisonSource": "extracted accepted CI archive (byte-identical to reviewed CI preview), not a local rebuild",
|
|
94
|
+
"scope": "CLI reliability and reproducibility; no new real Skill efficacy observations or upgrade eligibility"
|
|
95
|
+
}
|
package/docs/releases/0.11.0.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# skillfit 0.11.0
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Published and verified as `skillfit@0.11.0` on October 17, 2026 at
|
|
4
|
+
01:17:18 Asia/Shanghai (October 16, 17:17:18 UTC). This version completes the
|
|
5
|
+
basic case → plan → run/stop → report → portable replay workflow. The
|
|
6
|
+
[verification receipt](0.11.0-verification.json) pins source, archive, registry
|
|
7
|
+
metadata, isolated installations and installed-feature replay.
|
|
6
8
|
|
|
7
9
|
## Included behavior
|
|
8
10
|
|
|
@@ -29,12 +31,16 @@ See the [changelog](../../CHANGELOG.md), [planning guide](../eval-planning.md),
|
|
|
29
31
|
- Bundled code-review/debugging and contributed bench checks passed offline.
|
|
30
32
|
- README code blocks match in both languages; local documentation/schema links
|
|
31
33
|
and the bundled driver Skill were checked.
|
|
34
|
+
- [PR #37](https://github.com/remote-controlled-man/skillfit/pull/37) merged after
|
|
35
|
+
[Linux, macOS and Windows CI](https://github.com/remote-controlled-man/skillfit/actions/runs/38934720554)
|
|
36
|
+
passed, including first-run plans and bench integrity checks.
|
|
32
37
|
- The [offline installed-feature recipe](0.11.0-feature-smoke.mjs) passed on the
|
|
33
|
-
|
|
34
|
-
eight synthetic invocations and zero
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
[isolated registry installation](0.11.0-feature-smoke.json): seven feature
|
|
39
|
+
groups, five moved replay packages, eight synthetic invocations and zero
|
|
40
|
+
network/model/Agent CLI calls. Original inputs and runs were deleted before
|
|
41
|
+
portable replay; exact costs and upgrade restrictions remained intact.
|
|
42
|
+
- The [registry signature and source attestation](0.11.0-signatures.txt) verified
|
|
43
|
+
for the single installed package. No runtime dependencies or global installs.
|
|
38
44
|
|
|
39
45
|
All implementation validation uses injected executors, fake HTTP and local
|
|
40
46
|
fixtures. Real model/Agent evaluation calls added: **0**. The statistical and
|
|
@@ -42,6 +48,43 @@ adoption policy is unchanged; evidence cannot automatically install or upgrade a
|
|
|
42
48
|
Skill. Offline environment checks cannot establish working authentication or
|
|
43
49
|
installed-version CLI flag compatibility.
|
|
44
50
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
## Publication and retained observations
|
|
52
|
+
|
|
53
|
+
The existing [manual OIDC procedure](trusted-publishing.md) used source
|
|
54
|
+
`62be7fe93cfb3291de00357f38aa575f25679649` for the successful
|
|
55
|
+
[preview](https://github.com/remote-controlled-man/skillfit/actions/runs/38936210102)
|
|
56
|
+
and [publication](https://github.com/remote-controlled-man/skillfit/actions/runs/38936960037).
|
|
57
|
+
The archive was uploaded once. Preview and accepted archive are byte-identical:
|
|
58
|
+
22,417,363 bytes, SHA-256
|
|
59
|
+
`01b96ab271ae25ba04399e70a5b6a7889bd4657311e3b2b31326e798c4548461`.
|
|
60
|
+
|
|
61
|
+
The [CI registry receipt](0.11.0-ci-registry-install.json) preserves 21 unavailable
|
|
62
|
+
version observations followed by availability. Matching version/latest and
|
|
63
|
+
integrity were required before all 2,667 installed files were compared.
|
|
64
|
+
An [independent installation](0.11.0-local-registry-install.json) repeated these
|
|
65
|
+
checks against the extracted accepted CI archive, with a separate temporary npm
|
|
66
|
+
cache. The first local attempt stopped on a TLS connection reset after one 404;
|
|
67
|
+
its [failure receipt](0.11.0-local-attempt-1.json) and [log](0.11.0-local-attempt-1.log)
|
|
68
|
+
are retained. The successful second attempt used a fresh directory and did not
|
|
69
|
+
publish. [Official metadata](0.11.0-registry-metadata.json) records the publication
|
|
70
|
+
time and GitHub trusted publisher.
|
|
71
|
+
|
|
72
|
+
The immutable npm archive contains the pre-publication preparation record.
|
|
73
|
+
These repository records were completed after registry verification; historical
|
|
74
|
+
release and study evidence remain unchanged. The study still has 195 calls and
|
|
75
|
+
seven historical final usages unknown; this delivery adds no efficacy evidence.
|
|
76
|
+
|
|
77
|
+
## Reproduce the installed-feature checks
|
|
78
|
+
|
|
79
|
+
Use an extracted archive or isolated registry-installed package and a fresh output
|
|
80
|
+
parent outside that package:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
node docs/releases/0.11.0-feature-smoke.mjs /absolute/path/to/node_modules/skillfit /tmp/skillfit-0.11.0-feature-smoke
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The recipe checks pure public plans, zero-call calibration blocking, separate
|
|
87
|
+
Agent/judge/combined costs, trigger stop lines and partial/unknown usage, then
|
|
88
|
+
exports and relocates all supported modes before deleting original inputs/runs
|
|
89
|
+
and replaying offline. It writes `feature-smoke.json` and cleans its generated
|
|
90
|
+
project/run data. Only injected synthetic executors are used.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { createHash } from 'node:crypto';
|
|
3
|
+
import { spawnSync } from 'node:child_process';
|
|
4
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
5
|
+
import { join, resolve } from 'node:path';
|
|
6
|
+
import { pathToFileURL } from 'node:url';
|
|
7
|
+
|
|
8
|
+
// Keep the published 0.11.0 recipe immutable. This explicit derived recipe only
|
|
9
|
+
// changes its asserted version; the original seven workflow checks stay intact.
|
|
10
|
+
assert.equal(process.argv.length, 4, 'Provide package and fresh output directories.');
|
|
11
|
+
const installed = resolve(process.argv[2]), parent = resolve(process.argv[3]);
|
|
12
|
+
assert.equal(JSON.parse(readFileSync(join(installed, 'package.json'), 'utf8')).version, '0.12.0');
|
|
13
|
+
assert.equal(existsSync(parent), false, 'Preserve previous receipts; choose a fresh output parent.');
|
|
14
|
+
const original = readFileSync(new URL('0.11.0-feature-smoke.mjs', import.meta.url), 'utf8');
|
|
15
|
+
const sourceSha256 = createHash('sha256').update(original).digest('hex');
|
|
16
|
+
assert.equal(sourceSha256, 'aeb14d990bc65e05ec1ea7dc42ac6cadbd5af2bf11603430972ccaddbe4ee870');
|
|
17
|
+
const derived = original.replaceAll('0.11.0', '0.12.0');
|
|
18
|
+
mkdirSync(parent, { recursive: true });
|
|
19
|
+
const env = { ...process.env };
|
|
20
|
+
for (const key of Object.keys(env)) if (/^(SKILLFIT_|OPENAI_|ANTHROPIC_)/.test(key)) delete env[key];
|
|
21
|
+
const home = join(parent, 'home'); mkdirSync(home);
|
|
22
|
+
Object.assign(env, { HOME: home, USERPROFILE: home, CODEX_HOME: join(home, 'codex') });
|
|
23
|
+
const run = (args, name, input) => {
|
|
24
|
+
const result = spawnSync(process.execPath, args, { cwd: parent, env, input,
|
|
25
|
+
encoding: 'utf8', timeout: 180_000, maxBuffer: 32 * 1024 * 1024 });
|
|
26
|
+
writeFileSync(join(parent, `${name}.stdout.log`), result.stdout ?? '', { flag: 'wx' });
|
|
27
|
+
writeFileSync(join(parent, `${name}.stderr.log`), result.stderr ?? '', { flag: 'wx' });
|
|
28
|
+
assert.equal(result.status, 0, `${name}: ${result.error || result.stderr || result.stdout}`);
|
|
29
|
+
return result.stdout;
|
|
30
|
+
};
|
|
31
|
+
run(['--input-type=module', '-', installed, join(parent, 'foundations')], 'foundations', derived);
|
|
32
|
+
const regressions = [
|
|
33
|
+
'commands/bench-source.test.js', 'commands/bench-draft.test.js',
|
|
34
|
+
'commands/eval-layout.test.js', 'commands/eval-api-failure.test.js',
|
|
35
|
+
'harness/verifier-timeout.test.js', 'harness/bench-location.test.js',
|
|
36
|
+
];
|
|
37
|
+
const output = run(['--test', '--test-reporter=tap', ...regressions.map(file => join(installed, 'dist', file))], 'regressions');
|
|
38
|
+
const count = label => Number(output.match(new RegExp(`^# ${label} (\\d+)$`, 'm'))?.[1] ?? NaN);
|
|
39
|
+
assert.ok(count('tests') > 0); assert.equal(count('pass'), count('tests'));
|
|
40
|
+
assert.equal(count('fail'), 0); assert.equal(count('skipped'), 0); assert.equal(count('cancelled'), 0);
|
|
41
|
+
const foundations = JSON.parse(readFileSync(join(parent, 'foundations/feature-smoke.json'), 'utf8'));
|
|
42
|
+
// The full CLI unit suite also asserts source architecture using unshipped .ts
|
|
43
|
+
// files. Keep that suite in source CI; verify the installed stream reader here
|
|
44
|
+
// through its real public runtime with Node-only fake subprocesses.
|
|
45
|
+
const { CliExecutor } = await import(pathToFileURL(join(installed, 'dist/harness/executors/cli.js')).href);
|
|
46
|
+
const events = [
|
|
47
|
+
{ type: 'item.completed', item: { type: 'agent_message', text: 'offline installed stream' } },
|
|
48
|
+
{ type: 'turn.completed', usage: { input_tokens: 12, cached_input_tokens: 7, output_tokens: 3 } },
|
|
49
|
+
];
|
|
50
|
+
const stream = events.map(event => JSON.stringify(event)).join('\n') + '\n';
|
|
51
|
+
for (const exitCode of [0, 1]) {
|
|
52
|
+
const executor = new CliExecutor({ argv: [process.execPath, '-e',
|
|
53
|
+
`process.stdin.resume();process.stdin.on('end',()=>{process.stdout.write(${JSON.stringify(stream)});process.exitCode=${exitCode};});`],
|
|
54
|
+
shell: false, streamJson: true, env, timeoutMs: 10_000 });
|
|
55
|
+
let result;
|
|
56
|
+
if (exitCode === 0) result = await executor.run('offline probe', home);
|
|
57
|
+
else await assert.rejects(executor.run('offline probe', home), error => {
|
|
58
|
+
assert.equal(error.name, 'ExecutorFailure'); result = error.result; return true;
|
|
59
|
+
});
|
|
60
|
+
assert.equal(result.output, 'offline installed stream');
|
|
61
|
+
assert.deepEqual(result.tokens, { input: 12, cachedInput: 7, output: 3 });
|
|
62
|
+
assert.equal(result.skillTriggered, undefined);
|
|
63
|
+
assert.equal(result.usageStatus, exitCode === 0 ? 'final' : 'partial');
|
|
64
|
+
}
|
|
65
|
+
const receipt = { schemaVersion: 1, kind: 'skillfit.release-workflow-smoke', version: '0.12.0',
|
|
66
|
+
verifiedAt: new Date().toISOString(), packagePath: installed, nodeVersion: process.version,
|
|
67
|
+
modelCalls: 0, agentCliCalls: 0, foundationRecipeSha256: sourceSha256,
|
|
68
|
+
foundationChecks: foundations.checks, syntheticExecutorCalls: foundations.syntheticExecutorCalls,
|
|
69
|
+
portableReplays: 5, regressionFiles: regressions, regressionsPassed: count('tests'),
|
|
70
|
+
installedCliStreamSuccessAndFailure: true, syntheticNodeSubprocesses: 2,
|
|
71
|
+
scope: 'Offline checks of the supplied package; no registry availability or efficacy claim.' };
|
|
72
|
+
writeFileSync(join(parent, 'feature-smoke.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
|
|
73
|
+
console.log(JSON.stringify(receipt));
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# skillfit 0.12.0
|
|
2
|
+
|
|
3
|
+
This release combines the new-user workflow fixes in
|
|
4
|
+
[PR #39](https://github.com/remote-controlled-man/skillfit/pull/39) and the case-authoring
|
|
5
|
+
fixes in [PR #40](https://github.com/remote-controlled-man/skillfit/pull/40).
|
|
6
|
+
Publication uses the existing [manual OIDC procedure](trusted-publishing.md).
|
|
7
|
+
This preparation record does not itself establish npm availability; verified publication
|
|
8
|
+
receipts will be recorded below after the accepted archive is available.
|
|
9
|
+
|
|
10
|
+
## Preparation validation
|
|
11
|
+
|
|
12
|
+
- `npm test`: 835 offline tests passed, with no failures, cancellations or skips.
|
|
13
|
+
- Contributed bench checks, changed documentation links, matching English/Chinese
|
|
14
|
+
README code blocks and driver Skill validation passed.
|
|
15
|
+
- The local extracted archive passed the pinned seven-group foundations recipe,
|
|
16
|
+
five moved portable replays, 29 packaged regressions and separate installed CLI
|
|
17
|
+
stream success/failure probes. All executors and HTTP responses were synthetic;
|
|
18
|
+
real model/API/Agent CLI invocations added: **0**.
|
|
19
|
+
- An initial local installed-only recipe selected a source-architecture assertion
|
|
20
|
+
that requires intentionally unshipped TypeScript. That assertion remains in the
|
|
21
|
+
full source suite; the corrected installed recipe verifies the actual stream
|
|
22
|
+
runtime directly. The failed local archive/logs remain separate from the new
|
|
23
|
+
successful attempt; no publication was attempted by either local check.
|
|
24
|
+
|
|
25
|
+
## Included behavior
|
|
26
|
+
|
|
27
|
+
- Git-root benches have matching content fingerprints and input snapshots. Invalid
|
|
28
|
+
output locations, including directory aliases, fail during preview and setup.
|
|
29
|
+
- Ordinary CLI eval and judge calls retain structured token/cache usage separately
|
|
30
|
+
from trigger detection. Known unsupported strict budgets block before calls.
|
|
31
|
+
- API answer-format/HTTP failures retain reported counters and public response
|
|
32
|
+
evidence. Missing usage remains unknown; no historical costs are backfilled.
|
|
33
|
+
- Read-only bench commands, eval and calibration share bundled/local resolution.
|
|
34
|
+
npm-first instructions and the driver Skill describe the installed workflow.
|
|
35
|
+
- Frozen cases never fall back from an empty/broken Git index. Non-Git imports
|
|
36
|
+
require explicit `--include`; selected links and destination-bench files fail.
|
|
37
|
+
Imports are bounded at 200 files / 1 MiB; narrow larger fixtures before importing.
|
|
38
|
+
- `--decompose` confirms before its single call and supports budgets, deadlines and
|
|
39
|
+
fresh record groups. Inputs, public outputs, costs and failed/interrupted gates
|
|
40
|
+
remain available. Concurrent bench edits are preserved; there is no automatic retry.
|
|
41
|
+
- Optional `verifierTimeoutSeconds` (integer 1–3600, default 120) applies to each
|
|
42
|
+
verifier/oracle process in checks, eval, calibration, trigger mode and replay.
|
|
43
|
+
|
|
44
|
+
## Compatibility and limits
|
|
45
|
+
|
|
46
|
+
Non-Git `--freeze` now requires explicit `--include` selections. This intentional
|
|
47
|
+
restriction prevents silently capturing arbitrary local files. Tracked secrets or
|
|
48
|
+
files deliberately included outside Git still need review before sharing.
|
|
49
|
+
Existing cases retain their 120-second check limit unless configured otherwise.
|
|
50
|
+
|
|
51
|
+
Spending limits are observed stop lines; a single in-flight call may overshoot.
|
|
52
|
+
Missing provider usage cannot be reconstructed. Offline preflight does not prove
|
|
53
|
+
login or installed CLI flag compatibility. Statistical and adoption policy is
|
|
54
|
+
unchanged. This release adds no real Skill efficacy observations, model calls,
|
|
55
|
+
runtime dependencies or automatic upgrade permission.
|
|
56
|
+
|
|
57
|
+
## Reproduce installed checks
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
node docs/releases/0.12.0-feature-smoke.mjs /absolute/path/to/node_modules/skillfit /tmp/skillfit-0.12.0-feature-smoke
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
The recipe pins and derives the unchanged 0.11.0 foundations recipe for 0.12.0,
|
|
64
|
+
then runs the packaged offline regressions for the new fixes. It uses injected
|
|
65
|
+
executors, fake HTTP and synthetic fixture programs; it never evaluates a real
|
|
66
|
+
model or Agent CLI. Use a fresh output directory and preserve failed attempts.
|
|
67
|
+
The immutable npm archive contains this preparation record; repository records
|
|
68
|
+
can later append registry verification for that same accepted archive.
|
|
@@ -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/
|
package/package.json
CHANGED
package/skills/skillfit/SKILL.md
CHANGED
|
@@ -10,11 +10,11 @@ truth for all numbers; your job is to pick the right command, run it, and interp
|
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
-
Check availability with `npx skillfit@0.
|
|
13
|
+
Check availability with `npx skillfit@0.12.0 --version`, or `node dist/cli.js --version` inside a clone.
|
|
14
14
|
If neither works, tell the user to install from https://github.com/remote-controlled-man/skillfit and stop.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
Use 0.12.0 or newer for the complete workflow below, including Git-bench/layout,
|
|
16
|
+
ordinary CLI costs, API-failure evidence, bundled names and recorded case drafting.
|
|
17
|
+
Earlier versions lack some of these fixes; inspect the installed version before using new flags.
|
|
18
18
|
|
|
19
19
|
## Which command for which question
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ the immutable npm 0.10.1 package does not contain these additions.
|
|
|
22
22
|
|---|---|
|
|
23
23
|
| "我的 skill 有没有被用到 / are my skills used at all" | `skillfit report` — read-only, free, instant; start here |
|
|
24
24
|
| "这个配置健不健康" | `skillfit doctor` — read-only |
|
|
25
|
-
| "这个 skill 值不值得装 / does this skill help" | Preview `skillfit eval <skill-path> --bench <bench> --agent <id> --trials 3 --dry-run`, then run within authorized spending |
|
|
25
|
+
| "这个 skill 值不值得装 / does this skill help" | Preview `skillfit eval <skill-path> --mode installed --bench <bench> --agent <id> --trials 3 --dry-run`, then run within authorized spending |
|
|
26
26
|
| "新版 Skill 是否值得采用 / evaluate a candidate for a Skill evolution workflow" | With npm 0.9.0 or a current checkout, use `eval --request <request.json> --dry-run`; read the [component contract](https://github.com/remote-controlled-man/skillfit/blob/main/docs/eval-component.md) for inputs and acceptance policy |
|
|
27
27
|
| "agent 自己想不想得起用它 / does it trigger" | same + `--mode trigger`. Add `--compete-installed` to copy other user Skills; otherwise recall is an upper bound. Codex counts a `SKILL.md` read |
|
|
28
28
|
| "这个 MCP 能不能连上 / is this MCP catalog valid" | `skillfit mcp check <probe.json>` — read-only discovery; calls no tools |
|
|
@@ -42,6 +42,20 @@ It uses that CLI's authentication; offline preflight cannot confirm login.
|
|
|
42
42
|
Without `--agent`, paired eval needs `SKILLFIT_API_KEY`/`OPENAI_API_KEY`. Trigger mode currently verified for
|
|
43
43
|
kimi-code and codex only.
|
|
44
44
|
|
|
45
|
+
Installed mode delivers the complete Skill; default inject mode measures injected
|
|
46
|
+
text. Version 0.12.0 shares bundled-name resolution for read-only bench
|
|
47
|
+
commands and eval; local paths win. Editing still needs an owned local directory.
|
|
48
|
+
Git-root benches are supported in 0.12.0, with metadata excluded consistently.
|
|
49
|
+
Keep `--runs-root` outside the bench/Skill/runtime and Git metadata; bad layouts
|
|
50
|
+
are rejected at preview, including aliases. See the
|
|
51
|
+
[first-run guide](https://github.com/remote-controlled-man/skillfit/blob/main/docs/first-real-eval.md).
|
|
52
|
+
|
|
53
|
+
In 0.12.0, `--freeze` selects tracked ordinary files inside Git; outside Git,
|
|
54
|
+
explicit `--include <file-or-dir>` selections are required. Narrow large fixtures
|
|
55
|
+
before importing. For `--decompose`, preview and authorize its single call within
|
|
56
|
+
existing spending permission. Failed/interrupted drafts retain costs and inputs;
|
|
57
|
+
never retry implicitly. See [drafting records](https://github.com/remote-controlled-man/skillfit/blob/main/docs/bench-drafting.md).
|
|
58
|
+
|
|
45
59
|
## Spend discipline
|
|
46
60
|
|
|
47
61
|
Real eval and calibration runs cost tokens and time. Before any non-dry-run run:
|
|
@@ -93,6 +107,12 @@ credentials fails instead of silently disabling judging. Ctrl+C/SIGTERM stop
|
|
|
93
107
|
managed work and retain records; do not retry, replace or expand stopped calls
|
|
94
108
|
without a fresh authorized plan.
|
|
95
109
|
|
|
110
|
+
In version 0.12.0, ordinary CLI usage parsing is independent of trigger
|
|
111
|
+
detection. Inspect `USAGE_CAPABILITY`: known missing adapter counters block a
|
|
112
|
+
strict budget before calls; API/injected coverage remains unknown. API response
|
|
113
|
+
format/HTTP failures retain reported counters and raw evidence while stopping
|
|
114
|
+
the batch. Missing fields remain unknown, not zero or permission to retry.
|
|
115
|
+
|
|
96
116
|
- Read the verdict line, the discordant-pair counts, and the CI — not just the delta. `inconclusive` means
|
|
97
117
|
the run cannot tell, not that the skill is useless.
|
|
98
118
|
- Anything printed as `indicative` (small benches, few trials) must be reported as indicative.
|