$ fssg build --deterministic --validate |

Why AI Agent Authority Needs Leases

AI Engineering

An AI agent should never receive permission that outlives the decision that granted it.

This sounds like ordinary least privilege, but it is a different runtime problem. A narrow credential can still be dangerous when it remains valid after the task changes, the user revokes intent, a policy is updated, or a parent agent has already moved on. Scope limits what an agent may do. A lease also limits when, for which task state, and under which policy version it may do it.

I think delegated authority in agent systems should behave more like a distributed-systems lease than a static role.

A token can be valid while the action is stale

Consider an orchestrator that asks a sub-agent to prepare and publish a release note. The sub-agent receives write access to one repository. While it is drafting, the release is cancelled. The orchestrator records the cancellation, but the sub-agent still holds a technically valid token and completes the old plan.

Nothing in a conventional scope such as repo:write expresses that the authority belonged to release attempt 42, depended on policy revision 17, and ended when that attempt was cancelled. Authentication succeeds. Authorization may also succeed. The operation is still wrong.

This is the authority equivalent of a stale observation. In Freshness Contracts for AI Agent Decisions, I argued that available data is not necessarily current enough to act on. Permission has the same temporal problem: possession is not proof of current intent.

The authority lease

I would represent each consequential delegation as a small runtime artifact:

{
  "lease_id": "al_7f2c",
  "principal": "user:emil",
  "actor": "agent:release-writer/instance-9",
  "task_id": "release-42",
  "resource": "repo:example/service-a",
  "operations": ["release-note:create"],
  "constraints": { "branch": "release/42" },
  "issued_at": "2026-07-21T11:00:00Z",
  "expires_at": "2026-07-21T11:15:00Z",
  "policy_epoch": 17,
  "fence": 304,
  "parent_lease": "al_51aa"
}

The fields have separate jobs.

  • operations and resource bound the effect surface.
  • task_id binds authority to one execution attempt rather than to the agent as a permanent identity.
  • expires_at limits unattended lifetime.
  • policy_epoch invalidates grants evaluated under an obsolete policy snapshot.
  • fence orders successive grants for the same protected resource.
  • parent_lease makes delegation attenuation inspectable: a child cannot exceed its parent.

OAuth 2.0 Token Exchange already provides useful vocabulary for exchanging one security token for another and representing delegation. Resource Indicators bind a token request to a target service. Those standards solve important transport and identity problems. The lease is the runtime contract around them: the system still needs task binding, policy-version checks, cancellation, and stale-writer exclusion.

Expiry is necessary, but it is not enough

A short-lived token reduces exposure. It does not stop an old worker during the remaining valid window.

That is why the lease includes a fencing token. Each new authority grant for a protected resource receives a monotonically increasing fence. The service that performs the side effect stores the highest accepted value and rejects lower ones:

allow only if
  signature_valid
  && now < expires_at
  && task.active
  && lease.policy_epoch == current_policy_epoch
  && lease.fence >= resource.highest_fence

Suppose worker A holds fence 304. It pauses. The runtime cancels its lease and grants worker B fence 305. Even if A wakes before its token expires, the resource boundary rejects 304. Cancellation is no longer a message that every worker must politely notice; it becomes an invariant enforced where the effect occurs.

This pattern matters because agent runtimes are asynchronous. Model calls time out, tool responses arrive late, retries overlap, and subprocesses survive longer than their planners expect. A cancellation flag inside the orchestrator cannot control a writer that has already crossed into another service.

Delegation must only narrow

A parent lease can delegate a subset of its authority, never manufacture more. The runtime should enforce this mechanically:

child.resource ⊆ parent.resource
child.operations ⊆ parent.operations
child.constraints are equal or stricter
child.expires_at ≤ parent.expires_at
child.policy_epoch == parent.policy_epoch

This is where an authority lease differs from a prompt instruction such as “only edit documentation.” The prompt describes intent to a probabilistic component. The lease constrains what the deterministic boundary will accept.

It also extends the distinction in Why an AI Tool’s Effect Class Is Not a Permission. Classifying a tool as write or external_side_effect helps route it through the right gate. It does not authorize a particular operation. The lease is the derived, per-task result of that gate.

The lifecycle should be explicit

I use five states for the protocol:

State Meaning Accepted at effect boundary?
issued Grant exists but has not been activated No
active Scope, epoch, task and time checks pass Yes
revoked Principal or policy cancelled the grant No
expired Deadline passed No
superseded A higher fence now protects the resource No

The transition must produce a receipt. An execution trace should join the task, policy decision, lease, tool request, and resulting artifact. That does not make the model deterministic. It makes the authority path reviewable. The same principle appears in How to Prove an AI Agent Decision Has Complete Provenance: a claim is only auditable when its dependencies close. Here, the missing dependency is current delegated intent.

Where the protocol stops

Authority leases do not decide whether a generated change is correct. They do not replace semantic validation, human review, or idempotency. They also require cooperation from the side-effect boundary. If only the orchestrator checks the fence while the target service accepts any valid bearer token, a delayed worker can still write.

Not every read needs this machinery. The protocol is most useful for externally visible or irreversible effects, multi-agent delegation, long-running tasks, and resources with competing writers. For a local read-only helper, an ordinary short-lived credential may be enough.

The limitation is architectural and important: instant revocation is impossible at a disconnected boundary that can validate only self-contained credentials and has no current epoch or fence state. In that environment, the maximum lease lifetime becomes the maximum revocation delay. The system should state that delay honestly.

Permission should decay with intent

Agent security is often discussed as a better list of scopes. I think that starts one layer too high. Before choosing scopes, the runtime needs a temporal object that answers: who delegated this action, for which task, against which resource, under which policy, until when, and what newer grant can invalidate it?

A static permission says the agent can act. An authority lease proves that this specific action still belongs to a live decision.

That is the boundary I want agents to cross.

Sources

FACET AI CLI Terminal
facet@ai:~$