
The regex your agent wrote hangs on one bad string: a timeout policy, a pumped-input test and a build gate for C#
Agents write validators like ^(\w+\s?)*$ that pass every example and then pin a CPU core on 40 characters of input. Here's how to make that fail in CI, fix it without changing what the pattern accepts, and stop the next one at build time. About 20 minutes.
12 min read