PortSwigger Interview Question

How do you know that AI is generating the code correctly?