Demo video

https://youtu.be/blxbArocAas (2 minutes 36 seconds). Everything in it is the real app, the real repo and real kiro-cli turns. The voice is generated, the captions are burned in.

Try it in ten seconds

Open https://whatever0148-cmd.github.io/NecroCore/ . It starts on PhantomArcade, where four lifted games run as WebAssembly in your browser. Drag a slider and the running game changes without a reset. The CryptLedger tab shows a 1978 interest program with its dead code and its endless loop lit up on their own lines, Kiro's recorded fix plan, and the proof that 10,000 of 10,000 inputs match the original. Running it locally adds the live buttons (steps under "Try it" below).

Inspiration

Old programs do not die. They get stuck. A bank still runs a payroll job that somebody wrote in 1982, and nobody dares to touch it because nobody can say what it really does. Old games have the same problem in a friendlier way. A ROM runs on an emulator, but you cannot ask it questions or change it while it runs.

I wanted one tool that does three things for any old program. It reads it and says what is wrong with it. It rebuilds it as WebAssembly. It proves, with numbers, that the rebuilt copy behaves like the original.

What it does

NecroCore takes two kinds of legacy programs.

  • COBOL batch programs, in a subset I documented in the repo. I wrote three samples styled after 1978, 1982 and 1985 jobs, each with deliberate defects.
  • CHIP-8 and SUPER-CHIP game ROMs. I wrote four original games, including NECRORUNNER-1991, a 128x64 SUPER-CHIP runner.

For each program it does the following.

  1. Autopsy. It lifts the program to one intermediate form, builds the control-flow graph, and reports three static problems. The UI calls them Ghost (unreachable code), Vampire (a counter that only grows and bounds nothing) and Zombie (a loop that can never exit). Every finding carries a line and byte range.
  2. Lift. It compiles the program to WebAssembly text that wasmtime runs.
  3. Prove. It feeds 10,000 seeded vectors to both a reference interpreter and the WebAssembly module and compares every result byte for byte.
  4. Exorcise. It detaches the ghosts and puts a guard on every loop, then scans again. In the last run it found 18 problems across the 7 sample programs and 0 were left after healing.
  5. Spec. It writes the findings as EARS requirements into .kiro/specs/ and asks kiro-cli for a fix plan.
  6. Hot patch. A ROM can be changed while it runs. Pong gets a second ball, a faster pace or wider paddles by writing one byte into the module. The score and the screen stay.

Measured results (from benchmarks/2026-11-15-r2-live-kiro.txt, the run the live site shows, and benchmarks/2026-11-01-register-locals-longrun.txt)

What Result
Differential vectors 70,000 of 70,000 matched (7 programs, 10,000 each, seed 7)
COBOL, WebAssembly vs reference interpreter 9.03x, 16.59x and 17.10x faster per vector
CHIP-8 and SUPER-CHIP, lifted WebAssembly vs native Rust reference interpreter 1.61x to 2.26x faster at 300 steps per vector and 1.87x to 2.32x at 30,000 steps (Nov 1 long run)
Problems found and left after healing 18 found, 0 left
Real kiro-cli turns in the live benchmark 7 of 7, 102.7 s in total, 0 offline fallbacks (benchmarks/2026-11-15-r2-live-kiro-trace.json)
Tests 36 passed, 0 failed. Clippy shows 0 warnings

How it fits the four tracks

Resurrection. This is the main entry. A 1978 style interest program and a 1991 style SUPER-CHIP game come back as live WebAssembly, and the proof is a number, not a promise.

Frankenstein. The parts do not belong together, and they are stitched into one tool: COBOL decimal arithmetic, 8-bit game bytecode, WebAssembly, a Rust daemon with server-sent events, a Swift program that lives under the MacBook notch, and the Kiro CLI.

Skeleton Crew. The template is one shared engine (the intermediate form, the scanner, the healer, the prover and the Kiro bridge) plus crates/necro-daemon, a small server and UI shell. Two apps sit on it in separate folders. apps/cryptledger is the COBOL studio and apps/phantomarcade is the ROM lifter and live modder. Each has its own Cargo package, its own binary and its own port, and its main.rs is about 25 lines. A third app would cost one more folder.

