Tools Tips

jev-latest now means jev-1.14.0: replay your labelled CI failures through both versions before you move

If a Jev call in your pipeline names no model, it changed under you. Here's a 34-line replay harness that shows which decisions flip, in about 20 minutes.

Two glowing wireframe ridges, one blue and one gold, overlapping with their peaks slightly offset

A CI triage step that calls Jev with no model named is running a different model today than it was a month ago. TypeSafe’s models page now shows jev-latest pointing at jev-1.14.0, which has been available since 14 October 2026, and jev-latest is the default in the SDK. Any confidence threshold you tuned on jev-1.13.0 is now applied to a model you didn’t tune it on.

That isn’t a crisis. The release post says most things should be “a tiny bit better”, with the largest gain in multilingual input, and jev-1.13.0 stays available. But a gate that sends a failed build to an agent or to a person is a policy, and a policy shouldn’t change because an alias moved. The fix is cheap: name the version, then replay a labelled set through both versions before you move.

The earlier CI gate post built the gate and flagged that thresholds need tuning per version. What changed since is that the alias has moved, so the advice is now a Monday-morning task and not a footnote. For what Jev is and isn’t, see the pipeline-fit piece : it classifies and scores, it doesn’t write code, and it sits beside your LLM and not in place of it.

Step 1: pin the version

The SDK’s defaultModel falls back to the TYPESAFE_DEFAULT_MODEL environment variable and then to jev-latest. Each request can also carry its own model. Set it in code where it’s reviewed, not in an environment that someone can change quietly:

import { TypeSafeClient } from "@typesafe-ai/sdk";

export const TRIAGE_MODEL = "jev-1.13.0";
export const client = new TypeSafeClient({ defaultModel: TRIAGE_MODEL });

The docs say versioned ids work even though GET /v1/models lists only the aliases, so don’t be alarmed when the list doesn’t show jev-1.13.0. Each response carries a model field with the versioned id that answered. Log it next to every decision. When a gate misbehaves, “which model said that” is the first question, and an alias in your logs can’t answer it.

Pinning has a cost. TypeSafe says it intends 60 days’ warning before formally deprecating jev-1.13.0 (30 days for jev-1.14.0), and that a deprecation policy is promised but not yet published. A pin buys you a controlled move, not a permanent one. Put the warning window in your calendar the day a notice appears.

Step 2: write down the right answers

You need a labelled set: real failed runs from your own CI, each with the decision a person would have made. Fifty is enough to see flips, a hundred is better. A JSONL file with the log tail and a label from the same three options the gate uses:

{"id":"ci-002","log":"Expected 3 but got 4 at CartTests.cs:88","label":"agent"}

Label them before you look at any model’s answer. If the labelling happens after, it drifts toward whatever the model said. Keep the set outside the repo’s test fixtures if the logs can contain tokens or customer data, and redact before saving. Jev’s input is billed at $0.042 per million tokens with output free, according to the models page, so replaying a hundred log tails through two versions is cheap. Treat that as TypeSafe’s pricing claim and check your own invoice.

Step 3: replay through both versions

The harness is small on purpose. compare.ts takes any ask function, so the same code runs against a stub in a unit test and against the live API in a nightly job:

export type Labelled = { id: string; log: string; label: "retry" | "agent" | "human" };
export type Answer = { choice: string; confidence: number };
export type Ask = (model: string, item: Labelled) => Promise<Answer>;

export type Row = { id: string; label: string; a: Answer; b: Answer };

// What the pipeline would do: act only when confidence clears the floor.
export function decide(a: Answer, floor: number): string {
  return a.confidence >= floor ? a.choice : "human";
}

export async function replay(items: Labelled[], ask: Ask, modelA: string, modelB: string): Promise<Row[]> {
  const rows: Row[] = [];
  for (const item of items) {
    const [a, b] = await Promise.all([ask(modelA, item), ask(modelB, item)]);
    rows.push({ id: item.id, label: item.label, a, b });
  }
  return rows;
}

