jev-dev-harness 0.2.17 → 0.2.18

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 (35) hide show
  1. package/CHANGELOG.md +155 -145
  2. package/LICENSE +21 -21
  3. package/README.md +704 -687
  4. package/bin/jev-dev.js +2 -2
  5. package/bin/jev-mcp.js +7 -7
  6. package/dashboard/index.html +1122 -1122
  7. package/dist/cli/doctor.js +46 -46
  8. package/dist/context-ranker/stage-c-jev.d.ts.map +1 -1
  9. package/dist/context-ranker/stage-c-jev.js +2 -1
  10. package/dist/context-ranker/stage-c-jev.js.map +1 -1
  11. package/dist/hooks/index.js +73 -73
  12. package/dist/shared/agent-usage.d.ts.map +1 -1
  13. package/dist/shared/agent-usage.js +2 -1
  14. package/dist/shared/agent-usage.js.map +1 -1
  15. package/dist/shared/efficiency.d.ts +2 -0
  16. package/dist/shared/efficiency.d.ts.map +1 -1
  17. package/dist/shared/efficiency.js +8 -1
  18. package/dist/shared/efficiency.js.map +1 -1
  19. package/dist/shared/telemetry.d.ts.map +1 -1
  20. package/dist/shared/telemetry.js +3 -2
  21. package/dist/shared/telemetry.js.map +1 -1
  22. package/dist/shared/usage-comparison.d.ts.map +1 -1
  23. package/dist/shared/usage-comparison.js +7 -5
  24. package/dist/shared/usage-comparison.js.map +1 -1
  25. package/dist/shared/version.js +1 -1
  26. package/docs/RELEASING.md +256 -250
  27. package/docs/jev/DELEGATED-REVIEW.md +86 -86
  28. package/docs/jev/JEV-0.2.16-DEFAULTS.md +60 -60
  29. package/docs/jev/JEV-1.14-EVALUATION.md +99 -99
  30. package/docs/jev/MEASURED-USAGE.md +155 -155
  31. package/docs/jev/MULTI-HARNESS-USAGE.md +163 -163
  32. package/docs/jev/OPENROUTER-NATIVE.md +93 -93
  33. package/docs/jev/README.md +85 -85
  34. package/docs/jev/evaluation-jev-1.14-2026-10-15.json +1731 -1731
  35. package/package.json +139 -139
