DEV Community

Ricky Gole
Ricky Gole

Posted on

I let Kiro translate a COBOL paragraph. The compiled COBOL said it was wrong 2,393 times.

I wrote this as part of the Kiroween 2026 hackathon (Resurrection category).

COBOL still runs a huge amount of benefit and banking code, and rewriting it is the easy part. The hard part is knowing the rewrite behaves the same, because the old program does things no document mentions. So I built Necromancer, a workbench that checks a rewrite against the real, compiled program.

The idea

  • The oracle is a COBOL program compiled with GnuCOBOL 3.1.2. Whatever it prints is the truth.
  • The twin is a Python rewrite, written from the written rules alone.
  • The harness feeds both the same 80-byte records and compares the 40-byte answers. Every disagreement is shrunk to the smallest claimant that still breaks, and a person decides what to do with it.

The test program, UICALC, is synthetic: a small unemployment-benefit calculator I wrote for this project. Its rules are not any state's law.

Where Kiro came in

I picked one real paragraph from the public AWS CardDemo sample, 1300-COMPUTE-INTEREST, and asked Kiro to translate it to Python from a task file alone, using the spec workflow. Kiro wrote the requirements, design, tasks and the code.

Then the compiled COBOL checked it:

  • v1 differed from the COBOL in 2,393 of 51,251 cases. Every one was an overflow: COBOL with no ON SIZE ERROR keeps the low-order digits, while the translation raised an error.
  • I decided to preserve the wrap. v2 had 3 mismatches, where COBOL stores negative zero and the translation returned positive zero.
  • I decided to preserve that too. v3 had 0 mismatches in 51,251 cases.

That is evidence over those cases, not a proof. The two decisions are drafted as records and are still marked unconfirmed until a reviewer signs them.

I also used Kiro for an evidence-report spec, agent hooks that fired when I saved a design file, custom agents, an MCP server that exposes the compiled oracle, and Hypothesis property tests.

What did not work

Kiro's shell never worked inside the IDE in my setup, so Kiro could not run its own tests and I ran everything outside it. Workspace steering files did not load, so I make no claim that steering changed anything. Most of the rest of the repository was written with other AI coding tools. The repo has a KIRO.md that says exactly what was and was not run in Kiro.

Try it

The site runs the compiled COBOL against the twin live: https://necromancer-rickygole32-8911s-projects.vercel.app

Code (MIT): https://github.com/Rickygole/necromancer

Top comments (0)