Skip to content
digline
A prompt, no application yet

I'm writing a prompt and have no application yet

There is no application here: a prompt in prompts/, five questions in cases.json, and the answers they ought to get. That is enough to tell whether an edit made things better or only different — the question you have on day one, and the one the diff cannot answer.

Two checks, because one is not enough. Levenshtein says how far the answer is from the one you would have written; LlmRubric says the part no string comparison reaches, wrapped in Repeated because a judge asked twice does not answer twice the same.

report.html is what happened when one line — "Always remind the customer of the returns policy" — was added to prompts/system.txt. The report shows the diff of the prompt itself, above the scores it moved. In the run it records, five checks of ten got worse. Three other live runs of the same prompt, against the same baseline, measured seven, seven and eight. The spread is the model's, and one run of it is one draw. The answers come back longer too, about 820–920 output tokens against about 530. The prompt is recorded in every run, so the baseline carries the prompt that produced it: the committed one is measured without that line, and the example ships with it.

The reference is not all green, and that is not the example breaking. The live baseline itself fails five or six checks. Most are Levenshtein: a real model does not use the wording in cases.json, so its distance from the expected answer is large even when the answer is good. One case's rubric also sits under its threshold. This example is about what gets worse when the prompt changes, not about green turning red. Run the shipped state and you will see failures on both sides. The ones that matter are the ones compare names as got worse.

$ uv sync && DIGLINE_LIVE=1 uv run digline run --suite suite.py
$ DIGLINE_LIVE=1 uv run digline promote --suite suite.py --run latest --replacing 2026-10-28T12-25-33-365220-00-00-efe01136327fd179
# edit prompts/system.txt, then
$ DIGLINE_LIVE=1 uv run digline compare --suite suite.py --run latest

DIGLINE_LIVE=1 on every line, and a key in ANTHROPIC_API_KEY: the baseline is live, so the cycle is too. Promoting a keyless run over it would replace a measurement with a stand-in's.

What a live run costs: about 0.07 USD, at digline-anthropic's global rate for claude-haiku-4-5. That is 25 calls to the target and 90 to the judge: five samples of each of five cases, each answer judged three times, and the calibration case's judgings. Where your workspace is served in "us", it is 1.1 times that. The figure is an estimate from two runs of 2026-10-28, at the prices the plugin read on 2026-10-02, and the bill line of your own run is the measurement.

Where your workspace's replies report no geography Anthropic prices, digline cannot price the run: the target's and the judge's cost are not known. The cases are still judged, the bill says cost not known, with no figure, and the line after it says why and what to pin. The digline-anthropic this example installs carries ADR 0004 §8; 0.6.1, the first release to read the geography, errored every case of such a run instead (#569).

inference_geo: "not_available" is not one of them from digline-anthropic 0.8.0. A model that does not take the inference_geo parameter, such as claude-haiku-4-5, reports it, and Anthropic prices it at the standard rate, as digline now does. 0.6.1 to 0.7.0 could not price it.

--replacing names the baseline this promotion replaces: here, the one this example ships, whose key compare prints under its verdict and digline list marks with *. If the baseline has moved since you compared, promote refuses and names both keys.

The keyless path runs. It does not compare.

Without a key the provider and the judge are stand-ins, and DIGLINE_LIVE=1 uses the real ones. What the stand-ins are for is the wiring: that the suite loads, the target is reachable, every case is judged, a run is written and a report renders. That is worth having and it is all it is.

They are not a reference. A stand-in judge here scores by counting sentences and looking for warm words; it cannot read the rubric, and a baseline of canned answers scored that way is a measurement of nothing. Comparing against one tells you that two stand-ins agree with each other, which they always will — and the danger is precise: it looks exactly like a green run, so it teaches a reader on day one that green means working.

So the committed baseline here is a live one, promoted from a real run against claude-haiku-4-5, and digline compare is a live-mode gesture. Run the keyless path to see the shape of the thing; set the key before you believe a comparison.

This example is also where the judge is watched rather than only used: under DIGLINE_LIVE=1 it carries a calibration case, a fixed answer whose place on the scale a judge that still has one has to land inside. It costs judge calls only — the target is never called for it.

What the calibration case does not tell you. Its band, 0.10–0.90, catches a judge whose scale has collapsed onto 0 or 1, and nothing else. It is derived from fifteen judgings per run, five samples of three, and suite.py says how, so changing samples changes the band. A judge whose scale is compressed, giving everything 0.35, passes. So does one that ranks this answer under the real ones. A narrower band would catch more, and it would only hold for the judge it was measured on: the band before this one was written for an earlier judge and stopped separating anything when the judge changed, with nothing turning red.

What the rubric's noise floor does, and where it does nothing. The rubric declares floor_standard_errors=2: a movement inside two standard errors of the baseline's own samples is noise, not a verdict. A declared floor speaks only where the measured noise is wider than the tolerance, because the tolerance is asked first. On the baseline committed here that is two checks of six, gift-wrap and order-a-book. On the other four the floor is narrower than the tolerance, 0.1, and never decides anything.

On the live path the judge is digline-anthropic's AnthropicJudge, in the form examples/langchain uses, so the run records which model graded and the bill has a judge line with its calls (#651). The keyless stand-in, _fake_judge, is a function: it names no instrument, so its run records none, and nothing reports what it spent. Measured on the keyless path on 2026-10-27, with digline 0.34.0: the run file records the judge's line as calls: 0, spent_usd: 0.0 and neither completeness marker, which reads not recorded, and digline run prints no judge line at all. digline built from this repository at bcef1603 prints judge: not recorded. Copy the live judge's shape, not the stand-in's.