GlossaryWhat keeps it honest

Guardrails

Deterministic checks around a model that decide what may enter, what may leave, and what may never happen — enforced outside the weights.

Category

What keeps it honest

Guardrails are the checks that run around a model rather than inside it. They decide what context may enter, what output may leave, which tools may be called, and which actions are prohibited regardless of how confident the model is.

Why they cannot live in the model

A model's behavior is shaped by training and can be shifted by an unusual input. A guardrail is code: it either passed or it did not, and the result is inspectable after the fact. Anything that must hold every time — an approval limit, a prohibited action, a data boundary — belongs in the deterministic layer, because “the model has been trained not to” is not a control.

What they look like in practice

Input checks: is this data permitted for this task, is the requester authorized, has sensitive content been removed or tokenized before processing. Output checks: does the response match its schema, does it cite the evidence it claims, does it stay inside the permitted action set. Terminal checks: does this action exceed the delegated limit, is a required piece of evidence missing, has a stop condition fired.

What they are not

Guardrails do not make a weak system safe. They bound the failure, which is different from preventing it. A system whose model is wrong half the time and whose guardrails catch it is a system that stops half the time — correctly, and uselessly. Quality comes from the design; guardrails make its limits enforceable.

Often confused with

How it differs from similar terms.

guardrails compared to adjacent terms
guardrailsCompared withWhat's different
GuardrailsPrompt instructionsInstructions influence behavior. Guardrails are code that either passed or did not, and leave a record.
GuardrailsEvaluationEvaluation measures before release. Guardrails enforce at run time, on every call.

People also ask

Follow-up questions.

Why can't guardrails live in the prompt?
A prompt influences behavior; it does not enforce it, and it cannot be audited after the fact. Anything that must hold every time — an approval limit, a prohibited action, a data boundary — belongs in deterministic code that either passed or did not and leaves a record. “The model has been trained not to” is not a control.
Do guardrails make an AI system safe?
They bound the failure, which is not the same as preventing it. A system whose model is frequently wrong and whose guardrails catch it is a system that stops frequently — correctly, and uselessly. Quality comes from the design; guardrails make its limits enforceable and its failures visible.

Want these terms worked through on one of your own decisions? Start with a Decision Blueprint

https://eqlx.ai/glossary/guardrails · Printed copy; the website is the current version.