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
@@ -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,13 @@ 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
+
14
24
  In 0.10.1, execution requires an automatic offline
15
25
  [case preflight](eval-case-preflight.md) after preview-hash confirmation and before
16
26
  any agent/judge call. `plan.evaluation.casePreflight.status` is `pending`; preview
@@ -20,7 +30,7 @@ Warnings and unknowns remain separate and nonblocking. Successful probes are
20
30
  frozen in the native plan and included in JSON assessment/replay; they do not
21
31
  authorize adoption or alter statistical/cost requirements.
22
32
 
23
- The same source build [seals original inputs](evaluation-input-snapshots.md)
33
+ Version 0.11.0 [seals original inputs](evaluation-input-snapshots.md)
24
34
  before dispatch. Preview declares `plan.evaluation.inputSnapshot.status: "pending"`;
25
35
  completed/stopped JSON assessment includes `inputSnapshot` with the plan-bound
26
36
  index hash and local copy/storage cost. Native replay/export use sealed inputs
@@ -92,8 +102,14 @@ The [request schema](schemas/eval-request.schema.json) and
92
102
  [policy schema](schemas/eval-policy.schema.json) document request version 1 and
93
103
  the versioned quality/efficiency policies. The runtime
94
104
  parser rejects unknown fields and invalid ranges. `policy` is optional and defaults
95
- to the conservative values above. The two complete Skills must have the same
96
- 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
97
113
  group and an explicit call ceiling; eight tasks at five trials need 80 calls.
98
114
 
99
115
  `pairOrder` is optional and defaults to `baseline-first` for compatibility.
@@ -132,8 +148,9 @@ final usage, an execution error, or a configuration guard error stops further
132
148
  calls immediately. There is no retry, replacement or automatic expansion. If the
133
149
  last predeclared call reaches a line with complete evidence, the completed cohort
134
150
  is retained; exceeding a line is never hidden or clamped. A stopped prefix cannot
135
- authorize adoption. Judges and trigger evaluations reject this option because
136
- 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.
137
154
 
138
155
  The native `_budget.jsonl` records before/after snapshots. Completed receipt audit
139
156
  recomputes every snapshot in declared execution order and checks its sealed
@@ -161,7 +178,8 @@ command. Execution requires the caller's existing authorization to spend; posses
161
178
  of a hash is not user consent. Request-based eval cannot be mixed with positional
162
179
  eval settings. It always uses installed workspace delivery and disables judges.
163
180
 
164
- 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,
165
183
  executor description and compiled implementation. A changed preview fails before
166
184
  calls or run-directory creation. The native session separately freezes recorded
167
185
  configuration at execution time; the preview does not isolate global configuration
@@ -185,7 +203,7 @@ callers should retain unknown/new fields for forward-compatible reporting.
185
203
  | Field | Meaning |
186
204
  |---|---|
187
205
  | `status` | `planned`, `completed`, `stopped`, `incomplete`, or `reported` for an unmanaged historical manifest |
