← UC-338: Translation Was Never the Hard Part
Companion · UC-338

Truncate or Round

OpenAI’s COBOL test counts a migration as correct only if it passes every hidden test. Here is a tiny migration and a set of tests. You choose which tests are hidden, and see what a pass can and cannot tell you.

1 · A one-line rule nobody wrote down

The original program works out monthly interest. In COBOL, if a result has more decimal places than its field can hold, the extra digits are dropped unless the line says ROUNDED. The migrated version does what most people would write today.

Original · COBOL
05 WS-INTEREST PIC 9(7)V99.
COMPUTE WS-INTEREST =
    WS-BALANCE * WS-RATE / 100.
* no ROUNDED: extra digits dropped
Migrated · Java
interest = balance.multiply(rate)
    .divide(HUNDRED)
    .setScale(2, RoundingMode.HALF_UP);
// rounds to the nearest cent

Simplified for illustration. OpenAI’s post uses this behaviour as its example: a rewrite that rounds “can run without errors while producing different financial results.”

2 · You choose the hidden tests

Tick the accounts that go into the test suite. A migration passes only if every chosen test gives exactly the same output as the original.

Test?BalanceRateExactOriginal (drops)Migrated (rounds)
Hidden test suite—
Accounts where the money differs—

3 · One cent, many times

Each difference is a single cent. For amounts with arbitrary fractions, rounding and dropping disagree about half the time. Move the volume.

calculations a day → about a day moving to the wrong side of the ledger.

Illustrative arithmetic, not data from any bank: half of the calculations differ by one cent. The point is direction, not size — the migrated system and the old one no longer agree, and every test that was chosen still passes.

4 · Three companies, one hard part

“You’re reverse engineering business logic from systems built when Nixon was president.”
Anthropic, Feb 23, 2026
“Translation captures almost none of the actual complexity.”
Rob Thomas, IBM, Feb 2026
“Important business rules may only exist in code.”
OpenAI, Oct 19, 2026

5 · What the market did

Feb 23, 2026Anthropic’s COBOL post. IBM falls 13.2%, its worst day since 2000.
Oct 19, 2026OpenAI: COBOL migration from 5.4% to 97.9% on hidden byte-for-byte tests.
Oct 21, 2026IBM beats estimates and calls modernization a long-term cycle. Up 3.96% at the close, then down 3.7–5.1% after hours.

IBM had already partnered with both model makers: Anthropic in October 2025, OpenAI in August 2026.

A companion visual to UC-338 · Translation Was Never the Hard Part, a StratIQX case study. It illustrates the subject; it is not part of the case’s scored analysis. The accounts, code and volumes are simulated.
Source for the evaluation and the rounding example: OpenAI, “Advancing coding in low-resource programming languages,” October 19, 2026. Its COBOL test programs are not public.