I actually just got a PR from my boss's AI agent. It identified the wrong problem (surface level), and corrected it by corrupting the document data, but making it no longer throw an exception.
Take that clankers