188
- | `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 |
189
207
  | `manifest` | Saved v4 manifest path and byte SHA-256; null when a stopped run produced no final manifest |
190
208
  | `identity` | Candidate, baseline, bench and configured executor identities; present with a final manifest |
191
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 |
@@ -193,6 +211,7 @@ callers should retain unknown/new fields for forward-compatible reporting.
193
211
  | `costs.populations` | Surviving paired costs and all agent invocations, including graded failures, errored calls and excluded successful partners |
194
212
  | `costs.changes` | Descriptive total and per-success changes; null when coverage or the baseline denominator cannot support the comparison |
195
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 |
196
215
  | `spendingBudget` | Optional frozen absolute stop lines and retained event state; completed native audit verifies snapshots against receipts |
197
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 |
198
217
  | `acceptance` | `decision`, `eligibleForUpgrade`, policy, reason codes and scope; `automaticUpgrade` is always false |
@@ -301,6 +320,12 @@ and retain/share an external copy of evidence hashes for provenance.
301
320
 
302
321
  ## Offline assessment and replay
303
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
+
304
329
  Version 0.10.1 seals Ctrl+C/SIGTERM interruptions with available trial
305
330
  receipts, `_interruption.json`, stopped `_session.json` and `_artifacts.json`.
306
331
  Request execution preserves exit 130/143 and returns a stopped assessment after
@@ -342,8 +367,11 @@ samples. A model upgrade or changed inputs requires a fresh bounded declaration.
342
367
 
343
368
  Use `report eval <run-dir> --export <new-dir> --json` for a read-only export plan,
344
369
  then `--yes` to build a portable directory with unchanged receipts, matching
345
- inputs, pinned runtime and a checksum/replay entry point. Native paired runs
346
- 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
347
375
  export; partial/unknown costs and ineligible acceptance remain visible. See
348
376
  [portable offline packages](replay-packages.md) for relocated inputs and privacy
349
377
  review. This does not rerun an agent or produce new efficacy observations.
@@ -5,6 +5,15 @@ Paired `eval` runs record descriptive agent costs in `tasks[].costs` and
5
5
  terminal summary and `report eval <manifest.json>` show the same cost tables.
6
6
  Reading a report makes no model call and does not change the manifest or verdict.
7
7
 
8
+ Version 0.11.0 exposes the same paired spending guard through ordinary
9
+ `--spending-budget <file>` and request `spendingBudget`. The five limits and
10
+ effective primary executor deadline are visible in the shared plan and sealed
11
+ for offline replay; the source budget file is unnecessary after execution.
12
+ Limits stop between calls and can overshoot in flight. Version 0.11.0 also
13
+ applies the guard to calibration, trigger runs and both judge orders; judge
14
+ calls count against the same run-wide limits. These are operational limits, separate from relative
15
+ adoption ceilings or a provider invoice. See [shared planning](eval-planning.md).
16
+
8
17
  ## Two populations
9
18
 
10
19
  - **Surviving graded pairs:** the same paired observations used by the quality
@@ -21,6 +30,41 @@ spending totals. An executor invocation does not prove that a provider accepted
21
30
  a request or billed it. These counts do not include the optional judge, earlier
22
31
  calibration cohorts or another experiment's setup spending.
23
32
 
33
+ ## All executor roles (0.11.0 and newer)
34
+
35
+ New paired manifests and JSON reports add `invocationCosts`, independently of
36
+ the unchanged primary Agent's `overall.costs`. It contains `agent`, `judge` and
37
+ `total` populations and `judgeUsage: recorded | unknown | not-requested`;
38
+ see the [schema](schemas/invocation-costs.schema.json). Each population retains
39
+ the five measures and final/partial/unknown coverage below. Judge `passes`
40
+ counts successfully parsed grading calls, so the combined `passes` is not a task
41
+ success rate and must not be used as the denominator of Agent cost per success.
42
+
43
+ Every judge order saves a version-1 `skillfit.judge-call` receipt under
44
+ `<task>/judge-trial-<n>/call-1.json` or `call-2.json`. It retains the anonymous
45
+ prompt and hash, output, available raw output, executor, invocation/error state,
46
+ token coverage and monotonic elapsed interval. Invalid grading JSON still costs
47
+ an invocation and stops subsequent work. Failure/interruption retains final, partial or
48
+ unknown usage; it never becomes a free or successfully graded call. Missing
49
+ credentials for an explicitly enabled judge block before primary spending.
50
+
51
+ Reports and offline replay verify saved primary/judge receipts and their ledger.
52
+ Replay checks retained judge prompts/scores/usage; it never asks a judge to grade
53
+ again. Historical missing judge receipts keep judge/combined totals unknown and
54
+ cannot qualify for a complete native export. Legacy primary costs remain readable.
55
+ Calibration and trigger reports expose their own single-arm `usage` population;
56
+ they do not acquire a paired cost comparison.
57
+
58
+ The spending recorder checks before each invocation and after each retained
59
+ receipt. Execution errors or incomplete final usage stop even after the last
60
+ scheduled call; a reached limit prevents the next call. Stopped native sessions
61
+ preserve a controlled `stopCode` (`EXECUTION_FAILED`, `FINAL_USAGE_MISSING` or
62
+ `SPENDING_BUDGET_REACHED`) and safe reason text. No automatic retry or replacement
63
+ is added. Historical absence of `stopCode` is not reconstructed; a received
64
+ SIGINT/SIGTERM retains the interruption as the primary stop reason. Generation,
65
+ local verifier/setup work and another experiment's calls
66
+ are outside these executor token populations; input sealing has separate costs.
67
+
24
68
  Each population records runs, successful tasks and five separate measures:
25
69
  input tokens, cached input tokens, uncached input tokens, output tokens and
26
70
  elapsed seconds. Elapsed time is measured around the agent invocation and
@@ -33,6 +77,17 @@ pair as an execution error; see [execution timing](eval-timing.md).
33
77
 
34
78
  ## Cache and coverage
35
79
 
80
+ Version 0.12.0 reads matrix-defined JSON streams in ordinary CLI eval and
81
+ CLI judging too, independently of Skill-trigger detection. Codex inject, rules and
82
+ MCP comparisons can retain the same per-turn counters as installed/trigger mode.
83
+ Only assistant text is graded; raw stream evidence and partial failure counters
84
+ are retained separately. Ordinary parsing does not fabricate a trigger flag.
85
+ Offline `USAGE_CAPABILITY` checks block strict spending budgets when an adapter is
86
+ known to lack required counters, including an enabled judge. API and injected
87
+ executors retain unknown offline coverage; actual missing counters still stop
88
+ after an invocation, with no retry or guessed cache zeros. Historical receipts
89
+ remain unchanged; this does not recover token counts from old plain-text runs.
90
+
36
91
  Cached input is the cache-read subset already included in input; adding it to
37
92
  input would double-count. `uncachedInput = input - cachedInput` only when both
38
93
  counts are present and `0 <= cachedInput <= input`. Uncached tokens can include
@@ -70,6 +125,21 @@ elapsed time can still be compared when token usage is unknown. Earlier v4
70
125
  manifests without cost summaries remain readable and explicitly identify this
71
126
  missing information; the report does not silently enrich them from local files.
72
127
 
128
+ ## Failed API responses (version 0.12.0)
129
+
130
+ API response parsing retains the public response and any valid reported usage
131
+ before rejecting a missing/non-text answer, malformed JSON or non-2xx status.
132
+ A complete response's supplied counters remain final for those fields even when
133
+ its answer cannot be graded. Missing fields stay unknown; malformed JSON cannot
134
+ establish usage. Neither a format failure nor an HTTP error proves the call was
135
+ free. Connection failures without a readable response still have unknown usage.
136
+
137
+ These errors remain ungraded execution failures and stop subsequent calls. Agent
138
+ responses are retained in `_transcript.jsonl`; failed API judge responses are in
139
+ their independent judge receipts. Request authorization headers/keys are not
140
+ added to the evidence. Reports/export/replay preserve the original counters,
141
+ with no API retry or new observation. Earlier unknown costs are not backfilled.
142
+
73
143
  ## Spending per success
74
144
 
75
145
  For each measure and population:
@@ -0,0 +1,167 @@
1
+ # Shared evaluation planning (source after npm 0.10.1)
2
+
3
+ Ordinary paired/trigger `eval` and version-1 paired Agent requests share reviewed
4
+ planning. Baseline calibration has a separate typed plan with the same budget,
5
+ deadline and output controls in 0.11.0. npm 0.10.1 does not include these
6
+ additions. Existing revision requests remain valid.
7
+
8
+ ## Settings and baselines
9
+
10
+ | Ordinary paired eval | Agent request field | Meaning |
11
+ | --- | --- | --- |
12
+ | Target path | `candidateSkill` | Candidate complete Skill in installed mode |
13
+ | `--baseline-skill <path>` | `baselineSkill: "./skill-old"` | Previous complete Skill, same frontmatter name and different content |
14
+ | Omit `--baseline-skill` with `--mode installed` | `baselineSkill: null` | No Skill installed by the harness in baseline; complete candidate only in treatment |
15
+ | `--bench <path>` / repeated `--task <id>` | `bench` / `taskIds` | Frozen bench and selected cases in bench order |
16
+ | `--trials <n>` / `--max-calls <n>` | `trials` / `maxCalls` | Fixed repetitions and call ceiling; reject undersized ceilings before calls |
17
+ | `--pair-order baseline-first\|balanced` | `pairOrder` | Default `baseline-first`; `balanced` alternates first arm by task/trial |
18
+ | `--executor-timeout-seconds <n>` | `executorTimeoutSeconds` | Integer 1–3600, deadline per executor invocation |
19
+ | `--spending-budget <file>` | `spendingBudget` | Optional five absolute batch stop lines |
20
+ | `--runs-root <dir>` / `--run-group <fresh-name>` | `runsRoot` / `runGroup` | Output parent and fresh group; existing groups cannot be overwritten |
21
+
22
+ Requests always use installed workspace delivery without judges. `baselineSkill`
23
+ is **required**: explicit null selects no-Skill; a missing, empty or invalid value
24
+ is an error. Existing string paths still select revision comparison. The two arms
25
+ receive identical natural task prompts. “No Skill” describes harness delivery;
26
+ inherited global Skills, rules and plugins still apply. Check the agent profile
27
+ before interpreting installation benefit. Ordinary inject, rules and MCP plans
28
+ retain their existing delivery semantics.
29
+
30
+ CLI agents and requests default to 600 seconds; API execution preserves its
31
+ 120-second default. New paired plans and native records state the effective
32
+ deadline, including defaults. An explicit deadline is applied to the API too.
33
+ The effective deadline also applies to an enabled ordinary-eval judge; each
34
+ invocation has its own timer. Historical records
35
+ without deadline metadata remain unrecorded. Changed timeouts need a fresh
36
+ preview/batch; earlier timeouts and partial usage remain evidence.
37
+
38
+ ## Preview and confirm
39
+
40
+ Save this illustrative `budget.json`; choose actual limits for your authorized
41
+ task before running. These numbers are stop lines, not estimated usage or prices:
42
+
43
+ ```json
44
+ {
45
+ "input": 100000,
46
+ "cachedInput": 100000,
47
+ "uncachedInput": 100000,
48
+ "output": 10000,
49
+ "durationSeconds": 1200
50
+ }
51
+ ```
52
+
53
+ Preview a two-call no-Skill comparison without verifiers, model calls or writes:
54
+
55
+ ```bash
56
+ node dist/cli.js eval ./skill-new --mode installed --bench ./my-bench --task my-task --agent codex --trials 1 --max-calls 2 --pair-order balanced --executor-timeout-seconds 300 --spending-budget ./budget.json --runs-root ./runs --run-group no-skill-001 --json --dry-run
57
+ ```
58
+
59
+ Read `plan.sha256`, then execute the same command with `--dry-run` removed and
60
+ `--plan-sha <plan.sha256>` added **only with spending authorization**. Ordinary
61
+ JSON execution requires the hash and explicit `--run-group`. Human previews
62
+ print the same hash and support the same confirmation, while existing human
63
+ execution without `--json` may still run without a hash. Dry run never executes.
64
+ Agent requests retain their required preview-hash confirmation.
65
+
66
+ `plan.evaluation.agentPreflight` reports the [offline Agent environment checks](eval-agent-preflight.md).
67
+ Preview can return `planned` with a `blocked` environment; live execution rejects
68
+ known failures before case probes or calls. CLI resolution and check results are
69
+ bound into the plan hash and rechecked after case probes. Login remains unknown.
70
+
71
+ `plan.evaluation` has the same effective settings for equivalent installed
72
+ comparisons through either entry point. Request plans additionally bind request
73
+ bytes, purpose and acceptance policy, so their hashes differ from ordinary plans.
74
+ Use the hash from the same entry point; changes to settings, input fingerprints,
75
+ executor identity or compiled implementation invalidate confirmation. Preview
76
+ declares offline case preflight and input snapshots pending; execution performs
77
+ both before dispatch.
78
+
79
+ Version 0.12.0 checks output layout during preview and again at session
80
+ setup. Keep `--runs-root` outside the bench, candidate/baseline Skill or config
81
+ experiment, compiled runtime and `.git` metadata. A directory alias cannot bypass
82
+ this check. Use sibling input/output directories; invalid layouts fail before
83
+ verifiers, model calls or run creation. Git-root benches are supported: bench
84
+ hashing and sealed snapshots both exclude Git metadata while retaining task bytes.
85
+
86
+ Budget files are parsed into fixed numeric limits before planning. Those values,
87
+ rather than the source file's path/format, are bound to the hash and sealed in
88
+ the native plan. Editing the file before a new invocation changes the plan when
89
+ the limits change; editing it during a run cannot adjust the running limits.
90
+ Reports, export and offline replay need no original budget file. Request files,
91
+ including inline limits/policy, retain their before/after-call byte guards.
92
+
93
+ ## Baseline calibration and trigger plans
94
+
95
+ These source commands also support repeated `--task`, `--max-calls`,
96
+ `--spending-budget`, `--executor-timeout-seconds`, `--runs-root`, `--run-group`,
97
+ `--json --dry-run` and exact `--plan-sha` confirmation:
98
+
99
+ ```bash
100
+ node dist/cli.js bench check ./my-bench --calibrate --agent codex --task my-task --input workspace --trials 1 --max-calls 1 --spending-budget ./budget.json --executor-timeout-seconds 300 --runs-root ./runs --run-group calibration-001 --json --dry-run
101
+ node dist/cli.js eval ./my-skill --mode trigger --bench ./my-bench --agent codex --task positive-task --task negative-task --trials 1 --max-calls 2 --spending-budget ./budget.json --executor-timeout-seconds 300 --runs-root ./runs --run-group trigger-001 --json --dry-run
102
+ ```
103
+
104
+ Use actual registered IDs. Calibration defaults to two trials per task and runs
105
+ one no-Skill baseline arm. Trigger defaults to five trials, presents on-disk
106
+ files without `--input`, and runs only selected tasks with a `shouldTrigger`
107
+ label. Unlabeled tasks are skipped; a plan with no eligible calls fails.
108
+ Include negative controls to measure false-trigger rate. Neither mode accepts
109
+ `--pair-order`; trigger does not use a judge or a revision baseline.
110
+
111
+ Calibration preview returns `kind: "skillfit.calibration-result"`, `status:
112
+ "planned"`, with a `skillfit.calibration-plan` in `plan`. Confirm its
113
+ `plan.planSha256`. Trigger uses the ordinary `skillfit.eval-result` preview and
114
+ `plan.sha256`; `plan.evaluation.mode` is `trigger`. Both JSON execution paths
115
+ require an explicit `--run-group` from the preview. Keep every effective setting
116
+ the same, remove `--dry-run` and add the correct `--plan-sha`. A generated plan
117
+ does not authorize spending or prove a ready environment.
118
+
119
+ Calibration preview executes no verifier/oracle. Live calibration performs the
120
+ offline case gates before native setup or calls; any hard failure blocks it.
121
+ Missing oracle/coverage evidence is `UNKNOWN`, separate from nonblocking `WARN`
122
+ items such as large fixtures. Its Agent environment is checked before and after
123
+ the probes, just as in eval. Checks and the reviewed plan are sealed; stopped
124
+ calibration keeps every declared task, including tasks not reached.
125
+
126
+ Read either mode through `report eval <run-dir> [--json]`. Calibration reports
127
+ baseline difficulty; trigger reports recall, false-trigger rate and detection
128
+ coverage. New sealed native runs support `--replay` and
129
+ `report eval <run-dir> --export <fresh-dir>` without another model call. Replay
130
+ regrades saved deliveries; it does not obtain new trigger observations or prove
131
+ independent validation. Single-arm reports reject paired `--policy`/`--records`
132
+ overrides and never authorize adoption. See [report types](evaluation-reports.md)
133
+ and [portable packages](replay-packages.md) for historical/runtime limits.
134
+
135
+ ## Stop rules and results
136
+
137
+ All five budget fields are required when supplied. Token lines are positive safe
138
+ integers; seconds are positive finite numbers. Limits count all invoked primary
139
+ agent and enabled judge spending, including failures and excluded partners. Reaching any line stops
140
+ the next call; one in-flight call can overshoot. Missing/partial/invalid final
141
+ usage or an execution/guard error stops further calls and retains known/unknown
142
+ spending. There are no retries, replacements or automatic expansion. The same
143
+ guard covers calibration and trigger invocations. New judge receipts preserve
144
+ both scoring orders and their usage; reports separate primary Agent, judge and
145
+ combined `invocationCosts`. Historical missing judge costs remain unknown, never
146
+ zero. An enabled API judge without credentials is an error before spending;
147
+ login validity still cannot be confirmed offline. See [cost accounting](eval-costs.md).
148
+
149
+ Version 0.12.0 adds a preflight `USAGE_CAPABILITY` check: a CLI adapter
150
+ known to lack one of the required token counters cannot start a budgeted batch,
151
+ whether it is the primary executor, a judge or baseline calibration. Normal Codex
152
+ eval/judge commands use the existing matrix JSON surface to retain these counters.
153
+ API/injected coverage remains unknown until a response; the runtime guards remain
154
+ necessary and never replace missing cache evidence with zero.
155
+
156
+ Ordinary `--json` returns the same `skillfit.eval-result` envelope and English
157
+ error reasons as requests, with diagnostics on stderr. Ordinary native runs seal
158
+ the reviewed plan and audit it against actual parameters; both entries retain
159
+ receipts, complete cost coverage and [portable replay](evaluation-input-snapshots.md).
160
+ JSON validation errors exit 2; stopped runs exit 2, or 130/143 for SIGINT/SIGTERM.
161
+ Plans and stopped prefixes cannot authorize adoption.
162
+
163
+ No-Skill results report improvements, regressions and costs, but retain
164
+ `REVISION_COMPARISON_REQUIRED` and `eligibleForUpgrade: false` under the existing
165
+ revision adoption policy. Ordinary runs also lack predeclared component policy
166
+ binding. Neither entry upgrades a Skill. The [acceptance contract](eval-component.md)
167
+ and [statistical protocol](metrics.md) are unchanged.
@@ -23,7 +23,8 @@ status: "pending"}`; no input archive exists yet. Its policy is part of the
23
23
  approved plan, while actual copy time is recorded only after execution starts.
