Built for #KiroweenHackathon26 (Costume Contest).
Try it (no login): https://postmortem-md8d.onrender.com
Source (MIT): https://github.com/Foysal348/Postmortem-2.0
The problem
You inherit an old Python project. The requirements.txt is from 2018. You want to upgrade one package, and you have no idea what else will break.
Existing tools give you lists: pip-audit lists vulnerabilities, pipdeptree lists the tree, Dependabot opens pull requests. None of them lets you rehearse a change first and see exactly what it does. Very few of them tell you what they don't know.
The idea
PostMortem 2.0 puts your project on an autopsy table. Every visual effect encodes data:
- Organs are packages.
- A torn red artery is a version conflict: one package requires a range that the pinned version does not satisfy.
- A green infection glow is a known OSV finding, with the worst severity written on the label.
- Fog means there is no evidence. Unknown is never shown as healthy.
- A heart monitor shows the patient's overall state: arrhythmia when there is a conflict.
Then you operate before touching your repo. Pick a cure (Set pin, Remove pin, or a suggested plan), and an isolated pip install --dry-run rehearses it for one fixed target: CPython 3.12, Linux x86_64 (manylinux2014). You get the exact line diff and the known OSV findings before and after.
On the demo patient (a Flask 0.12 app from 2018), three plans all close the torn artery:
| Plan | Changed lines | Known OSV findings left |
|---|---|---|
| A: lower urllib3 | 3 | 44 |
| B: raise requests | 3 | 44 |
| C: modernise the stack | 10 | 0 |
The app says what this means in plain words: closing the conflict is not the same as healing the patient, and a pass means "Constraints satisfied - runtime not tested". Plan C's own description warns that code written for Flask 0.12 would very likely need changes for Flask 3.
After Operate, the graph shows the after state as a clearly labelled simulation:
Four rules the app is not allowed to break
- Evidence over assumptions. Every claim shows its source: PyPI JSON, wheel METADATA, an OSV record id, or a pip report.
- Simulation over promises. A resolver pass is a constraint pass, never "your app will run".
- Unknown is never green. Enforced in the data model: a node with an unknown reason, or an assumed version, cannot be "healthy".
- Decoration serves decision. No visual effect without data behind it.
How Kiro built it
I started on 23 November with Kiro's requirements-first spec workflow. The spec ended with 11 requirements (EARS acceptance criteria with ids such as R2.11), a design with 17 correctness properties, and 19 tasks. Kiro's task agent ran the tasks one by one, and the tests cite the ids they check.
Steering saved me from plausible but wrong code. Early on, the generated metadata code called PyPI's latest release endpoint, so a pinned flask==0.12.2 would have been analysed with today's Flask dependencies. It also read a files key that PyPI does not return. I wrote .kiro/steering/apis.md with the real PyPI and OSV response shapes and links to their docs. After that, no task invented an API field. It is now included only for the modules that call those APIs (fileMatch).
Property-based tests caught what examples missed. Hypothesis tests cover all 17 properties. One property says that applying the computed diff to the original manifest must give the edited manifest exactly. It caught a CRLF file losing its line endings after the manifest became empty, and later a wrong diff when a manifest repeats lines. Both counterexamples are now regression tests. The suite has 1,377 tests.
Hooks keep the loop short. Saving a file runs only the related tests (found by tracing imports), a finished spec task runs the tests for the files it changed, and a "self-autopsy" hook runs PostMortem on its own uv.lock. That self-autopsy found starlette and jinja2 findings in the app's own dependencies, and I upgraded them: it now reports 0 known OSV findings.
The Playwright MCP gave the agent a real browser. It drove Chrome on the live site and took every screenshot in the README. Its console check found a missing favicon (fixed) and a one-off PyPI 502 that led to a new rule: retry once after a transient failure.
Sub-agents as judges. Three rounds of four independent Kiro reviewer agents scored the project like hackathon judges, each with its own focus: value, Kiro usage, technical quality, and the costume UI. Round two alone produced a 47-item priority list, including a rate-limit bypass through a spoofed X-Forwarded-For header. Every item was fixed through new spec tasks.
Things that went wrong (and what I learned)
- Python 3.14 first, then 3.12.
pydantic-corehad no cp314 wheel yet, so the target and runtime stayed on 3.12. - 42 s to 0.3 s. The first live analysis was far too slow. Concurrent fetching, running OSV alongside metadata, PEP 658
.metadatafiles instead of whole wheels, and one kept SQLite connection brought the demo from 18.9 s cold to about 3 s, and to 0.02 s warm. - Honest platform labels. The newest Pillow has wheels only for glibc 2.28+, so on the manylinux2014 target the app picks an older release with more findings. Instead of hiding that, the target is now named everywhere, with the note that newer Linux may pick newer releases.
- Fog reduction without lying. Unpinned lines used to be pure fog. Now they are examined at an assumed newest version: drawn with a dashed border, labelled "assumed", and never allowed to be healthy.
Try it
- Open https://postmortem-md8d.onrender.com (free tier: the first load after idle can take a minute).
- Click Summon the demo patient.
- Click an organ to read its evidence, then Compare A, B and C in the operating theatre.
- Download the autopsy report as Markdown or JSON.
Or upload your own requirements.txt. If you maintain legacy Python code, I would love to hear what it gets wrong.
Code, spec, steering, hooks and all three review rounds are public: https://github.com/Foysal348/Postmortem-2.0

