skillfit 0.10.1 → 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.
Files changed (118) hide show
  1. package/README.md +43 -8
  2. package/README.zh-CN.md +43 -8
  3. package/benches/README.md +6 -2
  4. package/dist/cli.js +153 -37
  5. package/dist/cli.test.js +94 -0
  6. package/dist/commands/bench-calibration.js +201 -0
  7. package/dist/commands/bench-calibration.test.js +237 -0
  8. package/dist/commands/bench-check-json.test.js +24 -3
  9. package/dist/commands/bench-draft.js +167 -0
  10. package/dist/commands/bench-draft.test.js +168 -0
  11. package/dist/commands/bench-manage.js +5 -4
  12. package/dist/commands/bench-source.js +101 -0
  13. package/dist/commands/bench-source.test.js +84 -0
  14. package/dist/commands/bench.js +227 -245
  15. package/dist/commands/bench.test.js +7 -3
  16. package/dist/commands/calibration-cli.test.js +145 -0
  17. package/dist/commands/eval-agent-preflight.test.js +269 -0
  18. package/dist/commands/eval-api-failure.test.js +46 -0
  19. package/dist/commands/eval-cli-usage.test.js +75 -0
  20. package/dist/commands/eval-cli.js +31 -0
  21. package/dist/commands/eval-component.js +52 -28
  22. package/dist/commands/eval-export-modes.test.js +350 -0
  23. package/dist/commands/eval-export.js +12 -4
  24. package/dist/commands/eval-interruption.test.js +26 -1
  25. package/dist/commands/eval-layout.test.js +126 -0
  26. package/dist/commands/eval-plan.js +37 -0
  27. package/dist/commands/eval-preflight.test.js +144 -1
  28. package/dist/commands/eval-report.js +18 -3
  29. package/dist/commands/eval-single-arm-replay.js +21 -0
  30. package/dist/commands/eval-single-arm-report.js +223 -0
  31. package/dist/commands/eval.js +113 -88
  32. package/dist/commands/evaluation-report.js +5 -0
  33. package/dist/commands/evaluation-report.test.js +243 -0
  34. package/dist/commands/npm-first-run.test.js +74 -0
  35. package/dist/commands/replay-cancellation.test.js +105 -0
  36. package/dist/commands/workflow-entrypoints.test.js +137 -0
  37. package/dist/harness/agent-preflight.js +196 -0
  38. package/dist/harness/bench-location.js +29 -0
  39. package/dist/harness/bench-location.test.js +33 -0
  40. package/dist/harness/bench.js +10 -4
  41. package/dist/harness/command.js +49 -0
  42. package/dist/harness/eval-audit.js +162 -17
  43. package/dist/harness/eval-budget.js +46 -2
  44. package/dist/harness/eval-budget.test.js +26 -1
  45. package/dist/harness/eval-component.test.js +163 -0
  46. package/dist/harness/eval-contract.js +11 -5
  47. package/dist/harness/evaluation-layout.js +30 -0
  48. package/dist/harness/executors/api.js +24 -10
  49. package/dist/harness/executors/api.test.js +57 -0
  50. package/dist/harness/executors/cli.js +15 -25
  51. package/dist/harness/executors/cli.test.js +33 -2
  52. package/dist/harness/experiment-session.js +23 -25
  53. package/dist/harness/experiment-session.test.js +8 -0
  54. package/dist/harness/hash.js +3 -1
  55. package/dist/harness/invocation-costs.js +72 -0
  56. package/dist/harness/judge-accounting.test.js +216 -0
  57. package/dist/harness/judge-audit.js +56 -0
  58. package/dist/harness/judge.js +86 -21
  59. package/dist/harness/replay-package.js +71 -5
  60. package/dist/harness/runner.js +44 -33
  61. package/dist/harness/runner.test.js +23 -0
  62. package/dist/harness/single-arm-audit.js +436 -0
  63. package/dist/harness/trigger.js +22 -4
  64. package/dist/harness/trigger.test.js +12 -0
  65. package/dist/harness/verifier-error.js +65 -0
  66. package/dist/harness/verifier-timeout.js +8 -0
  67. package/dist/harness/verifier-timeout.test.js +76 -0
  68. package/dist/harness/verifier.test.js +128 -0
  69. package/docs/bench-authoring.md +57 -12
  70. package/docs/bench-check-json.md +28 -5
  71. package/docs/bench-drafting.md +75 -0
  72. package/docs/case-management.md +12 -1
  73. package/docs/eval-agent-preflight.md +114 -0
  74. package/docs/eval-case-preflight.md +5 -0
  75. package/docs/eval-component.md +38 -10
  76. package/docs/eval-costs.md +70 -0
  77. package/docs/eval-planning.md +167 -0
  78. package/docs/evaluation-input-snapshots.md +22 -5
  79. package/docs/evaluation-interruption.md +22 -10
  80. package/docs/evaluation-reports.md +97 -3
  81. package/docs/experiment-workflow.md +7 -0
  82. package/docs/first-real-eval.md +75 -3
  83. package/docs/growth-roadmap-2026-10.md +51 -10
  84. package/docs/metrics.md +40 -3
  85. package/docs/plans/2026-10-17-workflow-foundations.md +99 -0
  86. package/docs/releases/0.10.1-ci-registry-install.json +70 -0
  87. package/docs/releases/0.10.1-feature-smoke.json +28 -0
  88. package/docs/releases/0.10.1-local-registry-install.json +60 -0
  89. package/docs/releases/0.10.1-registry-metadata.json +33 -0
  90. package/docs/releases/0.10.1-signatures.txt +7 -0
  91. package/docs/releases/0.10.1-verification.json +90 -0
  92. package/docs/releases/0.10.1.md +37 -4
  93. package/docs/releases/0.11.0-ci-registry-install.json +130 -0
  94. package/docs/releases/0.11.0-feature-smoke.json +1576 -0
  95. package/docs/releases/0.11.0-feature-smoke.mjs +224 -0
  96. package/docs/releases/0.11.0-local-attempt-1.json +24 -0
  97. package/docs/releases/0.11.0-local-attempt-1.log +19 -0
  98. package/docs/releases/0.11.0-local-registry-install.json +25 -0
  99. package/docs/releases/0.11.0-registry-metadata.json +33 -0
  100. package/docs/releases/0.11.0-signatures.txt +12 -0
  101. package/docs/releases/0.11.0-verification.json +95 -0
  102. package/docs/releases/0.11.0.md +90 -0
  103. package/docs/releases/0.12.0-feature-smoke.mjs +73 -0
  104. package/docs/releases/0.12.0.md +68 -0
  105. package/docs/replay-packages.md +38 -6
  106. package/docs/schemas/agent-preflight.schema.json +31 -0
  107. package/docs/schemas/calibration-plan.schema.json +22 -0
  108. package/docs/schemas/calibration-result.schema.json +17 -0
  109. package/docs/schemas/eval-request.schema.json +1 -1
  110. package/docs/schemas/eval-result.schema.json +3 -1
  111. package/docs/schemas/invocation-costs.schema.json +31 -0
  112. package/docs/schemas/judge-call.schema.json +22 -0
  113. package/docs/schemas/single-arm-report.schema.json +20 -0
  114. package/docs/schemas/verifier-error.schema.json +11 -0
  115. package/docs/sharing-results.md +3 -0
  116. package/docs/verifier-contract.md +108 -0
  117. package/package.json +1 -1
  118. package/skills/skillfit/SKILL.md +61 -8
