skillfit 0.10.0 → 0.11.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 (104) hide show
  1. package/README.md +27 -7
  2. package/README.zh-CN.md +27 -7
  3. package/benches/README.md +2 -2
  4. package/dist/cli.js +146 -36
  5. package/dist/cli.test.js +94 -0
  6. package/dist/commands/bench-calibration.js +197 -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.js +69 -141
  10. package/dist/commands/calibration-cli.test.js +145 -0
  11. package/dist/commands/eval-agent-preflight.test.js +245 -0
  12. package/dist/commands/eval-cli.js +31 -0
  13. package/dist/commands/eval-component.js +59 -28
  14. package/dist/commands/eval-export-modes.test.js +350 -0
  15. package/dist/commands/eval-export.js +44 -10
  16. package/dist/commands/eval-export.test.js +165 -8
  17. package/dist/commands/eval-interruption.test.js +238 -0
  18. package/dist/commands/eval-plan.js +37 -0
  19. package/dist/commands/eval-preflight.js +61 -0
  20. package/dist/commands/eval-preflight.test.js +382 -0
  21. package/dist/commands/eval-report.js +60 -14
  22. package/dist/commands/eval-report.test.js +2 -2
  23. package/dist/commands/eval-single-arm-replay.js +21 -0
  24. package/dist/commands/eval-single-arm-report.js +223 -0
  25. package/dist/commands/eval.js +184 -112
  26. package/dist/commands/evaluation-report.js +5 -0
  27. package/dist/commands/evaluation-report.test.js +243 -0
  28. package/dist/commands/replay-cancellation.test.js +105 -0
  29. package/dist/commands/workflow-entrypoints.test.js +137 -0
  30. package/dist/harness/agent-preflight.js +180 -0
  31. package/dist/harness/bench.js +2 -1
  32. package/dist/harness/command.js +49 -0
  33. package/dist/harness/eval-audit.js +164 -17
  34. package/dist/harness/eval-budget.js +46 -2
  35. package/dist/harness/eval-budget.test.js +30 -3
  36. package/dist/harness/eval-component.test.js +169 -6
  37. package/dist/harness/eval-contract.js +11 -5
  38. package/dist/harness/executors/api.js +14 -4
  39. package/dist/harness/executors/api.test.js +61 -0
  40. package/dist/harness/executors/cli.js +24 -3
  41. package/dist/harness/experiment-session.js +77 -18
  42. package/dist/harness/experiment-session.test.js +51 -1
  43. package/dist/harness/input-snapshot.js +150 -0
  44. package/dist/harness/interruption.js +48 -0
  45. package/dist/harness/interruption.test.js +31 -0
  46. package/dist/harness/invocation-costs.js +72 -0
  47. package/dist/harness/judge-accounting.test.js +216 -0
  48. package/dist/harness/judge-audit.js +56 -0
  49. package/dist/harness/judge.js +86 -21
  50. package/dist/harness/replay-package.js +71 -5
  51. package/dist/harness/runner.js +92 -44
  52. package/dist/harness/runner.test.js +23 -0
  53. package/dist/harness/single-arm-audit.js +436 -0
  54. package/dist/harness/trigger.js +41 -7
  55. package/dist/harness/trigger.test.js +12 -0
  56. package/dist/harness/verifier-error.js +65 -0
  57. package/dist/harness/verifier.test.js +128 -0
  58. package/docs/bench-authoring.md +34 -9
  59. package/docs/bench-check-json.md +36 -6
  60. package/docs/eval-agent-preflight.md +101 -0
  61. package/docs/eval-case-preflight.md +115 -0
  62. package/docs/eval-component.md +65 -9
  63. package/docs/eval-costs.md +53 -0
  64. package/docs/eval-planning.md +153 -0
  65. package/docs/evaluation-input-snapshots.md +125 -0
  66. package/docs/evaluation-interruption.md +101 -0
  67. package/docs/evaluation-reports.md +143 -0
  68. package/docs/experiment-workflow.md +16 -2
  69. package/docs/first-real-eval.md +55 -5
  70. package/docs/growth-roadmap-2026-10.md +48 -11
  71. package/docs/metrics.md +71 -3
  72. package/docs/plans/2026-10-16-case-workflow-and-release.md +19 -0
  73. package/docs/plans/2026-10-17-workflow-foundations.md +64 -0
  74. package/docs/releases/0.10.0-ci-registry-install.json +140 -0
  75. package/docs/releases/0.10.0-feature-smoke.json +22 -0
  76. package/docs/releases/0.10.0-feature-smoke.mjs +62 -0
  77. package/docs/releases/0.10.0-signatures.txt +7 -0
  78. package/docs/releases/0.10.0-verification.json +76 -0
  79. package/docs/releases/0.10.0.md +44 -8
  80. package/docs/releases/0.10.1-ci-registry-install.json +70 -0
  81. package/docs/releases/0.10.1-feature-smoke.json +28 -0
  82. package/docs/releases/0.10.1-feature-smoke.mjs +95 -0
  83. package/docs/releases/0.10.1-local-registry-install.json +60 -0
  84. package/docs/releases/0.10.1-registry-metadata.json +33 -0
  85. package/docs/releases/0.10.1-signatures.txt +7 -0
  86. package/docs/releases/0.10.1-verification.json +90 -0
  87. package/docs/releases/0.10.1.md +71 -0
  88. package/docs/releases/0.11.0-feature-smoke.mjs +224 -0
  89. package/docs/releases/0.11.0.md +47 -0
  90. package/docs/replay-packages.md +52 -11
  91. package/docs/schemas/agent-preflight.schema.json +31 -0
  92. package/docs/schemas/calibration-plan.schema.json +22 -0
  93. package/docs/schemas/calibration-result.schema.json +17 -0
  94. package/docs/schemas/eval-preflight.schema.json +57 -0
  95. package/docs/schemas/eval-request.schema.json +1 -1
  96. package/docs/schemas/eval-result.schema.json +14 -1
  97. package/docs/schemas/invocation-costs.schema.json +31 -0
  98. package/docs/schemas/judge-call.schema.json +22 -0
  99. package/docs/schemas/single-arm-report.schema.json +20 -0
  100. package/docs/schemas/verifier-error.schema.json +11 -0
  101. package/docs/sharing-results.md +8 -2
  102. package/docs/verifier-contract.md +99 -0
  103. package/package.json +1 -1
  104. package/skills/skillfit/SKILL.md +41 -8
