aayushhzz/jev-lite runs a small local judge first and sends uncertain decisions to a larger reasoning model. Its code and retained results show how calibration changes which questions reach the fallback. The project uses ordinary Qwen models through Ollama, rather than TypeSafe’s trained Jev model.

Judge both orders, then decide whether to escalate

  • The first stage requests option-letter probabilities from qwen3:4b-instruct.
  • Pairwise questions compare the answers in both presentation orders and average the aligned probabilities. This reduces dependence on which answer appears first.
  • Temperature scaling adjusts how concentrated those probabilities are. The project fits this adjustment on a separate selection set.
  • Code accepts a decisive answer above the frozen threshold. Otherwise, qwen3:8b reasons about the pair and supplies the final verdict.

Invalid first-stage answers escalate too. Connection failures instead surface as service errors; the fallback path does not catch every failure.

Saved evidence supports the routing counts

The author fits the policy on 150 selection pairs and evaluates 146 fresh held-out pairs. A local replay of the retained probabilities recovered temperature 6 and threshold 0.95.

That replay also recovered the author’s held-out counts:

Outcome Saved result
First-stage correct decisions 135 of 146
Decisions sent to the fallback 47 of 146
First-stage errors sent to the fallback All 11
Final cascade decisions correct 146 of 146

The saved live-run rows agree with the reconstructed routing and labels. This checks the author’s recorded evidence, not fresh model behavior. Typed answers still need labeled correctness checks.

The fallback has not met its hard cases

The author reports that the stronger model gets all 373 labeled pairs right across selection, held-out and legacy sets. Those small, single-author examples therefore reveal little about what happens when the fallback is wrong.

The author’s reported median is 215 milliseconds for accepted first-stage decisions and 10.8 seconds for escalations. Fallback-only calls in a separate run have a 7.2-second median. Those path-specific timings were not reproduced; escalation can be the slow path even when most requests finish quickly.

The server binds to loopback without authentication. Changing the model through environment settings also requires care: startup loads the saved policy without checking that its recorded model names match.

Caveat: all 50 supplied tests passed locally with simulated model answers, and saved-result calculations were replayed; model inference, reported performance and security were not independently validated.