jev-style-eval
/jev-style-eval
Measure the Jev-Style local decision model on the user's own labelled examples before relying on it - accuracy, Brier, ECE, how many decisions can be automated at a 1/5/10 % error budget and at which confidence threshold, plus a refitted calibration temperature. Use when the user asks whether the local model is good enough for their task, wants thresholds for automating a classification/routing/gating step, or wants to compare it with the labels an existing LLM or human process produces.
- Author
- lawrence3699 ↗
- Repository
- jev-style ↗
- Licence
- Apache-2.0
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Measure the Jev-Style local decision model on the user's own labelled examples before relying on it - accuracy, Brier, ECE, how many decisions can be automated at a 1/5/10 % error budget and at which confidence threshold, plus a refitted calibration temperature. Use when the user asks whether the local model is good enough for their task, wants thresholds for automating a classification/routing/gating step, or wants to compare it with the labels an existing LLM or human process produces.
Original author description
Measure the Jev-Style local decision model on the user's own labelled examples before relying on it - accuracy, Brier, ECE, how many decisions can be automated at a 1/5/10 % error budget and at which confidence threshold, plus a refitted calibration temperature. Use when the user asks whether the local model is good enough for their task, wants thresholds for automating a classification/routing/gating step, or wants to compare it with the labels an existing LLM or human process produces.
How it works
- 1. Build the labelled file
- 2. Run it
- 3. Read the report
- 4. Report honestly
SKILL.md preview
---
name: jev-style-eval
description: Measure the Jev-Style local decision model on the user's own labelled examples before relying on it - accuracy, Brier, ECE, how many decisions can be automated at a 1/5/10 % error budget and at which confidence threshold, plus a refitted calibration temperature. Use when the user asks whether the local model is good enough for their task, wants thresholds for automating a classification/routing/gating step, or wants to compare it with the labels an existing LLM or human process produces.
---
# Evaluate Jev-Style on your own data
`jev-style eval data.jsonl` sends every labelled example to the model and reports, per question and
overall: accuracy, Brier, ECE, and **automation at an error budget** (the share of decisions the model
can take alone if you only act above a confidence threshold, with the threshold to use). It also refits
a temperature on half the rows and reports the effect on the other half. No training involved.
## 1. Build the labelled file
One JSON object per line: the same shape as a `/v1/systemone` request, plus `"label"` on each question
to score. Lines starting with `#` are ignored.
```json
{"state": "I was charged twice for order #4411.",
"questions": {
"team": {"type": "choice", "instructions": "Which team should handle this ticket?",
"criteria": {"billing": "charges, refunds", "shipping": "delays, lost parcels"}, "label": "billing"},
"escalate": {"type": "noul", "instructions": "The customer asks for a person to handle this urgently.",
"label": false},
"mood": {"type": "score", "instructions": "How upset is the customer?",
"criteria": ["calm", "annoyed", "angry"], "label": "annoyed"}}}
```
Labels: `noul` true/false; `choice` an option name; `score` a level label, or a 0-based index when no level
has that name (so with levels `"1"`..`"5"` the label `"3"` means the level named 3).
Where labels come from, best first:
1. **Real, human-labelled examples** the user already has (support tickets with their final team,
moderated posts, reviewed PRs...). Write a short converter script; keep the question wording exactly
what production will send.
2. **Existing LLM outputs** in logs (e.g. the label a GPT/Claude prompt returned): then the eval measures
agreement with that LLM, which is the right number when replacing it (see `jev-style-adopt`).
3. **Hand-written examples**: only for a smoke test; say clearly that numbers on them are not evidence.
Aim for at least 100 labelled decisions per question (the automation numbers are noisy below that),
drawn the way production traffic is. Never put the same example in twice.
## 2. Run it
```sh
curl -s http://127.0.0.1:8765/healthz # if nothing answers, start `jev-style serve` in another terminal
# and wait until healthz answers before running eval
jev-style eval data.jsonl --url http://127.0.0.1:8765 --json eval.json
```
Without `--url` (or `JEV_STYLE_URL`), eval loads its own copy of the model in-process. Labels that name
no option are skipped with a warning (`--strict` stops instead).
A bundled example (30 hand-written tickets, format demo only):
`jev-style eval examples/support_tickets.jsonl --url http://127.0.0.1:8765` from a clone of https://github.com/lawrence3699/jev-style.
## 3. Read the report
```
question n acc brier ece automate @1% / 5% / 10% error
team 30 93.3% 0.077 0.123 90.0% (p>=0.65) / 93.3% (p>=0.57) / 100.0% (p>=0.44)
```
- `acc`: top answer equals the label. `brier` (lower is better) and `ece` (0 = perfectly calibrated)
judge the probabilities, which matter because the code acts on them.
- `automate @5%: 93.3% (p>=0.57)`: acting only when the top probability is >= 0.57 covers 93.3 % of
cases with at most 5 % errors among them; the rest go to a person or an LLM. This is the number to
pick thresholds with. The threshold is on the top probability (`max(probabilities)`, or max(p, 1-p) for
`noul`), not on the `confidence` field.
- `refitted temperature`: if ECE and log loss drop on the held-out half, apply it in code with
`jev_style.evaluate.recalibrate(probabilities, T)` before thresholding. If they do not improve (small
data), keep T = 1.
## 4. Report honestly
Tell the user the n, which data it was, and that numbers on hand-written or tiny sets are indicative
only. If accuracy is low on a question, try rewording it (a `noul` phrased as a statement, clearer
`criteria` descriptions, an `other` option) and re-run on the same file; do not tune wording on the
final test rows you report.
Versions
The database has no other skills named jev-style-eval.
Database snapshot: 13.11.2026 · package version 7fa301e770a1 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100decision-model-calibration
Turning a model's class probabilities into numbers you can set a threshold on: building the labelled corpus, measuring accuracy and calibration honestly (ECE with a noise floor, Brier, risk–coverage), fitting temperature/Platt, removing option-order bias, conformal prediction… - 95jev-style-adopt
Find LLM API calls in a codebase that only return a decision (a category, yes/no, or a 1-5 rating) and move them to the local Jev-Style decision model safely - scan, pick candidates with the user, rewrite each as a typed noul/choice/score question with a confidence cascade back… - 100jev-eval
Build and run a labelled eval set for a System One model (Jev, Von, or any typed-decision config), then sweep criteria wordings and thresholds against it. Use when a Jev/Von classification is wrong or unreliable, when choosing between the hosted API and a local open model, when… - 95jev-style-mcp
Connect the Jev-Style local decision model to an AI coding agent as an MCP server (tools decide, noul, choice, score, model_info) - Claude Code, Claude Desktop, Cursor, Codex CLI, Windsurf or any MCP client. Use when the user wants their agent to classify, route, gate or score… - 100typed-decision-models
Replacing an LLM used as a classifier with a model that returns typed decisions and probabilities instead of prose — TypeSafe's Jev and the wider pattern. Covers the three primitives, the decomposition that makes them work, what `confidence` does and does not mean, and the… - 84sw-jev
Use Jev or optional OpenAI Decisions for bounded routing, shell-command risk, text screening and failure triage. Use for "jev", "system one", or "classify this".