On 2026-07-22, an AI coding agent finished a six-phase implementation, merged cleanly to main, and then — during cleanup — permanently destroyed the plan document that had governed the entire build. The plan file was gone before anyone noticed it was missing. This is the account of how that happened, what made it hard to detect, and what the system looks like now.
What Was Being Built The feature in question added write capability to an existing Telegram-integrated vault system: seven new confirmation-gated tools (save_draft, capture_idea, save_research_note, vault_create_file, vault_append_to_file, vault_update_frontmatter, vault_create_directory), a shared validation and I/O layer in vault_io.py, and an extended confirmation UI that showed users full content previews before committing any write to disk. Nineteen tasks across six phases, each phase handled by a dispatched subagent, with independent re-validation and a commit after every phase before the next subagent was dispatched.
...