24
24
 
25
25
  Sealing also applies to sessions used by trigger mode and baseline calibration.
26
- Their existing paired-export restrictions are unchanged. A separate global
26
+ Version 0.11.0 exports/replays their sealed native evidence too; the original
27
+ frozen runtime must support single-arm replay. A separate global
27
28
  configuration installation is never performed by this feature.
28
29
 
29
30
  ## What is saved
@@ -40,10 +41,26 @@ configuration installation is never performed by this feature.
40
41
  The manifest identifies selected tasks as before; archiving the full bench keeps
41
42
  its original content hash and all referenced files available. Empty directories
42
43
  are retained. Executable permission bits are preserved on systems that support
43
- them and checked on POSIX. Git metadata and the current run output are excluded;
44
- symbolic links and unsupported file types are rejected. The archived bench must
45
- load with the declared content hash before calls start. Keep Git metadata and
46
- run outputs out of the task's input tree rather than relying on unrecorded files.
44
+ them and checked on POSIX. Git metadata is excluded; symbolic links and
45
+ unsupported file types are rejected. The archived bench must load with the
46
+ declared content hash before calls start.
47
+
48
+ Version 0.12.0 uses the same Git-metadata exclusion for bench content
49
+ hashes and input snapshots, including `.git` directories and worktree metadata
50
+ files. A bench may be the root of its own Git repository. Git bookkeeping changes
51
+ do not alter its task fingerprint; real prompt, fixture and verifier changes do.
52
+ Task definitions cannot reference files inside `.git`. Git-free bench hashes and
53
+ historical receipts are unchanged; portable packages retain their original runtime.
54
+
55
+ Previews and live setup reject output inside the bench, candidate/baseline Skill,
56
+ configuration experiment or compiled runtime, and inside Git metadata. Existing
57
+ directory aliases and not-yet-created descendants are resolved before checking.
58
+ Use a sibling output parent, for example `--bench ./my-bench --runs-root ./runs`,
59
+ rather than `--bench ./my-bench --runs-root ./my-bench/runs`. This prevents later
60
+ cohorts from archiving previous outputs as case inputs. A rejected preview runs
61
+ no verifier/oracle, creates no run directory and calls no executor. Existing old
62
+ outputs are preserved; move or recover inputs explicitly rather than deleting
63
+ them automatically. Recheck and preview any moved bench before running.
47
64
 