Costume Contest. The interface is a 1978 bank machine room after midnight: warm black, amber phosphor for live text and the proof readout, rust for structure, bone paper for Kiro's printed plans, and green phosphor only inside the arcade cabinet. The haunting is the function. A Ghost line in the listing flickers because nothing ever reaches it, a Zombie loop keeps a slow shimmer because it never ends, and a Vampire line pulses because its counter only grows. Selecting one jumps to its block in the graph. I built the look from research, not from habit: the 2025 winners' pages and four Pinterest boards (retro CRT terminals, 1970s mainframe rooms, haunted computer interfaces, terminal type), saved in research/. It works at 1440 and 390 pixels wide with no sideways scrolling, and every motion turns off with reduced motion.

Best Startup pitch

The paid part of legacy modernization is trust. Banks and insurers do not lack tools that translate code. They lack evidence that the translated program does what the old one did. NecroCore's prover produces that evidence as a table of vectors and a list of exact divergences, which a reviewer or an auditor can read.

How big is the problem. I checked these numbers and I want to be clear about how well each one is backed.

  • A 2017 Thomson Reuters graphic, reported by The Next Web on April 10, 2017, says that in the US about 80 percent of in-person transactions and 95 percent of ATM swipes run on programs written in COBOL. I read this sentence in the article. I could not open the Reuters page itself.
  • The same Reuters work is widely quoted as saying that 43 percent of banking systems are built on COBOL and that about 220 billion lines of COBOL are still in production. Many articles repeat both figures, but I only found them second hand, and they disagree about whether 43 percent means the US or the world. I list them as widely quoted, not as verified.
  • Reuters, April 11, 2017 also reports that banks struggle to find people who can maintain these systems as the engineers who wrote them retire.
  • What the industry spends each year on legacy systems is quoted anywhere from tens of billions to a few hundred billion dollars, depending on the scope and the year. I could not trace any single figure to a primary study, so I do not quote one.

What NecroCore changes. A manual rewrite of a batch job takes months or years, and the risk that scares people is silent drift in rounding and truncation. NecroCore lifts the program and compares fixed-point results against a reference interpreter, 10,000 seeded vectors per program, in about a second on a laptop. It also lists the dead code and the loops that cannot end before anyone changes a line.

The path. Start with small, well-defined batch programs. Sell the autopsy report and the parity proof as a service, one program at a time. Grow the COBOL subset from the real programs customers bring. I am a first-year student and this is a hackathon build, so these are plans and not traction.

How we built it with Kiro

Kiro is in this project at three levels: it shaped the plan, it wrote a real feature, and it runs inside the product. Everything below is backed by a file in the repo.

Spec-driven development. Before writing the Rust I wrote four specs in .kiro/specs/, each with requirements.md in EARS form (WHEN something happens THE SYSTEM SHALL do something), design.md and tasks.md: the core engine, the COBOL prover, the ROM live patcher, and the Observatory with the notch UI. I worked down the task lists and ticked them off. Two more came later: spec 05 for the machine-room redesign and spec 06 for the guardrails below, six in all. The Spec button also writes new specs of the same shape from a real scan, for example .kiro/specs/autopsy-PAYROLL-BATCH-1982/.

Steering. There are ten steering docs. product, tech, structure and proof-before-trust load every time and fix the vocabulary, the layout and the rule that numbers come from real runs. Five load only for the files they cover: voice for the README and these deliverables, cobol-subset for the COBOL lifter, chip8-semantics for the ROM lifter (which shift and load-store behaviour we picked), observatory-design for the UI and prover-and-wasm for the prover. kiro-workflow is loaded by hand.

