Necromancer
Kiroween 2026Runs locallyView source

COBOL rewrite checker

Old code. New code.
Same answers?

COBOL is an old programming language still used for payroll, banking and insurance. When that code is rewritten, Necromancer finds the exact inputs where the new program changes the result.

  • Runs the old and new program on identical inputs.
  • Explains why an answer changed.
  • Keeps source code inside your browser.
PAYROLL.CBLSmallest failing case
Hours
0.90
Rate
$0.01
COBOL$0.00cuts extra decimals
≠
Rewrite$0.01rounds them

One cent is enough. On payroll, billing, or tax code, a tiny semantic change is a production defect.

What did I build?

A lie detector for rewritten software

Translation is not enough. The replacement has to produce the same business results.

  1. 1
    Start with old COBOL

    The original program is the behavior we need to preserve.

  2. 2
    Add its modern rewrite

    For example, JavaScript written by a developer or an AI assistant.

  3. 3
    Run the same inputs through both

    Necromancer reports and explains every changed answer.

45-second judge pathClick “See it catch two bugs”Inspect the two differencesClick “Test matching baseline”

Change one input

Can one test prove a rewrite is safe?

No. An ordinary paycheck can match while an edge case fails. Change the values, compare one run, then use the full comparison to search thousands.

Try:
Original COBOL
JavaScript rewrite
01

Recover the contract

Parse data definitions and control flow into EARS requirements, including hidden PIC behavior.

02

Generate adversarial inputs

Use field limits, decimal steps, program constants, boundaries, and seeded random values.

03

Shrink the ghosts

Group behavioral differences and reduce each one to a case a human can understand.

Paste your own COBOL and JavaScript rewriteFull migration workbench · parser, generated port, audit and recovered spec

Reference programs

Choose a bundled case, paste your own, or download five demo file pairs.

Original

COBOL source

Replacement

JavaScript port

Program map

What Necromancer recovered

Run one custom caseEnter values for this COBOL program's ACCEPT fields before running thousands

Full behavior comparison

Search thousands of inputs for changed answers
Recovered requirementsKiro-ready requirements.md generated from the COBOL

This is the behavioral contract a modernization team can review before rewriting.