Novuz

Research insights

The review burden of AI-converted code

A simple model of why checking effort follows the size of the estate, and how rules change the arithmetic

Written by

Ted Ghose, Co-founder and CTO
Ted Ghose

Co-founder and CTO

Novuz Inc. · · 13 min read

Executive summary

Conversion tools are compared by pass rate: the share of objects converted correctly. This note argues that for planning a migration the pass rate is the wrong number, because review effort depends on whether the wrong objects can be located, not on how many there are. It sets out a small model with stated assumptions. When errors are scattered and cannot be located in advance, every object must be checked, at any pass rate. When errors are systematic, as with a wrong rule, they are found in groups and fixed once. Automated reconciliation narrows the gap by making the check cheap, but it does not remove the repair work or the cost of output that changes between runs. This is a model, not a measurement, and its limits are stated at the end.

Key points

  • If wrong objects cannot be located in advance, the number of objects to check equals the size of the estate at any pass rate below 100%.
  • Systematic errors, such as those from a wrong rule, cluster: one diagnosis explains many failures, and one fix repairs them all.
  • Automated reconciliation makes checking cheap for any method. What remains different is the repair loop and whether a rerun changes objects that already passed.

Recommended actions

  • When a vendor quotes a pass rate, ask how the failing objects are identified, and how long that takes on an estate your size.
  • Ask whether errors cluster: when one object fails, does the same cause explain others?
  • Ask what happens to already-proven objects when the conversion is run again.

What question does this note answer?

How much checking does a converted estate need, and what does that depend on? The usual answer is the pass rate. This note shows why that answer is incomplete.

Method. This is an analytical model, not a study. It states its assumptions and works through the arithmetic with illustrative numbers. It uses no measurements and no Novuz customer data. Its purpose is to make a line of reasoning easy to check, and to say what would have to be measured to test it.

What does a pass rate tell you?

Take an estate of N objects converted at pass rate p. The expected number of wrong objects is N × (1 − p). At N = 1,500 and p = 90%, that is 150.

That number is the repair work. It is not the checking work. To repair 150 objects you first have to know which 150 they are, and the pass rate does not say.

How many objects have to be checked?

It depends on whether the wrong ones can be located without checking each one. If they cannot, every object is a candidate, and the number to check is N whatever the pass rate.

Pass rate (illustrative)Wrong objects, of 1,500To check if errors cannot be locatedChecks per wrong object found
90%1501,50010
95%751,50020
99%151,500100

Why does a better pass rate not reduce the checking?

Because the last column moves the wrong way. As the pass rate rises, the wrong objects become rarer and no easier to find, so each one costs more checks to locate. A team at 99% still inspects 1,500 objects, and now finds a problem once in every hundred.

This is also where human review weakens. People checking long runs of correct items miss the rare wrong one. A high pass rate makes manual review both more expensive per defect and less reliable.

What changes when errors are systematic?

A conversion rule that is wrong fails the same way on every object that matches its pattern. Those failures share a cause, so they are found together: the same mismatch, on the same kind of rows, across a set of objects that all use one rule.

Suppose, as an illustration, that the 150 wrong objects come from six faulty rules. The work is then six diagnoses and six fixes, after which all 150 are converted again and checked. With scattered errors the same 150 objects are 150 separate investigations.

Scattered errorsSystematic errors
How failures appearOne at a time, with no shared causeIn groups that share a cause
Diagnoses needed (illustration)1506
What a fix repairsOne objectEvery object using the rule
Effect on the next estateNoneThe corrected rule carries over

What happens to the estate as a whole?

The per-object view understates the problem, because a migration needs every object right. If objects are converted correctly with probability p, independently, the probability that all N are correct is p raised to the power N. For N = 1,500 this is effectively zero at 90%, about 0.00003% at 99%, about 22% at 99.9% and about 86% at 99.99%.

Independence is an assumption, and a generous one for scattered errors. Its consequence is that no realistic pass rate makes checking optional. The remaining question is only what checking and repair cost.

How far does one wrong object reach?

Objects are not independent in their effects. An estate is a directed graph: each object reads from others. If an object is wrong, every object that reads from it, directly or through intermediaries, produces wrong results too, even when its own conversion is correct.

