Testing an LLM Editor: Planted Errors and Preservation Checks

Published · Updated • articles
LLM EvaluationDeepSeekGeminiClaudeProduction AI

An editing evaluation should test the work the editor actually performs: correct unsupported claims, retain supported detail and leave reproduced code intact. Asking a model whether a draft looks good measures a different task.

Evidence correction, 22 October 2026: The previous article published a ranking and exact results from a reported historical model comparison. This review could not verify those totals from the repository's available prompt and response artifacts. The current article withdraws that ranking and its model-specific cost, failure and accuracy claims. This does not establish that the earlier totals were false; they cannot serve as a verified recommendation here.

The method below can be run on a retained dataset. The accompanying public utility tests only a narrower editing property and is not evidence for the withdrawn ranking.

Define two kinds of edit

Use a source document with a draft that accurately represents it. Keep a manifest containing the source revision, draft, complete instruction, model identifier, configuration and expected facts.

Run the clean draft through the editor. Inspect whether it adds unsupported material, loses technical detail, changes code or damages citations. Retain the raw response before parsing so a later reviewer can distinguish a model result from a parser failure.

Make a second draft with a small number of deliberate errors. For example, change a percentage in the draft while leaving the correct figure in the supplied source. Record exactly which fact was altered and what counts as a correction. Do not change both the source and the draft.

Score the finished edit against that manifest. An error listed in the editor's commentary but retained in the published text has survived the edit. Also inspect for new errors introduced while correcting the planted ones.

Keep failures in the denominator

Record timeouts, refusals, invalid response formats and provider notices separately from factual mistakes. Do not compare one model's successful subset with another model's full set.

For a source-grounded task, a refusal to invent an unsupported claim can be the correct result. Define that case before reviewing model outputs. Count repeated attempts and their expense if the production system would retry them.

Use repeated runs and a held-out prompt set when comparing candidates. Report task-level results so a single difficult prompt does not disappear inside an average. A small sample supports only a limited conclusion.

Run the public preservation check

Download preservation-check.mjs. With Node.js installed, run its built-in fixtures:

node preservation-check.mjs --self-test

The checked-in self-test exercises four synthetic cases:

ChangeExpected result
Wording changes while protected parts stay the sameNo protected-part difference
70% becomes 700%Numeric difference
The citation host changesURL difference
A fenced-code value changesCode difference

Then compare two files:

node preservation-check.mjs before.md after.md

Exit status 1 means at least one checked category changed and needs review. A factual correction can legitimately trigger that result. For a prose-only pass, it is a useful signal to inspect the edit before publication.

Understand what the utility misses

Numeric tokens and URLs are compared as sets. Changing their order, frequency or association with a named model can escape this check. Swapping which provider receives which price is a serious error even when the same numbers remain.

The number pattern is not a general parser for written quantities, units or all numeric notation. The URL comparison does not validate destinations or establish that a linked document supports a sentence.

Fenced code is compared after line-ending normalization. The utility does not run that code, check dependencies or establish that the example works. Inline code is not protected by the fenced-code comparison in the same way.

A passing result therefore means only that these extracted parts match. It cannot establish factual accuracy, preserved meaning or publication quality.

Retain an evidence package for any future ranking

Publish or retain the prompt manifest, source snapshots where permitted, raw model responses, scoring rules and per-case results. Include the parser and scorer versions. Remove secrets and private user data before sharing artifacts.

Separate an evaluator's deterministic checks from subjective judgments about clarity. A confidence score generated by the editor is another output to evaluate; it does not independently certify its work.

Our editorial policy describes the site's publishing process. For a broader evaluation design, the Ragas test-set guide covers building cases from a particular evidence collection.

Frequently asked questions

Does this page establish which model is the best fact-checking editor?

No. The earlier historical ranking has been withdrawn from the current article because the underlying run responses and complete prompt corpus were unavailable for verification. The public checker is a separate synthetic test.

What does the downloadable checker test?

It compares sets of numeric tokens, external URL strings and fenced code between two files. Its self-test covers unchanged protected parts, a changed percentage, a changed URL and changed code.

Does a passing preservation check mean the article is accurate?

No. The same incorrect figure can remain unchanged, and wording can change meaning without changing the checked tokens. Source and meaning review are still required.

Does the checker run any language models or send files to a service?

No. It reads local files with Node.js and makes no model or network calls.

Free interactive tools for the decisions this piece raises.

Related Reading