{"fix":"FAILURE MODE: Logic Error — the code is syntactically valid but contains logical mistakes: wrong conditions, missing edge cases, or incorrect data flow that will produce bad behavior at runtime.\n\nINTENT DETECTED: The original AI generated JavaScript/TypeScript code to implement a reusable utility function, but the implementation has logical flaws that will cause incorrect behavior when executed.\n\nFIXED CODE:\n// ── ZAMBOT STATIC TRIAGE — AI rewrite engine temporarily unavailable ─────────\n// Failure mode correctly identified above using static analysis.\n// Use this ready-made prompt in Claude, Cursor, or ChatGPT to get the fix:\n//\n// ┌─────────────────────────────────────────────────────────────────────────┐\n// \"Fix this broken AI-generated code. Failure mode: Logic Error. The original AI generated JavaScript/TypeScript code to implement a reusable utility function, but the implementation has logical flaws that will cause incorrect behavior when executed.. Rewrite it completely — no placeholders, no stubs, no truncation. Return only the working code.\"\n// \n// Then paste your original code.\n// └─────────────────────────────────────────────────────────────────────────┘\n//\n// Your original code (1 lines · 38 chars):\nconst x = undefinedVar; console.log(x)","text":"FAILURE MODE: Logic Error — the code is syntactically valid but contains logical mistakes: wrong conditions, missing edge cases, or incorrect data flow that will produce bad behavior at runtime.\n\nINTENT DETECTED: The original AI generated JavaScript/TypeScript code to implement a reusable utility function, but the implementation has logical flaws that will cause incorrect behavior when executed.\n\nFIXED CODE:\n// ── ZAMBOT STATIC TRIAGE — AI rewrite engine temporarily unavailable ─────────\n// Failure mode correctly identified above using static analysis.\n// Use this ready-made prompt in Claude, Cursor, or ChatGPT to get the fix:\n//\n// ┌─────────────────────────────────────────────────────────────────────────┐\n// \"Fix this broken AI-generated code. Failure mode: Logic Error. The original AI generated JavaScript/TypeScript code to implement a reusable utility function, but the implementation has logical flaws that will cause incorrect behavior when executed.. Rewrite it completely — no placeholders, no stubs, no truncation. Return only the working code.\"\n// \n// Then paste your original code.\n// └─────────────────────────────────────────────────────────────────────────┘\n//\n// Your original code (1 lines · 38 chars):\nconst x = undefinedVar; console.log(x)"}