Kiro wrote a feature from a spec. Requirement 6 of spec 03 asks for a faster way to run a ROM, step_batch(n, period), that keeps the program counter and the timer divider in WebAssembly locals and reads its key presses from a schedule table, so that one host call covers a whole test vector. I wrote the requirement, the design and two tasks. Then I drove kiro-cli (the V3 engine, with .kiro/steering, the hooks and .kiro/settings/mcp.json loaded) through real coding turns. In those turns Kiro:

  • wrote the step_batch export, the inlined timer and the shared dispatch in crates/necro-rom-lifter/src/wat.rs,
  • added the key schedule layout in layout.rs,
  • rewrote the prover in crates/necro-prover/src/lib.rs to make two host calls per vector,
  • wrote a new test, step_batch_matches_step_with_no_keys, and ticked tasks 11 and 12.

Kiro could only read and write files in these sessions, so I ran cargo build and cargo test between turns and pasted the compiler errors back to it. It fixed the two prover errors that way. After one turn that exited with an error, I added the single missing closing parenthesis myself, and the log marks that turn as a human edit. The full transcript of every turn is in benchmarks/kiro-coding-sessions.json.

Hooks that check Kiro's work. There are nine hooks, and one script, scripts/hooks/hook.py, does their work. guard-benchmarks blocks any write to a saved benchmark file, so nobody, Kiro included, can type a nicer number. judges-voice hands back every em dash, semicolon and buzzword in the README and these deliverables with its line number. sync-hosted-page rebuilds the GitHub Pages copy when the UI changes. crate-tests runs the tests of whatever crate was just edited. session-brief gives Kiro the last commits, open spec tasks and the last proof when a session starts. task-proof runs the tests and a proof when a spec task ends. The first three hooks are older: on-exorcise-defect, on-parity-verify and on-legacy-drop. Kiro fired on-exorcise-defect 23 times and on-parity-verify 7 times in all, and on Nov 15 it fired session-brief, guard-benchmarks, judges-voice, sync-hosted-page and crate-tests too. Every payload it sent is in benchmarks/hook-firings.log. task-proof and on-legacy-drop have not been fired from inside a Kiro session yet.

Custom agents. .kiro/agents/ has four agents, each with one job and only the tools and write rights that job needs. exorcist heals findings in the engine crates. prover runs proofs. It has no file-write tool, and its shell runs only the benchmark and the tests without asking. scribe writes only the README and deliverables/. medium turns a player's sentence into patch-table writes through necro_hotpatch. It has no write tool and no shell. On Nov 15 the scribe agent fixed the four semicolons that judges-voice had found in the README, and the hook came back clean on its last write. The prover agent ran the full live benchmark below. Two things went wrong first. The default engine could not find workspace agents, only kiro-cli --v3 does. And a catch-all deny rule I gave scribe also blocked the writes I had allowed.

MCP. .kiro/settings/mcp.json defines necro-mcp, a small MCP server I wrote in Rust that speaks JSON-RPC over stdio, with necro_autopsy, necro_parity and necro_hotpatch. A real kiro-cli turn read the config, started the server, called necro_autopsy on the payroll program and reported the Zombie, the Vampire and the Ghost with their lines. The transcript is in benchmarks/live-kiro-mcp-trace.json.

Kiro CLI inside the product. The necro-kiro-bridge crate runs kiro-cli chat --no-interactive with tools switched off and a timeout, and falls back to a deterministic offline answer if the CLI is missing or fails. The Exorcise button, the --live-kiro benchmark and the mod box in PhantomArcade all use it. All 7 turns of the live benchmark were real: 142 s in total on Oct 31 (benchmarks/2026-10-31-live-kiro-trace.json) and 107.8 s on Nov 15 with kiro-cli 2.37.0, 0 offline fallbacks and 70,000 of 70,000 vectors matching (benchmarks/2026-11-15-live-kiro.json). In the mod box, "double ball speed, widen paddles, and enable zero-gravity bounce" came back from Kiro as FRAME_DELAY 1, PADDLE_H 8 and BALL_DY 0, and the page wrote those three bytes into the running game with no reset (benchmarks/live-mod-trace.json).

Property-based testing. The COBOL lifter has proptest tests, and the prover is a seeded differential test of its own with 70,000 vectors.

