Guardrail
I already told the system prompt not to leak phone numbers or promise refunds. Why do I still need guardrails?
You can say this to an AI Agent
Ready to paste into Cursor, Claude Code, or CodexAdd input and output guardrails around the support chat endpoint: redact phone and ID numbers before calling the model, and check responses with deterministic rules for secret prefixes or unverified refund promises. When triggered, return a safe fallback reply and log the reason. Verify with normal, PII-input, and over-promising-output test cases.
