[ docs · concepts ]

The Jev gate

The Jev gate is Grist's confidence gate. Before any model is called, it reads the task once and decides two things: which rung of the ladder should do the work, and how much effort the task deserves.

Why a gate

Most agent tools run every task on one model — usually the most expensive one, because that's the safe default. But most coding tasks are routine: a rename, a test fix, a small feature in a familiar file. Paying frontier prices for routine work is waste; paying discount prices for genuinely hard work is failure. The gate exists to tell the difference before the money is spent.

Task text Jev gatescore once per run clear → cheapest mixed → medium hard → frontier
one scoring pass, before any inference is bought

What it decides

Rules it never breaks

A worked example

TaskRouteWhy
“Rename getUser to fetchUser everywhere.”cheapestMechanical, verifiable, no ambiguity.
“Add pagination to the orders endpoint, matching the users one.”mediumA real feature with a local pattern to follow.
“The checkout flow intermittently double-charges. Find it.”frontierDiagnosis across subsystems, high stakes, unclear scope.

Calibration

The gate's thresholds aren't hand-tuned folklore. Grist joins routing decisions to verified outcomes and proposes bounded adjustments, applied as configuration — the learning loop described in Dreaming & calibration. And your dashboard can override any rung's model at any time; the gate chooses among your ladder, not ours.