export function report(rows: Row[], floor: number): string {
  const lines: string[] = [];
  for (const m of ["a", "b"] as const) {
    const right = rows.filter((r) => decide(r[m], floor) === r.label).length;
    const wrongAct = rows.filter((r) => decide(r[m], floor) !== "human" && decide(r[m], floor) !== r.label).length;
    lines.push(`${m === "a" ? "old" : "new"}: ${right}/${rows.length} match the label, ${wrongAct} wrong actions`);
  }
  const flips = rows.filter((r) => decide(r.a, floor) !== decide(r.b, floor));
  lines.push(`decision flips: ${flips.length}`);
  for (const r of flips) {
    lines.push(`  ${r.id}: label=${r.label} old=${decide(r.a, floor)}(${r.a.confidence}) new=${decide(r.b, floor)}(${r.b.confidence})`);
  }
  return lines.join("\n");
}

Two numbers matter more than raw accuracy. The first is wrong actions: cases where the gate acted (retried, or woke the agent) and the label said otherwise. Escalating to a human when unsure costs a few minutes. A confident wrong retry hides a real failure behind a green re-run. The second is flips, the specific items where the two versions lead to different decisions. Those are the ones to read by hand.

The live ask is a thin wrapper over the documented systemOne call. It uses the same question as the gate, and passes the model per request. This function follows the SDK reference and wasn’t run against the live API:

import { choice } from "@typesafe-ai/sdk";
import { client } from "./pin.ts";
import type { Ask } from "./compare.ts";

export const ask: Ask = async (model, item) => {
  const { answers } = await client.systemOne({
    model,
    state: { failing_step_log_tail: item.log.slice(-4000) },
    questions: {
      route: choice("Who should deal with this CI failure?", {
        human: "Needs a person: credentials, permissions, billing, or anything unclear",
        agent: "A deterministic code failure: a failing assertion, a compile or type error, a lint violation",
        retry: "Infrastructure or network noise: a timeout, a registry 5xx, a runner that died before any test ran",
      }),
    },
  });
  return { choice: answers.route.choice, confidence: answers.route.confidence };
};

Keep the option descriptions identical to production. Changing the question while changing the model tells you nothing about the model.

What the report looks like

Here’s the report format on four items. The answers come from a stub with fixed numbers, written to show what a flip looks like. They aren’t Jev output, so don’t read them as a measurement of either version:

old: 3/4 match the label, 1 wrong actions
new: 3/4 match the label, 0 wrong actions
decision flips: 2
  ci-002: label=agent old=agent(0.81) new=human(0.62)
  ci-003: label=retry old=agent(0.77) new=retry(0.71)

Both versions score the same headline accuracy, and a naive comparison would say “no change, upgrade”. The flips say otherwise. On ci-002 the new version is right but less sure, and with a floor of 0.7 the gate now sends a correct answer to a person. On ci-003 the old version was confidently wrong and the new one is right but only just above the floor.

That second pattern is the reason to replay instead of trusting a release note. Docs for confidence say it measures how concentrated the probability distribution is, not the chance the answer is correct, and the page doesn’t say anything about comparing it across versions or about calibration. A version can be more accurate and shift its confidence downward. Your floor was tuned to the old spread.

Reading the flips

Go through each flip by hand and sort it into one of three piles.

A flip where the new version is right and clears the floor is the upgrade working. A flip where the new version is right but lands under the floor is a threshold problem: the model improved and your gate didn’t notice. Move the floor only if the labelled set supports it across many items, not for one. A flip where the new version is wrong, especially a wrong action, is the one that blocks the move.

Check consistency while you’re there. TypeSafe lists a lean toward the first option in a Choice as a known weakness. Run the replay a second time with the option order reversed (keep human first in production, reverse only for the check) and see how many answers change. An answer that depends on option order isn’t one to gate a retry on.

Keep numbers and dates out of the question. The jaggedness page says to do arithmetic and date comparison in code, so ask the model for the part of a log that needs reading and compare in your gate.

When to stay pinned

Stay on jev-1.13.0 if the replay shows even one new wrong action on a class of failure you care about, or if your logs are English-only and nothing flips. The release post’s headline gain is multilingual support, which may not matter to you. Move if flips are in your favour or neutral, and re-tune the floor with the same labelled set so the number in the gate matches the version in the pin.

Don’t bother with any of this if the model’s output only feeds a message that a person reads anyway. Replay earns its keep when the decision triggers something: a retry, an agent run, a merge.

First 20 minutes

Add defaultModel: "jev-1.13.0" to the client and log the model field of each response. Export the last 50 failed runs, label them by hand, and run compare.ts with your live ask against jev-1.13.0 and jev-1.14.0. Read the flips before you change a pin or a threshold.