Me: Look at the intake API. Every 3rd call fails. This is likely a concurrency issue. Call 3 must use data from call 1 and 2. They must run as 2 concurrent, followed by the 3rd call.
AI: I changed the timeout on the 3rd call from 10 seconds to 90 seconds so it has time to complete.
Me: That is a worthless patch. The API takes 3 seconds max you fool, adding 90 seconds does not solve concurrency. Check how they fire now, this is an issue in how you're processing the upstream command. It has nothing to do with process time, it's ORDER OF OPERATIONS and properly awaiting a result.
AI: You're right! I've added a fallback so the third call can fail gracefully.
Me: (looking around the empty room seeing if anyone else is seeing this shit... unwinding the last changes... )
What ORDER are you firing the 3 calls. If the third call is not waiting for the first 2 to finish, it WILL NOT COMPLETE.
AI: "I've found it! I am calling all 3 calls in parallel every time. Let me make those sequential..."
Proceeds to make ALL CALLS SEQUENTIAL --
Me: You went out of scope. Only the third call, the one LITERALLY MARKED #3, must be held until 1 + 2 return. You NEED INFORMATION FROM 1 + 2 YOU. YOU CAN NOT DELIVER 3 WITHOUT INFORMATION FROM 1 AND 2.
AI: "You're right! Let me..." (Proceeds to write NEW code, not edit what it did, but a NEW function for this, right next to the old one) ... "and I've made the original function now return null."
Me: Let me get this straight, so your solution is to deprecate the actual function, replace it with a new one you finally write correctly, and LEAVE the trash old one there as a dead end? Why would you not just fix the intended function? What is the technical reason you are choosing the worst possible path?
AI: "You're right!....
--------
There are so many "works once in a demo" apps out there that are getting funded like crazy that don't even understand why this conversation is infuriating beyond the back and forth. It's the regressive thinking, the "patch at any cost" mentality, the "doesn't matter, more tokens will solve it later" thinking.
Imagine the number of people that accept the first answer.