Evals

Self-improving evals and Lucid

Lucid builds evals from a sentence, explains their results, and improves them: a self-improving eval files one issue per cause when it fires and proposes a change only where the eval was wrong. Nothing ships until you approve it.

Evals drift. Your agent changes, your users change, and a judge prompt that was right last month passes things it shouldn't. Lucid knows your evals as well as your traces: it builds new ones from a sentence, reads their results, and proposes changes, to the eval, to your agent, or both. A self-improving eval asks Lucid to do that on its own whenever its results start to look wrong. Every change waits for you.

The eval loopYour agent runs; evals score them; an alert watches what they decide; Lucid investigates; a change is proposed to the eval and to the agent; you decide what ships. Then it goes round again on new traffic.Your agent runsEvals score themAn alert watchesLucid investigatesA change is proposedYou decideon every runnothing ships until you say so

How self-improving works

Turning it on creates two things that belong to the eval: an alert on it, and an agent the alert starts. Neither appears in Alerts or Agents; you manage them only from the eval. Deleting self-improving, or the eval, deletes both.

  1. The alert firesWhen failures are at or above 5 over 1 hour.
  2. What is already known is settledFailures that are already evidence on an open issue are skipped. A new failure that ended the same way as an open issue's failures is checked by a decision model (same cause?) and attached when it confidently is.
  3. Lucid researches the restIt reads every eval's verdict around each failure (the span, the rest of its run, the run, the conversation) with the trace, groups the failures into distinct problems, and researches up to five at once.
  4. Issues and proposalsOne issue per cause, with its evidence: new, or attached to one already filed. Where the eval decided wrongly, a proposed change to the eval, not in production.

When the agent was wrong and the eval right, the issues are the result and the eval is left alone.

Turning it on

In the editor, open ⋯ → Settings and click Deploy self-improving under Self-improving.

SettingWhat it does
WhenThe measure to watch (Failures, Pass rate, Results marked wrong, Audit disagreements, Errored, Waiting for a person or Average score), how to compare it (at or above, above, below, at or below a value), and over how long (15 minutes to 7 days).
What Lucid should doWhat the agent adds to Lucid's instructions. By default: find why the failures behind the alert happened, using every eval's verdict around them; file one issue per cause with its evidence; propose an eval change only where the eval decided wrongly.
Start pausedCreate both, switched off.

Click Deploy. The section then shows Live or Paused, a sentence saying what it watches, and when it last fired.

Eval settings scrolled to Self-improving: Live, with Pause, Edit, Run now and delete, the sentence saying what it watches and when it last fired, and the re-score history setting below.
  • Pause / Resume switch the alert and the agent together.
  • Edit changes the condition and the instructions in place.
  • Run now runs the agent once, straight away. Issues and proposals appear in a few minutes.
  • The bin deletes the alert and the agent. Issues and proposals they made stay.

If the agent's last run failed, the section says so, with the error.

Results marked wrong is the most direct measure: it fires when people start disagreeing with the eval. Pass rate below a line you trust catches drift nobody has noticed yet. To have Lucid investigate failures across all of your evals instead, turn on When evals fail in Track issues.

Proposed changes

Every proposal lands in one feed, Assess → Evals → Action → Proposed changes: the ones self-improving raised, the ones you asked Lucid for in chat, and the ones that came from marking results wrong. Open ones are marked Waiting for you.

Proposed changes: the feed of proposals on the left, and one open proposal on the right with Put in production and Reject, Why, and What it would change to the eval with the verdicts that would now fail.

A proposal to change the eval shows:

  • What kind of change it is (Make the eval more accurate, Catch a known failure cheaply, Remove a step that never changes anything, Let traces that always pass skip the judge) and which step it touches.
  • Why: the reasoning, in plain words.
  • What to fix in the agent, when the same evidence also shows the agent at fault.
  • What it would change to the eval: how many recent verdicts it would flip each way, which ones, and whether any of them were labelled by a person.
ActionWhat it does
Put in productionPuts the proposed version in production. If production moved since, the change is applied on top of what runs now, as a new version. Your re-score policy runs as for any version.
RejectSay why. The reason is kept, and the next proposal learns from it.
RevertFor a change already in production: production goes back to the version before it.

The regression check

Before a change ships, it is replayed on the results people labelled. If it would get any of them wrong, Put in production is refused and the proposal lists Labelled verdicts it would get wrong. Reject it, or ask Lucid for a change that keeps those right. A change to a step that calls a model can't be replayed this way, and the proposal says so.

Fixes for your agent

When the eval was right and the agent was wrong, the proposal is Fix the agent: no new version, and a note for your engineers on what the agent does wrong and what to change (an instruction to add, a tool to harden, an error to handle). It shows as Fix in the agent in the feed. Mark it Done once fixed, with a line on what was done.

Create an eval with Lucid

Choose Create eval → Create with Lucid in the New eval dialog, or just ask in Lucid:

Create an eval that catches answers which make up numbers.

Lucid:

  1. Checks whether an eval already does this, and asks whether to use it, change it, or add another.
  2. Reads your agent: its recent traces, its tools and model calls, what their outputs look like.
  3. Asks only what it can't see: which agent, which level, which model the judge should use. Name a model (judge it with gpt-4.1-nano) or say no judge to skip that question.
  4. Designs it as triage and tries it on two recent traces.
  5. Creates it switched off, with a card showing its steps, what the tries decided, and Enable.

A design whose Python failed on the tries, or whose judge or decision model errored on every try, is not created: Lucid says which step and why, and refines it.

Ask about results

Why did "Recovers from failed tools" fail so much yesterday?

Which evals got worse after the last deploy?

Lucid reads results the way the product counts them: pass rate is passed ÷ decided, versions are never pooled, and a trace no eval scored is not a pass. Ask Lucid on an eval's page opens Lucid already about that eval.

Improve an eval

Make "Answer quality" stricter about unsupported numbers.

Lucid reads the evidence (the results you name, else those people marked wrong, else recent failures) with every step's answer, decides whether the eval or the agent is wrong, tries the change on those traces, checks what else it would flip and whether it breaks anything a person labelled, and records a proposed change. Marking results wrong on an eval's page does the same: Lucid opens with the request already written.

What Lucid won't do

  • Turn an eval on by itself. Evals it creates start switched off.
  • Put a change in production. Proposals wait for you.
  • Invent results. If something wasn't scored, it says so.

On this page