Why the question comes up
In one line
Whoever writes the request writes what is in it.
A model is very good at reading. That is the whole temptation: it could read the prompt and say whether the data in it is sensitive, read the tool call and say whether it looks reasonable, read the reply and say whether it is fine. Each of those is a policy decision, and each is easier to hand to the model than to write down as a rule.
The reason not to is the same property that makes the model useful. A model decides from what it reads, and what it reads is the request. Whoever writes the request writes the input to the decision. A decision made that way belongs to the requester as much as to the organisation, whatever the model was told beforehand. That is not a weakness to patch. It is what reading for meaning is, and the answer is a decision that reads the request as data and never as instructions: a rule.
What a deterministic decision reads
The four inputs
- The identity that sent it
- The data class it carries
- The tools involved
- The rules in force
A deterministic decision reads a small, fixed set of things, and it reads the request the way a filter does: for what it contains, not for what it asks. The order never varies: authentication, then policy, then the model.
First the request is checked for shape, size, identity and tenant binding, before any processing begins. Only a request the organisation has accepted goes further, and it carries the identity and tenant it arrived with. Then the request is tagged with a data class: the class the caller declared, never lower than the tenant’s floor, and raised if the content carries something the classifier recognises, a card number, a personal identity number, a private key. Content can raise the class. It cannot lower it. Deny-by-default policy is then evaluated against that class, the requesting identity and the tools involved. The class dictates what happens from there: which regions the request may reach, and how it is protected before it leaves.
The same four inputs give the same answer on every request.
Nothing in that sequence asks a model anything in order to decide. No model is used for routing, classification, prompt repair or any decision on the request path. A sentence inside the request cannot change the decision, however it is phrased, because nothing on the path reads it as an instruction. The one place a request carries text meant for a model to obey, the tool descriptions, is scanned for instruction patterns and refused on a match. The decision is a function of the identity, the class, the tools and the rules, and the same four inputs give the same answer on every request.
The same limit, in three places
A decision made once and trusted everywhere is a decision that can drift. So the limit a data class sets is enforced independently at three points in the code path, and each applies it on its own evidence.
At classification
-
Where the class is set
The request is tagged with its data class, and the limit the class sets applies from here.
In the policy check after routing
-
Where the route is chosen
The chosen provider is checked against the same limit, on its own evidence.
At the gate inside execution
-
Where the call is made
The call is held to the limit once more, where it leaves.
A new provider, a new path or a new model does not move where the limit is enforced. Routing follows the same rule: provider selection is rechecked against policy for every candidate, and when a provider fails mid-call the request moves to the next configured one under the same constraints as the first choice. A failover does not open a route the policy closed.
Where the model belongs
After the decision. The model produces the answer, and the answer is the one thing on the path that a model should be producing. Every response is then checked against the response shape the gateway promises, any output schema the caller declared, and the deployment’s content policy; on a stream, the content checks run on each chunk before it is forwarded. Guardrails are where a model’s output meets rules again.
A deployment can wire a model-backed check into the guardrails, on the response side. It adds to the pattern rules and never replaces them, so it can make the outcome stricter, never looser. It is off unless the deployment wires it, and it is one more governed destination, under the same data-class limits as any provider.
And every decision is written down as it is made. Every allow and every deny traces back, the same way on every request, to the rule that produced it, the data class it saw and the constraints in force at the time. A decision made from those inputs can be reproduced from the audit record later, by anyone who reads it. A deterministic decision can be explained afterwards as well as enforced at the time.
That is how PreRoute is built: the control plane where policy is decided by rules, before the model, and the model is what the rules decide about.
Read next
- By refusing every route that leaves the regions you have set.
How does an AI gateway keep data in the EU?
- An AI gateway is the one point every AI request passes through.
What is an AI gateway?
- Deny-by-default: nothing leaves without a rule that says it may.
What does deny-by-default mean for AI use in an organisation?
- Rules central, products local: the split that lets both sides do their job.
Who should own AI governance, a central function or each team?
- Yes, as a deployer. What it asks of you follows the use, and the first duties already apply.
Does the EU AI Act apply to an organisation that uses AI agents?
- Yes, from August 2, 2026. The hard part is knowing which outputs that covers.
Must you tell people they are interacting with an AI agent?
- Yes. Every provider call is recorded with its token counts and the identity that made it.
Can you attribute AI token usage to the team that spent it?
- Yes. Pseudonymised data is still personal data, and that is the useful answer.
Is pseudonymised data still personal data under GDPR?
- Yes. Your applications call one API, and which provider answers is the deployment’s decision, not theirs.
Can you change AI provider without rewriting your integrations?
- August 2 is not the deadline that got postponed.
Was EU AI Act Article 50 postponed by the Digital Omnibus?