OWASP’s list of top risks for LLM applications includes excessive agency, numbered LLM06. It describes what happens when a system built on a language model is given more ability to act than its task requires, so that an unexpected, manipulated or simply wrong output turns into a damaging action.
The framing is useful because it does not depend on why the model went wrong. A hallucination, a prompt injection and a poorly specified task all lead to the same place if the system around the model is free to act on the output.
OWASP breaks the risk into three root causes: excessive functionality, excessive permissions and excessive autonomy. This article takes each in turn for agents that write to systems of record, and describes the controls that belong at the write path.
This is an engineering discussion. Applying these controls does not establish conformity with any framework, and Sefra holds no certification.
Excessive functionality
An agent has excessive functionality when it can reach operations it does not need. The usual example is a tool built for one job that can do many: a mail plugin that reads and can also send, or a generic HTTP tool that can call anything.
For a write path, three controls address this.
Replace general tools with named operations. “Call the ERP API” is unbounded. “Create a purchase order” has a defined input and a defined effect. In Sefra the governed unit is a typed intent, and apart from polling and cancelling its own executions, the agent can do nothing through the gateway that an intent does not declare.
Filter discovery by identity. An agent should see only the operations granted to it. In Sefra, an intent that a principal has no grant for does not appear in its tool list, and calling it directly or naming it in a plan is refused.
Remove what is no longer used. When a workflow changes, its operations should leave the bundle, and their permissions should leave the credential.
Excessive permissions
An agent has excessive permissions when the identity it uses can do more in the downstream system than the task requires. A credential with broad write access turns a small mistake into a large one.
Keep the credential out of the agent. The strongest form of least privilege for an agent is to give it no privilege in the target system. Sefra holds the write credentials for the systems it fronts. Once the agent’s own are revoked, a required deployment step, it has nothing to go around the gate with.
Scope the service credential tightly. Moving a broad key from the agent into a gateway only moves the problem. Each connector credential should be limited in the system of record to exactly the operations of the active bundle, including its compensations, probes and fact reads. Sefra does not check that scope for you, so it belongs in your review.
Understand whose authority is used. OWASP recommends executing actions on behalf of a user in that user’s context, with minimum privileges. Today, Sefra calls each system with its own service account, and the link from a change to the agent, the user and the approver is in the audit trail. Sefra does not call a system with each individual user’s own credentials today, and the status page lists what is planned. If your system must enforce each user’s own permissions at the point of the call, take this into account.
Excessive autonomy
An agent has excessive autonomy when high-impact actions proceed with no independent check. This is the cause most specific to agents, since acting without supervision is their selling point.
Decide outside the model. Authorisation should not depend on the model’s judgement. Sefra evaluates deterministic policy in Rego on facts read from the system of record, and no model takes part in a decision. If no rule allows an action, it is denied. If a fact or the policy engine is unavailable, the request is refused.
Require a person for high-impact actions. A rule can hold an action for a named role. The approval is bound to a hash of the exact plan, so that the plan cannot change after the person has seen it. An agent cannot approve. Where the rule requires a distinct approver, neither can the user it acts for.
Limit how far a mistake can run. Rate limits, a breaker that suspends a principal after repeated denials, and kill switches for an intent or for all execution restrict the damage from an agent in a loop.
Beyond the three causes
Reducing agency limits how much can go wrong. It says little about what happens once something has. A complete write path needs two further properties.
Recovery. If a permitted plan fails partway through, its completed steps have to be undone. In Sefra each write declares its compensation or is marked irreversible, and a plan that could not be unwound is refused before it runs. If an outcome is unknown, the execution stops for a person.
Evidence. OWASP’s guidance includes logging and monitoring, because you cannot respond to activity you cannot see. For writes, the log should also be hard to dispute. Sefra records each decision in a hash-chained trail before the call it permits, and a separate verifier checks the chain.
A mapping you can reuse
| Root cause | Question to ask | Control at the write path |
|---|---|---|
| Functionality | Can the agent reach an operation it does not need | Typed intents, discovery filtered by identity |
| Permissions | What can its credential do if misused | No keys in the agent, scoped service credentials |
| Autonomy | Which high-impact actions run with no check | Deterministic policy on live facts, bound approval |
| Failure | What is left if a step fails | Declared compensation, unknown outcomes settled by a person |
| Accountability | Can you show what happened | A chained record with a separate verifier |
What stays out of scope
A write path covers one part of the risk. It does not limit what an agent reads outside its read intents, or what it discloses in conversation. It does not detect injected content, and it does not make a permitted action correct. An agent allowed to pay approved vendors can still pay the wrong approved vendor.
You will also need controls elsewhere: on the data the agent can read, on its outbound channels, and on the people who can change its rules.
If you are assessing an agent against this risk, start with the table above and answer each question for its most damaging action. Where the honest answer is “the prompt tells it not to”, you have found the work to do first.