@@ -0,0 +1,224 @@
1
+ import assert from 'node:assert/strict';
2
+ import { spawnSync } from 'node:child_process';
3
+ import { existsSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, writeFileSync } from 'node:fs';
4
+ import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';
5
+ import { pathToFileURL } from 'node:url';
6
+
7
+ // Usage: node 0.11.0-feature-smoke.mjs <installed-or-extracted-package> <fresh-output-parent>
8
+ // No real agent, model API or login probe is used. The package path is supplied
9
+ // by the caller; this check alone does not establish registry publication.
10
+ assert.equal(process.argv.length, 4, 'Provide a package directory and a fresh output parent.');
11
+ const installed = resolve(process.argv[2]), parent = resolve(process.argv[3]);
12
+ const insidePackage = relative(installed, parent);
13
+ assert.ok(isAbsolute(insidePackage) || insidePackage.startsWith(`..${sep}`) || insidePackage === '..', 'Keep smoke output outside the installed package.');
14
+ assert.equal(existsSync(parent), false, 'The output parent must be fresh; prior smoke receipts are never overwritten.');
15
+ assert.equal(JSON.parse(readFileSync(join(installed, 'package.json'), 'utf8')).version, '0.11.0');
16
+ mkdirSync(parent, { recursive: true });
17
+ const root = mkdtempSync(join(parent, 'offline-foundations-'));
18
+ const home = join(root, 'home'), runsRoot = join(root, 'runs');
19
+ mkdirSync(home);
20
+ const load = file => import(pathToFileURL(join(installed, 'dist', file)).href);
21
+ const { runBenchInit, runBenchCalibration } = await load('commands/bench.js');
22
+ const { runEval } = await load('commands/eval.js');
23
+ const { runEvalCli } = await load('commands/eval-cli.js');
24
+ const { readEvaluationReport } = await load('commands/evaluation-report.js');
25
+ const { exportEvaluation } = await load('commands/eval-export.js');
26
+ const { packageFiles } = await load('harness/replay-package.js');
27
+ const { sha256File, hashFileSet, listFilesRecursive } = await load('harness/hash.js');
28
+
29
+ // Public CLI previews have an empty PATH. Fake-executor runs and replay need
30
+ // only Node's directory to execute the package's trusted fixture programs.
31
+ // Every child receives isolated homes and no API/judge credentials.
32
+ const originalEnvironment = { ...process.env }, originalFetch = globalThis.fetch;
33
+ for (const key of Object.keys(process.env)) {
34
+ if (key.toUpperCase() === 'PATH' || /^(SKILLFIT_|OPENAI_|ANTHROPIC_)/.test(key)) delete process.env[key];
35
+ }
36
+ Object.assign(process.env, { PATH: dirname(process.execPath), HOME: home, USERPROFILE: home, CODEX_HOME: join(home, 'codex'), SKILLFIT_JUDGE: '0' });
37
+ const env = { ...process.env, PATH: '' }, replayEnv = { ...process.env };
38
+ let networkAttempts = 0, skillfitCliCalls = 0;
39
+ globalThis.fetch = async () => { networkAttempts++; throw new Error('Network calls are forbidden in this offline smoke.'); };
40
+ const counts = { calibrationHardFailure: 0, calibration: 0, pairedAgent: 0, judge: 0, triggerLine: 0, triggerPartial: 0, triggerUnknown: 0 };
41
+ const checks = {}, tests = {};
42
+ const final = { output: 'skillfit-ok', tokens: { input: 10, cachedInput: 2, output: 3 }, usageStatus: 'final' };
43
+ const limits = { input: 1000, cachedInput: 1000, uncachedInput: 1000, output: 1000, durationSeconds: 1000 };
44
+ const json = file => JSON.parse(readFileSync(file, 'utf8'));
45
+ const quiet = () => {};
46
+ const fake = (name, response) => ({
47
+ describe: () => ({ kind: 'stub', model: `offline-smoke-${name}` }),
48
+ run: async () => { counts[name]++; return typeof response === 'function' ? response() : structuredClone(response); },
49
+ });
50
+ const cli = (args, expected = 0) => {
51
+ skillfitCliCalls++;
52
+ const child = spawnSync(process.execPath, [join(installed, 'dist/cli.js'), ...args],
53
+ { cwd: root, env, encoding: 'utf8', timeout: 60_000, maxBuffer: 16 * 1024 * 1024 });
54
+ assert.equal(child.status, expected, child.stderr || child.stdout);
55
+ return child;
56
+ };
57
+ const noAdoption = report => {
58
+ assert.notEqual(report.acceptance.decision, 'accept');
59
+ assert.equal(report.acceptance.eligibleForUpgrade, false);
60
+ assert.equal(report.acceptance.automaticUpgrade, false);
61
+ };
62
+ const snapshotCosts = report => JSON.parse(JSON.stringify({
63
+ costs: report.costs ?? null, invocationCosts: report.invocationCosts ?? null,
64
+ usage: report.usage ?? null, spendingBudget: report.spendingBudget ?? null,
65
+ }));
66
+ const ledger = run => readFileSync(join(run, '_calls.jsonl'), 'utf8').trim().split('\n').map(line => JSON.parse(line));
67
+ const files = run => packageFiles(run).map(file => [file, sha256File(join(run, file))]);
68
+ const fixture = async (name, kind = 'output', sentinel = null) => {
69
+ const bench = join(root, name);
70
+ await runBenchInit({ dir: bench, kind, yes: true, log: quiet });
71
+ const file = join(bench, 'bench.json'), definition = json(file);
72
+ definition.tasks[0].shouldTrigger = true;
73
+ definition.tasks[0].triggerClass = 'explicit';
74
+ definition.tasks.push({ ...definition.tasks[0], id: 'negative-task', shouldTrigger: false, triggerClass: undefined });
75
+ if (sentinel) for (const script of ['verifiers/example-task.mjs', 'ground-truth/oracle-example-task.mjs']) {
76
+ writeFileSync(join(bench, script), `import{writeFileSync as markProbe}from'node:fs';markProbe(${JSON.stringify(sentinel)},'unexpected');\n` + readFileSync(join(bench, script), 'utf8'));
77
+ }
78
+ writeFileSync(file, JSON.stringify(definition));
79
+ return bench;
80
+ };
81
+
82
+ try {
83
+ assert.equal(cli(['--version']).stdout.trim(), '0.11.0');
84
+ const help = cli(['--help']).stdout;
85
+ for (const flag of ['--plan-sha', '--task', '--spending-budget', '--executor-timeout-seconds', '--runs-root', '--export']) assert.ok(help.includes(flag));
86
+ checks.versionAndPublicFlags = true;
87
+
88
+ const skill = join(root, 'skill'); mkdirSync(skill);
89
+ writeFileSync(join(skill, 'SKILL.md'), '---\nname: smoke-skill\ndescription: Synthetic offline release workflow check.\n---\nInspect the task and return the answer.\n');
90
+ const sentinel = join(root, 'unexpected-preview-probe'), previewBench = await fixture('preview-bench', 'output', sentinel);
91
+ const settings = ['--agent', 'codex', '--trials', '1', '--executor-timeout-seconds', '17', '--runs-root', join(root, 'preview-runs'), '--json', '--dry-run'];
92
+ const previewRows = [
93
+ ['paired', ['eval', skill, '--mode', 'installed', '--bench', previewBench, '--task', 'example-task', '--max-calls', '2', '--run-group', 'preview-paired']],
94
+ ['calibration', ['bench', 'check', previewBench, '--calibrate', '--task', 'example-task', '--max-calls', '1', '--input', 'workspace', '--run-group', 'preview-calibration']],
95
+ ['trigger', ['eval', skill, '--mode', 'trigger', '--bench', previewBench, '--task', 'example-task', '--task', 'negative-task', '--max-calls', '2', '--run-group', 'preview-trigger']],
96
+ ];
97
+ for (const [mode, args] of previewRows) {
98
+ const child = cli([...args, ...settings]);
99
+ const report = JSON.parse(child.stdout), plan = report.plan, evaluation = plan.evaluation ?? plan;
100
+ assert.equal(report.status, 'planned'); noAdoption(report);
101
+ assert.equal(evaluation.agentPreflight.status, 'blocked');
102
+ assert.ok(evaluation.agentPreflight.checks.some(check => check.code === 'CLI_AVAILABLE' && check.status === 'FAIL'));
103
+ assert.ok(evaluation.agentPreflight.checks.some(check => check.code === 'AUTHENTICATION' && check.status === 'UNKNOWN'));
104
+ assert.deepEqual(evaluation.agentPreflight.cost, { modelCalls: 0, cliInvocations: 0 });
105
+ assert.equal(evaluation.executorTimeoutSeconds, 17);
106
+ assert.equal(evaluation.plannedCalls, mode === 'calibration' ? 1 : 2);
107
+ tests[`${mode}PublicPreview`] = { status: report.status, plannedCalls: evaluation.plannedCalls, environment: 'blocked', authentication: 'UNKNOWN', modelCalls: 0, agentCliCalls: 0 };
108
+ }
109
+ assert.equal(existsSync(sentinel), false); assert.equal(existsSync(join(root, 'preview-runs')), false);
110
+ assert.equal(Object.values(counts).reduce((sum, value) => sum + value, 0), 0);
111
+ checks.publicPreviewsArePureWithoutAgentCli = true;
112
+
113
+ const broken = await fixture('broken-command-bench', 'command');
114
+ writeFileSync(join(broken, 'verifiers/example-task.mjs'), 'process.exit(0);\n');
115
+ await assert.rejects(runBenchCalibration({ dir: broken, taskIds: ['example-task'], log: quiet,
116
+ calibrate: { executor: fake('calibrationHardFailure', final), trials: 1, maxCalls: 1, runsRoot, runGroup: 'blocked-calibration' } }),
117
+ error => error.name === 'CasePreflightFailed' && error.preflight.checks.some(check => check.code === 'UNTOUCHED_FIXTURE' && check.status === 'FAIL'));
118
+ assert.equal(counts.calibrationHardFailure, 0); assert.equal(existsSync(join(runsRoot, 'blocked-calibration')), false);
119
+ tests.calibrationHardFailure = { gate: 'UNTOUCHED_FIXTURE', fakeCalls: 0, nativeRunCreated: false, modelCalls: 0 };
120
+ checks.calibrationHardFailurePreventsSpending = true;
121
+
122
+ const bench = await fixture('bench'), originals = [];
123
+ await runBenchCalibration({ dir: bench, taskIds: ['example-task'], log: quiet,
124
+ calibrate: { executor: fake('calibration', final), trials: 1, maxCalls: 1, spendingBudget: limits, runsRoot, runGroup: 'calibration' } });
125
+ assert.equal(counts.calibration, 1);
126
+ originals.push({ name: 'calibration', mode: 'calibration', run: join(runsRoot, 'calibration'), calls: 1 });
127
+
128
+ const checklist = JSON.stringify({ A: { correct: true, complete: true, grounded: true }, B: { correct: true, complete: true, grounded: true } });
129
+ await runEval({ skillPath: skill, bench, taskIds: ['example-task'], trials: 1, maxCalls: 4,
130
+ executor: fake('pairedAgent', final), judgeExecutor: fake('judge', { output: checklist, rawOutput: 'offline judge transcript', tokens: { input: 5, cachedInput: 1, output: 2 }, usageStatus: 'final' }),
131
+ spendingBudget: limits, yes: true, dryRun: false, runsRoot, runGroup: 'paired-judge', log: quiet });
132
+ assert.equal(counts.pairedAgent, 2); assert.equal(counts.judge, 2);
133
+ const pairedRun = join(runsRoot, 'paired-judge'), paired = await readEvaluationReport(pairedRun);
134
+ assert.equal(paired.invocationCosts.agent.runs, 2); assert.equal(paired.invocationCosts.judge.runs, 2); assert.equal(paired.invocationCosts.total.runs, 4);
135
+ assert.equal(paired.invocationCosts.agent.metrics.input.knownTotal, 20); assert.equal(paired.invocationCosts.judge.metrics.input.knownTotal, 10);
136
+ assert.equal(paired.invocationCosts.total.metrics.input.knownTotal, 30); assert.equal(paired.invocationCosts.total.metrics.cachedInput.knownTotal, 6);
137
+ assert.equal(paired.invocationCosts.total.metrics.uncachedInput.knownTotal, 24); assert.equal(paired.invocationCosts.total.metrics.output.knownTotal, 10);
138
+ for (const metric of ['input', 'cachedInput', 'uncachedInput', 'output', 'durationSeconds']) assert.equal(paired.invocationCosts.total.metrics[metric].coverage.final, 4);
139
+ assert.equal(ledger(pairedRun).filter(event => event.event === 'started').length, 4);
140
+ for (const index of [1, 2]) assert.equal(json(join(pairedRun, `example-task/judge-trial-1/call-${index}.json`)).usageStatus, 'final');
141
+ tests.pairedJudge = { fakeAgentCalls: 2, fakeJudgeCalls: 2, totalCalls: 4, invocationCosts: paired.invocationCosts, modelCalls: 0 };
142
+ checks.judgeBothOrdersRetainCompleteRoleAndTotalCosts = true;
143
+ originals.push({ name: 'paired-judge', mode: 'paired', run: pairedRun, calls: 4 });
144
+
145
+ for (const [name, counter, response, expected] of [
146
+ ['trigger-line', 'triggerLine', { ...final, skillTriggered: true }, 'SPENDING_BUDGET_REACHED'],
147
+ ['trigger-partial', 'triggerPartial', { output: final.output, skillTriggered: true, tokens: { input: 7, output: 2 }, usageStatus: 'partial' }, 'FINAL_USAGE_MISSING'],
148
+ ['trigger-unknown', 'triggerUnknown', { output: final.output, skillTriggered: true, usageStatus: 'unknown' }, 'FINAL_USAGE_MISSING'],
149
+ ]) {
150
+ const options = { skillPath: skill, bench, taskIds: ['example-task'], mode: 'trigger', skillInstallDir: '.offline-skills',
151
+ executor: fake(counter, response), judgeExecutor: null, trials: 3, maxCalls: 3, spendingBudget: { ...limits, input: name === 'trigger-line' ? 10 : 1000 },
152
+ yes: true, runsRoot, runGroup: name, log: quiet };
153
+ const preview = await runEvalCli({ ...options, dryRun: true });
154
+ assert.equal(counts[counter], 0);
155
+ const report = await runEvalCli({ ...options, dryRun: false }, preview.plan.sha256);
156
+ assert.equal(report.status, 'stopped'); assert.equal(report.evaluationType, 'trigger'); assert.equal(counts[counter], 1); noAdoption(report);
157
+ const run = join(runsRoot, name), session = json(join(run, '_session.json'));
158
+ assert.equal(session.callsStarted, 1); assert.equal(session.stopCode, expected);
159
+ assert.equal(ledger(run).filter(event => event.event === 'started').length, 1);
160
+ assert.equal(existsSync(join(run, 'example-task/installed/trial-2')), false);
161
+ assert.equal(report.usage.runs, 1);
162
+ if (name === 'trigger-line') assert.equal(report.usage.metrics.input.knownTotal, 10);
163
+ else {
164
+ assert.equal(report.usage.metrics.cachedInput.coverage.unknown, 1);
165
+ assert.equal(report.usage.metrics.input.coverage[name === 'trigger-partial' ? 'partial' : 'unknown'], 1);
166
+ }
167
+ tests[name] = { status: report.status, stopCode: session.stopCode, fakeCalls: 1, usage: report.usage, modelCalls: 0 };
168
+ originals.push({ name, mode: 'trigger', run, calls: 1 });
169
+ }
170
+ checks.triggerBudgetAndIncompleteUsageStopWithoutRetries = true;
171
+
172
+ for (const item of originals) {
173
+ item.report = await readEvaluationReport(item.run); noAdoption(item.report);
174
+ assert.equal(item.report.evidence.verified, true, JSON.stringify(item.report.evidence));
175
+ item.costs = snapshotCosts(item.report); item.nativeFiles = files(item.run);
176
+ }
177
+ const frozenCounts = structuredClone(counts);
178
+ rmSync(bench, { recursive: true }); rmSync(skill, { recursive: true });
179
+ for (const item of originals) {
180
+ const output = join(root, `export-${item.name}`), moved = join(root, `moved ${item.name}`);
181
+ const plan = await exportEvaluation(item.run, output, { log: quiet });
182
+ assert.equal(plan.status, 'planned'); assert.equal(plan.inputSource, 'sealed-snapshot'); assert.equal(existsSync(output), false);
183
+ await exportEvaluation(item.run, output, { yes: true, log: quiet });
184
+ assert.deepEqual(files(item.run), item.nativeFiles, 'Export must preserve original native evidence.');
185
+ renameSync(output, moved); rmSync(item.run, { recursive: true });
186
+ const reproduce = args => {
187
+ const child = spawnSync(process.execPath, [join(moved, 'reproduce.mjs'), ...args], { cwd: root, env: replayEnv, encoding: 'utf8', timeout: 60_000, maxBuffer: 16 * 1024 * 1024 });
188
+ assert.equal(child.status, 0, child.stderr || child.stdout); return JSON.parse(child.stdout);
189
+ };
190
+ assert.equal(reproduce(['--verify-only']).modelCalls, 0);
191
+ const replayed = reproduce([]);
192
+ assert.equal(replayed.evidence.verified, true, JSON.stringify(replayed.evidence)); assert.equal(replayed.status, item.report.status);
193
+ assert.deepEqual(snapshotCosts(replayed), item.costs); noAdoption(replayed);
194
+ assert.equal(replayed.portableReplay.modelCalls, 0); assert.deepEqual(counts, frozenCounts);
195
+ // The public report also regrades trusted Node verifiers, so it receives
196
+ // the replay environment rather than the empty-PATH preview environment.
197
+ const inspectedChild = spawnSync(process.execPath, [join(installed, 'dist/cli.js'), 'report', 'eval', moved, '--json', '--replay'],
198
+ { cwd: root, env: replayEnv, encoding: 'utf8', timeout: 60_000, maxBuffer: 16 * 1024 * 1024 });
199
+ skillfitCliCalls++; assert.equal(inspectedChild.status, 0, inspectedChild.stderr || inspectedChild.stdout);
200
+ const inspected = JSON.parse(inspectedChild.stdout);
201
+ assert.equal(inspected.portablePackage.integrityVerified, true); assert.deepEqual(snapshotCosts(inspected), item.costs); noAdoption(inspected);
202
+ tests[`${item.name}PortableReplay`] = { evaluationType: item.mode, status: replayed.status,
203
+ deletedOriginalInputs: true, deletedOriginalRun: true, movedPackage: true, exactCostsRetained: true,
204
+ retainedCosts: item.costs,
205
+ fakeCallsBeforeReplay: item.calls, additionalFakeCalls: 0, modelCalls: 0, eligibleForUpgrade: false, automaticUpgrade: false };
206
+ }
207
+ checks.allModesMoveDeleteOriginalReplayWithExactCosts = true;
208
+ checks.noAdoptionFromSyntheticOrStoppedEvidence = true;
209
+ assert.equal(networkAttempts, 0); assert.deepEqual(counts, frozenCounts);
210
+ assert.equal(Object.values(counts).reduce((sum, value) => sum + value, 0), 8);
211
+ const receipt = { schemaVersion: 1, kind: 'skillfit.release-foundations-smoke', version: '0.11.0',
212
+ verifiedAt: new Date().toISOString(), nodeVersion: process.version,
213
+ packagePath: installed, implementationSha256: hashFileSet(join(installed, 'dist'), listFilesRecursive(join(installed, 'dist'))),
214
+ scope: 'Offline check of the caller-supplied package; no registry/publication claim or Skill efficacy evidence.',
215
+ modelCalls: 0, agentCliCalls: 0, networkAttempts, skillfitCliCalls,
216
+ syntheticExecutorCalls: Object.values(counts).reduce((sum, value) => sum + value, 0), fakeCallCounts: counts, checks, tests };
217
+ writeFileSync(join(parent, 'feature-smoke.json'), JSON.stringify(receipt, null, 2) + '\n', { flag: 'wx' });
218
+ rmSync(root, { recursive: true, force: true });
219
+ console.log(JSON.stringify(receipt));
220
+ } finally {
221
+ globalThis.fetch = originalFetch;
222
+ for (const key of Object.keys(process.env)) delete process.env[key];
223
+ Object.assign(process.env, originalEnvironment);
224
+ }
@@ -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
+ }
@@ -0,0 +1,90 @@
1
+ # skillfit 0.11.0
2
+
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.
8
+
9
+ ## Included behavior
10
+
11
+ - Hard case/environment failures stop calibration before any Agent invocation.
12
+ Warnings and offline unknowns remain explicit.
13
+ - Paired, trigger and calibration runs expose bounded machine-readable previews,
14
+ reviewed confirmation, task selection, deadlines and spending stop lines.
15
+ - Standalone checks and offline native/portable replay clean up verifier/oracle
16
+ process trees on SIGINT/SIGTERM. Original saved runs remain unchanged.
17
+ - Independent judge receipts preserve successful, failed and interrupted usage;
18
+ reports separate primary/judge/combined costs. Shared budgets count all roles.
19
+ - Native and portable single-arm evidence is audited without claiming paired
20
+ efficacy. Historical missing costs/runtime support stay unknown or explicitly
21
+ unsupported; no old receipts are rewritten.
22
+
23
+ The release also includes the shared planning, quoted-command/verifier-error,
24
+ single-arm report and offline Agent preflight work merged after npm 0.10.1.
25
+ See the [changelog](../../CHANGELOG.md), [planning guide](../eval-planning.md),
26
+ [cost contract](../eval-costs.md) and [portable package contract](../replay-packages.md).
27
+
28
+ ## Verification and boundaries
29
+
30
+ - `npm test`: 794 offline tests passed, with no failures or skipped tests.
31
+ - Bundled code-review/debugging and contributed bench checks passed offline.
32
+ - README code blocks match in both languages; local documentation/schema links
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.
37
+ - The [offline installed-feature recipe](0.11.0-feature-smoke.mjs) passed on the
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.
44
+
45
+ All implementation validation uses injected executors, fake HTTP and local
46
+ fixtures. Real model/Agent evaluation calls added: **0**. The statistical and
47
+ adoption policy is unchanged; evidence cannot automatically install or upgrade a
48
+ Skill. Offline environment checks cannot establish working authentication or
49
+ installed-version CLI flag compatibility.
50
+
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));