2026-07-06 - AI Guardrails: The Safeguards that Keep AI Systems Within Bounds


.tbl-wrap{overflow-x:auto;margin:1.5rem 0}

table.compare{width:100%;border-collapse:collapse;font-size:.92rem}

table.compare th{background:#26215c;color:#fff;padding:.6rem .7rem;text-align:left;vertical-align:top}

table.compare td{padding:.55rem .7rem;border-bottom:1px solid #ddd;vertical-align:top}

table.compare tr:nth-child(even) td{background:#f4f4f8}

table.compare td:first-child{font-weight:600}

.tbl-note{font-size:.85rem;font-style:italic;margin-top:.4rem}

@media(prefers-color-scheme:dark){

table.compare td{border-bottom:1px solid #444}

table.compare tr:nth-child(even) td{background:#1e1e2a}

}

Why talk about guardrails, and why now

In the technical vocabulary of artificial intelligence, a guardrail is a safeguard — technical or organisational — that constrains a system’s behaviour before, during, and after execution. The road metaphor is apt: a guardrail does not prevent driving, but it delimits the carriageway and reduces the consequences of error. Applied to AI systems, the concept distinguishes what is actually implemented — a filter operating on inputs, a check validating outputs, a limit circumscribing actions — from statements of principle that remain on paper.

The moment for a systematic treatment is, in my view, now. The second of August 2026 marks the start of the general application phase of the AI Act (Regulation (EU) 2024/1689), without prejudice to the differentiated calendar laid down in Article 113 for certain provisions: the prohibitions and the AI literacy rules have applied since 2 February 2025, the rules on general-purpose AI models since 2 August 2025, while the obligations for a part of high-risk AI systems follow later dates. Moreover, at the time this article is published, the simplification package known as the Digital Omnibus on AI has received the Council’s final adoption and is awaiting publication in the Official Journal of the European Union, as I have reconstructed in the dedicated series on this blog. The adopted text defers the application of the high-risk rules to 2 December 2027 for stand-alone systems and to 2 August 2028 for systems embedded in products. The calendar therefore requires careful reading; but the direction is unambiguous: obligations are progressively becoming enforceable, and guardrails are the instrument through which an organisation translates them into practice.

This article continues the path opened by the 1 July piece on

, but with a broader perspective: there, the subject was the operational delegation to systems that act; here, the complete map of safeguards, which concerns all AI systems, including those that merely generate content or support decisions. The value this contribution intends to offer is a systematic reading that links each guardrail to the risk it prevents, to the pertinent legal reference, and to the organisational responsibility that makes it effective.

The reading criterion: from risk to safeguard

A guardrail is not chosen from a catalogue. It is derived from the risk of the concrete use case: the same filter that is essential for a public-facing chatbot may be disproportionate for an internal document-analysis tool. The correct path therefore starts from risk identification, for which both the legal framework and technical practice offer dedicated instruments.

On the legal side, where the system falls among high-risk ones under the AI Act, the risk management system of Article 9 is the pivot: an iterative, continuous process planned across the entire lifecycle. Where the system processes personal data and the processing is likely to result in a high risk to the rights and freedoms of natural persons, the data protection impact assessment of Article 35 GDPR is the corresponding instrument on the data protection side. On the technical side, the NIST AI Risk Management Framework — a voluntary instrument whose version 1.0 is currently being revised, as the official page notes, complemented for generative AI by the dedicated NIST AI 600-1 profile — and the ISO/IEC 23894 guidance, which extends the principles of ISO 31000 to the AI context, offer structured methodologies; for Union institutions, the EDPS published in November 2025 a Guidance for Risk Management of Artificial Intelligence systems that translates the method into data protection terms.

From this path — risk first, then safeguard — follows the thesis that runs through this entire article: in my view, the guardrail is the technical form of accountability. Article 5(2) GDPR requires the controller not only to comply with the principles but to be able to demonstrate compliance; a properly designed guardrail can produce, by construction, part of the evidence needed to demonstrate such compliance.

One clarification is needed, however, before entering the taxonomy, to avoid regulatory over-extension. The AI Act articles recalled in the following sections — 9, 10, 12, 14, 15, 26, 72 — operate essentially within the perimeter of high-risk systems, or upon the operators specifically indicated; Article 50 concerns determined transparency scenarios, not every generated output; and technical references such as OWASP and NIST guide the design of guardrails without turning every measure into a legal obligation. The taxonomy that follows is therefore a map of possible safeguards, whose mandatory nature must be assessed case by case against the qualification of the system and the role of the operator.

Guardrails on inputs

The first family operates on what enters the system. The reference risk is that the input — the user’s request, but also the content the system reads from documents, web pages, or knowledge bases — carries hostile instructions or data that should not be processed.

The best-known case is prompt injection, which the 2025 edition of the OWASP Top 10 for LLM Applications ranks first (LLM01): inputs crafted to make the model follow the attacker’s instructions rather than those of whoever configured the system. The indirect variant — instructions hidden in the content the system processes — is particularly insidious in RAG (retrieval-augmented generation) architectures, where the system draws on external sources to ground its answers. The NIST AI 100-2e2025 taxonomy of adversarial machine learning places these scenarios in a broader frame, which also covers the poisoning of training data and the manipulation of components along the lifecycle.

The corresponding safeguards are input validation and sanitisation, a clear separation between system instructions and untrusted content, control of the admitted sources in RAG architectures, and the detection of personal data — in particular special categories under Article 9 GDPR — on entry, with blocking or masking before they reach the model. This last safeguard puts the minimisation principle (Article 5(1)(c) GDPR) into concrete practice: the system receives only the data necessary for the task.

Guardrails on outputs

The second family operates on what the system returns. Here the risks are of two orders: the content itself — inaccurate, not grounded in the sources, harmful, or containing personal data that should not leave the system — and the destination of the output, when it feeds downstream systems without validation. The 2025 edition of the OWASP Top 10 devotes a specific entry to this second profile, Improper Output Handling (LLM05): unvalidated output reaching a downstream component may carry code or commands with effects that go well beyond text.

The corresponding safeguards are content filters, groundedness checks to contain unfounded reconstructions, the redaction of personal data on the way out, and the validation of format and content before any handover to downstream systems. On the legal side, the anchors must be calibrated precisely: Article 50 AI Act imposes transparency obligations in determined scenarios — including informing the person interacting with an AI system and the marking of certain generated or manipulated content — and not on every output; Article 15, within the high-risk perimeter, requires appropriate levels of accuracy, robustness, and cybersecurity throughout the lifecycle; and where the output contains personal data, the accuracy and minimisation principles of Article 5 GDPR return, with the consequences that the report discussed below in the data section examines in detail for language models.

Guardrails on actions

The third family concerns systems delegated the capacity to act: querying databases, sending communications, modifying records, triggering processes. This is the terrain of agentic AI, which I addressed specifically in the

, to which I refer for the complete model: delimitation of the delegated action, the principle of least privilege, approval thresholds, verifiable evidence, blocking and revocation. I do not repeat that path here.

I limit myself to adding the technical qualification of the risk those safeguards mitigate: the 2025 edition of the OWASP Top 10 calls it Excessive Agency (LLM06) — granting the system functionality, permissions, or autonomy exceeding the task — and the same OWASP community has published a Top 10 dedicated to agentic applications, confirming that the risks of acting have a physiognomy of their own compared with the risks of generating. These are, it must be stressed, technical reference taxonomies, not legal categories.

Guardrails on data and the informational context

The fourth family concerns the data the system processes and the informational context on which it grounds its processing. It is the family where the convergence between the AI Act and the GDPR is closest.

On the data protection side, four provisions form the backbone: minimisation (Article 5(1)(c) GDPR), understood here as a principle for designing access — the system accesses only data that are adequate, relevant, and limited to what is necessary; data protection by design and by default (Article 25); security of processing (Article 32), covering, according to the risk, environment segregation, encryption, and access control; and storage limitation (Article 5(1)(e) GDPR). On the AI Act side, for high-risk systems that make use of techniques involving the training of models with data, Article 10 imposes data governance and management practices for training, validation, and testing data, with quality and relevance requirements.

The specific risks of this family have received recent, pertinent institutional treatment. The report AI Privacy Risks & Mitigations – Large Language Models (LLMs), published in April 2025 under the EDPB’s Support Pool of Experts programme — an expert deliverable which, as the document itself states, does not necessarily reflect the official position of the Board — proposes a privacy risk management methodology for LLM-based systems and catalogues concrete mitigations for phenomena such as the memorisation of personal data, their reappearance in outputs, and re-identification. The EDPS Orientations on the compliance of generative AI systems with Regulation (EU) 2018/1725, revised in October 2025 and which I covered

, insist on role definition, purpose limitation, and security across the entire lifecycle.

The informational context finally includes the safeguarding of sources in RAG architectures: the selection and integrity control of knowledge bases is the guardrail that prevents both the poisoning of the context and the leakage of information that should not be accessible to the system.

Organisational guardrails

The fifth family is the one that makes the other four effective. A technical filter without a person responsible for maintaining it, a process verifying it, and a trace documenting its operation is only an apparent safeguard.

The cornerstones, each within its applicable perimeter, are well known: human oversight (Article 14 AI Act), designed by the provider and made operational by the deployer for high-risk systems; automatic event logging (Article 12) and the retention of logs under the deployer’s control (Article 26), for at least six months unless otherwise provided by applicable law; post-market monitoring by providers (Article 72); incident management procedures; periodic audit of the safeguards. To these must be added Article 4 which, applicable since 2 February 2025, requires providers and deployers to take measures to ensure, to their best extent, a sufficient level of AI literacy of their staff and other persons operating AI systems on their behalf — not necessarily training in the strict sense: skills, experience, education, and the context of use are also relevant. It is, on close inspection, the primary organisational guardrail: no safeguard works if those operating the system do not understand its limits and risks. On the side of voluntary organisational models, ISO/IEC 42001 offers the blueprint of an AI management system within which safeguards can be placed in an orderly, verifiable way.

The organisational dimension is also the dimension of roles, which rarely coincide with a single figure: the provider designs the technical guardrails and documents the instructions; the deployer configures them for the use case and verifies their operation; the integrator assembling components answers for the interfaces between safeguards; the controller and the processor answer for the data dimension; the security function oversees robustness; procurement ensures that requirements enter the contracts; and whoever is charged with human oversight must have the competence, authority, and time to exercise it in earnest. A concrete example of the flow: the deployer validates the output guardrails before go-live; the DPO verifies the lawfulness of the processing and the adequacy of the measures under Articles 25 and 32 GDPR; the technical function monitors the logs and flags anomalies; an identified responsible person decides on escalation. Four steps, four distinct responsibilities, one documented chain. In Italy, the national framework introduced by Law No 132 of 23 September 2025 — to be interpreted and applied consistently with Regulation (EU) 2024/1689 — reinforces this organisational reading with principles on human decision-making autonomy and information duties.

One clarification of placement, finally, to avoid misunderstanding: the Safety and Security chapter of the GPAI Code of Practice — the voluntary instrument published by the Commission on 10 July 2025 — concerns providers of general-purpose AI models with systemic risk and the management practices for such risks at model level. It is not a general binding benchmark for every AI system: its proper place is the “model” level of a few operators, distinct from the system-level guardrails this taxonomy describes.

The summary table

GuardrailRisk mitigatedEvidence / documentation expectedOrganisational controlApplicable references

InputDirect and indirect prompt injection; entry of unnecessary personal data; context poisoningDocumented validation rules; logs of blocked inputs; list of admitted sources (RAG)Person responsible for filter configuration; periodic review of the rulesArt. 5(1)(c) GDPR; OWASP LLM01 (2025 ed.); NIST AI 100-2e2025

OutputInaccurate or ungrounded content; leakage of personal data; unvalidated output to downstream systemsValidation check results; redaction register; groundedness testsPre-go-live validation by the deployer; DPO verification on personal dataArt. 50 and, for high risk, Art. 15 AI Act; Art. 5 GDPR; OWASP LLM05 (2025 ed.)

ActionExcessive agency: actions beyond the delegated perimeter; irreversible effects without approvalMatrix of delegated capabilities; audit trail of actions and approvalsProcess owner; identified approver; blocking and revocation procedureArts. 12, 14, 26 AI Act (high risk); Art. 22 GDPR, where the action amounts to a decision based solely on automated processing with legal or similarly significant effects; OWASP LLM06 (2025 ed.)

Data and informational contextMemorisation and regurgitation of personal data; excessive access; poisoning of knowledge basesAccess mapping; DPIA where required; source integrity checks; retention policiesController/processor; DPO; knowledge base managementArts. 5, 25, 32, 35 GDPR; Art. 10 AI Act (high risk); EDPB SPE report on LLMs

OrganisationTechnical safeguards without maintenance, verification, or owners; inability to demonstrate complianceUsage policies; training records; retained logs; audit reports; incident procedureHuman oversight with effective competence and authority; defined escalation chainArts. 4, 14, 26, 72 AI Act (within their perimeters); Art. 5(2) GDPR; ISO/IEC 42001

The five families of guardrails. The references indicate the pertinent framework, whose applicability must be assessed case by case against the qualification of the system and the role of the operator.

AI Guardrails Checklist

The taxonomy in this article is also available as an operational checklist in the following PDF.

embed-pdf-container {

position: relative;

width: 100%;

height: auto;

min-height: 20vh;

}

.pdf-canvas {

border: 1px solid black;

direction: ltr;

width: 100%;

height: auto;

display: none;

}

the-canvas {

border: 1px solid black;

direction: ltr;

width: 100%;

height: auto;

display: none;

}

.pdf-loadingWrapper {

display: none;

justify-content: center;

align-items: center;

width: 100%;

height: 350px;

}

.pdf-loading {

display: inline-block;

width: 50px;

height: 50px;

border: 3px solid #d2d0d0;

border-radius: 50%;

border-top-color: #383838;

animation: spin 1s ease-in-out infinite;

-webkit-animation: spin 1s ease-in-out infinite;

}

overlayText {

word-wrap: break-word;

display: grid;

justify-content: end;

}

overlayText a {

position: relative;

top: 10px;

right: 4px;

color: #000;

margin: auto;

background-color: #eeeeee;

padding: 0.3em 1em;

border: solid 2px;

border-radius: 12px;

border-color: #00000030;

text-decoration: none;

}

overlayText svg {

height: clamp(1em, 2vw, 1.4em);

width: clamp(1em, 2vw, 1.4em);

}

@keyframes spin {

to { -webkit-transform: rotate(360deg); }

}

@-webkit-keyframes spin {

to { -webkit-transform: rotate(360deg); }

}

Previous

Next

/

View the PDF file

.

import * as pdfjsLib from 'https:\/\/www.nicfab.eu\/js/pdf-js/build/pdf.mjs';

(function(){

var url = '\/pdf\/ai-guardrails-checklist-en.pdf';

var hidePaginator = "" === "true";

var hideLoader = "" === "true";

var selectedPageNum = parseInt("") || 1;

if (!pdfjsLib.GlobalWorkerOptions.workerSrc)

pdfjsLib.GlobalWorkerOptions.workerSrc = "https:\/\/www.nicfab.eu\/" + 'js/pdf-js/build/pdf.worker.mjs';

var pdfDoc = null,

pageNum = selectedPageNum,

pageRendering = false,

pageNumPending = null,

scale = 3,

canvas = document.getElementById('pdf-canvas-092620ba'),

ctx = canvas.getContext('2d'),

paginator = document.getElementById("pdf-paginator-092620ba"),

loadingWrapper = document.getElementById('pdf-loadingWrapper-092620ba');

showPaginator();

showLoader();

function renderPage(num) {

pageRendering = true;

pdfDoc.getPage(num).then(function(page) {

var viewport = page.getViewport({scale: scale});

canvas.height = viewport.height;

canvas.width = viewport.width;

var renderContext = {

canvasContext: ctx,

viewport: viewport

};

var renderTask = page.render(renderContext);

renderTask.promise.then(function() {

pageRendering = false;

showContent();

if (pageNumPending !== null) {

renderPage(pageNumPending);

pageNumPending = null;

}

});

});

document.getElementById('pdf-pagenum-092620ba').textContent = num;

}

function showContent() {

loadingWrapper.style.display = 'none';

canvas.style.display = 'block';

}

function showLoader() {

if(hideLoader) return

loadingWrapper.style.display = 'flex';

canvas.style.display = 'none';

}

function showPaginator() {

if(hidePaginator) return

paginator.style.display = 'block';

}

function queueRenderPage(num) {

if (pageRendering) {

pageNumPending = num;

} else {

renderPage(num);

}

}

function onPrevPage() {

if (pageNum = pdfDoc.numPages) {

return;

}

pageNum++;

queueRenderPage(pageNum);

}

document.getElementById('pdf-next-092620ba').addEventListener('click', onNextPage);

pdfjsLib.getDocument({

url: url,

standardFontDataUrl: "https:\/\/www.nicfab.eu\/" + 'js/pdf-js/web/standard_fonts/',

cMapUrl: "https:\/\/www.nicfab.eu\/" + 'js/pdf-js/web/cmaps/',

cMapPacked: true

}).promise.then(function(pdfDoc_) {

pdfDoc = pdfDoc_;

var numPages = pdfDoc.numPages;

document.getElementById('pdf-pagecount-092620ba').textContent = numPages;

if(pageNum > numPages) {

pageNum = numPages

}

renderPage(pageNum);

});

})();

Conclusion

Guardrails are not a checklist to tick, but an architecture: the form accountability takes when it moves from principles to design. The sequence this article proposes — from risk to safeguard, from safeguard to evidence, from evidence to responsibility, from responsibility to the applicable reference — holds for every family in the taxonomy and is calibrated, by force of the proportionality principle, on the risk of the concrete use case. In my view it is this calibration, more than any single technical instrument, that distinguishes a governed system from a merely equipped one: the right guardrail, in the right place, with a responsible person able to answer for it.

Sources


New to Gemini? This capsule is best read with a Gemini client, such as Lagrange.