It’s not a bug per se, and we’re gonna see a lot of this moving forward.
Did a code review, hefty code review, and as I got to the end of it where “the magic happened” I discovered that the logic was actually a case statement for every permutation.
Because they’d asked the AI to write logic to go through each type, the AI wrote a case statement for EACH TYPE.
… it was so fucking fast though. So wrong but so so fast compared to the actual running code.