We hardened our agent against attacks — and accidentally broke it for real customers

vivvvekredddit1122 · reddit · 2026-11-15

A team tightened agent guardrails after finding policy-bypassing attacks; the attack success rate dropped, but support tickets surged as legitimate requests were refused because the agent grew suspicious of anything resembling an attack. Their fix: every security test case gets a matching legitimate case that should still succeed; each release tracks attacks blocked AND valid requests completed (if one rises as the other falls, that's not a win); refusals are reviewed like approvals, via full traces. An agent that refuses everything is perfectly safe and completely useless.

Original post →

More from coding & agent

coding & agent channel →