48
65
  Only the listed project inputs are copied. Global configuration and globally
49
66
  installed Skills keep their existing fingerprints/guards; their private contents
@@ -9,7 +9,12 @@ handling, not the statistical or adoption protocol.
9
9
  Press **Ctrl+C** once during a live evaluation. The same path handles `SIGTERM`.
10
10
  It covers paired inject/installed evaluations, JSON request execution, trigger
11
11
  evaluations and live `bench check --calibrate`. It also stops an active harness
12
- verifier or judge. Previews and read-only reports install no interrupt handlers.
12
+ verifier or judge. Read-only JSON previews and reports start no executor.
13
+
14
+ Version 0.11.0 extends cancellation across standalone `bench check`,
15
+ including its verifier and reference-repair descendants. Disposable probe copies
16
+ are removed. Nested checks reuse the enclosing evaluation's cancellation context
17
+ and restore handlers when finished; they do not swallow the interruption.
13
18
 
14
19
  The source also cancels [offline case preflight](eval-case-preflight.md) before
15
20
  dispatch. Its verifier/oracle trees stop with exit 130/143 and zero model calls;
@@ -45,14 +50,21 @@ The native run directory keeps:
45
50
  - `_artifacts.json`: inventory and hashes of retained files, including interruption
46
51
  metadata. A stopped prefix does not acquire a completed efficacy verdict.
