shipwithjev

Catalog / Research & data

0457GitHub

jevcal

Fits and drift-checks confidence thresholds against labeled data.

abhixhek/jevcalREADME ↗
# jevcal

**Stop guessing confidence thresholds.** jevcal measures a typed decision model on *your* data, picks the
threshold that meets *your* accuracy target, tells you how much traffic still needs an LLM, and fails CI
when a model update quietly breaks it.

Built for [Jev](https://typesafe.ai) (TypeSafe's System One model), and for anything else that returns
answers with probabilities.

```
$ jevcal demo        # bundled example, built-in simulator, no API key

question               threshold  handled  accepted acc  all acc     ECE  status
is_urgent                  0.994    21.2%        100.0%    94.5%    3.5%  ok
department                 0.954    81.3%         96.3%    93.8%    3.5%  ok
frustration                0.875    98.0%         95.4%    95.5%    1.6%  ok
(handled / accepted accuracy are measured on the held-out split)

rows that escalate: 85.4%   cascade $1.930 per 1k rows vs LLM-only $2.25 (14.4% saved)
a row escalates when any question is unsure; the bottleneck is is_urgent (handles 21.2% at a 97% target)
```





That is simulator output, not a Jev benchmark. TypeSafe's customer agreement restricts publishing performance
numbers for Jev, so this README contains none, on purpose. That is also the reason this tool exists: nobody can
hand you trustworthy numbers for your use case, so you measure it yourself, privately, in one command.

Read the output as the kind of answer you get: `department` can run
81% on the fast model at 96% accuracy, while the 97% target on `is_urgent` is so strict that it alone sends
most rows to the LLM. Loosen that one target, or reword that one question, and the bill moves.

## Why

Jev answers "is this fraud?" with a probability, not a paragraph. That is the whole appeal: you can act on
the confident answers and send the rest

Also filed under Research & data

  1. 0607

    Verify: new-hire onboarding completion

    An agent reports onboarding done; the judge verifies access and equipment claims.

    everyai-com · Research & data

  2. 0606

    Triage: vague meeting request gets a disposition

    A vendor asks for 30 minutes with no agenda; the judge picks the disposition.

    everyai-com · Research & data

  3. 0605

    Triage: data-loss bug gets a severity

    A note-taking app silently drops edits on flaky networks; the judge grades severity.

    everyai-com · Research & data

  4. 0604

    Triage: crash report routing + reproducibility

    A crash report with steps and logs; the judge routes it and checks reproducibility.

    everyai-com · Research & data