package/CHANGELOG.md CHANGED
@@ -1,145 +1,155 @@
1
- # Changelog
2
-
3
- ## 0.2.17 - 2026-11-16
4
-
5
- - Raise the minimum MCP SDK dependency to 1.32.2 and refresh the lockfile for
6
- patched transitive dependencies, without using an automatic audit-fix rewrite.
7
- - Move development tests to Vitest 4.1.12 and Vite 6.4.6, retaining the Node 22
8
- runtime baseline rather than requiring the newer Vite 7/8 minimum.
9
- - Preserve TypeSafe SDK 0.7.0, Jev 1.14 defaults, explicit older model pins and
10
- the offline, non-authorizing delegated-review bridge from 0.2.16.
11
- - Security audit results describe the resolved dependency graph at validation
12
- time; they are not a guarantee against all vulnerabilities or reachability.
13
-
14
- ## 0.2.16 - 2026-11-16
15
-
16
- - Add `delegate review`: explicit command-only offline JSON envelopes/receipts for
17
- delegated coding tasks, with bounded inputs and no execution, authorization,
18
- remote model call, update lookup or automatic integration.
19
-
20
- - Default unpinned TypeSafe, OpenRouter and Vercel configurations to Jev 1.14
21
- using their provider-specific model IDs. This is an owner-selected default,
22
- not a claim of superior accuracy from the prior synthetic benchmark.
23
- - Preserve options/environment and same-provider model pins, normalize known
24
- legacy TypeSafe Jev aliases without advancing their version, and prevent a
25
- saved model from another provider becoming the selected provider's default.
26
- - Persist TypeSafe/Vercel model choices consistently in setup-generated settings.
27
- No existing configuration is migrated automatically.
28
- - Keep provider/base URL/model identity in decision caches and retain explicit
29
- legacy gateway aliases. Historical 1.13/1.14 evaluation records are unchanged.
30
- - Safety Pro Engine RC3 remains independently pinned to harness 0.2.14/0.2.15;
31
- this release does not update or claim compatibility with its exact gate.
32
-
33
- ## 0.2.15 — 2026-10-20
34
-
35
- ### Security
36
-
37
- - Enforce conservative confirmation requirement for unknown commands when semantic
38
- evaluation is unavailable or returns an evaluator fallback. Synthetic fallback scores
39
- never silently allow unknown commands.
40
- - Preserve meaningful, secret-redacted fallbackReason in guard responses and ensure
41
- offline evaluation (`useJev: false`) remains consistently protected.
42
- - Known deterministic safe commands (read-only, local modification) and known destructive
43
- or production-sensitive commands retain their established protections regardless of
44
- remote provider availability.
45
-
46
- ### Fixed
47
-
48
- - Support explicit failure policies (`fail-open` default for backward compatibility;
49
- `fail-closed` for strict security environments) in Git pre-commit hooks, with runtime
50
- override support via `JEV_HOOK_FAILURE_POLICY`.
51
- - Ensure Git pre-commit hook rejects commits on reviewer execution errors under `fail-closed`
52
- while retaining blocking exit status 2 under all policies.
53
- - Safeguard pre-commit hook installation and uninstallation: preserve existing user-managed
54
- hooks unless `--force` is specified, support Git worktrees, and resolve `core.hooksPath`
55
- safely.
56
- - Isolate test fixtures across test suites to operating system temporary directories,
57
- resolving intermittent Windows `EBUSY` file-locking issues during Git directory cleanup.
58
- - Prevent assertions from being swallowed in temporary repository gitignore tests.
59
-
60
- ## 0.2.14 — 2026-10-20
61
-
62
- ### Fixed
63
-
64
- - Preserve the existing text-mode exit status in JSON patch review, guard checks
65
- and semantic lint. Successful and advisory results retain their existing codes.
66
- - Preserve Git revision expressions, including reflog selectors with spaces, as
67
- a single argument and reject empty, control-character or option-shaped revisions.
68
-
69
- ### Security
70
-
71
- - Remove shell interpolation from shared Git diff extraction used by patch review
72
- and semantic lint through CLI, MCP and public APIs. Git executes directly with
73
- argument arrays and an explicit revision/path boundary.
74
- - Keep public API signatures, Node.js 22+, SDK/model dependencies and MIT licensing
75
- unchanged. See docs/RELEASING.md for JSON automation and revision-input guidance.
76
-
77
- ## 0.2.13 — 2026-10-15
78
-
79
- - Share npm release reasons, declared requirements, release links and restart guidance
80
- across CLI, dashboard and MCP. Missing release metadata stays explicitly unknown.
81
- - Deduplicate CLI notices across invocations, MCP notices per connection/version and
82
- dashboard dismissals per running/latest version. Long-lived surfaces check hourly.
83
- - Correct the update cache comparison and keep the timeout active through body reads.
84
- Failed checks report unavailable, never a fabricated latest version.
85
- - Preserve machine-readable CLI output and the MCP tool's first content block.
86
- `latestVersion` and version-command `isLatest` are nullable when verification fails.
87
- - Keep SDK 0.7.0, Node.js 22+ and native Jev 1.13.0 unchanged. npm publication remains manual.
88
-
89
- ## 0.2.12 — 2026-10-15
90
-
91
- - Upgrade TypeSafe SDK to 0.7.0 and require Node.js 22+. Preserve uncompressed
92
- transport during migration and keep images, Box and long-context features disabled.
93
- - Pin the native default to jev-1.13.0; retain explicit model overrides and existing
94
- OpenRouter/Vercel IDs. Do not promote the Jev 1.14 preview automatically.
95
- - Accept null token counters without discarding valid decisions. Preserve unknown
96
- totals and per-direction coverage in telemetry, reports, dashboard and ledgers;
97
- missing usage blocks net token comparisons while reported cost stays independent.
98
- - Add an opt-in reproducible PT/EN model evaluation and its sanitized live evidence.
99
- Both models passed 42/42 synthetic checks; this is not a production acceptance
100
- test, cost comparison or measured task-savings baseline.
101
-
102
- ## 0.2.11 — 2026-09-30
103
-
104
- - Add shared agent usage imports/comparisons for Antigravity, TRAE, Cursor,
105
- VS Code extensions and CLI exporters, with explicit source/coverage.
106
- - Normalize OpenAI, Anthropic cache, Gemini thinking and Cursor event usage;
107
- preserve unknown breakdowns/costs and reject duplicate or overlapping requests.
108
- - Add MCP `jev_import_usage`, CLI `efficiency import`, public export APIs and
109
- optional proxy JSON/SSE capture without retaining prompts or changing response bytes.
110
- - Preserve Codex manifest compatibility; document hook/export setup and native
111
- integration limits instead of claiming universal automatic capture.
112
-
113
- ## 0.2.10 — 2026-09-30
114
-
115
- - Add offline Codex rollout discovery/import and paired usage comparisons with
116
- exact cumulative counters, cache/reasoning breakdowns, source fingerprints and
117
- validation receipts. Unknown overhead/cost stays unknown; negative deltas remain.
118
- - Add opt-in run-scoped Jev usage ledgers across model calls, the CLI efficiency
119
- workflow and MCP `jev_compare_usage`. No prompts or credentials in ledgers.
120
- - Show the latest comparison separately in the dashboard without accumulating
121
- comparisons as proven savings. See `docs/jev/MEASURED-USAGE.md` for coverage,
122
- declared conditions, billing receipts and baseline setup.
123
-
124
- ## 0.2.9 — 2026-09-30
125
-
126
- - Replace synthetic token/dollar savings with factual context counts, cache reuse,
127
- new logical model calls, validated response usage, cost coverage and fallback.
128
- - Stop accumulating heuristic estimates as savings in telemetry and dashboard.
129
- Legacy events remain readable; unknown savings/cost are not zero.
130
- - Correct MCP agent instructions and installed rule templates: only report audits
131
- actually executed. Tool pruning and proxy routing no longer invent token savings.
132
- - Preserve native transport, ranking, cache keys and fallback behavior. See
133
- `docs/RELEASING.md` for the v2 efficiency contract and installed-rule migration.
134
-
135
- ## 0.2.8 — 2026-09-30
136
-
137
- - Default new OpenRouter configurations to native `typesafe/jev-1.13` decisions.
138
- - Validate Noul, Choice and Score responses before use or caching; reject missing confidence.
139
- - Bound request and context-ranking deadlines, concurrency and retry behavior; use deterministic fallback on failures.
140
- - Isolate decision caches by provider, model, question contract and candidate metadata.
141
- - Report actual models, native/emulation modes and provider-reported cost coverage.
142
- - Synchronize package and lockfile versions; advertise the package version in MCP.
143
- - Add release checks, rebuild before packing, and document Git tags and npm `latest` publication.
144
-
145
- Live cost/latency benchmarks and the Finainteli integration are separate work.
1
+ # Changelog
2
+
3
+ ## 0.2.18 - 2026-11-24
4
+
5
+ - Normalize IEEE-754 floating-point drift (`roundUsd`) across reported USD sums
6
+ and paired billing comparisons in efficiency reports, telemetry summaries,
7
+ Context Ranker Stage C, agent usage imports, and Jev measurement ledgers.
8
+ - Validate `harness`, `model`, and `effort` equivalence across all rollouts in
9
+ multi-rollout `compareUsageRuns` runs rather than checking only the first rollout.
10
+ - Preserve TypeSafe SDK 0.7.0, Node.js 22+, Jev 1.14 defaults, conservative
11
+ unknown-usage accounting, and offline delegated review from 0.2.17.
12
+
13
+ ## 0.2.17 - 2026-11-16
14
+
15
+ - Raise the minimum MCP SDK dependency to 1.32.2 and refresh the lockfile for
16
+ patched transitive dependencies, without using an automatic audit-fix rewrite.
17
+ - Move development tests to Vitest 4.1.12 and Vite 6.4.6, retaining the Node 22
18
+ runtime baseline rather than requiring the newer Vite 7/8 minimum.
19
+ - Preserve TypeSafe SDK 0.7.0, Jev 1.14 defaults, explicit older model pins and
20
+ the offline, non-authorizing delegated-review bridge from 0.2.16.
21
+ - Security audit results describe the resolved dependency graph at validation
22
+ time; they are not a guarantee against all vulnerabilities or reachability.
23
+
24
+ ## 0.2.16 - 2026-11-16
25
+
26
+ - Add `delegate review`: explicit command-only offline JSON envelopes/receipts for
27
+ delegated coding tasks, with bounded inputs and no execution, authorization,
28
+ remote model call, update lookup or automatic integration.
29
+
30
+ - Default unpinned TypeSafe, OpenRouter and Vercel configurations to Jev 1.14
31
+ using their provider-specific model IDs. This is an owner-selected default,
32
+ not a claim of superior accuracy from the prior synthetic benchmark.
33
+ - Preserve options/environment and same-provider model pins, normalize known
34
+ legacy TypeSafe Jev aliases without advancing their version, and prevent a
35
+ saved model from another provider becoming the selected provider's default.
36
+ - Persist TypeSafe/Vercel model choices consistently in setup-generated settings.
37
+ No existing configuration is migrated automatically.
38
+ - Keep provider/base URL/model identity in decision caches and retain explicit
39
+ legacy gateway aliases. Historical 1.13/1.14 evaluation records are unchanged.
40
+ - Safety Pro Engine RC3 remains independently pinned to harness 0.2.14/0.2.15;
41
+ this release does not update or claim compatibility with its exact gate.
42
+
43
+ ## 0.2.15 — 2026-10-20
44
+
45
+ ### Security
46
+
47
+ - Enforce conservative confirmation requirement for unknown commands when semantic
48
+ evaluation is unavailable or returns an evaluator fallback. Synthetic fallback scores
49
+ never silently allow unknown commands.
50
+ - Preserve meaningful, secret-redacted fallbackReason in guard responses and ensure
51
+ offline evaluation (`useJev: false`) remains consistently protected.
52
+ - Known deterministic safe commands (read-only, local modification) and known destructive
53
+ or production-sensitive commands retain their established protections regardless of
54
+ remote provider availability.
55
+
56
+ ### Fixed
57
+
58
+ - Support explicit failure policies (`fail-open` default for backward compatibility;
59
+ `fail-closed` for strict security environments) in Git pre-commit hooks, with runtime
60
+ override support via `JEV_HOOK_FAILURE_POLICY`.
61
+ - Ensure Git pre-commit hook rejects commits on reviewer execution errors under `fail-closed`
62
+ while retaining blocking exit status 2 under all policies.
63
+ - Safeguard pre-commit hook installation and uninstallation: preserve existing user-managed
64
+ hooks unless `--force` is specified, support Git worktrees, and resolve `core.hooksPath`
65
+ safely.
66
+ - Isolate test fixtures across test suites to operating system temporary directories,
67
+ resolving intermittent Windows `EBUSY` file-locking issues during Git directory cleanup.
68
+ - Prevent assertions from being swallowed in temporary repository gitignore tests.
69
+
70
+ ## 0.2.14 — 2026-10-20
71
+
72
+ ### Fixed
73
+
74
+ - Preserve the existing text-mode exit status in JSON patch review, guard checks
75
+ and semantic lint. Successful and advisory results retain their existing codes.
76
+ - Preserve Git revision expressions, including reflog selectors with spaces, as
77
+ a single argument and reject empty, control-character or option-shaped revisions.
78
+
79
+ ### Security
80
+
81
+ - Remove shell interpolation from shared Git diff extraction used by patch review
82
+ and semantic lint through CLI, MCP and public APIs. Git executes directly with
83
+ argument arrays and an explicit revision/path boundary.
84
+ - Keep public API signatures, Node.js 22+, SDK/model dependencies and MIT licensing
85
+ unchanged. See docs/RELEASING.md for JSON automation and revision-input guidance.
86
+
87
+ ## 0.2.13 — 2026-10-15
88
+
89
+ - Share npm release reasons, declared requirements, release links and restart guidance
90
+ across CLI, dashboard and MCP. Missing release metadata stays explicitly unknown.
91
+ - Deduplicate CLI notices across invocations, MCP notices per connection/version and
92
+ dashboard dismissals per running/latest version. Long-lived surfaces check hourly.
93
+ - Correct the update cache comparison and keep the timeout active through body reads.
94
+ Failed checks report unavailable, never a fabricated latest version.
95
+ - Preserve machine-readable CLI output and the MCP tool's first content block.
96
+ `latestVersion` and version-command `isLatest` are nullable when verification fails.
97
+ - Keep SDK 0.7.0, Node.js 22+ and native Jev 1.13.0 unchanged. npm publication remains manual.
98
+
99
+ ## 0.2.12 — 2026-10-15
100
+
101
+ - Upgrade TypeSafe SDK to 0.7.0 and require Node.js 22+. Preserve uncompressed
102
+ transport during migration and keep images, Box and long-context features disabled.
103
+ - Pin the native default to jev-1.13.0; retain explicit model overrides and existing
104
+ OpenRouter/Vercel IDs. Do not promote the Jev 1.14 preview automatically.
105
+ - Accept null token counters without discarding valid decisions. Preserve unknown
106
+ totals and per-direction coverage in telemetry, reports, dashboard and ledgers;
107
+ missing usage blocks net token comparisons while reported cost stays independent.
108
+ - Add an opt-in reproducible PT/EN model evaluation and its sanitized live evidence.
109
+ Both models passed 42/42 synthetic checks; this is not a production acceptance
110
+ test, cost comparison or measured task-savings baseline.
111
+
112
+ ## 0.2.11 — 2026-09-30
113
+
114
+ - Add shared agent usage imports/comparisons for Antigravity, TRAE, Cursor,
115
+ VS Code extensions and CLI exporters, with explicit source/coverage.
116
+ - Normalize OpenAI, Anthropic cache, Gemini thinking and Cursor event usage;
117
+ preserve unknown breakdowns/costs and reject duplicate or overlapping requests.
118
+ - Add MCP `jev_import_usage`, CLI `efficiency import`, public export APIs and
119
+ optional proxy JSON/SSE capture without retaining prompts or changing response bytes.
120
+ - Preserve Codex manifest compatibility; document hook/export setup and native
121
+ integration limits instead of claiming universal automatic capture.
122
+
123
+ ## 0.2.10 — 2026-09-30
124
+
125
+ - Add offline Codex rollout discovery/import and paired usage comparisons with
126
+ exact cumulative counters, cache/reasoning breakdowns, source fingerprints and
127
+ validation receipts. Unknown overhead/cost stays unknown; negative deltas remain.
128
+ - Add opt-in run-scoped Jev usage ledgers across model calls, the CLI efficiency
129
+ workflow and MCP `jev_compare_usage`. No prompts or credentials in ledgers.
130
+ - Show the latest comparison separately in the dashboard without accumulating
131
+ comparisons as proven savings. See `docs/jev/MEASURED-USAGE.md` for coverage,
132
+ declared conditions, billing receipts and baseline setup.
133
+
134
+ ## 0.2.9 — 2026-09-30
135
+
136
+ - Replace synthetic token/dollar savings with factual context counts, cache reuse,
137
+ new logical model calls, validated response usage, cost coverage and fallback.
138
+ - Stop accumulating heuristic estimates as savings in telemetry and dashboard.
139
+ Legacy events remain readable; unknown savings/cost are not zero.
140
+ - Correct MCP agent instructions and installed rule templates: only report audits
141
+ actually executed. Tool pruning and proxy routing no longer invent token savings.
142
+ - Preserve native transport, ranking, cache keys and fallback behavior. See
143
+ `docs/RELEASING.md` for the v2 efficiency contract and installed-rule migration.
144
+
145
+ ## 0.2.8 — 2026-09-30
146
+
147
+ - Default new OpenRouter configurations to native `typesafe/jev-1.13` decisions.
148
+ - Validate Noul, Choice and Score responses before use or caching; reject missing confidence.
149
+ - Bound request and context-ranking deadlines, concurrency and retry behavior; use deterministic fallback on failures.
150
+ - Isolate decision caches by provider, model, question contract and candidate metadata.
151
+ - Report actual models, native/emulation modes and provider-reported cost coverage.
152
+ - Synchronize package and lockfile versions; advertise the package version in MCP.
153
+ - Add release checks, rebuild before packing, and document Git tags and npm `latest` publication.
154
+
155
+ Live cost/latency benchmarks and the Finainteli integration are separate work.
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Marcelo Lopes
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Marcelo Lopes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.