47
52
 
48
- An interrupted judge additionally keeps `_interrupted-judge-<call>.json` with its
49
- available output/usage or null when unavailable. Separate judge spending remains
50
- outside the primary-agent cost totals; this record does not make that bill complete.
51
- Trigger receipts retain interrupted output/tokens with partial/unknown status;
52
- the existing paired JSON assessment/export contract is not extended to trigger
53
- or judge runs by this fix.
53
+ Version 0.11.0 records each judge call separately and shows primary
54
+ Agent, judge and combined invocation costs; missing/partial usage remains
55
+ incomplete. An interrupted judge also retains the existing
56
+ `_interrupted-judge-<call>.json` record. Neither a receipt nor a known token total
57
+ proves an exact provider bill. See [cost accounting](eval-costs.md).
58
+
59
+ The same source seals stopped calibration `_calibration.json` records with the
60
+ whole declared task set, including zero-count tasks not reached. Trigger receipts
61
+ retain interrupted output/tokens with partial/unknown status. Supported sealed
62
+ paired, calibration and trigger runs, including new judge receipts, can be read,
63
+ audited and exported with the shared report entry point. Historical summaries
64
+ without native evidence remain unverified; missing original runtime support
65
+ cannot be silently supplied by substituting a new implementation.
54
66
 
