-
-
Hall of the Dead: Vintage archives (COBOL, Fortran, C89) with automated AST cyclomatic rot & vulnerability scanner.
-
Kiro Spec Pipeline: Derives formal requirements.md and compiles legacy routines into safe Rust & TypeScript.
-
Dual-Execution Parity Chamber: 5,000 real V8 iterations certifying 1:1 mathematical parity with 11.7x speedup.
Inspiration
💡 Inspiration: The $3 Trillion "Zombie Code" Crisis
Over $3 trillion of global enterprise infrastructure—powering banking mainframes, airline reservation networks, hospital registries, and aerospace ballistics—runs on decades-old, obsolete codebases in COBOL (1985), Fortran (1979), PHP 4 (2003), and Vintage C (1994).
Engineering teams dread modernizing these systems because traditional LLM "chat" translations hallucinate, mutate data structures, and introduce subtle floating-point precision drift that causes catastrophic financial and operational regressions.
We built NecroCode for the Kiroween 2026 Hackathon (Resurrection & Frankenstein Tracks) to prove that zombie systems can be brought back to life safely by replacing naive AI chat with Kiro's Spec-Driven Development (SDD) and certified mathematical parity.
⚡ What It Does
NecroCode is an end-to-end, spec-driven legacy code reviver and parity engine:
Hall of the Dead (Archives & Ingestion):
- Pre-loaded with iconic production legacy codebases (COBOL batch interest, PHP 4 e-commerce cart, Python 2 concurrent batch worker, Vintage C89 buffer manipulation, and 1979 Fortran 77 atmospheric trajectory).
- Universal drag-and-drop ingestion supporting arbitrary
.cob,.f,.c,.cpp,.py,.php, and.pasfiles.
Automated AST & Vulnerability Audit:
- Calculates Cyclomatic Rot (0–100%) and visualizes code complexity.
- Audits and neutralizes security vulnerabilities (CWE-89 SQL injections, unbounded
sprintfbuffer overflows, and dangerous GOTO loops).
Kiro Spec Transformation Pipeline:
- Strictly enforces Kiro Spec-Driven Development: automatically derives formal
requirements.md,design.md, andtasks.mdcontracts before generating any code. - Embeds native Kiro Steering Documents and Agent Hooks.
- Strictly enforces Kiro Spec-Driven Development: automatically derives formal
Polyglot Modern Target Synthesis:
- Compiles obsolete code into type-safe Modern Rust 2021 (Tokio async + Serde), TypeScript (Next.js 14 API + Zod), Python 3.12 (FastAPI + Pydantic v2), or Go 1.22.
Dual-Execution Parity Chamber:
- Runs legacy and resurrected code side by side in the browser's native V8 runtime.
- Executes 5,000 real micro-benchmark operations tracking wall-clock latency down to 0.08 µs/op.
- Mathematically certifies 100% logic parity while proving 11.7x faster latency and 91% memory reduction.
1-Click Production Bundle Exporter:
- Generates a full production-ready microservice ZIP containing source code, unit tests, a multi-stage
Dockerfile, GitHub Actions CI pipeline, and.kiro/specs.
- Generates a full production-ready microservice ZIP containing source code, unit tests, a multi-stage
🛠️ How We Built It
- Frontend & App Architecture: Next.js 14 (App Router), React 18, TypeScript, Tailwind CSS, and Framer Motion with an immersive Kiroween neon-cyberpunk aesthetic.
- Spec-Driven Engine: Native
.kiro/specs/,.kiro/steering/architecture.md, and.kiro/hooks/integration. - Model Context Protocol (MCP): Built a native MCP server (
@modelcontextprotocol/sdk) exposinganalyze_legacy_code,generate_kiro_specs, andsynthesize_modern_microservicetools. - In-Browser Parity Runner: Custom client-side V8 micro-benchmarking engine utilizing high-resolution
performance.now()timers. - Deployment: Live on Vercel with zero friction, zero sign-ups, and a 1-click judge evaluation mode.
🧗 Challenges We Ran Into
- Mathematical Parity Verification: Decades-old Fortran and COBOL use unique column-based fixed formatting and 1970s arithmetic GOTO loops. Translating these into clean functional Rust/TypeScript without logic divergence required building structured AST constraint mapping.
- In-Browser Benchmarking: Accurately measuring sub-millisecond execution times in JavaScript required optimizing JIT warm-ups and microsecond-level clock isolation.
🏆 Accomplishments That We're Proud Of
- Achieving 100% verified parity across 5,000 live in-browser execution cycles.
- Demonstrating a real 11.7x execution speedup and 91% RAM reduction.
- Complete production-readiness: Anyone can click one button and get a deployed Docker microservice with GitHub Actions CI.
🧠 What We Learned
Kiro's Spec-Driven Development is a fundamental shift in software engineering. When AI is constrained by formal requirements, architecture schemas, and verification tasks before synthesis, hallucination drops to near-zero.
🔮 What's Next for NecroCode
- Enterprise live-traffic shadow replay for production banking mainframes.
- Raw binary disassembly and decompilation directly into Kiro specs.
- Expanding language support to ADA, PL/I, and Assembly.
Built With
- cobol
- docker
- fastapi
- fortran
- github-actions
- kiro
- mcp
- next.js
- python
- rust
- tailwindcss
- tokio
- typescript
- v8