Reliable guardrails work in three layers, each catching what the others might miss. Input rules constrain what's allowed into the workflow in the first place. Prompt-level refusals teach the AI its own red lines — situations where it should stop and flag rather than proceed. Output validation mechanically checks what came out, regardless of what the prompt asked for.
No single layer is sufficient on its own. Input rules can't catch a bad output from an otherwise-valid input; prompt refusals can be talked past by an unusual phrasing; output validation alone lets bad data flow in and get processed before being caught. Together, the three layers catch each other's blind spots.