@@ -0,0 +1,128 @@
1
+ import assert from 'node:assert/strict';
2
+ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
3
+ import { tmpdir } from 'node:os';
4
+ import { join } from 'node:path';
5
+ import { test } from 'node:test';
6
+ import { parseCommand } from './command.js';
7
+ import { runVerifier } from './runner.js';
8
+ import { loadBench } from './bench.js';
9
+ function fixture(t) {
10
+ const root = mkdtempSync(join(tmpdir(), 'skillfit-verifier-'));
11
+ t.after(() => rmSync(root, { recursive: true, force: true }));
12
+ const bench = join(root, 'bench with spaces'), run = join(root, 'trial with spaces');
13
+ mkdirSync(bench);
14
+ mkdirSync(run);
15
+ const script = join(bench, 'check answer.mjs');
16
+ return { root, bench, run, script };
17
+ }
18
+ test('shell-free commands preserve quoted/empty arguments and Windows paths without expansion', () => {
19
+ const cases = [
20
+ ['node "check answer.mjs" \'two words\' ""', ['node', 'check answer.mjs', 'two words', '']],
21
+ ['node one\\ word.mjs "a\\\"b"', ['node', 'one word.mjs', 'a"b']],
22
+ [String.raw `"C:\Program Files\node.exe" 'C:\bench dir\check.mjs' \\server\share\check.mjs`,
23
+ ['C:\\Program Files\\node.exe', 'C:\\bench dir\\check.mjs', '\\\\server\\share\\check.mjs']],
24
+ ['node prefix"two words"suffix "$VAR" "$(echo bad)" ";" "|"', ['node', 'prefixtwo wordssuffix', '$VAR', '$(echo bad)', ';', '|']],
25
+ ];
26
+ for (const [source, expected] of cases)
27
+ assert.deepEqual(parseCommand(source), expected);
28
+ for (const invalid of ['', ' ', '"" script', 'node "unfinished', "node 'unfinished", 'node a\0b'])
29
+ assert.throws(() => parseCommand(invalid), /Command/);
30
+ });
31
+ test('bench loading and execution agree on quoted script paths and arguments', async (t) => {
32
+ const f = fixture(t);
33
+ writeFileSync(f.script, "console.log(JSON.stringify({passed:true,args:process.argv.slice(2,-1)}));\n");
34
+ const command = 'node "check answer.mjs" "two words" ""';
35
+ writeFileSync(join(f.bench, 'prompt.md'), 'Inspect the answer.');
36
+ mkdirSync(join(f.bench, 'fixture'));
37
+ writeFileSync(join(f.bench, 'bench.json'), JSON.stringify({ schemaVersion: 1, tasks: [{ id: 't', fixture: 'fixture', prompt: 'prompt.md', verifier: command }] }));
38
+ assert.equal(loadBench(f.bench).tasks[0].verifier, command);
39
+ const result = await runVerifier(f.bench, command, f.run);
40
+ assert.equal(result.exitCode, 0, result.output);
41
+ assert.equal(result.error, null);
42
+ assert.deepEqual(JSON.parse(result.output).args, ['two words', '']);
43
+ for (const quote of ['"', "'"]) {
44
+ const absolute = await runVerifier(f.bench, `${quote}${process.execPath}${quote} ${quote}check answer.mjs${quote}`, f.run);
45
+ assert.equal(absolute.exitCode, 0, absolute.output);
46
+ assert.equal(absolute.error, null);
47
+ }
48
+ });
49
+ test('malformed quoting fails without executing the verifier and quoted traversal stays rejected', async (t) => {
50
+ const f = fixture(t), sentinel = join(f.run, 'called');
51
+ writeFileSync(f.script, `import{writeFileSync}from'node:fs';writeFileSync(${JSON.stringify(sentinel)},'called');`);
52
+ const result = await runVerifier(f.bench, 'node "check answer.mjs', f.run);
53
+ assert.equal(result.exitCode, null);
54
+ assert.match(result.error, /VERIFIER_COMMAND_ERROR/);
55
+ assert.throws(() => readFileSync(sentinel));
56
+ writeFileSync(join(f.bench, 'prompt.md'), 'Inspect.');
57
+ mkdirSync(join(f.bench, 'fixture'));
58
+ for (const verifier of ['node "../outside dir/check.mjs"', '"../outside dir/node" script', 'node "check answer.mjs']) {
59
+ writeFileSync(join(f.bench, 'bench.json'), JSON.stringify({ schemaVersion: 1, tasks: [{ id: 't', fixture: 'fixture', prompt: 'prompt.md', verifier }] }));
60
+ assert.throws(() => loadBench(f.bench), /relative path inside|unterminated quote/);
61
+ }
62
+ });
63
+ for (const [name, source] of [
64
+ ['missing entry', null], ['missing grader dependency', "import './absent.mjs';"],
65
+ ['syntax', 'const broken = ;'], ['reference', 'missingGraderFunction();'],
66
+ ['type', 'null.check();'], ['uncaught error', "throw new Error('broken grader');"],
67
+ ['error after summary', "console.log(JSON.stringify({passed:true}));throw new Error('after summary');"],
68
+ ])
69
+ test(`a direct Node verifier ${name} is an infrastructure error with its real exit code retained`, async (t) => {
70
+ const f = fixture(t);
71
+ if (source !== null)
72
+ writeFileSync(f.script, source);
73
+ const result = await runVerifier(f.bench, 'node "check answer.mjs"', f.run);
74
+ assert.notEqual(result.exitCode, 0);
75
+ assert.notEqual(result.exitCode, null);
76
+ assert.match(result.error, /VERIFIER_RUNTIME_ERROR/);
77
+ assert.match(result.output, /Error/);
78
+ });
79
+ for (const [name, source] of [
80
+ ['plain exit one', 'process.exit(1);'], ['legacy exit seven', 'process.exit(7);'],
81
+ ['normal JSON failure', "console.log(JSON.stringify({passed:false,error:'missing _output.md'}));process.exit(1);"],
82
+ ['assertion failure', "import assert from 'node:assert/strict';assert.equal(1,2);"],
83
+ ['TAP assertion failure', null],
84
+ ])
85
+ test(`${name} remains a graded failure`, async (t) => {
86
+ const f = fixture(t);
87
+ if (source === null)
88
+ writeFileSync(join(f.bench, 'test.mjs'), "import{test}from'node:test';import assert from'node:assert/strict';test('incorrect answer',()=>assert.equal(1,2));");
89
+ writeFileSync(f.script, source ?? "import{spawnSync}from'node:child_process';const result=spawnSync(process.execPath,['--test','test.mjs'],{encoding:'utf8'});process.stdout.write(result.stdout);process.stderr.write(result.stderr);process.exit(result.status);");
90
+ const result = await runVerifier(f.bench, 'node "check answer.mjs"', f.run);
91
+ assert.notEqual(result.exitCode, 0);
92
+ assert.equal(result.error, null, result.output);
93
+ });
94
+ for (const [name, source] of [['syntax', 'const broken = ;'], ['type', 'null.check();'], ['import', "import './missing.mjs';"]]) {
95
+ test(`a ${name} error in the candidate workspace remains a graded failure`, async (t) => {
96
+ const f = fixture(t);
97
+ writeFileSync(join(f.run, 'candidate.mjs'), source);
98
+ writeFileSync(f.script, "import{join}from'node:path';import{pathToFileURL}from'node:url';await import(pathToFileURL(join(process.argv[2],'candidate.mjs')).href);");
99
+ const result = await runVerifier(f.bench, 'node "check answer.mjs"', f.run);
100
+ assert.equal(result.exitCode, 1);
101
+ assert.equal(result.error, null, result.output);
102
+ });
103
+ }
104
+ test('a wrapper can grade a child exception without that exception overriding its final verdict', async (t) => {
105
+ const f = fixture(t);
106
+ writeFileSync(join(f.bench, 'child.mjs'), "throw new Error('a deliberately graded child crash');");
107
+ writeFileSync(f.script, "import{spawnSync}from'node:child_process';const child=spawnSync(process.execPath,['child.mjs'],{encoding:'utf8'});process.stdout.write(child.stderr);console.log(JSON.stringify({passed:false}));process.exit(1);");
108
+ const result = await runVerifier(f.bench, 'node "check answer.mjs"', f.run);
109
+ assert.equal(result.exitCode, 1);
110
+ assert.equal(result.error, null, result.output);
111
+ });
112
+ test('mentioning the candidate directory in a grader exception does not change its stack ownership', async (t) => {
113
+ const f = fixture(t);
114
+ writeFileSync(f.script, "throw new Error('Unable to grade '+process.argv[2]);");
115
+ const result = await runVerifier(f.bench, 'node "check answer.mjs"', f.run);
116
+ assert.match(result.error, /VERIFIER_RUNTIME_ERROR/);
117
+ });
118
+ test('explicit verifier errors override any exit/summary while malformed error messages cannot become grades', async (t) => {
119
+ const f = fixture(t);
120
+ for (const code of [0, 1, 7]) {
121
+ writeFileSync(f.script, `console.log(JSON.stringify({passed:true}));console.log(JSON.stringify({schemaVersion:1,kind:'skillfit.verifier-error',message:'toolchain unavailable'}));process.exit(${code});`);
122
+ const result = await runVerifier(f.bench, 'node "check answer.mjs"', f.run);
123
+ assert.equal(result.exitCode, code);
124
+ assert.match(result.error, /VERIFIER_REPORTED_ERROR: toolchain unavailable/);
125
+ }
126
+ writeFileSync(f.script, "console.log(JSON.stringify({kind:'skillfit.verifier-error'}));");
127
+ assert.match((await runVerifier(f.bench, 'node "check answer.mjs"', f.run)).error, /VERIFIER_PROTOCOL_ERROR/);
128
+ });
@@ -43,7 +43,8 @@ After creating a bench, use `bench list/show` to inspect registrations and
43
43
  `bench edit/remove` to preview changes. Applying with `--yes` backs up and validates
