- Add type guard to safely check for 'failed' property existence - Use 'in' operator to handle union type properly - Fixes TS2339 error: Property 'failed' does not exist on type 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>