JT / SAGE IDEAS Work with me

04 ReasoningEvaluationCI gatesEvidence gates · 2/4LLM evals

Field note 02 · 2026·07

Your LLM feature needs a regression suite more than a better prompt

Prompt tweaks feel like progress because nobody is measuring. Golden traces + LLM-as-judge in CI turn "it seems better" into a diff you can gate on.

By Jason Teixeira2 min read

Every team I talk to is tuning prompts. Almost none of them can answer the only question that matters: did this change make the feature better or worse? Without measurement, prompt engineering is redecorating in the dark.

A golden set, a judge and a gate

The fix is the same discipline we’ve had for code for twenty years, adapted for non-determinism. A golden set: 50–200 real inputs with agreed-good outputs, versioned next to the code. A judge: LLM-as-judge scoring faithfulness, relevance, and safety against that set — imperfect, but consistent enough to catch regressions. A gate: the suite runs in CI, and a score drop below the ratcheted floor blocks the merge.

What ten runners look like in practice

In nexural-qa-os this became ten dedicated runners — hallucination, jailbreak, prompt-injection, toxicity, PII-leak, refusal, bias, consistency, cost, latency — each producing a computed score from a real command, never a stated one. The scorecard is reproducible: run it twice, get identical output.

A prompt change without an eval run is a schema migration without a backup.

Start smaller than you think

Start smaller than you think: even 30 golden traces and one faithfulness judge in CI beats zero. The floor ratchets up from there — every improvement becomes the new minimum, and quality stops silently regressing while everyone stares at the prompt.

Evidence

Receipts for this note

  • Verified

    nexural-qa-os: 85 runners

    Private repository. Ten of them match the note: ai-hallucination, ai-jailbreak, ai-prompt-injection, ai-toxicity, ai-pii-leak, ai-refusal, ai-bias, ai-consistency, ai-cost-tracker, ai-latency-budget.

    runners/ (85 directories excluding _template)counted 2026-11-21

  • Owned

    Gate-scored proof loop

    Shown running in the published capture.

    scripts/proof-loop.mjs

  • Owned

    sage-agents: @sage/eval golden-trace runner

Series

Evidence gates, part 2 of 4

Checks that can say no, and what they have to count to be believed.

  1. No fake green: what a proof ledger taught me about AI agents
  2. Your LLM feature needs a regression suite more than a better prompt
  3. LLM regression testing with Promptfoo in CI: the minimum viable gate
  4. The day my own quality gate blocked me

Keep going

Next, in the reasoning stage

Topic hubs: LLM evaluation

All field notes · RSS feed

Receipts · the newsletter

Receipts: AI engineering, with the evidence attached.

One real finding with its proof, one runnable lab, and one thing I would do differently. Weekly, Tuesday morning, a five-minute read.

required

Free. One email a week. Confirm first, unsubscribe in one click. How it works

Not ready to talk yet?

Get the AI release-readiness checklist

Eighteen checks to pass before an LLM feature meets a customer. The checklist is free and open: no email wall. Leave one email and I also send the sample evaluation report that goes with it. One email is all I ask for.

required

Inside the checklist: 18 checks, 5 groups

  • Ground truthwithout this, every other check is opinion3 checks
  • Measurement"it seems better" is not a metric4 checks
  • Safety batterythe failure modes that end up in screenshots5 checks
  • The gatea red eval that blocks nothing is decoration3 checks
  • Blast-radius controlautonomy is earned with evidence, never assumed3 checks

Have a system that needs to work?

Tell me the problem. I will tell you honestly whether I am the right engineer for it.

Book a 15-minute call Run a free audit Not sure what you need? Answer 3 questions