44
44
  the manifest; removal preserves task files and cannot empty a schema-1 bench.
45
45
  For a small development preview, select cases with repeated `eval --task <id>` or
46
- request `taskIds`. Keep independent validation tasks separate and preserve the
46
+ request `taskIds`. Version 0.11.0 also supports repeated `--task` for
47
+ baseline calibration and trigger plans. Keep independent validation tasks separate and preserve the
47
48
  sample-size requirements. See [case management](case-management.md).
48
49
 
49
50
  A bench is a folder of small tasks your agent has already failed at, plus a program that decides —
@@ -203,6 +204,14 @@ bench defect, never as the agent failing.
203
204
  > node runs, and *it* runs your command under a shell inside. Keep that string out of third-party
204
205
  > benches you did not read — see `SECURITY.md`.
205
206
 
207
+ Version 0.11.0 supports single/double-quoted script paths and arguments,
208
+ including spaces, without enabling a shell. The same parser is used by loading,
209
+ probes, live grading and replay. Grader load/runtime errors are separate from
210
+ normal task failures and cannot satisfy the NOP gate. Use the explicit
211
+ `skillfit.verifier-error` message for custom-runtime infrastructure errors;
212
+ ordinary assertions/nonzero verdicts remain failures. See the [complete command
213
+ and error contract](verifier-contract.md).
214
+
206
215
  ### 4. Or mine it from git history
207
216
 
208
217
  **Do this.** If the failure was already fixed in a commit, you do not have to write anything:
@@ -314,16 +323,23 @@ visible offline.
314
323
 
315
324
  ### 7. Rehearse before you pay
316
325
 
317
- **Do this.** Four commands, in this order, each cheaper than the next:
326
+ Start with an offline check and read-only previews. In version 0.11.0,
327
+ the calibration preview also runs no verifier, oracle or agent:
318
328
 
319
329
  ```bash
320
- skillfit bench check my-bench # offline, free
321
- skillfit bench check my-bench --calibrate --agent <id> # real runs, one arm per task
322
- skillfit eval <skill-path> --bench my-bench --dry-run # plan only, writes nothing
323
- skillfit eval <skill-path> --bench my-bench --agent <id> --trials 5
330
+ node dist/cli.js bench check my-bench --json
331
+ node dist/cli.js bench check my-bench --calibrate --agent <id> --task <task-id> --trials 1 --max-calls 1 --run-group calibration-001 --json --dry-run
332
+ node dist/cli.js eval <skill-path> --bench my-bench --agent <id> --trials 5 --run-group comparison-001 --json --dry-run
324
333
  ```
325
334
 
