Apps crash when someone sends them something unexpected. Patient Zero is an app that was crashing, then found the bug, fixed it on its own, and left itself a test so the same crash can't happen again.
Built solo for #neatHack by team Trace Element.
What changed
We sent the app 5 kinds of nonsense instead of a real name.
Before the fixAll 5 crashed the app.
After the fixAll 5 are handled safely. This page is the fixed app.
Try it yourself
Pick something to send. Each button sends a different input to the live app.
Look at the result box. It tells you in plain words whether the app survived.
Try the orange one to see the one case it still doesn't catch.
Result will show here.
How it fixed itself
Attack: a script sends bad inputs. Any crash gets noticed.
Diagnose: an AI reads the crash report and the code, then proposes a fix.
Test in a safe copy: the fix is tried on a copy, never on the real app first.
Only if everything passes is the fix applied to the real app.
Leave an antibody: it saves a test and a lesson so the same bug can't return.
Honest limits
Sending a number as a name ({"name": 123}) is still accepted. It doesn't crash the app, so the fixer didn't catch it. We're showing it instead of hiding it.
For developers
POST /items with a JSON body. Try it from a terminal:
curl -i -X POST https://patientzero-heal.duckdns.org/items -H 'Content-Type: application/json' -d '[1,2]'