Guardrail

A runtime control that inspects or mediates a model's or agent's inputs, outputs or tool calls and blocks, rewrites or escalates what breaks a policy, logging each decision as evidence. Guardrails are deterministic code or classifiers in the call path, unlike a guardian agent, which is itself an AI system.

Developed in
ch. 05, Pattern: Runtime Guardrail
ch. 23, Runtime guardrails for tool calls
Chapters
ch. 04, The Stack · ch. 05, Patterns · ch. 23, AI Agents
Contrast with
Guardian agent
Source
Defined by this Body of Knowledge: the section it is developed in is the source

Where it is used

21 chapters of the Body of Knowledge use the term. Each link opens the first section that does.

Mentions per chapter How often each chapter names the term, with the chapters the glossary cross-references drawn solid. The longest bar is where to read the term in use; bars spread across many chapters mark a term that runs through the discipline.
Mentions as a table
Mentions of Guardrail per chapter
ChapterMentionsCross-referenced
00 Preface0No
01 Definition3No
02 Why Now1No
03 Values & Principles5No
04 The Stack15Yes
05 Patterns4Yes
06 The Role3No
07 Maturity Model5No
08 Regulatory Map9No
10 Reading List2No
11 AI Defined15No
12 Governance Program4No
13 Risk Management13No
14 Development2No
15 Deployment14No
16 Fairness & XAI0No
17 Incidents18No
18 EU AI Act1No
19 Privacy & AI3No
20 Existing Law6No
21 AI Laws Worldwide1No
22 Principles & Standards3No
23 AI Agents13Yes

Patterns that use this term

12 pattern pages use the term; the 10 that use it most:

The term's neighbourhood Terms related to this one on solid edges, terms it is often confused with on dashed edges, and the patterns that use it most in the colour of their layer. Follow a dashed edge to check the distinction before you use either term.
Neighbourhood as a table
Neighbourhood of Guardrail
FamilyItemRelation
Related termsDesign defectRelated
Related termsFailure postureRelated
Related termsManufacturing defectRelated
Related termsMultimodal modelRelated
Related termsPrompt injectionRelated
Related termsSmall language model (SLM)Related
Related termsVersion pinningRelated
Contrast withGuardian agentContrast
Patterns using it mostAI Threat Model, 5 mentionsUses the term
Patterns using it mostContinuous Assurance Telemetry, 4 mentionsUses the term
Patterns using it mostFRIA-as-Code, 3 mentionsUses the term
Patterns using it mostHuman-in-the-loop Gate, 3 mentionsUses the term
Patterns using it mostIncident Pipeline, 3 mentionsUses the term
Patterns using it mostRuntime Guardrail, 18 mentionsUses the term

Sources

No external source: the term is coined or used in a specific sense by this Body of Knowledge, and the section linked under "Developed in" is its source.

Definitions of legal terms paraphrase the cited text, which governs. Dated statements are as of .

Cite this term

García Aibar, J. (2026). Guardrail. In AI Governance Engineering: The Thesis & Body of Knowledge (v0.5.0), Glossary. https://doi.org/10.5281/zenodo.22956197. https://aigovernanceengineer.com/glossary/guardrail. CC BY 4.0

BibTeX

@misc{aige2026guardrail,
  author  = {Jorge García Aibar},
  title   = {{Guardrail}},
  note    = {Glossary, AI Governance Engineering: The Thesis \& Body of Knowledge, version 0.5.0},
  year    = {2026},
  doi     = {10.5281/zenodo.22956197},
  url     = {https://aigovernanceengineer.com/glossary/guardrail}
}