326
- `bench check` answers "is this bench well-formed". `--calibrate` answers "is it the right
335
+ After spending is authorized, rerun the appropriate preview command with
336
+ `--dry-run` removed and `--plan-sha` added: calibration uses `plan.planSha256`,
337
+ eval uses `plan.sha256`. Keep the same declared group/settings and choose actual
338
+ registered task IDs. Both accept call ceilings, spending lines and per-call
339
+ deadlines. See [planning](eval-planning.md); a one-task development check is not
340
+ independent validation or evidence of general benefit.
341
+
342
+ `bench check` answers "is this bench well-formed". Live `--calibrate` answers "is it the right
327
343
  difficulty": each task is banded as **too hard or broken** (baseline pass rate ≤ 10%),
328
344
  **discriminative** (in between), or **too easy / saturated** (≥ 90%). Aim for 30–70%. A saturated
329
345
  task cannot show improvement no matter how good the skill is; an impossible one cannot show anything
@@ -335,6 +351,10 @@ tokens — so spend the smallest amount that answers the question, before spendi
335
351
 
336
352
  **What the tool checks.** A calibration that completes zero runs **fails** rather than reporting a
337
353
  band it never measured. Errored runs are excluded from the rate rather than counted as failures.
354
+ Version 0.11.0 blocks live calibration on any offline hard failure
355
+ before creating a native run or calling an agent. Missing oracle evidence stays
356
+ unknown; nonblocking warnings remain separate. Agent availability/capabilities
357
+ are checked before and after case probes; login cannot be proven offline.
338
358
 
339
359
  ---
340
360
 
@@ -342,8 +362,13 @@ Agent callers can add `--json` to the offline check. It returns stable gate
342
362
  identifiers, task IDs, related paths, suggested repairs and captured verifier
343
363
  failures without human log text on stdout. Exit 0 may still contain warnings;
344
364
  exit 1 means failed integrity gates and exit 2 means validation did not complete.
345
- JSON mode rejects `--calibrate` before starting any verifier or agent. This is a
346
- source feature, not in npm 0.9.1; see the [version 1 contract](bench-check-json.md).
365
+ The offline result remains `skillfit.bench-check`. Version 0.11.0 gives
366
+ `--calibrate --json` its own planned/result workflow instead of the older
367
+ rejection; it requires explicit plan confirmation before JSON execution. Read
368
+ calibration results with `report eval <run-dir> --json`, including stopped costs
369
+ and unmeasured tasks. Supported sealed runs can be exported and replayed without
370
+ another model call. See the [offline JSON contract](bench-check-json.md) and
371
+ [report types](evaluation-reports.md).
347
372
 
348
373
  ## The two gates
349
374
 
@@ -13,10 +13,16 @@ CLI behavior. No agent executor, judge or model is started.
13
13
  Checks execute the bench's local verifier/oracle programs on disposable copies,
14
14
  under the existing offline bench contract; this is not a sandbox for untrusted code.
15
15
 