55
- Inspect a paired stopped run without another agent call:
67
+ Inspect a stopped native run without another agent call:
56
68
 
57
69
  ```bash
58
70
  node dist/cli.js report eval ./runs/my-run --json
@@ -75,11 +87,11 @@ processes participate in cancellation; unrelated services are outside that contr
75
87
 
76
88
  ```bash
77
89
  npm test
78
- node --test dist/commands/eval-interruption.test.js dist/harness/interruption.test.js
90
+ node --test dist/commands/eval-interruption.test.js dist/commands/bench-calibration.test.js dist/harness/interruption.test.js
79
91
  ```
80
92
 
81
93
  The tests inject fake Node CLI/process trees and a fake fetch implementation. They
82
- check interrupted primary/verifier/judge work, trigger/calibration/request execution,
94
+ check standalone verifier/oracle descendants and interrupted primary/verifier/judge work, trigger/calibration/request execution,
83
95
  repeated signals, between-call interruption, partial and unknown costs, sealed
84
96
  inventories, stopped-package replay, exit codes and handler/context cleanup.
85
97
  POSIX integration tests deliver real OS signals to the harness. Windows tests emit
@@ -4,6 +4,11 @@ Version 0.10.1 uses the same saved-evidence assessment for Markdown and JSON.
4
4
  Both formats accept a manifest file, native run directory or portable replay
5
5
  package directory. Neither starts an agent or changes the saved run.
6
6
 
7
+ Version 0.11.0 also displays the saved [Agent environment preflight](eval-agent-preflight.md).
8
+ JSON exposes `agentPreflight`; human reports omit its local evidence paths.
9
+ Missing historical metadata stays null. Reading/replaying a report does not
10
+ repeat environment/authentication probes or claim the current machine is ready.
11
+
7
12
  ```bash
8
13
  skillfit report eval ./runs/my-run
9
14
  skillfit report eval ./runs/my-run --json