Write D(i) for the number of objects downstream of object i. A single wrong conversion yields 1 + D(i) objects with wrong output. Errors near the sources of the graph, in staging and conforming layers, have the largest D. The practical consequences are two. The number of objects that fail reconciliation exceeds the number that were converted wrongly, and each failure has to be traced upstream to its origin before it can be fixed.

Here the shape of the errors matters again. When failures share a cause, tracing one of them finds the origin for all. When they do not, each trace is separate.

Does automated reconciliation remove the difference?

It removes a large part of it, and that should be said plainly. If every object is reconciled automatically, by running the original and the converted version on the same inputs and comparing results, then checking 1,500 objects is machine time, not people’s time, for any conversion method. Any serious migration should do this.

Two differences remain. The first is the repair loop: reconciliation tells you which objects failed, and with scattered errors each failure is still its own investigation. The second is stability. If a conversion can give different output on a second run, then rerunning it, to pick up a fix or a changed source object, can alter objects that had already passed, and they must all be reconciled again.

What does unstable output cost?

Let r be the number of times all or part of the estate is converted again during the program, because the source changed, a fix was made or a domain was redone. Compare two cases.

Output stable between runsOutput can change between runs
Objects affected by a rerunOnly those whose source or rules changedPotentially all of them
Objects to reconcile over the programAbout N, plus the changed objects on each rerunAbout N × (1 + r)
Status of earlier proofStill valid for unchanged objectsVoid for any object whose output changed
New failures after a rerunOnly among changed objectsPossible anywhere, including objects that had passed

Why can sampling not replace full comparison?

Because rare defects are missed with high probability. If a fraction f of rows in a result is wrong and k rows are sampled, the probability that the sample contains no wrong row is (1 − f) raised to the power k. For f = 0.1% and k = 1,000 that is about 37%. Many dialect errors affect far fewer rows than that: a boundary-date difference may touch only rows dated 31 December.

Full comparison is therefore the baseline: totals for every column, and every row matched by key. It is affordable only when automated, and it is trustworthy across reruns only when unchanged input gives unchanged output.

Where does a language model fit in this model?

Where errors would be one-offs anyway. Some objects match no rule, because the right conversion depends on intent the code does not state. Each is unique, so there is no class of failure to fix once, and a model’s ability to read context and propose a conversion is useful.

The arithmetic is then favorable, provided the set is small. If rules settle about 95% of a 1,500-object estate, about 75 objects need a proposal. An engineer can read 75 proposals with care. Nobody can read 1,500. This is the design Novuz uses, stated here so readers can weigh this note accordingly: rules for the bulk, a resolver for the remainder with an engineer approving each proposal, and reconciliation for every object.

What would test this model?

Four measurements would confirm or refute it. We would welcome published data on any of them.

  • Error clustering: on a real estate, what share of failed objects share a cause with at least one other failure, for each conversion method?
  • Rerun stability: after a second run, how many previously passing objects change, and how many of those then fail?
  • Repair effort: hours per failed object, by method, including the time to find the cause.
  • Review reliability: how often does a human reviewer catch a seeded defect at different pass rates?

What are the limits of this note?

It is a model. The numbers are illustrations chosen to make the arithmetic easy to follow, not results. Real estates are messier: rule errors are not always cleanly grouped, and model errors are not always fully scattered, since a model can repeat a misunderstanding across similar objects.

It also treats the pass rate as fixed. Tools that add tests, retries and context can raise it, and automated reconciliation changes the cost of checking for everyone. The note’s claim is narrower than “rules are better”: it is that the location and clustering of errors, and the stability of output between runs, decide the effort after conversion, and that a pass rate alone describes none of them.

Sources

  1. Pan, R. and others, “Lost in Translation: A Study of Bugs Introduced by Large Language Models while Translating Code”, ICSE 2024, arXiv:2308.03109
  2. Atil, B. and others, “Non-Determinism of ‘Deterministic’ LLM Settings”, arXiv:2408.04667
  3. Novuz research note, “Why AI code conversion is hard to audit”, November 2026
  4. Novuz research note, “Validating a data migration: methods compared”

Next step

See how errors cluster on your own code. Convert 10 converts ten of your hardest objects twice, free and under NDA, and returns both outputs with a reconciliation report for each.

Last reviewed:

Find out what your logic debt is costing you.

Every object counted, lineage, dead code and a fixed price in three business days. $3,000, credited.

Take the logic debt scorecard

Not sure which door? The scorecard takes ten minutes and tells you.

Scorecard