Who wrote what. I directed the build with two AI assistants. Kiro wrote the step_batch feature and its test from spec 03, answered the live benchmark turns and the mod box, used the MCP server, fixed the README voice as the scribe agent, ran the Nov 15 proof as the prover agent, and fired the hooks listed above. Claude Code wrote much of the rest of the Rust, the specs and steering text, the hook script and agent configs, and the interface, and ran the tests and benchmarks. I chose what to build, read and checked the results, and decided what ships. I did not use Kiro Powers or Kiro Crew.

How I built the rest

  • Rust workspace. Five library crates and one CLI. Rust stable, wasmtime 50, tokio, clap, serde and proptest.
  • COBOL. A parser for a documented subset, an interpreter with fixed-point decimal rules, and a WebAssembly emitter. The interpreter and the emitter share the same rules: a working scale of 10,000 in a 64-bit integer, truncation or ROUNDED half away from zero, and high-order digits dropped to the PIC width.
  • CHIP-8 and SUPER-CHIP. A decoder, an interpreter, a two-pass assembler with .patch directives, and a WebAssembly emitter with one br_table case per ROM address. Patchable bytes are loaded from memory at run time, so a hot patch takes effect on the next instruction.
  • Daemon. crates/necro-daemon is a std-only HTTP and server-sent-events server on 127.0.0.1. It checks the Host and Origin headers. The two apps and the combined Observatory all use it.
  • Notch pill. apps/macos-notch/necro_notch.swift, about 300 lines of AppKit, compiled with swiftc.

Challenges

  • My first control-flow graph let a PERFORMed paragraph fall through into the next one, which made every loop look like it had an exit. I rebuilt it so that it tracks the call context.
  • The static scanner cannot see that BANK-INTEREST fails to finish on 2,845 of 10,000 inputs. Two loops share one paragraph and merge. The prover catches it. I wrote this limit into the spec instead of hiding it.
  • ROM steps are only a few nanoseconds of work in a native interpreter that is already tight. Kiro wrote the batch entry point, and I then added fused basic blocks, registers held in WebAssembly locals and row-wise sprite drawing. Together they took the ROM speedup from about 1x to 1.6x to 2.4x with the same 70,000 of 70,000 parity. Draw and scroll routines cost about the same in both runtimes, which is the next place to look.
  • Kiro once answered the mod box with valid JSON that was missing its last closing brace. The bridge now repairs that, labels the source as repaired, and has tests for it.

What I learned

Proving a rewrite is mostly about choosing what to compare. For CHIP-8 I compare the whole machine image, so a hidden difference in a register or in a scrolled pixel shows up. The 128x64 mode added a mode byte and 8 user flags to that image, and the same comparison kept working.

What is next

A bigger COBOL subset (the REDEFINES clause and file handling) and a Kiro Power that bundles the autopsy.

Live demo

Video: https://youtu.be/blxbArocAas

https://whatever0148-cmd.github.io/NecroCore/ opens on PhantomArcade, where the lifted games run as WebAssembly in the browser and the patch sliders write into the running module. The Kiro and prover buttons need the local daemon: cargo build --release then ./target/release/necro-cli observatory --serve (steps in the README).

What existed before

Nothing. The repository starts on 2026-10-31, after the submission period opened. The sample COBOL programs and ROMs were written for this entry. Third-party code is limited to the Rust crates in Cargo.toml (wasmtime, wat, tokio, clap, serde, serde_json, proptest). AI help came from Kiro and Claude Code, as described under "Who wrote what".

Try it

cargo build --release
./target/release/cryptledger
./target/release/phantomarcade

Open http://127.0.0.1:4301 for CryptLedger and http://127.0.0.1:4302 for PhantomArcade. ./target/release/necro-cli observatory --serve shows both in one page on port 4300, and the notch pill uses that one. To run the checks:

cargo test --release
./target/release/necro-cli benchmark --vectors 10000

The notch pill needs macOS with Xcode command line tools:

swiftc -O apps/macos-notch/necro_notch.swift -o apps/macos-notch/necro_notch
./apps/macos-notch/necro_notch

Kiro CLI is optional. Without it the buttons use the offline answers and say so.

Built With

Share this project:

Updates

Submission history