Built for the Kiroween 2026 hackathon (Resurrection category). #KiroweenHackathon26 Files outlive the software that wrote them. An image saved in a format nothing installed today can open is lost, even though every byte is intact. The pictu...
Built for the Kiroween 2026 hackathon (Resurrection category). #KiroweenHackathon26
Files outlive the software that wrote them. An image saved in a format nothing installed today can open is lost, even though every byte is intact. The picture is still in there.
So I built NECROPSY. You drop in a file nothing can open. It works out how the bytes are laid out as an image, proves that layout by arithmetic, and gives you the picture back. When the bytes allow more than one answer, it shows you every answer and refuses to guess.
Live: https://necropsy.vercel.app
Code: https://github.com/RAK2315/necropsy
Demo: https://youtu.be/Szk8CkFRrTg
This post is about how Kiro shaped the build. In short: the spec stopped being a plan and became the project's memory.
The one rule: prove, don't guess
A layout is accepted only if decoding its data region gives exactly row_stride × height bytes and consumes the whole region, with nothing left over. That check is binary. No score, no threshold, no model deciding what looks right.
Every file ends in one of three outcomes: RESOLVED (one layout closes), UNRESOLVED_AMBIGUITY (several close, and NECROPSY shows them all) or FAILED (nothing closes, and you see every reading it tried and why it failed).
Try mystery_d on the live site. It is 104 bytes with no header. 18 different images fit those bytes exactly. NECROPSY shows all 18 and picks none, because the bytes don't contain the information needed to choose.
Specs as a Decision Record
Kiro wrote everything that ships, through five specs: the engine, the UI, an adversarial test of the gate, a real-file corpus, and an MCP server. Each has requirements in EARS form, a design, and tasks.
The most useful thing I did was put a Decision Record at the top of the engine requirements. Every time a measurement forced a design change, it went in as a numbered item: what changed, the number behind it, and the alternatives not taken. It ended at 27 items.
Some of them:
The gate let wrong answers through. The first decoder stopped when its output was full and never checked for leftover input. On one sample, 224 of 1,521 width and height pairs below 40 "closed". Closure now requires full consumption of the data region.
A score picked the wrong image. I measured row coherence as a way to rank candidates. On mystery_d a false image scored 0.1646 against the true one's 0.3342, and lower reads as more coherent. So coherence is shown but never decides anything.
List order decided the answer. The right answer for one file surfaced only because a strategy happened to be listed first. Now every phase collects every closing layout before deciding.
Because the reasons lived in the spec, Kiro had them in front of it every time a later task touched old ground. Decision 27 got made without re-arguing the first 26.
Property-based tests that found real bugs
The engine design states 17 correctness properties, such as "Never raises", "Closure soundness" and "Coherence cannot change the outcome". Each has a tagged Hypothesis test: 35 @given tests across 13 files.
One property, "the emitted spec reproduces the engine", failed on a malformed TIFF that Hypothesis generated. That turned into a Decision Record item: a file that breaks its own format's rules gets a spec for that one file, not a rule for the whole format.
Steering, hooks and custom agents
Steering: two files always on (project scope; parsers must return structured errors and never raise), and three path-scoped ones for the engine, tests and UI. The engine file says "standard library only", and the engine has no third-party dependencies.
A hook: every file Kiro saves is appended to docs/KIRO-LOG.md with the time and git HEAD. 634 rows, a full audit trail of the build.
Custom agents: dev implements one task and commits it, reviewer can run tests but cannot write, and spec can only write inside .kiro/specs/.
Closing the loop: a spec that builds a parser
For every file it recovers, NECROPSY writes a Kiro spec for the format: requirements.md, design.md and a pytest acceptance test. It deliberately ships without a parser.
To test that idea, I took a real 14,313-byte RLE-compressed PCX from Pillow's test suite, emitted its spec, and gave a fresh Kiro session that folder and nothing else. Kiro wrote the parser from the spec alone. All 4 tests pass, and the decoded pixels are identical to Pillow's.
That was my favourite moment of the build. One tool's output became another Kiro session's input, and it worked first time.
MCP and a Kiro Power
NECROPSY also runs as an MCP server with two tools, analyse and emit_spec, packaged as a Kiro Power with a skill telling the agent to report every candidate and choose none. I installed it in an empty workspace and asked Kiro about mystery_d. It listed all 18 candidates and chose none.
One practical lesson: Kiro truncates tool results over 30,000 characters. The analyse result drops pixel buffers to stay under it, and the largest result in the corpus is 25,890 characters.
Does it work on real files?
81 files from the test suites of six image decoders (Pillow, libtiff, Go image, ImageMagick, SDL_image, imagers). Of the 26 in scope, 23 come back pixel-identical to Pillow. A second implementation, written from the requirements text alone and sharing no code with the engine, reproduces the engine's results on all nine samples.
What I'd tell someone starting with Kiro
Write the measurement next to every decision. Your spec becomes something the agent can reason from, not just a checklist.
Turn your invariants into property tests early. They find the cases you would never write by hand.
Check the agent's work from outside. Kiro wrote the code and the tests, so I added a separate implementation from the spec alone to compare against.
Make "I can't tell" a valid answer. Here it was the feature, not a limitation.
Thanks for reading. Try it at https://necropsy.vercel.app, starting with mystery_d.