@@ -11,7 +16,7 @@ skillfit report eval ./runs/my-run/manifest.json
11
16
  skillfit report eval ./exports/my-run --replay
12
17
  ```
13
18
 
14
- `--json` changes the format, not which evidence is checked. `--replay`,
19
+ For paired runs, `--json` changes the format, not which evidence is checked. `--replay`,
15
20
  `--records <run-dir>` and `--policy <policy.json>` work with either format.
16
21
  Replay grades disposable delivery copies using trusted local verifiers; it
17
22
  does not call a model. An overridden policy is post-hoc and cannot authorize
@@ -24,8 +29,9 @@ already pin their run/bench and reject external records/bench overrides.
24
29
  also shows the native audit status, separate acceptance decision, upgrade
25
30
  eligibility and reasons. A statistical quality verdict is not an adoption
26
31
  decision. `automaticUpgrade` remains false.
27
- - A native directory without a final manifest shows `stopped` when a saved
28
- session exists, otherwise `incomplete`. It displays the stop reason when
32
+ - A paired native directory without a final manifest shows retained stopped/
33
+ incomplete spending; the single-arm dispatch below handles calibration and
34
+ trigger sessions separately. It displays the stop reason when
29
35
  available, retained costs, missing/invalid receipt counts and unknown coverage.
30
36
  It does not fabricate a paired quality verdict or overwrite the run.
31
37
  - A standalone historical manifest stays readable. Missing native evidence
@@ -47,3 +53,91 @@ Saved costs stay in their original final/partial/unknown populations. Reports do
47
53
  not replace missing cache counts with zero or estimate unrecorded billing.
48
54
  See [cost accounting](eval-costs.md), [input snapshots](evaluation-input-snapshots.md)
49
55
  and [portable packages](replay-packages.md). Review project data before sharing.
56
+
57
+ ## Calibration and trigger reports (source after npm 0.10.1)
58
+
59
+ Version 0.11.0 recognizes baseline calibration and trigger runs; the immutable
60
+ npm 0.10.1 archive is unchanged.
61
+ Markdown and JSON use the same read-only dispatcher:
62
+
63
+ ```bash
64
+ node dist/cli.js report eval ./runs/calibrate-my-bench
65
+ node dist/cli.js report eval ./runs/calibrate-my-bench/_calibration.json --json
66
+ node dist/cli.js report eval ./runs/trigger-my-skill
67
+ node dist/cli.js report eval ./runs/trigger-my-skill/manifest.json --json
68
+ ```
69
+
70
+ | Saved result | JSON kind (schemaVersion 1) | Output |
71
+ | --- | --- | --- |
72
+ | Paired v4 manifest | `skillfit.eval-result` (unchanged) | Paired quality/cost observations, native audit and separate acceptance policy |
73
+ | Calibration `_calibration.json` | `skillfit.calibration-report` | `evaluationType: "calibration"`, baseline pass rate, task difficulty bands and available baseline receipt usage |
74
+ | Trigger v1 manifest (`mode: "trigger"`) | `skillfit.trigger-report` | `evaluationType: "trigger"`, recall, false-trigger rate, precision, F1, class breakdowns and detection coverage |
75
+
76
+ Calibration directories resolve `_calibration.json`, rather than requiring a
77
+ paired `manifest.json`. Both directories and explicit summary files work;
78
+ renamed standalone calibration summaries are recognized by their v1 shape.
79
+ Ambiguous directories containing both final summary types fail. An unrelated
80
+ schema-v1 file is never accepted as a paired experiment.
81
+
82
+ `status` follows consistent saved experiment/session metadata: `completed`,
83
+ `stopped` or `incomplete`. A summary without recorded session metadata is
84
+ `reported`, with unverified provenance. Missing final summaries are `stopped`
85
+ only when a saved session says stopped; otherwise they are `incomplete`, even
86
+ if a sidecar claims completion. Their `summary` is null: no final metrics are
87
+ invented. Present summaries must have valid counts and trial coverage; conflicts
88
+ with the saved session or native plan fail rather than being silently reclassified.
89
+
90
+ Calibration `summary.tasks` includes `passes`, `completed`, ungraded `errors`,
91
+ `passRate` and `difficulty`. Completed runs exclude execution errors. Bands match
92
+ the existing calibration protocol: pass rate >=90% is `saturated`, <=10% is
93
+ `floor`, otherwise `discriminative`; zero completed runs are `unmeasured` with
94
+ null pass rate. `summary.metrics` retains totals and measured/discriminative task
95
+ counts. Native `usage` shows available baseline receipt totals with
96
+ final/partial/unknown coverage, including unknown missing receipts; it is null
97
+ when no native invocation ledger is available. No per-success A/B change or bill
98
+ is inferred. Difficulty is not a measure of Skill benefit.
99
+
100
+ Trigger metrics are recomputed from retained task counts using the existing
101
+ formulas; provided aggregate fields must agree. Unknown detections and execution
102
+ errors stay separate and outside rate denominators. Zero denominators remain
103
+ null (`n/a`); recall, false-trigger rate and precision use Wilson 95% intervals.
104
+ F1 has no invented interval. Available `triggerClass` breakdowns, competition
105
+ mode, source warnings and the distinction between a `SKILL.md` read and a Skill
106
+ invocation stay visible. Historical input/output token aggregates are not a
107
+ complete cost population; absent cache/final-usage evidence remains unknown.
108
+
109
+ Standalone historical single-arm summaries return `evidence.verified: false`
110
+ with scope `saved-summary-only`. Version 0.11.0 can audit sealed native single-arm
111
+ receipts with scope `single-arm-native`; `evidence.verified` reports the actual
112
+ inventory/ledger/input/receipt check result. Both return `acceptance.decision: "inconclusive"`,
113
+ `eligibleForUpgrade: false`, `automaticUpgrade: false`. Parsing a consistent
114
+ summary is not a paired native audit, independent validation or adoption decision.
115
+ Verifying single-arm evidence does not establish an A/B effect. They do not enter the paired efficacy protocol. The existing request-based
116
+ revision component and paired report JSON contract remain unchanged.
117
+
118
+ `--policy` and external `--records` remain paired-report options. Sealed native
119
+ single-arm reports now accept `--replay` and an optional matching `--bench` only
120
+ with replay. Regrading uses disposable saved deliveries. Trigger discovery is
121
+ recomputed from retained observations, not a new Agent invocation. Changed
122
+ deliveries, fingerprints and verdicts fail verification. Calibration/trigger
123
+ exports retain the original compiled implementation and reject older runtimes
124
+ without single-arm replay support; see [portable packages](replay-packages.md).
125
+ Successful rendering exits 0; invalid human inputs exit 1, while invalid JSON
126
+ reports use the existing error envelope and exit 2. Saved input files are never
127
+ rewritten, and reading any of these reports makes zero model or agent CLI calls.
128
+
129
+ ## Judge spending and stop reasons (source after npm 0.10.1)
130
+
131
+ Paired Markdown and JSON additionally show `invocationCosts`: separate primary,
132
+ judge and combined populations. The original Agent A/B quality and cost tables
133
+ remain unchanged. Successful, failed and interrupted judge orders have independent
134
+ receipts and final/partial/unknown usage. Missing historical judge usage stays
135
+ unknown. See [all executor roles](eval-costs.md#all-executor-roles-source-after-npm-0101).
136
+
137
+ Budget stops retain `session.stopCode` and safe reason text. Single-arm reports
138
+ show the same frozen `spendingBudget` limits/latest state as paired reports.
139
+ The native audit and any upgrade eligibility are separate decisions; all
140
+ single-arm, stopped and insufficient-evidence results remain ineligible.
141
+ The [single-arm schema](schemas/single-arm-report.schema.json) and
142
+ [calibration command schema](schemas/calibration-result.schema.json) describe
143
+ their machine envelopes.
@@ -9,6 +9,13 @@ See [interruption and retained records](evaluation-interruption.md). Forced
9
9
  termination/power loss may prevent sealing. The same release enforces offline
10
10
  case gates and seals project input copies before dispatch. See [sealed inputs](evaluation-input-snapshots.md).
11
11
 
12
+ Version 0.11.0 shares reviewed plans between ordinary paired eval and
13
+ Agent requests, including [budget/deadline/output controls](eval-planning.md).
14
+ Use `--json --dry-run` for a machine-readable ordinary plan. JSON execution
15
+ requires its hash and an explicit fresh group. Request `baselineSkill: null`
16
+ matches ordinary installed delivery without `--baseline-skill`; both keep
17
+ inherited configuration and cannot authorize revision adoption.
18
+
12
19
  1. Prepare independent tasks from issue requirements and pinned bug/fix revisions. Keep the fix, grader and oracle outside trial workspaces. Run `bench check` offline and review its NOP, oracle and counterexample gates. The [lru-cache replay](../benches/contrib/oss-lru-cache/README.md) has three independently sourced failures; difficulty is initially unknown.
13
20
  2. Dry-run baseline calibration with the input mode you will later evaluate. For the three-task replay: `skillfit bench check benches/contrib/oss-lru-cache --calibrate --agent codex --input workspace --trials 2 --max-calls 6 --dry-run`. Run without `--dry-run` only after reviewing the fixed plan. Keep saturated tasks as regression controls; repair broken graders/environments before interpreting a floor.
14
21
  3. Declare a fresh paired run with the full Skill installed only in treatment: `skillfit eval <skill-dir> --mode installed --bench <bench-dir> --agent codex --trials 5 --max-calls <ceiling> --dry-run`. The declared count is tasks × trials × two arms, plus two judge calls per pair when enabled. The default ceiling equals the declared count. A lower ceiling rejects the entire plan; it never truncates tasks, retries errors, or adds replacement samples.