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
@@ -13,9 +13,9 @@ CLI coding runs can add `--input workspace` to work from files on disk without a
13
13
  inline repository; use the same option for baseline calibration. Snapshot input
14
14
  remains the compatible default.
15
15
 
16
- For a new code-editing case, a source build supports `bench init my-bench --kind command`.
16
+ For a new code-editing case, use `bench init my-bench --kind command`.
17
17
  It creates a synthetic teaching fixture, independent verifier and reference
18
- repair; npm 0.9.1 does not yet include this template. Follow the
18
+ repair; this template is included in npm 0.10.0 and newer. Follow the
19
19
  [starter walkthrough](bench-authoring.md#choose-a-starter), replace it with your
20
20
  real task, and preview `--trials 1 --max-calls 2` before deciding to spend.
21
21
 
@@ -57,12 +57,41 @@ a controlled agent profile for the experiment and record its relevant global con
57
57
  does not automatically remove the user's configuration. `doctor` and `report` are read-only aids,
58
58
  but neither proves that an agent actually ignored a globally installed Skill during an eval.
59
59
 
60
+ Version 0.11.0 makes [Agent environment checks](eval-agent-preflight.md)
61
+ part of eval/calibration preview and the live gate. CLI absence, incompatible matrix capabilities
62
+ and global same-name Skills are explicit failures; login stays unknown without
63
+ network/authentication probes. Inspect the nested environment status even when a
64
+ dry run successfully generated a plan. Reports retain the original checks.
65
+
60
66
  For Codex CLI, skillfit explicitly starts both paired and trigger trials with
61
67
  `--sandbox workspace-write`. The agent can edit its disposable trial directory, which command-graded
62
68
  tasks require. Check any extra writable roots in your Codex configuration before a run. Codex still
63
69
  takes its model, reasoning level, and other settings from the active CLI configuration. Record those
64
70
  settings alongside the manifest when comparing runs, and use the same configuration for both arms.
65
71
 
72
+ Version 0.11.0 supports an ordinary `--json --dry-run` plan and shared
73
+ budget, deadline, pair-order and output-group settings. For complete Skill
74
+ delivery use `--mode installed`; omitting `--baseline-skill` installs the Skill
75
+ only in treatment, matching an Agent request's explicit `baselineSkill: null`.
76
+ Use an explicit fresh `--run-group`, inspect `plan.sha256`, then pass that hash
77
+ with `--plan-sha` to execute JSON plans. See the [two-call budget example and
78
+ stop rules](eval-planning.md). A preview does not authorize spending, and a
79
+ no-Skill comparison cannot authorize revision adoption.
80
+
81
+ The same source supports a bounded baseline calibration before a paired study.
82
+ It measures task difficulty, not Skill benefit. For example, preview one selected
83
+ task with one call, without running the verifier, oracle or agent:
84
+
85
+ ```bash
86
+ node dist/cli.js bench check <bench-dir> --calibrate --agent codex --task <task-id> --input workspace --trials 1 --max-calls 1 --run-group calibration-001 --json --dry-run
87
+ ```
88
+
89
+ Inspect `plan.agentPreflight`, then confirm `plan.planSha256` with `--plan-sha`
90
+ and the same settings/group only after spending is authorized. Live calibration
91
+ runs the offline case gates first: hard failures block, unknown winnability and
92
+ warnings remain distinct. `--spending-budget` and
93
+ `--executor-timeout-seconds` also apply; see [shared planning](eval-planning.md).
94
+
66
95
  ## 3. Run, inspect, and share
67
96
 
68
97
  ```bash
@@ -74,7 +103,10 @@ The first command creates a new directory under `runs/` and prints its `Manifest
74
103
  exact path for the second command; the report command is read-only. Each task and trial has an
75
104
  `_output.md`, `_verifier.txt`, and `_result.json` beside the summary manifest. Keep the manifest and
76
105
  the pinned target and bench hashes so another person can inspect the same result. Review those files
77
- for private paths or content before sharing.
106
+ for private paths or content before sharing. In 0.10.1, the report also accepts
107
+ the native run directory or a portable package directory, with the same audit
108
+ and acceptance result as `--json`. Stopped runs retain their available costs and
109
+ stay ineligible. See [report formats](evaluation-reports.md).
78
110
 
79
111
  Read the **errors** first: a pair with an executor or verifier error was not graded, and neither arm
80
112
  gets a failure for it. Then inspect baseline ceiling/floor warnings, the number and direction of
@@ -86,8 +118,26 @@ that into a broad efficacy claim. The [metrics protocol](metrics.md) defines the
86
118
  When the paired result is useful, run `--mode trigger` separately to ask whether the agent would
87
119
  load the Skill on its own. Trigger mode has one arm and uses 5 trials per task by default. It does
88
120
  not yet reproduce competition from the user's whole installed Skill set, so its recall is an
89
- optimistic estimate. Share the paired and trigger manifests separately; `report eval` currently
90
- renders paired schema-v4 manifests only.
121
+ optimistic estimate. Share paired and trigger results separately. Source after npm
122
+ 0.10.1 reads both through `report eval`, with distinct JSON kinds and metrics;
123
+ calibration directories or `_calibration.json` also work. See [report types](evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
124
+ Single-arm reports do not enter the paired acceptance policy or authorize upgrades.
125
+
126
+ In that source, trigger also supports `--json --dry-run`, repeated `--task`,
127
+ spending lines and a per-call deadline. Confirm its ordinary `plan.sha256` and
128
+ explicit fresh `--run-group` for JSON execution. Only selected labeled tasks
129
+ count toward calls; retain negative controls. Trigger already presents files on
130
+ disk, so omit `--input`. Calibration/trigger native runs can be audited through
131
+ `report eval`, replayed with `--replay` and exported to a fresh directory. This
132
+ reuses saved observations and trusted verifier code; it does not make the study
133
+ independent or query an agent again. Historical summaries or runtimes without
134
+ the required evidence/replay support cannot be upgraded by rendering them.
135
+
136
+ If you enable a judge for a paired inject experiment, the source records both
137
+ judge orders and separate Agent/judge/total invocation costs. Its calls consume
138
+ the same whole-batch spending lines. An explicitly enabled API judge with
139
+ missing credentials fails before calls; login validity remains unknown offline.
140
+ Read [cost coverage](eval-costs.md) before treating a known total as complete.
91
141
 
92
142
  New trigger manifests record both the injectable-text hash and a separate full installed-file hash,
93
143
  including scripts and binary resources. Keep the Skill directory unchanged while the experiment runs;
@@ -7,10 +7,12 @@ create a case, verify its acceptance checks, preview a small budget, then inspec
7
7
  outcomes and complete spending. Bundled benches teach the format. Repeatedly
8
8
  optimizing one external debugging Skill is not the product roadmap.
9
9
 
10
- The previous published CLI is 0.9.1, with a [verified registry install](releases/0.9.1-verification.json).
11
- The user authorized the case workflow and 0.10.0 publication on October 16;
12
- [release preparation](releases/0.10.0.md) is in progress. No live model calls
13
- are authorized by this delivery.
10
+ The 0.10.1 release has a [verified registry installation](releases/0.10.1-verification.json)
11
+ and [installed-feature replay](releases/0.10.1-feature-smoke.json). The user-authorized
12
+ October 16 case workflow is complete. The October 17 source work extends the
13
+ basic workflow across calibration, trigger and judge runs; publication and final
14
+ verification are tracked separately. No live model calls were added or authorized
15
+ for this delivery.
14
16
 
15
17
  ## Available foundations
16
18
 
@@ -30,28 +32,63 @@ of the CLI's evidence gates, not a universal Skill benchmark.
30
32
 
31
33
  ## Delivery order
32
34
 
33
- Work is sequential. Dates are work records, not timers or unattended execution.
35
+ Independent implementation and verification work may run in parallel. Dates are
36
+ work records, not timers or unattended execution.
34
37
  The code-editing starter is merged in PR #24 and JSON checks in PR #25.
35
38
  The October 16 delivery completes task selection, case management and portable
36
- exports, with publication tracked separately from source and CI completion.
39
+ exports, with publication tracked separately from source and CI completion. PR #26 passed 600 offline tests and Linux/macOS/Windows CI.
37
40
 
38
41
  | Priority / order | Work | Acceptance |
39
42
  | --- | --- | --- |
40
43
  | 0 — complete, PR #23 merged | Commit existing work, update both READMEs and mutable guides, preserve dated evidence, push and review CI | [PR #23](https://github.com/remote-controlled-man/skillfit/pull/23): 556 offline tests and Linux/macOS/Windows CI pass; evidence replay adds no live calls |
41
44
  | 1 — complete in source, PR #24 merged | `bench init --kind command` alongside the existing text-output starter, with a broken fixture, reference repair and behavioral verifier | Dry run writes nothing; original fails, oracle passes, equivalent repair passes, modified protected tests fail; CLI/docs and three-OS CI pass in PR #24 |
42
45
  | 2 — complete in source, PR #25 merged | `bench check --json`: stable gate codes, task IDs, locations, remediation and verifier evidence; [contract and schema](bench-check-json.md) | JSON-only stdout; exit 0/1/2 distinguish completed checks from errors; calibration rejected before calls; 585 offline tests and Linux/macOS/Windows CI pass in PR #25 |
43
- | 3 — implemented, final validation pending | Explicit task selection for preview and eval, preserving the selected IDs and costs in the frozen plan and report | Unknown/duplicate selections fail before calls; preview counts only selected cases; small samples cannot authorize adoption |
44
-
45
- | 4 — implemented, final validation pending | `bench list/show/edit/remove` with machine output | Preview by default; apply with backup/verification; preserve files and provenance; reject last-task removal |
46
- | 5 — implemented, final validation pending | `report eval --export` portable directory | Exact original receipts and matching inputs; move/delete-original replay; missing/changed inputs reject; stopped costs stay incomplete |
47
- | 6 — authorized, pending publication | Publish 0.10.0 through existing manual OIDC workflow | Three-OS CI, exact-archive dry run, one upload, registry integrity and isolated feature smoke |
46
+ | 3 — complete, PR #26 merged | Explicit task selection for preview and eval, preserving the selected IDs and costs in the frozen plan and report | Unknown/duplicate selections fail before calls; preview counts only selected cases; small samples cannot authorize adoption |
47
+ | 4 — complete, PR #26 merged | `bench list/show/edit/remove` with machine output | Preview by default; apply with backup/verification; preserve files and provenance; reject last-task removal |
48
+ | 5 — complete, PR #26 merged | `report eval --export` portable directory | Exact original receipts and matching inputs; move/delete-original replay; missing/changed inputs reject; stopped costs stay incomplete |
49
+ | 6 — complete, 0.10.0 verified | Publish 0.10.0 through existing manual OIDC workflow | 600 offline tests and three-OS CI pass; preview archive matches the one upload; 2,609 installed files and eleven feature checks pass; registry signature/attestation verified |
48
50
 
49
51
  Items 2–5 address basic usability gaps, not missing statistical methods.
50
52
  Inspect existing APIs before implementation and avoid duplicating request preview,
51
53
  report export, failure freezing or existing budget controls.
52
54
 
55
+ ## October 17 source foundations (after npm 0.10.1)
56
+
57
+ | User need | Source behavior | Boundary |
58
+ | --- | --- | --- |
59
+ | Avoid paying for a broken calibration case | Hard offline gates and Agent environment checks before live calibration; recheck input/environment changes | Warnings and unknown evidence remain separate; authentication is unknown offline |
60
+ | Stop an independent case check | Ctrl+C/SIGTERM terminate verifier/oracle descendants and clean disposable copies | No artificial completed check or native run is created before dispatch |
61
+ | Use the same controls across modes | Calibration and trigger JSON previews/confirmation, task selection, call/spending limits and executor deadline | Calibration uses `plan.planSha256`; eval uses `plan.sha256`; neither single-arm mode proves paired benefit |
62
+ | Account for enabled judges | Per-invocation judge receipts and Agent/judge/combined costs; shared budget stops; missing API credentials fail explicitly | Historical missing usage remains unknown; no exact bill is inferred |
63
+ | Take supported results to another machine | Shared native audit, saved-delivery replay and portable export for calibration, trigger and new judge evidence | No new model calls/detections; historical missing receipts or runtime support cannot be invented |
64
+
65
+ See [planning](eval-planning.md), [interruption](evaluation-interruption.md),
66
+ [cost accounting](eval-costs.md), [report types](evaluation-reports.md) and
67
+ [portable packages](replay-packages.md). These are source features until a new
68
+ release is published and its installed package is checked. The statistical
69
+ protocol, dated evidence and automatic-upgrade prohibition are unchanged.
70
+
53
71
  ## Later decisions
54
72
 
73
+ The 0.10.1 release includes interruption cleanup, offline case preflight, sealed
74
+ inputs, API cache counts and shared paired report inputs. Source after that release
75
+ also reads calibration and trigger summaries through the public report dispatcher,
76
+ with their correct states/metrics and separate descriptive JSON kinds. See
77
+ [report types](evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
78
+ This reporting correction adds no live calls or npm publication.
79
+
80
+ The same source line now shares ordinary/Agent paired plans, budget stop lines
81
+ and executor deadlines, with ordinary JSON preview/confirmation and explicit
82
+ no-Skill request baselines. [Shared planning](eval-planning.md) documents defaults,
83
+ frozen limits and unchanged adoption restrictions. Version 0.11.0 includes
84
+ these additions, with registry delivery tracked in its release record.
85
+
86
+ Source eval also performs [offline Agent environment preflight](eval-agent-preflight.md)
87
+ in preview and before dispatch: CLI availability, matrix compatibility, existing
88
+ same-name global Skill conflicts and unknown offline authentication. Checks are
89
+ sealed and preserved by reporting/replay without a new machine probe. This
90
+ source addition makes no live calls and is not yet in npm 0.10.1.
91
+
55
92
  - Improve error messages based on actual failed case-authoring attempts.
56
93
  - Verify Claude Code trigger capture when working authentication is available.
57
94
  - Add Cursor, Gemini CLI or OpenCode only with verified official paths and
package/docs/metrics.md CHANGED
@@ -8,6 +8,15 @@ Insufficient, stopped, synthetic or unverified evidence cannot authorize adoptio
8
8
  the component never upgrades a Skill. Complete cost coverage is separate from
9
9
  quality significance. All formulas and legacy manifest interpretations below remain unchanged.
10
10
 
11
+ Operational Agent preflight (version 0.11.0): eval preview and dispatch
12
+ check executable files, declared matrix capabilities and global same-name Skill
13
+ conflicts, keeping authentication explicitly unknown offline. Known failures
14
+ block before case probes, native run creation and calls. Sealed checks are
15
+ read as historical metadata during reporting/replay, not rerun on today's
16
+ machine. This adds no observations, environment isolation or adoption authority;
17
+ statistics, cost coverage and acceptance thresholds remain unchanged. See
18
+ [Agent environment preflight](eval-agent-preflight.md).
19
+
11
20
  This document defines what skillfit measures and how verdicts are computed. It is the contract that
12
21
  `src/harness/` implements and that bench authors design against. Changes here are deliberate: edit with a
13
22
  reasoned PR, cite sources, and bump the date.
@@ -60,6 +69,14 @@ gates), and the LLM-judge literature cited in §5.
60
69
 
61
70
  ## Unit of analysis
62
71
 
72
+ Operational interruption handling (2026-10-16, included in 0.10.1): SIGINT/SIGTERM
73
+ stops subsequent dispatches and managed active processes, retaining receipts and
74
+ sealing a stopped prefix. Interrupted execution is ungraded; available counters
75
+ remain partial unless the invocation already settled with final usage. Missing
76
+ usage remains unknown. No retries, replacements, new observations, efficacy
77
+ verdict or upgrade eligibility are inferred from cancellation. Existing formulas
78
+ and historical evidence are unchanged. See [the interruption contract](evaluation-interruption.md).
79
+
63
80
  Operational spending guard (2026-10-15, included in 0.10.0): paired evaluations
64
81
  may declare five absolute `spendingBudget` stop lines, pinned in their request,
65
82
  preview and native plan. All invoked agent spending counts, including failures
@@ -68,11 +85,22 @@ may overshoot. Missing/partial/invalid final usage or an execution/guard error
68
85
  stops further calls and retains spent/unknown costs. There is no retry or
69
86
  replacement. A final predeclared call with complete evidence may finish the
70
87
  cohort at a line. Completed audits replay sealed before/after snapshots against
71
- the chronological receipts. Trigger mode and judges are unsupported. This is
88
+ the chronological receipts. Current source extends these stop lines to calibration,
89
+ trigger runs and both judge orders, retaining each role's usage and controlled
90
+ stop codes. This is
72
91
  an operational stop rule, **not** an API hard cap, adoption threshold or new
73
92
  statistical protocol; exclusions, formulas, policies and old records remain
74
93
  unchanged. See [the component contract](eval-component.md#input-and-execution).
75
94
 
95
+ Entry-point alignment (version 0.11.0): ordinary paired eval and Agent
96
+ requests share effective plans, spending limits and primary executor deadlines.
97
+ Ordinary JSON execution requires preview confirmation; ordinary native plans
98
+ also seal and audit the reviewed parameters. Request `baselineSkill: null`
99
+ selects no harness-installed baseline Skill, preserving installation-benefit
100
+ measurements with `REVISION_COMPARISON_REQUIRED` and no revision adoption
101
+ eligibility. Existing path requests, evidence, statistics, exclusions and
102
+ acceptance policies keep their meaning. See [shared planning](eval-planning.md).
103
+
76
104
  Environment correction (2026-10-14): new paired installed runs deliver the same
77
105
  versioned native untracked-file diff helper and usage guidance to both arms.
78
106
  Plans, source snapshots and delivered copies bind its content; mutation stops
@@ -123,8 +151,7 @@ A bench that cannot discriminate must not produce verdicts.
123
151
  - **Floor**: warn when baseline pass rate ≤ 10% (implemented) — the task is too hard or broken, and
124
152
  all-zero arms are equally uninformative.
125
153
  - **Engagement sanity**: if the agent never engaged with the fixture, the executor errored, or the
126
- verifier produced no exit code at all (unspawnable command, killed by its timeout, or output over
127
- the capture limit), the trial is excluded from rates and reported as an error, not a failure
154
+ verifier has a process/infrastructure error, the trial is excluded from rates and reported as an error, not a failure
128
155
  (implemented). Non-engagement means the final message is empty or whitespace. For an output task
129
156
  that message is the deliverable. For a command task the deliverable is the file edit, so an empty
130
157
  message still counts when the disposable worktree differs from the fixture commit. Exclusion is *pairwise*: since
@@ -135,8 +162,26 @@ A bench that cannot discriminate must not produce verdicts.
135
162
  environment errors before their executor starts; inherited disabled reflog is overridden only
136
163
  in the disposable repository. This does not change the paired exclusion or verdict formulas.
137
164
 
165
+ Verifier correction (version 0.11.0): process errors include an
166
+ unspawnable command, no exit code, timeout and output overflow. Recognized
167
+ bench-owned Node uncaught exceptions and explicit `skillfit.verifier-error`
168
+ messages also represent no grade, even with a numeric exit code. The same
169
+ classification blocks offline NOP/oracle probes and rejects an errored replay.
170
+ Candidate-code failures, assertions and ordinary nonzero exits retain normal
171
+ task-failure semantics. Costs and raw diagnostics remain recorded; existing
172
+ pairwise exclusions, statistical formulas and acceptance thresholds are
173
+ unchanged. Historical receipts are not rewritten. See [verifier contract](verifier-contract.md).
174
+
138
175
  ## L1 — trigger quality (activation)
139
176
 
177
+ Operational reporting correction (version 0.11.0): `report eval`
178
+ dispatches paired, baseline-calibration and trigger summaries separately.
179
+ Calibration preserves recorded session status and existing >=90%/<=10%
180
+ difficulty bands. Trigger reports retain the existing count denominators, Wilson
181
+ intervals and unknown/error exclusions. Neither single-arm report enters paired
182
+ quality/adoption gates; no statistical formula or historical receipt changes.
183
+ See [report types](evaluation-reports.md#calibration-and-trigger-reports-source-after-npm-0101).
184
+
140
185
  Paired installed-Skill runs may additionally record `skillReads` counts (`observed`,
141
186
  `unobserved`, `unknown`) per arm, task and overall, with the **surviving graded pair**
142
187
  denominator. These mechanical transcript observations are not trigger recall/precision and do
@@ -319,6 +364,29 @@ reports `consistentTrials` as the bias signal. The κ calibration gate remains o
319
364
 
320
365
  ## Bench composition guidance (for authors and the upcoming scaffolding tooling)
321
366
 
367
+ Operational correction in 0.10.1: the API executor retains explicitly reported
368
+ Chat Completions cache counts, preserving absent/invalid values as unknown.
369
+ Markdown and JSON reports share native audit, cost coverage and acceptance
370
+ assessment for files, run directories and portable packages. These changes do
371
+ not alter cost populations, statistical formulas, acceptance policy or historical
372
+ receipts. See [report inputs and statuses](evaluation-reports.md).
373
+
374
+ Operational gate (included in 0.10.1): live `eval` reuses offline bench
375
+ integrity checks before dispatch, scoped to selected tasks (labelled tasks in
376
+ trigger mode). Hard failures block all agent/judge calls. Missing oracles and
377
+ other unmeasured coverage are explicit `UNKNOWN` diagnostics; observed concerns
378
+ remain `WARN`. Neither blocks calls nor counts as passed evidence. The native
379
+ plan retains probes and separate offline elapsed time; previews mark checks
380
+ pending. This changes no statistical verdict, cost population or adoption rule.
381
+ See [the preflight contract](eval-case-preflight.md).
382
+
383
+ New native sessions also [seal input copies](evaluation-input-snapshots.md) before
384
+ dispatch. The archive's index/fingerprints bind to the frozen plan; offline replay
385
+ uses its bench and portable export uses its Skill/implementation/request copies.
386
+ Local copy time and apparent storage are separate from primary-agent token and
387
+ duration populations. Missing historical copies remain unrecorded; snapshots do
388
+ not create new observations, complete partial usage or change adoption gates.
389
+
322
390
  These are the targets. [bench-authoring.md](bench-authoring.md) is the walkthrough that gets a bench to
323
391
  them, step by step, on one real task.
324
392
 
@@ -28,3 +28,22 @@ green `npm test`, offline bench checks, a fresh-directory portable replay test,
28
28
  remote synchronization, and a verified npm installation. No new Skill efficacy
29
29
  claim or automatic upgrade is part of this work. Published evidence and private
30
30
  lab contents remain untouched.
31
+
32
+ ## Completion record
33
+
34
+ - [PR #26](https://github.com/remote-controlled-man/skillfit/pull/26) merged at
35
+ `9027d8d80a3974c7e352af10e8ede3029c69205b`: all three feature groups, contracts,
36
+ mirrored READMEs, driver Skill and 0.10.0 preparation; 600 offline tests and
37
+ Linux/macOS/Windows CI passed. The merged feature branch was cleaned up.
38
+ - [OIDC preview](https://github.com/remote-controlled-man/skillfit/actions/runs/38777935270)
39
+ and [one real publication](https://github.com/remote-controlled-man/skillfit/actions/runs/38778295053)
40
+ passed. Registry/latest 0.10.0 and every one of 2,609 installed files match the
41
+ previewed archive. The 23 initial unavailable-version reads remain in the
42
+ original CI receipt; no upload was repeated.
43
+ - [Independent installed-feature checks](../releases/0.10.0-feature-smoke.json)
44
+ passed, including moved-package replay after originals are removed and exact
45
+ retained costs. Registry signature/attestation passed. See the
46
+ [release receipt](../releases/0.10.0-verification.json) and executable recipe.
47
+ - Actual model/agent evaluation calls added: zero. Historical study totals,
48
+ unknown final usage, immutable evidence and private lab contents are unchanged.
49
+ Partial/stopped evidence cannot authorize an upgrade; no upgrade is automatic.
@@ -0,0 +1,64 @@
1
+ # Complete the basic evaluation workflow
2
+
3
+ The user authorized completing the basic skillfit workflow, with independent work
4
+ in parallel and later optimization deferred. Real model/Agent evaluations remain
5
+ out of scope. Published evidence and private lab files are preserved.
6
+
7
+ ## Required outcomes
8
+
9
+ 1. Calibration cannot call an executor after an offline case hard failure. Its
10
+ preview and live path check matrix/CLI readiness, preserve offline authentication
11
+ as unknown, bind reviewed inputs, and retain stopped evidence.
12
+ 2. Standalone bench checking and its verifier/oracle process trees cancel on
13
+ SIGINT/SIGTERM. Nested checks reuse the active cancellation scope; cleanup does
14
+ not detach running processes or leave temporary task copies.
15
+ 3. Every judge invocation retains independent output, usage coverage, timing and
16
+ failure receipts. Primary and judge costs are separate and totaled without
17
+ rewriting paired quality statistics. Explicitly requested but unavailable
18
+ judging is an error. Shared stop lines include all invoked roles.
19
+ 4. Paired, trigger and calibration execution expose offline machine-readable
20
+ plans, exact call counts, selectable tasks, configurable executor deadlines,
21
+ spending stop lines and fresh output groups. JSON execution requires matching
22
+ confirmation; no mode silently ignores requested controls.
23
+ 5. All three evaluation types, including paired judging, support native saved
24
+ reports and portable offline exports. Verification checks original receipts,
25
+ sealed inputs and inventories. Replay makes no model calls; single-arm evidence
26
+ never acquires an A/B efficacy claim or upgrade authorization.
27
+ 6. Public help, driver Skill, JSON contracts, bilingual READMEs and mutable guides
28
+ describe the implemented behavior. Historical formats remain readable with
29
+ missing evidence explicitly unknown. No existing evidence is rewritten.
30
+ 7. Deliver the reviewed implementation through commits, remote CI on three
31
+ operating systems, merge/synchronization and the established manual release
32
+ procedure. Verify the published archive and an isolated installation; never
33
+ repeat an accepted upload because registry observation times out.
34
+
35
+ ## Verification
36
+
37
+ Use deterministic fake executors/HTTP implementations and temporary home roots.
38
+ Regression checks must exercise each blocked path at zero executor calls,
39
+ between-call budget stops, failed and interrupted usage, stale plan rejection,
40
+ each native report kind, changed/missing originals, moved portable replay and
41
+ tampered inventories. Run `npm test`, bundled/contributed bench checks and the
42
+ existing first-run CI smoke. Preserve the existing statistical/adoption gates,
43
+ zero runtime dependencies, configuration-write safeguards and fresh-output
44
+ collision protections.
45
+
46
+ Completion requires observable evidence for every outcome above, including the
47
+ registry install. Tests and plan records alone do not establish a complete delivery.
48
+
49
+ ## Implementation and local verification
50
+
51
+ - Completed the runtime, CLI/report/schema and documentation work above. Added
52
+ regression coverage for native and portable replay cancellation, safe budget
53
+ stop codes and retained costs after native inventory damage discovered during
54
+ integration review.
55
+ - `npm test`: 794 tests passed, zero failures/skips. Bundled code-review/debugging
56
+ and contributed offline bench checks passed. Both README code-block sets match;
57
+ local documentation/schema links and the driver Skill were validated.
58
+ - Prepared version 0.11.0 with aligned package/lock versions and no runtime
59
+ dependencies. The local inspected archive passed release validation and the
60
+ [installed-feature recipe](../releases/0.11.0-feature-smoke.mjs): seven feature
61
+ groups, five moved/deleted-original replay packages, eight synthetic executor
62
+ invocations and zero real model/Agent CLI invocations or network attempts.
63
+ - Remote CI, merge, OIDC preview/publication and registry-installed verification
64
+ remain pending. These local results are not a publication or efficacy claim.
@@ -0,0 +1,140 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "verifiedAt": "2026-10-15T17:46:25.105Z",
4
+ "version": "0.10.0",
5
+ "latest": "0.10.0",
6
+ "integrity": "sha512-esrFLFqZymxg0DCOWXBZB9BFXdUfbGK2GizNrng9kSBLvSzI21L7qou4kBypU2cH6f6twv8zFXR7NfftOfiHYg==",
7
+ "sha256": "2a4e2a95fd903078cbf1e29c28aff6e2ce1420ee996e205a24fec72eae9992c3",
8
+ "sourceCommit": "9027d8d80a3974c7e352af10e8ede3029c69205b",
9
+ "installedFilesVerified": 2609,
10
+ "zeroRuntimeDependencies": true,
11
+ "globalInstall": false,
12
+ "modelCalls": 0,
13
+ "smoke": {
14
+ "version": true,
15
+ "help": true,
16
+ "requestPreview": true
17
+ },
18
+ "attempts": [
19
+ {
20
+ "at": "2026-10-15T17:34:48.589Z",
21
+ "versionStatus": 404,
22
+ "latestStatus": 200
23
+ },
24
+ {
25
+ "at": "2026-10-15T17:35:18.752Z",
26
+ "versionStatus": 404,
27
+ "latestStatus": 200
28
+ },
29
+ {
30
+ "at": "2026-10-15T17:35:48.878Z",
31
+ "versionStatus": 404,
32
+ "latestStatus": 200
33
+ },
34
+ {
35
+ "at": "2026-10-15T17:36:19.118Z",
36
+ "versionStatus": 404,
37
+ "latestStatus": 200
38
+ },
39
+ {
40
+ "at": "2026-10-15T17:36:49.239Z",
41
+ "versionStatus": 404,
42
+ "latestStatus": 200
43
+ },
44
+ {
45
+ "at": "2026-10-15T17:37:19.403Z",
46
+ "versionStatus": 404,
47
+ "latestStatus": 200
48
+ },
49
+ {
50
+ "at": "2026-10-15T17:37:49.539Z",
51
+ "versionStatus": 404,
52
+ "latestStatus": 200
53
+ },
54
+ {
55
+ "at": "2026-10-15T17:38:19.803Z",
56
+ "versionStatus": 404,
57
+ "latestStatus": 200
58
+ },
59
+ {
60
+ "at": "2026-10-15T17:38:49.933Z",
61
+ "versionStatus": 404,
62
+ "latestStatus": 200
63
+ },
64
+ {
65
+ "at": "2026-10-15T17:39:20.060Z",
66
+ "versionStatus": 404,
67
+ "latestStatus": 200
68
+ },
69
+ {
70
+ "at": "2026-10-15T17:39:50.270Z",
71
+ "versionStatus": 404,
72
+ "latestStatus": 200
73
+ },
74
+ {
75
+ "at": "2026-10-15T17:40:20.409Z",
76
+ "versionStatus": 404,
77
+ "latestStatus": 200
78
+ },
79
+ {
80
+ "at": "2026-10-15T17:40:50.548Z",
81
+ "versionStatus": 404,
82
+ "latestStatus": 200
83
+ },
84
+ {
85
+ "at": "2026-10-15T17:41:20.680Z",
86
+ "versionStatus": 404,
87
+ "latestStatus": 200
88
+ },
89
+ {
90
+ "at": "2026-10-15T17:41:50.787Z",
91
+ "versionStatus": 404,
92
+ "latestStatus": 200
93
+ },
94
+ {
95
+ "at": "2026-10-15T17:42:21.091Z",
96
+ "versionStatus": 404,
97
+ "latestStatus": 200
98
+ },
99
+ {
100
+ "at": "2026-10-15T17:42:51.244Z",
101
+ "versionStatus": 404,
102
+ "latestStatus": 200
103
+ },
104
+ {
105
+ "at": "2026-10-15T17:43:21.405Z",
106
+ "versionStatus": 404,
107
+ "latestStatus": 200
108
+ },
109
+ {
110
+ "at": "2026-10-15T17:43:51.527Z",
111
+ "versionStatus": 404,
112
+ "latestStatus": 200
113
+ },
114
+ {
115
+ "at": "2026-10-15T17:44:21.717Z",
116
+ "versionStatus": 404,
117
+ "latestStatus": 200
118
+ },
119
+ {
120
+ "at": "2026-10-15T17:44:51.849Z",
121
+ "versionStatus": 404,
122
+ "latestStatus": 200
123
+ },
124
+ {
125
+ "at": "2026-10-15T17:45:22.015Z",
126
+ "versionStatus": 404,
127
+ "latestStatus": 200
128
+ },
129
+ {
130
+ "at": "2026-10-15T17:45:52.140Z",
131
+ "versionStatus": 404,
132
+ "latestStatus": 200
133
+ },
134
+ {
135
+ "at": "2026-10-15T17:46:22.245Z",
136
+ "versionStatus": 200,
137
+ "latestStatus": 200
138
+ }
139
+ ]
140
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "kind": "skillfit.release-case-workflow-smoke",
4
+ "version": "0.10.0",
5
+ "verifiedAt": "2026-10-15T17:47:46.340Z",
6
+ "modelCalls": 0,
7
+ "agentCliCalls": 0,
8
+ "syntheticExecutorCalls": 2,
9
+ "checks": {
10
+ "version": true,
11
+ "help": true,
12
+ "listShow": true,
13
+ "editPlanBackup": true,
14
+ "removePreservesFiles": true,
15
+ "benchCheckJson": true,
16
+ "selectedPreviewNoCalls": true,
17
+ "exportPlan": true,
18
+ "portableChecksums": true,
19
+ "movedPackageReplayWithoutOriginals": true,
20
+ "exactCosts": true
21
+ }
22
+ }
@@ -0,0 +1,62 @@
1
+ import assert from 'node:assert/strict';
2
+ import {spawnSync} from 'node:child_process';
3
+ import {existsSync,mkdirSync,mkdtempSync,readFileSync,renameSync,rmSync,writeFileSync} from 'node:fs';
4
+ import {join,resolve} from 'node:path';
5
+ import {pathToFileURL} from 'node:url';
6
+
7
+ // Argument 1: an extracted or registry-installed skillfit package. Argument 2:
8
+ // a fresh parent directory for synthetic data and the resulting JSON receipt.
9
+ const installed=resolve(process.argv[2]), parent=resolve(process.argv[3]);
10
+ mkdirSync(parent,{recursive:true});
11
+ const root=mkdtempSync(join(parent,'case-smoke-')), bench=join(root,'bench'), skill=join(root,'skill');
12
+ const load=path=>import(pathToFileURL(join(installed,'dist',path)).href);
13
+ const {runBenchInit}=await load('commands/bench.js');
14
+ const {runEval}=await load('commands/eval.js');
15
+ const {exportEvaluation}=await load('commands/eval-export.js');
16
+ const {MockExecutor}=await load('harness/executors/mock.js');
17
+ const cli=(...args)=>{
18
+ const child=spawnSync(process.execPath,[join(installed,'dist/cli.js'),...args],{cwd:root,encoding:'utf8',timeout:60_000,maxBuffer:16*1024*1024});
19
+ assert.equal(child.status,0,child.stderr||child.stdout); return child.stdout;
20
+ };
21
+ const checks={};
22
+ assert.equal(cli('--version').trim(),'0.10.0'); checks.version=true;
23
+ const help=cli('--help'); for(const flag of ['--export','--input-root','bench list','bench remove','--task']) assert.ok(help.includes(flag)); checks.help=true;
24
+ await runBenchInit({dir:bench,yes:true,log:()=>{}});
25
+ const manifestPath=join(bench,'bench.json'), initial=JSON.parse(readFileSync(manifestPath));
26
+ initial.tasks.push({...initial.tasks[0],id:'second-case'}); writeFileSync(manifestPath,JSON.stringify(initial));
27
+ assert.equal(JSON.parse(cli('bench','list',bench,'--json')).tasks.length,2);
28
+ assert.equal(JSON.parse(cli('bench','show',bench,'second-case','--json')).tasks[0].id,'second-case'); checks.listShow=true;
29
+ const before=readFileSync(manifestPath,'utf8');
30
+ assert.equal(JSON.parse(cli('bench','edit',bench,'second-case','--set','shouldTrigger=false','--json')).status,'planned');
31
+ assert.equal(readFileSync(manifestPath,'utf8'),before);
32
+ assert.equal(JSON.parse(cli('bench','edit',bench,'second-case','--set','shouldTrigger=false','--yes','--json')).status,'applied');
33
+ assert.equal(readFileSync(manifestPath+'.skillfit-bak','utf8'),before); checks.editPlanBackup=true;
34
+ assert.equal(JSON.parse(cli('bench','remove',bench,'second-case','--yes','--json')).status,'applied');
35
+ assert.ok(existsSync(join(bench,initial.tasks[0].prompt))); checks.removePreservesFiles=true;
36
+ const health=JSON.parse(cli('bench','check',bench,'--json')); assert.ok(Array.isArray(health.checks)); checks.benchCheckJson=true;
37
+ mkdirSync(skill); writeFileSync(join(skill,'SKILL.md'),'# Synthetic publication smoke\n');
38
+ const mock=new MockExecutor(); let syntheticCalls=0;
39
+ const executor={describe:()=>mock.describe(),run:async(...args)=>{syntheticCalls++;return mock.run(...args)}};
40
+ const options={skillPath:skill,bench,taskIds:['example-task'],trials:1,maxCalls:2,executor,judgeExecutor:null,yes:true,runsRoot:join(root,'runs'),runGroup:'synthetic',log:()=>{}};
41
+ await runEval({...options,dryRun:true,onPlan:p=>{assert.equal(p.plannedCalls,2);assert.deepEqual(p.bench.taskIds,['example-task']);}});
42
+ assert.equal(syntheticCalls,0); checks.selectedPreviewNoCalls=true;
43
+ await runEval({...options,dryRun:false}); assert.equal(syntheticCalls,2);
44
+ const run=join(root,'runs/synthetic'), output=join(root,'export');
45
+ const original=JSON.parse(cli('report','eval',run,'--json'));
46
+ const plan=JSON.parse(cli('report','eval',run,'--export',output,'--json')); assert.equal(plan.status,'planned'); assert.ok(!existsSync(output)); checks.exportPlan=true;
47
+ await exportEvaluation(run,output,{yes:true,log:()=>{}});
48
+ const moved=join(root,'moved package'); renameSync(output,moved);
49
+ for(const path of [bench,skill,join(root,'runs')]) rmSync(path,{recursive:true});
50
+ const reproduce=verify=>{
51
+ const child=spawnSync(process.execPath,[join(moved,'reproduce.mjs'),...(verify?['--verify-only']:[])],{cwd:root,encoding:'utf8',timeout:60_000,maxBuffer:16*1024*1024});
52
+ assert.equal(child.status,0,child.stderr); return JSON.parse(child.stdout);
53
+ };
54
+ assert.equal(reproduce(true).verified,true); checks.portableChecksums=true;
55
+ const replay=reproduce(false); assert.equal(replay.evidence.verified,true); assert.deepEqual(replay.costs,original.costs);
56
+ assert.equal(replay.acceptance.eligibleForUpgrade,false); assert.equal(replay.acceptance.automaticUpgrade,false);
57
+ const inspected=JSON.parse(cli('report','eval',moved,'--json','--replay')); assert.equal(inspected.portablePackage.integrityVerified,true);
58
+ assert.equal(syntheticCalls,2); checks.movedPackageReplayWithoutOriginals=true; checks.exactCosts=true;
59
+ const receipt={schemaVersion:1,kind:'skillfit.release-case-workflow-smoke',version:'0.10.0',verifiedAt:new Date().toISOString(),modelCalls:0,agentCliCalls:0,syntheticExecutorCalls:syntheticCalls,checks};
60
+ writeFileSync(join(parent,'feature-smoke.json'),JSON.stringify(receipt,null,2)+'\n',{flag:'wx'});
61
+ rmSync(root,{recursive:true});
62
+ console.log(JSON.stringify(receipt));
@@ -0,0 +1,7 @@
1
+ audited 1 package in 5s
2
+
3
+ 1 package has a verified registry signature
4
+
5
+ 1 package has a verified attestation
6
+ (use --json --include-attestations to view attestation details)
7
+