Short Definition
A guardrail is a system control that constrains or monitors AI behavior to reduce unsafe, invalid, or undesired outputs.
Intuition
Guardrails are the seatbelts and lane markers around a model. They do not make the model perfect, but they reduce failure risk.
Technical Definition
Guardrails can include input filters, output validators, policy classifiers, tool permissions, human review, structured schemas, and runtime monitors.
Example
A medical assistant may block dosage advice and escalate to a clinician review path.
Common Misunderstandings
Guardrails are not only prompts.
A guardrail should be evaluated like any other system component.