jev-dev-harness 0.2.11 → 0.2.13
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.
- package/CHANGELOG.md +25 -0
- package/README.md +4 -0
- package/dashboard/index.html +29 -15
- package/dist/cli/dashboard.d.ts.map +1 -1
- package/dist/cli/dashboard.js +2 -6
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +13 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/version.d.ts +4 -2
- package/dist/cli/version.d.ts.map +1 -1
- package/dist/cli/version.js +12 -13
- package/dist/cli/version.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +11 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/shared/decision-validation.d.ts +1 -1
- package/dist/shared/decision-validation.d.ts.map +1 -1
- package/dist/shared/decision-validation.js +6 -2
- package/dist/shared/decision-validation.js.map +1 -1
- package/dist/shared/efficiency.d.ts +7 -2
- package/dist/shared/efficiency.d.ts.map +1 -1
- package/dist/shared/efficiency.js +3 -1
- package/dist/shared/efficiency.js.map +1 -1
- package/dist/shared/measurement-ledger.d.ts +2 -2
- package/dist/shared/measurement-ledger.d.ts.map +1 -1
- package/dist/shared/measurement-ledger.js.map +1 -1
- package/dist/shared/telemetry.d.ts +11 -7
- package/dist/shared/telemetry.d.ts.map +1 -1
- package/dist/shared/telemetry.js +12 -4
- package/dist/shared/telemetry.js.map +1 -1
- package/dist/shared/typesafe-client.d.ts +2 -2
- package/dist/shared/typesafe-client.d.ts.map +1 -1
- package/dist/shared/typesafe-client.js +11 -5
- package/dist/shared/typesafe-client.js.map +1 -1
- package/dist/shared/update-checker.d.ts +16 -14
- package/dist/shared/update-checker.d.ts.map +1 -1
- package/dist/shared/update-checker.js +125 -105
- package/dist/shared/update-checker.js.map +1 -1
- package/dist/shared/usage-comparison.d.ts.map +1 -1
- package/dist/shared/usage-comparison.js +6 -2
- package/dist/shared/usage-comparison.js.map +1 -1
- package/dist/shared/version.js +1 -1
- package/docs/RELEASING.md +73 -18
- package/docs/jev/JEV-1.14-EVALUATION.md +99 -0
- package/docs/jev/evaluation-jev-1.14-2026-10-15.json +1731 -0
- package/package.json +17 -3
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# SDK 0.7 migration and Jev 1.14 evaluation
|
|
2
|
+
|
|
3
|
+
## Release policy
|
|
4
|
+
|
|
5
|
+
Harness 0.2.12 requires Node.js 22+ and pins `@typesafe-ai/sdk` to 0.7.0.
|
|
6
|
+
The native TypeSafe default is `jev-1.13.0`, not `jev-latest`. Explicit constructor
|
|
7
|
+
or `TYPESAFE_DEFAULT_MODEL` overrides still work for controlled experiments.
|
|
8
|
+
Existing deployments must restart their MCP process to load new configuration.
|
|
9
|
+
|
|
10
|
+
OpenRouter retains `typesafe/jev-1.13`. Vercel retains its supported
|
|
11
|
+
`typesafe-ai/jev` ID; that is a floating gateway identifier, not a verified version
|
|
12
|
+
pin. Do not assume a native versioned ID is supported by a gateway. The experiment
|
|
13
|
+
below uses only the native TypeSafe endpoint and does not certify either gateway.
|
|
14
|
+
Use native TypeSafe with an exact versioned ID when a strict pin is required.
|
|
15
|
+
|
|
16
|
+
Images, Box and long-context modes remain disabled by default. The wrapper
|
|
17
|
+
supports only Noul/Choice/Score and rejects unsupported question types before
|
|
18
|
+
transport. SDK compression is explicitly disabled for both SDK-backed transports
|
|
19
|
+
to preserve existing wire behavior; OpenRouter's custom transport is unchanged.
|
|
20
|
+
SDK 0.7's new experimental capabilities are not enabled by updating the package.
|
|
21
|
+
|
|
22
|
+
## Nullable usage contract
|
|
23
|
+
|
|
24
|
+
A valid decision may have `usage.input_tokens` or `output_tokens` set to null.
|
|
25
|
+
The wrapper preserves it as a successful decision, keeps null on the corresponding
|
|
26
|
+
`inputTokens`/`outputTokens`, and continues to validate actual decision fields.
|
|
27
|
+
Malformed, missing, negative, fractional and string counters remain invalid.
|
|
28
|
+
Missing/null cost is unknown; an explicit numeric zero remains a reported cost.
|
|
29
|
+
|
|
30
|
+
`TelemetryMetrics.tokensSent` / `tokensReceived` and dashboard summary totals are
|
|
31
|
+
now nullable. A null in any validated response keeps that direction's aggregate
|
|
32
|
+
unknown. `inputTokenRequests` / `outputTokenRequests` count validated responses
|
|
33
|
+
with each counter present. MCP efficiency schemaVersion 2 keeps the same fields
|
|
34
|
+
and adds `tokenCoverage`; `newTokens.input` / `output` may be null. CLI and
|
|
35
|
+
dashboard render those as not informed. Consumers must not use `?? 0` to report a
|
|
36
|
+
complete total. Old numeric telemetry remains readable; old records do not gain
|
|
37
|
+
invented coverage counts.
|
|
38
|
+
|
|
39
|
+
Jev measurement ledgers preserve partial token counts and independently reported
|
|
40
|
+
cost. A request with either unknown token count increments `missingUsage` when
|
|
41
|
+
imported. Known subtotals remain reported subtotals; net pipeline token differences
|
|
42
|
+
stay null. Cached decisions still create no new calls or duplicated usage/cost.
|
|
43
|
+
|
|
44
|
+
## Live evidence: 2026-10-15
|
|
45
|
+
|
|
46
|
+
The [machine-readable evidence](evaluation-jev-1.14-2026-10-15.json) records actual
|
|
47
|
+
requests using the upgraded SDK/wrapper. Inputs were synthetic fixtures only;
|
|
48
|
+
no project source, private prompts or credentials are included in the artifact.
|
|
49
|
+
|
|
50
|
+
- 14 labeled fixtures: 7 English and 7 Portuguese, covering relevant/unrelated
|
|
51
|
+
context, file roles, read-only/destructive commands and safe/unsafe auth diffs.
|
|
52
|
+
- Each fixture repeated 3 times per model: 42 calls per version, 84 total.
|
|
53
|
+
- Identical state/question construction for both versions, expected labels omitted
|
|
54
|
+
from requests, alternating pair order, no cache, no retries, 5-second deadline.
|
|
55
|
+
- Exact requested and returned models recorded; no model mismatch or fallback.
|
|
56
|
+
|
|
57
|
+
| Observed result | Jev 1.13.0 | Jev 1.14.0 |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| Fixture checks passed | 42/42 | 42/42 |
|
|
60
|
+
| Portuguese checks | 21/21 | 21/21 |
|
|
61
|
+
| English checks | 21/21 | 21/21 |
|
|
62
|
+
| Fallbacks | 0 | 0 |
|
|
63
|
+
| Mean response latency | 252.2 ms | 238.6 ms |
|
|
64
|
+
| p95 response latency | 315 ms | 257 ms |
|
|
65
|
+
| Reported input tokens | 18,546 | 18,546 |
|
|
66
|
+
| Reported output tokens | 2,826 | 2,826 |
|
|
67
|
+
| Reported cost | Not informed (0/42 calls) | Not informed (0/42 calls) |
|
|
68
|
+
|
|
69
|
+
These are 14 distinct simple cases, not 42 independent scenarios. This is a small
|
|
70
|
+
compatibility smoke evaluation, not a production acceptance test or statistically
|
|
71
|
+
established improvement. It does not cover the complete ranking pipeline, large
|
|
72
|
+
repositories, provider outages, all guard/lint rules or ambiguous real-world tasks.
|
|
73
|
+
Language results do not establish a general multilingual gain. Latency is specific
|
|
74
|
+
to this run's network/server conditions. Equal token counts are not token savings;
|
|
75
|
+
no monetary comparison is possible without reported costs/billing evidence.
|
|
76
|
+
|
|
77
|
+
**Decision: keep Jev 1.13.0 as the native production default.** Jev 1.14 completed
|
|
78
|
+
the smoke comparison successfully but was not promoted. Before promotion, evaluate
|
|
79
|
+
representative task fixtures, full ranking Precision/Recall@K, confidence thresholds,
|
|
80
|
+
security false negatives, deadline failures and repeated latency/cost observations.
|
|
81
|
+
|
|
82
|
+
## Reproduce (explicit paid API calls)
|
|
83
|
+
|
|
84
|
+
From the repository with native TypeSafe credentials configured:
|
|
85
|
+
|
|
86
|
+
```sh
|
|
87
|
+
npm ci
|
|
88
|
+
npm run eval:jev -- --live --repetitions 3 --output new-evaluation.json
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The command refuses to overwrite evidence and does not change default model or
|
|
92
|
+
global configuration. It uses the exact 1.13/1.14 model IDs and TypeSafe endpoint.
|
|
93
|
+
Output contains fixture IDs, observed judgments, model IDs, counters and timings.
|
|
94
|
+
Missing credentials or transport failures must not be reported as successful tests.
|
|
95
|
+
Synthetic scoring tests run offline in the normal test suite; live calls require
|
|
96
|
+
`--live` and are never made by `npm test` or release checks.
|
|
97
|
+
|
|
98
|
+
Sources: [SDK migration changelog](https://docs.typesafe.ai/sdk/javascript/changelog),
|
|
99
|
+
[models and aliases](https://docs.typesafe.ai/models).
|