Two agent runs crashed on their own plan files—7 self-repair rules to save the whole run

petrusenko_max · x · 2026-10-30

Max Petrusenko's WhatsApp agent crashed twice in one day on its own daily plan: a KeyError on checkedafter, then a ValueError on a malformed item id. The builder writes the plan, the sender reads it—one bad field kills the entire send.

His fix: repair the plan at load time, with 7 rules:

Core principle: a plan your agent wrote is input—treat it like untrusted input.

Original post →

More from coding & agent

coding & agent channel →