Grant the task, not the agent.
Agents usually inherit every permission their runtime holds. We scope access to the task in front of them, so a mistake or a manipulated instruction can only reach what that task needed.
The easiest way to give an agent access is to hand it the same credentials the system already has. One token, one service account, every tool registered at startup. It works on the first day, and it keeps working until the agent does something nobody asked for with access nobody meant to give it.
The failure is rarely dramatic. An agent asked to summarize a folder also has write access to it. An agent drafting a reply can also send it. An agent cleaning up a branch can also delete the repository. None of these require a bad model. They require one ambiguous instruction, one piece of injected content, or one confident wrong guess, landing on a permission that was never needed for the work. We treat the permission set as part of the task definition, not as a property of the agent.
The agent is not the unit of trust
Most access models were built for people and services. A person has a role, a service has a scope, and both stay roughly stable over time. An agent is different. The same agent may read a calendar in one step, edit a document in the next, and draft a message after that, all within a single request.
Granting the union of everything an agent might ever do produces a standing permission set far larger than any single task. Our rule is that the task is the unit of trust. When work starts, it declares what it needs to read, what it may change, and what it may send. The runtime grants that and nothing more. When the task ends, the grant ends with it.
Separate read, write, and send
We split capabilities along the lines that matter for damage, not along the lines of an API.
- Read exposes information but changes nothing.
- Write changes state the system owns and can usually be reverted.
- Send reaches someone outside the system and cannot be taken back.
An API that offers a single "manage" scope collapses these into one decision. We do not. A research task gets read. A drafting task gets read and write on its own workspace. Send is granted only for a specific message to a specific recipient, and only after a human has approved it. Keeping send separate is how we keep owning the send instead of delegating it by accident.
Scope by resource, not just by verb
A read grant on everything is still a broad grant. We narrow by resource as well: this folder, this repository, this thread, this calendar. A task that edits one file should not be able to list every file the account can see.
Resource scoping also makes intent visible. When a task asks for access to a resource it was never described as touching, that request is a signal. Sometimes the plan was incomplete and the request is legitimate. Sometimes the agent was steered by content it read along the way. Either way, a human or a policy decides, rather than the request succeeding silently because the permission was already there.
Make grants expire with the work
Standing access accumulates. A permission added for one job stays after the job is gone, and the next task inherits it without anyone deciding that it should.
We attach a lifetime to every grant. The default is the task itself. Long-running work can hold a grant longer, but the duration is stated when the grant is made and checked when the grant is used. A grant that has outlived its task is refused, not quietly honored. This is the same principle we apply to memory: a fact or a permission that was right for one moment should not become a permanent property of the system.
Escalation is a request, not a retry
When an agent hits a permission boundary, the worst outcome is that it finds another route to the same capability. A blocked API call becomes a shell command. A denied write becomes a copy to a location it can write to. The boundary held in name and failed in practice.
We design the runtime so that hitting a boundary produces a request: what the agent wanted to do, why, and what it would touch. That request goes to whoever can grant it, usually a human for anything that writes outside the task or sends anything at all. The agent waits, continues with the parts it can do, or stops. It does not reshape the action to slip past the check. A denied request is an answer, and the trace records it as one.
Log the grant alongside the action
Audit trails usually record what happened. For agents, that is not enough. We also record what was allowed at the moment it happened, and who allowed it.
When something goes wrong, the useful questions are whether the action was inside the grant, whether the grant was appropriate for the task, and who approved it. If the log only shows the call, every incident turns into a reconstruction. If it shows the grant, the task, and the approval together, the review is a matter of reading the record. It also tells us which grants are routinely too broad, which is the input for tightening defaults.
Least privilege, applied per step
Least privilege is an old idea. What changes with agents is the granularity. A person keeps a role for months. An agent's needs change from one step to the next, and its inputs include content nobody on the team wrote.
That is why we put permissions in the operating layer rather than in each model or tool integration. Models are interchangeable, and the boundary should not move when the model does. Memory, tools, approvals, and grants all live in the same layer, so the question of what an agent may do is answered once, per task, by the system we own.