Guidance is not enforcement
A system prompt guides how a model behaves. It is not an access control. The model reads the prompt as text, weighs it against the rest of its context, and decides what to do. No component outside the model verifies that a resulting tool call complies with what the prompt said.
Failure modes of prompt-based permissions
When a permission exists only as prompt text, it has no external check behind it. The situations below are the ones to look for in an agent deployment:
- Permissions that are enforced only by system prompt text, with no external control behind them.
- Agents that share a broad service account instead of having their own identity and scoped, short-lived credentials.
- Tool calls that are not evaluated by a policy decision point outside the model before they execute.
- Agents that process untrusted content, such as documents, web pages, or tool outputs, where nothing prevents that content from triggering calls beyond the agent's intended permissions.
What an enforcement architecture looks like
Enforcement belongs in layers that the model cannot rewrite. Each layer below assumes the model may be manipulated and limits the consequences.
Agent identity
Each agent has its own identity, distinct from users and from shared service accounts, so actions can be attributed and permissions assigned individually.
Scoped credentials
Credentials grant only the access the agent's task requires and are short-lived where possible, so a manipulated agent cannot exceed them.
Least-privilege tool access
The agent is exposed only to the tools and data it needs. A tool that is not available cannot be called, whatever the prompt says.
Runtime policy evaluation
A policy decision point outside the model evaluates each tool call, including arguments and context, and returns allow or deny before execution.
Approval for high-risk actions
Calls with significant side effects can require explicit human approval rather than relying on the model's judgment.
Audit logging
Every call is recorded with the agent identity, the policy decision, and the outcome, producing evidence independent of model output.
Where agent permissions are actually enforced
Only one item in the table below operates inside the model's context, and it is not an enforcement point.
| Layer | Role | Operates |
|---|---|---|
| System prompt | Behavioral guidance interpreted by the model. Not an enforcement point. | Inside the model's context |
| Identity and credentials | Define what the agent can reach, regardless of what it is told. | Outside the model |
| Runtime policy on tool calls | Allow or deny each call before it executes. | Outside the model |
| Audit log | Evidence of the identity, decision, and outcome for each call. | Outside the model |
Tool access and the role the prompt still plays
The prompt still has a job: it shapes model behavior. What it cannot do is decide what an agent is able to reach. That is determined by the identity, credentials, and tools the agent is given, and by the policy evaluated on each call. A tool that is not available cannot be called, whatever the prompt says.
Assess your current agent deployments
Use these questions to review where your agent permissions are enforced today.
- Which permissions are enforced only by system prompt text, and which by an external control?
- Does each agent have its own identity and scoped, short-lived credentials, or does it share a broad service account?
- Is every tool call evaluated by a policy decision point outside the model before it executes?
- If the agent processes untrusted content such as documents, web pages, or tool outputs, what prevents that content from triggering calls beyond its intended permissions?
- Can you produce a log of each tool call showing the agent identity, the policy decision, and the outcome?