16
- `--json` cannot be combined with `--calibrate`, including calibration dry runs.
17
- That combination returns an error before loading/executing the bench. Use the
18
- existing human calibration command separately only after choosing a budget.
19
- JSON output is a format option, not spending authorization or Skill adoption.
16
+ In published npm 0.10.1, this offline JSON mode rejects `--calibrate`. Source
17
+ after that release adds a separate calibration JSON workflow: use
18
+ `bench check <dir> --calibrate --agent <id> --json --dry-run` to read a
19
+ `skillfit.calibration-result` plan without verifier/oracle/agent execution.
20
+ Confirm `plan.planSha256` with `--plan-sha` and the same explicit `--run-group`
21
+ only within authorized spending. Live calibration blocks hard offline case and
22
+ Agent environment failures; unknown evidence stays separate from warnings.
23
+ It does not return the offline `skillfit.bench-check` contract below. See
24
+ [shared planning](eval-planning.md#baseline-calibration-and-trigger-plans).
25
+ JSON output itself is not spending authorization or Skill adoption.
20
26
 
21
27
  ## Version 1 contract
22
28
 
@@ -54,6 +60,12 @@ oracle, or from the verifier after applying the oracle; `evidence.command`
54
60
  identifies which program actually produced it. Output, paths and diagnostics
55
61
  can contain local project data; review them before sharing.
56
62
 
63
+ Version 0.11.0 can retain a numeric `exitCode` together with a non-null
64
+ `evidence.error` for recognized grader load/runtime failures or explicit error
65
+ messages. That gate is `FAIL`, never a passing NOP probe. Normal grading failures
66
+ retain a nonzero exit and null error. Quoted commands use the shared shell-free
67
+ parser. See [verifier errors](verifier-contract.md); gate identifiers are unchanged.
68
+
57
69
  A failed reference repair can expose a check like this:
58
70
 
59
71
  ```json
@@ -91,7 +103,7 @@ inspect coverage notes and warnings before deciding what the bench establishes.
91
103
  | `ORACLE` | Reference repair executes and passes the verifier with full named checks, or warns when no oracle is registered |
92
104
  | `MOCK_COVERAGE` | Why mock probes are unavailable or not applicable |
93
105
  | `MOCK_MARKER` | A present mock marker must parse |
94
- | `MOCK_BASELINE`, `MOCK_TREATMENT` | Observed mock-arm results, retained as informational checks |
106
+ | `MOCK_BASELINE`, `MOCK_TREATMENT` | Observed mock-arm results or omitted-arm notes; process failures are `FAIL` in source after 0.10.0 |
95
107
  | `FIXTURE_SIZE` | Existing fixture-size check and 64 KiB warning |
96
108
  | `TRIGGER_LABEL` | An unlabeled task is skipped in trigger mode |
97
109
  | `NEGATIVE_CONTROLS` | Existing negative-control coverage and 30% target |
@@ -101,11 +113,29 @@ or `EMPTY_OUTPUT`: those gates deliberately test unsolved/absent work. Read the
101
113
  gate status before interpreting process evidence. A verifier that cannot start
102
114
  never counts as reproducing a failure.
103
115
 
116
+ Source after npm 0.10.0 identifies omitted mock arms as `INFO` with null evidence,
117
+ and treats a mock verifier without an exit verdict as a hard failure. A functioning
118
+ verifier's ordinary pass/fail on supplied mock output remains informational.
119
+ Standalone no-oracle status remains `WARN`; automatic
120
+ [eval preflight](eval-case-preflight.md) separately classifies unmeasured evidence
121
+ as `UNKNOWN`. The version 1 JSON shape and status vocabulary are unchanged.
122
+
104
123
  ## Exit status and acceptance
105
124
 
106
125
  - **0:** validation completed without failed gates; warnings may still exist.
107
126
  - **1:** validation completed with failed gates, including a missing or malformed bench.
108
- - **2:** invalid options, a forbidden calibration combination, or an unexpected execution error; validation did not complete.
127
+ - **2:** invalid options or an unexpected execution error; validation did not complete.
128
+
129
+ These exit meanings apply to the offline `skillfit.bench-check` result. Source
130
+ calibration plans/results use their separate contract; missing/stale confirmation
131
+ or preflight failure returns `skillfit.eval-error`. Ordinary offline checks still
132
+ use `WARN` for a missing oracle. Calibration's saved case preflight classifies
133
+ that unverified winnability as `UNKNOWN`. Neither silently promotes it to a pass.
134
+
135
+ Version 0.11.0 also handles Ctrl+C/SIGTERM throughout standalone checks:
136
+ active verifier/oracle process trees stop, disposable directories are removed,
137
+ and the command exits 130/143. No completed check or artificial stopped run is
138
+ created. See [interruption](evaluation-interruption.md).
109
139
 
110
140
  Agents should inspect failures first, then warnings and evidence coverage. A
111
141
  `passed` result does not prove model difficulty, Skill improvement, statistical
@@ -0,0 +1,101 @@
1
+ # Offline Agent environment preflight
2
+
3
+ Version 0.11.0 checks the Agent environment in `eval` preview and before
4
+ live dispatch. npm 0.10.1 does not include this
5
+ addition. Ordinary paired/trigger eval, Agent requests and baseline calibration
6
+ share the check implementation. This is separate from [offline case integrity](eval-case-preflight.md).
7
+
8
+ ## What is checked
9
+
10
+ | Code | Result and scope |
11
+ | --- | --- |
12
+ | `CLI_AVAILABLE` | Checks the selected matrix command's executable on PATH using filesystem access; no `which`, `where`, agent invocation or version probe runs as part of this check. Missing/non-executable files are `FAIL`. API execution needs no CLI (`INFO`). |
13
+ | `MATRIX_CAPABILITY` | Matches headless/streaming/Skill delivery declarations and existing executor/input/task compatibility rules. An incompatible choice is `FAIL`; a matrix match does not prove installed-version flag support. |
14
+ | `EXECUTOR_INJECTED` | `UNKNOWN` for a test/programmatic injected executor; it cannot attest an actual CLI installation. Existing synthetic-evidence restrictions still apply. |
15
+ | `AUTHENTICATION` | Always `UNKNOWN`: no login command, credential file or network request is used to infer authentication. Existing keys/config files do not prove valid credentials. |
16
+ | `GLOBAL_SKILL_CONFLICT` | For the primary CLI Agent evaluating a Skill, checks readable direct Skill entries in matrix-listed user/global roots. A matching directory name or frontmatter name is `FAIL` because baseline may already load the Skill. |
17
+ | `GLOBAL_SKILL_SCAN` | Describes the limited root scope; unreadable entries/roots stay `UNKNOWN`. An unreadable root cannot establish absence of contamination. |
18
+ | `ENVIRONMENT_CHANGED` | `FAIL` if the check result changes during offline case probes; a fresh preview is needed. |
19
+
20
+ Agent-specific commands and paths come from `src/matrix/agents.json`, including
21
+ configured home overrides and user/global shared Skill roots. Both the target
22
+ directory identity and its root `SKILL.md` frontmatter name are considered, so
23
+ renaming a candidate directory or a global alias does not hide a same-name Skill.
24
+ Directory aliases are followed for manifest inspection. No global Skill is moved,
25
+ deleted, disabled or copied by this check.
26
+
27
+ Executable discovery checks absolute PATH entries and executable-file access
28
+ (Windows also uses case-insensitive environment keys and PATHEXT). Shell aliases,
29
+ functions and relative PATH entries do not establish availability inside the
30
+ disposable trial directory. Use a normal installed executable on an absolute PATH.
31
+ The existing native runtime version capture can still probe a CLI during an
32
+ authorized real run; it is separate from this read-only preflight.
33
+
34
+ Streaming is required for native trigger detection; installed paired eval keeps
35
+ its existing fallback when streaming is unavailable. The optional judge's CLI is
36
+ checked too, so an unavailable judge blocks before primary-agent spending. API
37
+ filesystem/config limitations remain hard errors. Injected executors skip real
38
+ binary attestation and use explicitly injected home roots for tests; no actual
39
+ user home is scanned for an unconfigured injected executor.
40
+
41
+ ## Preview, block and recheck
42
+
43
+ ```bash
44
+ node dist/cli.js eval ./my-skill --mode installed --bench ./my-bench --agent codex --trials 1 --max-calls 2 --run-group preflight-001 --json --dry-run
45
+ ```
46
+
47
+ Paired JSON preview includes `plan.evaluation.agentPreflight`. Its discriminator
48
+ is `schemaVersion: 1`, `kind: "skillfit.agent-preflight"`,
49
+ `scope: "offline-agent-environment"`; see the [schema](schemas/agent-preflight.schema.json).
50
+ It contains `status`, matrix version/date, ordered `checks`, summary counts and
51
+ `cost: {modelCalls: 0, cliInvocations: 0}`. Each check has a stable `code`,
52
+ `role` (`agent`/`judge`), matrix Agent ID or null, `status`, English `message`,
53
+ `remediation` and evidence `paths`. It does not include credentials or Skill bodies.
54
+ Human preview prints the same results. Trigger JSON uses the same
55
+ `plan.evaluation.agentPreflight`; calibration JSON uses `plan.agentPreflight`
56
+ inside its separate `skillfit.calibration-plan`. Both previews execute no
57
+ verifier, oracle, agent or judge. See [planning and confirmation](eval-planning.md).
58
+
59
+ `ready` means zero known failures **within this offline scope**. Login, installed
60
+ CLI flag compatibility and unlisted configuration remain unverified. A planned
61
+ response/exit 0 from a read-only preview means a plan was generated; callers must
62
+ also inspect `agentPreflight.status`. Missing CLI/global-conflict previews can
63
+ still describe a `blocked` plan without writing or calling anything. Existing
64
+ invalid input/executor combinations remain immediate validation errors.
65
+
66
+ Live execution rejects `blocked` checks **before** verifier/oracle execution,
67
+ native run-directory creation or any primary/judge invocation. JSON returns
68
+ `skillfit.eval-error`, `error.code: "AGENT_PREFLIGHT_FAILED"` and the complete
69
+ `agentPreflight`, with upgrade eligibility false. Human errors name the failed
70
+ checks and remedies. There is no bypass flag. The existing global same-name
71
+ contamination guard remains a hard block; it is now visible earlier.
72
+
73
+ After successful case probes, the environment is inspected again before native
74
+ setup. Changed availability/conflicts require a fresh preview and block calls.
75
+ The deterministic report is bound into the reviewed eval/calibration plan, so changed
76
+ binary resolution or check results also invalidate its confirmation hash.
77
+ Authentication unknown is nonblocking and never becomes an authenticated claim;
78
+ spending still needs the caller's authorization and working credentials.
79
+
80
+ ## Saved evidence and limitations
81
+
82
+ Native plans seal `details.agentPreflight`. Paired JSON assessment exposes the
83
+ recorded value as top-level `agentPreflight`; human reports show state/checks
84
+ without local evidence paths. Calibration and trigger reports expose the saved
85
+ metadata too; sealed native records can be audited/replayed, while standalone
86
+ historical summaries remain unverified. Historical runs without
87
+ the field return null; no past environment is reconstructed.
88
+
89
+ Report, export and portable replay retain the original check results. They never
90
+ repeat PATH/global-Skill/authentication probes on the reader's current machine.
91
+ Paired native audit validates recorded state/counts and retains unknown offline
92
+ authentication; ordinary reviewed plans must match the sealed checks. A later
93
+ machine change cannot silently rewrite the experiment's readiness record.
94
+
95
+ This is not environment isolation, model identity attestation or a full recursive
96
+ inventory of plugins/system/ancestor-project configuration. A different judge's
97
+ global configuration is still outside primary-agent configuration fingerprinting.
98
+ Executable presence does not guarantee a successful invocation or provider
99
+ availability. Existing per-call input/config guards, spending stops, exclusions,
100
+ statistical formulas and adoption gates remain unchanged. Inspect paths before
101
+ sharing raw JSON/native evidence.
@@ -0,0 +1,115 @@
1
+ # Offline case gates before evaluation
2
+
3
+ This behavior is included in 0.10.1. The immutable npm 0.10.0 archive predates it.
4
+ See the [release record](releases/0.10.1.md) for publication status.
5
+
6
+ Version 0.11.0 additionally blocks recognized grader load/runtime
7
+ exceptions and explicit infrastructure-error messages even with a numeric exit
8
+ code, including on oracle-less cases. Quoted paths/arguments use the same parser
9
+ in probes and execution. See [verifier commands and errors](verifier-contract.md).
10
+
11
+ Every live `eval` runs the existing offline `bench check` probes before creating
12
+ the native run directory or dispatching its first agent/judge call. This covers
13
+ inject, installed Skill revisions, rules/MCP configuration experiments, trigger
14
+ mode and JSON requests. There is no force/skip flag. Invalid plans, exhausted
15
+ call ceilings and existing run groups are rejected before probing.
16
+
17
+ Only the selected tasks are probed. Trigger mode further limits probes to tasks
18
+ with a `shouldTrigger` label, matching the actual dispatch population. The full
19
+ bench must still load, and its full content hash stays pinned. A broken verifier
20
+ on a structurally valid, unselected task does not block a selected task.
21
+
22
+ ## What blocks execution
23
+
24
+ The gate reuses `bench check` diagnostics and disposable copies:
25
+
26
+ - Command task: the untouched fixture must fail its verifier.
27
+ - Output task: missing and empty `_output.md` must be rejected.
28
+ - Registered oracle: its command must succeed and the repaired fixture must pass
29
+ the verifier with every reported named check passing.
30
+ - Verifier/oracle processes without an exit verdict, malformed mock markers and
31
+ other incomplete local checks fail closed. An ordinary mock output that fails
32
+ a functioning verifier is informational, since it can represent a negative
33
+ example; a crashed/timed-out mock probe is a hard failure.
34
+ - Bench, candidate and baseline fingerprints must remain equal to the preview's
35
+ inputs after all probes. Changes or unreadable inputs block execution.
36
+
37
+ On any `FAIL`, zero agent/judge calls are dispatched and no run directory or
38
+ quality verdict is created. Human output includes gate codes, reasons and
39
+ remedies. Request JSON returns `kind: "skillfit.eval-error"`,
40
+ `error.code: "CASE_PREFLIGHT_FAILED"`, `casePreflight.status: "blocked"` and all
41
+ diagnostics; exit code is 2. Keep that JSON if the failed check needs archiving.
42
+
43
+ ## Warning, unknown and not applicable
44
+
45
+ `casePreflight.checks` uses these statuses:
46
+
47
+ | Status | Meaning | Blocks calls? |
48
+ | --- | --- | --- |
49
+ | `FAIL` | A required gate failed or could not finish | Yes |
50
+ | `WARN` | Observed concern: large fixture, facet-count bounds, weak/missing negative controls | No |
51
+ | `UNKNOWN` | Evidence was not obtained: no oracle, absent output mock coverage, omitted mock arm, live difficulty not measured | No |
52
+ | `INFO` | Context or inapplicable check, such as text mock probes for file-edit tasks | No |
53
+ | `PASS` | This particular offline gate passed | No |
54
+
55
+ `ORACLE` without a reference repair is `UNKNOWN` here; standalone `bench check`
56
+ keeps its version 1 `WARN` contract. `MOCK_COVERAGE` for command tasks is `INFO`
57
+ because text mock answers do not implement file edits. A `LIVE_DIFFICULTY`
58
+ unknown is always present: offline probes neither calibrate a live agent nor
59
+ establish Skill benefit or generalization. Missing optional facets do not become
60
+ a fabricated graded signal. A nonzero untouched-fixture exit alone does not
61
+ prove the intended defect caused the failure; review it and supply an independent
62
+ oracle. Checks execute trusted local bench code, not a sandbox for untrusted code.
63
+
64
+ `status: "ready"` means zero hard failures in this offline scope. Warnings and
65
+ unknowns remain explicit in `summary`; ready does not authorize adoption. The
66
+ existing statistical, complete-cost and independence requirements stay unchanged,
67
+ and `automaticUpgrade` remains false. This gate makes no calibration or repair
68
+ calls and does not retry, add tasks or expand the declared budget.
69
+
70
+ ## Preview, records and cost
71
+
72
+ `--dry-run` never executes verifiers/oracles or creates run files. Its machine
73
+ plan declares `casePreflight: {schemaVersion: 1, scope: "offline-case-integrity",
74
+ required: true, status: "pending"}`. A preview is not a passed case check. JSON
75
+ requests still require the matching preview hash before probes start; observed
76
+ probe output and elapsed time do not enter that hash, so harmless timing changes
77
+ cannot invalidate the approved plan.
78
+
79
+ After a successful gate, `_plan.json.details.casePreflight` freezes the complete
80
+ report before dispatch: selected IDs, full bench fingerprint, individual gate
81
+ codes/statuses, locations, remedies and bounded process evidence. The native
82
+ artifact index covers that plan. JSON assessment returns `casePreflight`, including
83
+ for stopped runs; incomplete/stopped evidence remains subject to the enclosing
84
+ `evidence.verified` field. A missing historical report is `null`, never an implied
85
+ pass. Offline reporting and portable replay preserve the original preflight;
86
+ they do not rerun it against current inputs or change historical records.
87
+
88
+ `casePreflight.cost` records **0 model calls** and observed offline wall time in
89
+ `durationMs`. This time includes local probes and fingerprint verification. It is
90
+ separate from primary-agent call durations, token totals and spending stop lines;
91
+ it is not a CPU, toolchain or dollar bill. Agent/judge budgets and all existing
92
+ cost coverage rules remain unchanged.
93
+
94
+ Ctrl+C/SIGTERM during probing terminates managed verifier/oracle process trees,
95
+ dispatches no agent and exits 130/143. Because the run has not started, no stopped
96
+ run directory is synthesized. Once dispatch preparation has created a native run,
97
+ the normal [interruption and retained-record contract](evaluation-interruption.md)
98
+ applies.
99
+
100
+ ## Reproduce offline
101
+
102
+ ```bash
103
+ npm test
104
+ node --test dist/commands/eval-preflight.test.js dist/commands/eval-interruption.test.js dist/commands/eval-export.test.js
105
+ ```
106
+
107
+ The tests use mock executors and local fake processes. They cover all delivery
108
+ modes, zero-call hard stops, separate warnings/unknowns, selected/trigger scope,
109
+ missing/empty outputs, oracle failures, process failure, malformed/partial mock
110
+ coverage, input mutation, unchanged previews, request JSON, interruption, and
111
+ portable retention. No real agent CLI or model API is called.
112
+
113
+ Machine contracts: [preflight schema](schemas/eval-preflight.schema.json),
114
+ [evaluation result schema](schemas/eval-result.schema.json),
115
+ [standalone bench-check JSON](bench-check-json.md).
@@ -1,7 +1,10 @@
1
1
  # Agent evaluation component
2
2
 
3
3
  Use the existing `eval` engine through a versioned JSON request to compare a
4
- candidate Skill with its previous complete version. The component returns quality
4
+ candidate Skill with its previous complete version. Version 0.11.0 also
5
+ accepts an explicit `baselineSkill: null` to compare with no Skill installed by
6
+ the harness. See [shared planning, budgets and deadlines](eval-planning.md).
7
+ The component returns quality
5
8
  changes, observed regressions, spending coverage and a separate adoption decision.
6
9
  It never installs, publishes or upgrades a Skill. These interfaces are included
7
10
  in [0.9.0](releases/0.9.0.md). Use npm 0.9.0 or newer, or build the current
@@ -11,6 +14,30 @@ Build the bench around the task being evaluated, with deterministic acceptance
11
14
  checks and an independent reference repair. Bundled and contributed benches are
12
15
  examples, not a universal test of every Skill. See the [authoring guide](bench-authoring.md).
13
16
 
17
+ Version 0.11.0 adds [offline Agent environment preflight](eval-agent-preflight.md).
18
+ `plan.evaluation.agentPreflight` separates executable availability, declared
19
+ capabilities, same-name global Skill conflicts and unknown authentication. A dry
20
+ plan can be blocked; execution returns `AGENT_PREFLIGHT_FAILED` with the checks
21
+ before case probes, writes or calls. The native plan and report retain the saved
22
+ checks. Authentication remains unknown; preview is not proof of login or consent.
23
+
24
+ In 0.10.1, execution requires an automatic offline
25
+ [case preflight](eval-case-preflight.md) after preview-hash confirmation and before
26
+ any agent/judge call. `plan.evaluation.casePreflight.status` is `pending`; preview
27
+ executes no verifier/oracle. Hard failures return `CASE_PREFLIGHT_FAILED` and a
28
+ structured `casePreflight` report with zero calls and no native run directory.
29
+ Warnings and unknowns remain separate and nonblocking. Successful probes are
30
+ frozen in the native plan and included in JSON assessment/replay; they do not
31
+ authorize adoption or alter statistical/cost requirements.
32
+
33
+ Version 0.11.0 [seals original inputs](evaluation-input-snapshots.md)
34
+ before dispatch. Preview declares `plan.evaluation.inputSnapshot.status: "pending"`;
35
+ completed/stopped JSON assessment includes `inputSnapshot` with the plan-bound
36
+ index hash and local copy/storage cost. Native replay/export use sealed inputs
37
+ after originals change or disappear; a damaged archive cannot be overridden.
38
+ Historical runs return null and retain matching-root recovery. Snapshot copies
39
+ make zero model calls and do not change acceptance or incomplete-cost semantics.
40
+
14
41
  The [maintained evidence index](skill-evaluation-evidence.md) links all development
15
42
  and independent cohorts, their exact costs and offline replay packages. As of
16
43
  October 15, the debugging study totals 195 actual calls with seven historical
@@ -75,8 +102,14 @@ The [request schema](schemas/eval-request.schema.json) and
75
102
  [policy schema](schemas/eval-policy.schema.json) document request version 1 and
76
103
  the versioned quality/efficiency policies. The runtime
77
104
  parser rejects unknown fields and invalid ranges. `policy` is optional and defaults
78
- to the conservative values above. The two complete Skills must have the same
79
- frontmatter name and different fingerprints. The caller must supply a fresh run
105
+ to the conservative values above. `baselineSkill` is required: a string selects
106
+ the previous complete Skill; explicit null selects no harness-installed Skill in
107
+ baseline (version 0.11.0). Omitted/empty/invalid values are rejected.
108
+ When comparing revisions, the two complete Skills must have the same
109
+ frontmatter name and different fingerprints. Inherited global configuration
110
+ still applies in both arms. No-Skill comparisons retain measurements but cannot
111
+ authorize revision adoption (`REVISION_COMPARISON_REQUIRED`).
112
+ The caller must supply a fresh run
80
113
  group and an explicit call ceiling; eight tasks at five trials need 80 calls.
81
114
 
82
115
  `pairOrder` is optional and defaults to `baseline-first` for compatibility.
@@ -115,8 +148,9 @@ final usage, an execution error, or a configuration guard error stops further
115
148
  calls immediately. There is no retry, replacement or automatic expansion. If the
116
149
  last predeclared call reaches a line with complete evidence, the completed cohort
117
150
  is retained; exceeding a line is never hidden or clamped. A stopped prefix cannot
118
- authorize adoption. Judges and trigger evaluations reject this option because
119
- their separate spending is outside this paired-agent accounting.
151
+ authorize adoption. The request component still runs without a judge. Current
152
+ source also supports these limits in ordinary paired evaluations with a judge,
153
+ trigger runs and calibration; each role consumes the same run-wide budget.
120
154
 
121
155
  The native `_budget.jsonl` records before/after snapshots. Completed receipt audit
122
156
  recomputes every snapshot in declared execution order and checks its sealed
@@ -144,7 +178,8 @@ command. Execution requires the caller's existing authorization to spend; posses
144
178
  of a hash is not user consent. Request-based eval cannot be mixed with positional
145
179
  eval settings. It always uses installed workspace delivery and disables judges.
146
180
 
147
- The preview pins normalized request settings, request bytes, both Skills, the bench,
181
+ The preview pins normalized request settings, request bytes, the candidate and
182
+ any previous Skill, the bench,
148
183
  executor description and compiled implementation. A changed preview fails before
149
184
  calls or run-directory creation. The native session separately freezes recorded
150
185
  configuration at execution time; the preview does not isolate global configuration
@@ -168,7 +203,7 @@ callers should retain unknown/new fields for forward-compatible reporting.
168
203
  | Field | Meaning |
169
204
  |---|---|
170
205
  | `status` | `planned`, `completed`, `stopped`, `incomplete`, or `reported` for an unmanaged historical manifest |
171
- | `plan` | Request, fingerprints, executor, task IDs, trials, call ceiling, output directory and preview SHA; present for request execution |
206
+ | `plan` | Fingerprints, executor, task IDs, trials, call ceiling, output directory and preview SHA; present for execution/preview through either entry; request plans also include the request and policy hashes |
172
207
  | `manifest` | Saved v4 manifest path and byte SHA-256; null when a stopped run produced no final manifest |
173
208
  | `identity` | Candidate, baseline, bench and configured executor identities; present with a final manifest |
174
209
  | `environment` | Verified native Node/CLI versions, configured settings, recorded `pairOrder`, served-model limitation and executor injection provenance; null for unverified evidence; unrecorded order stays null |
@@ -176,6 +211,7 @@ callers should retain unknown/new fields for forward-compatible reporting.
176
211
  | `costs.populations` | Surviving paired costs and all agent invocations, including graded failures, errored calls and excluded successful partners |
177
212
  | `costs.changes` | Descriptive total and per-success changes; null when coverage or the baseline denominator cannot support the comparison |
178
213
  | `costs.efficiency` | Explicit policy version 2 only: all-invocation uncached-input point, task-block interval, per-task changes and fixed protocol |
214
+ | `invocationCosts` | Primary, optional judge and combined invocation populations with final/partial/unknown coverage; historical absent usage remains unknown |
179
215
  | `spendingBudget` | Optional frozen absolute stop lines and retained event state; completed native audit verifies snapshots against receipts |
180
216
  | `evidence` | Native file/receipt integrity, policy binding, replay coverage and evidence locations; `pairs` retains each pair's outcomes, named-check changes and full cost observations |
181
217
  | `acceptance` | `decision`, `eligibleForUpgrade`, policy, reason codes and scope; `automaticUpgrade` is always false |
@@ -284,6 +320,23 @@ and retain/share an external copy of evidence hashes for provenance.
284
320
 
285
321
  ## Offline assessment and replay
286
322
 
323
+ The public `report eval` dispatcher in version 0.11.0 also reads
324
+ calibration/trigger summaries as distinct descriptive JSON kinds. They are not
325
+ revision-component results and never enter its paired adoption policy. See
326
+ [report types and option restrictions](evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
327
+ The request-based component and paired result contract below are unchanged.
328
+
329
+ Version 0.10.1 seals Ctrl+C/SIGTERM interruptions with available trial
330
+ receipts, `_interruption.json`, stopped `_session.json` and `_artifacts.json`.
331
+ Request execution preserves exit 130/143 and returns a stopped assessment after
332
+ sealing. Partial/unknown costs stay incomplete and ineligible; no automatic retry
333
+ or replacement occurs. See [the interruption contract](evaluation-interruption.md).
334
+ The npm 0.10.0 archive predates this fix.
335
+
336
+ Markdown and JSON accept the same manifest/run/package inputs and assessment
337
+ options in 0.10.1. Markdown also displays stopped/incomplete spending and the
338
+ separate acceptance decision. See [report inputs and states](evaluation-reports.md).
339
+
287
340
  ```bash
288
341
  node dist/cli.js report eval ./runs/revision-validation-001 --json
289
342
  node dist/cli.js report eval ./runs/revision-validation-001 --json --replay
@@ -314,8 +367,11 @@ samples. A model upgrade or changed inputs requires a fresh bounded declaration.
314
367
 
315
368
  Use `report eval <run-dir> --export <new-dir> --json` for a read-only export plan,
316
369
  then `--yes` to build a portable directory with unchanged receipts, matching
317
- inputs, pinned runtime and a checksum/replay entry point. Native paired runs
318
- without a judge are supported, including stopped runs. Missing inputs prevent
370
+ inputs, pinned runtime and a checksum/replay entry point. Version 0.11.0 supports
371
+ paired runs with/without a judge, calibration and trigger sessions, including
372
+ stopped prefixes. Single-arm replay verifies saved observations and local grading,
373
+ never paired efficacy. Historical inputs must retain a runtime supporting their
374
+ replay type; missing judge usage is not reconstructed. Missing inputs prevent
319
375
  export; partial/unknown costs and ineligible acceptance remain visible. See
320
376
  [portable offline packages](replay-packages.md) for relocated inputs and privacy
321
377
  review. This does not rerun an agent or produce new efficacy observations.