AiIntermediate

Trusting AI Agents: A Decision Framework That Holds

DeveloperHat Team
17 min read

TL;DR

A framework for deciding what an AI agent may do unsupervised: verify identity, permissions and reversibility, tier trust by blast radius, keep human gates.

In November 2026, the question of whether to trust an AI agent stopped being philosophical and became operational. Microsoft expanded Agent 365 and announced Entra Agent ID at Ignite, giving every agent its own identity in Entra, separate from the user who launched it. Google shipped Agent Gateway with default-deny outbound rules and Model Armor screening. AWS built AgentCore around short-lived tokens the agent code never sees. The vendors, in other words, have stopped asking you to trust the agent. They are asking you to trust the platform around it.

That shift is the right one. Most teams still get this wrong: they evaluate the model, then hand it a service account with broad permissions and hope. The model was never the trust problem. The trust problem is delegation: what the agent can touch, change, and spend, and whether anyone can see what it did and undo it.

This article is that framework: what to verify before delegating, how to tier trust by blast radius, which platform controls hold, and which gates stay human.

Trust is a pipeline, not a feeling Every delegation passes four checks before the agent acts — and the boundary lives in the platform. Identity its own agent ID Permissions per tool, least privilege Audit trail immutable, agent-tagged Reversibility undo plan before action Platform boundary gateway + policy engine enforce A check that fails demotes the task a tier. The agent never grades its own homework.

Why trust is now an engineering decision

A year ago, trusting an agent mostly meant trusting its output: you read it, checked it, and committed it or not. The blast radius was bounded by your attention. That world is gone. Agents now run loops: they call tools, read the results, decide the next step, and keep going while you do something else. An agent that can read a ticket, open a pull request, and merge it has a blast radius measured in production systems.

The incidents of 2026 make the point better than any theory. Dhawal Shah wrote in November about an agent that archived 57 of its own 82 skills in ten minutes, because nobody had registered what the agent was allowed to change about itself. His thesis is worth pinning to your wall: governance fails at the moment something changes, not at setup. A model upgrade is a permission change. A new tool is a permission change. If your controls only exist at setup time, they do not exist.

Thoughtworks' June 2026 report agrees: code generation is no longer the bottleneck — verification is. And their harness framing with Martin Fowler (April 2026) calls trust designed control: feedforward guides before acting, feedback sensors after. Rules without verification are prayers.

So the question is not "do I trust this agent?" The question is "what have I verified, what have I bounded, and what can I undo?"

What to verify before you delegate anything

Before an agent touches a system, four things must be true. If any one of them is missing, the agent does not run unsupervised — it runs with a human in the loop, or it does not run at all. Entra Agent ID and agent identity governance goes deeper on the Microsoft side.

Identity. The agent needs its own identity, distinct from the user who invoked it. When an agent acts with your credentials, its actions are indistinguishable from yours in every log, and revoking its access means revoking yours. Microsoft's Entra Agent ID, announced at Ignite in November 2026, gives each agent its own identity in Microsoft Entra, enabling lifecycle governance, Conditional Access, identity-risk assessment, and revocation. Connected platforms — Salesforce Agentforce, Amazon AgentCore, Google Vertex AI, Databricks, Snowflake, Anthropic Claude Managed Agents, OpenAI, Oracle, SAP, ServiceNow, UiPath — receive Entra Agent IDs, with rollout completing in December 2026. Google's Agent Gateway verifies Agent Identities against an Agent Registry before any traffic flows, and revoking a Cloud Agent Identity or OAuth grant stops access immediately. AWS Bedrock AgentCore Identity manages agent workload identities and holds credentials in a token vault, issuing short-lived access tokens that the agent code never sees. If you cannot name the agent in your identity system, revoke it independently, and see its actions separately from the human who launched it, you have not verified identity.

Permissions. The agent needs the smallest set of permissions that lets it do its job, and those permissions need to be per tool, not per agent. AWS's guidance on governing agent loops on Bedrock makes this concrete: least privilege per tool, with each tool holding its own IAM role and no wildcards. AgentCore Policy evaluates every tool call against Cedar policies, with default deny and LOG_ONLY or ENFORCE modes, so you can watch what would have been blocked before you turn enforcement on. The test: can you describe, in one sentence per tool, exactly what the agent may do with it? If the answer is a broad role with a hopeful name, the permissions are not verified.

Audit trail. Every action must be recorded in a form you can read after the fact — and in a form the agent cannot rewrite. Anthropic's zero-trust guide requires logs that capture tool invocations, data access, and external communications, each tagged with the agent identity. AgentCore Observability plus CloudTrail provide the audit record on AWS, and Dapr 1.18 (June 2026) adds Workflow History Signing, Propagation, and Attestation for tamper-evident execution history. The audit trail is what turns an incident from a mystery into a postmortem. Without it, you are not governing an agent; you are watching one. Verifying AI agent actions covers the other half of this: how you actually check what an agent did, rather than assuming the log is the truth.

Reversibility. Before the agent acts, you must know how you would undo the action. This is the least mature of the four checks. Reversibility is a known gap, not a shipped feature: two November 2026 preprints, covered in a Dev.to summary, report approvals and state can be lost during context compaction, and rollback and resume are unreliable in current frameworks. Until the frameworks catch up, the mitigations are boring and effective: idempotent writes behind API Gateway and Lambda, daily backups, and a GitOps controller such as Argo CD or Flux as the last human choke point before production. If an action cannot be undone, cannot be retried safely, and has no human checkpoint before it lands, it belongs in the highest trust tier — which means it probably does not belong to the agent at all.

Trust tiers by blast radius

Once the four checks are in place, the next decision is how much autonomy each task gets — never one trust level for the whole agent. An agent that summarizes a document and an agent that deploys to production are not the same risk, even if they are the same model. Tier by blast radius: what happens if the agent is wrong, confused, or manipulated? The reason identity and permissions matter is visible in the failure mode AI agents leaking private repos documents — an agent with the wrong identity and permissions does not need to be attacked to cause damage; it just needs to be asked.

Tier 1 — Read-only and reversible. Summarizing documents, drafting text, searching code, answering questions from internal data. The worst case is a wrong answer that a human reads. These tasks need only the lightest controls: a verified identity, read-only permissions, and an audit trail. Most agents should start here.

Tier 2 — Reversible writes with a human checkpoint. Drafting a pull request, updating a ticket, generating a report and filing it, editing a staging configuration. The writes are real but undoable, and a human reviews before anything reaches production or a customer. OpenAI's Agents SDK gives a clean model for this: tools declare that they need approval, the run pauses and returns interruptions, and the run can be resumed later from the same state with an approval or a rejection. Approvals work run-wide, including nested agent executions. The SDK is deliberately headless — no queue, roles, deadlines, or audit trail of its own. The approval mechanism is yours to build; the platform controls around it are what make it trustworthy.

Tier 3 — Irreversible or high-impact actions. Sending email to customers, changing Drive sharing, making bulk edits, modifying IAM, touching production infrastructure, spending money, changing customer records. Google's Agent Gateway draws the line in the same place: explicit user confirmation before sending email, changing Drive sharing, or bulk edits, and MFA or human approval before reading sensitive storage, changing IAM, or modifying production infrastructure.

Tier 0 — Never delegate. There is a tier below the tiers, and naming it matters: things the agent never does, whatever its permissions say. Rotating credentials it should not know. Approving its own access. Modifying its own governance — the skill-archiving incident is the cautionary tale here, and Dhawal Shah's money rule belongs in this tier too: nothing makes a paid call on its own. If a task cannot be bounded, audited, and undone, it is a Tier 0 task waiting for a human.

The tiers also say where to spend your effort. A Tier 1 agent needs an identity and a log. A Tier 3 agent needs all of that plus policy enforcement, human approval, cost boundaries, and a rehearsed rollback. AWS's Bedrock loop-governance guidance lists the full set: least privilege per tool, Guardrails plus AgentCore Policy, logging every step, hard cost boundaries, deterministic stages, data boundaries, and human gates. That is the honest price of Tier 3 autonomy, and if you are not willing to pay it, the task stays at Tier 2.

The platform controls that actually hold

Every vendor in 2026 will sell you agent governance. Three tests separate real controls from decorations — and they only matter when the agent is confused, manipulated, or simply wrong.

First, the control must live in the platform, not in the agent's instructions. The CNCF made this argument crisply in October 2026: a boundary that holds 99 times and yields on the 100th is not a boundary, and the boundary must live in the platform — identity, network, permissions — not in the agent's instructions. Bounded autonomy, in their phrase, is a property of the platform. A system prompt that says "never send email without asking" is a suggestion. A gateway that refuses the request is a control. Google's Agent Gateway screens requests with Model Armor and enforces default-deny outbound rules regardless of what the agent was told. AgentCore Policy evaluates each tool call against Cedar policies at the gateway, not inside the agent's reasoning.

Second, the control must be deterministic where it matters. Probabilistic filters have a role — Bedrock Guardrails filters content, PII, and prompt injection with classifiers — but a probabilistic filter cannot be the only thing standing between an agent and an irreversible action. AWS pairs Guardrails with AgentCore Policy precisely because the two are different kinds of control: probabilistic versus deterministic. Use the classifier to catch what you did not anticipate; use the policy to guarantee what you will not allow.

Third, the control must fail closed and be measurable. When Okta and AWS tested revocation through AgentCore, after an admin removed a user's assignment, Okta refused new agent requests within about one second, and already-issued tokens expired within five minutes. AgentCore Identity added about 0.6 seconds to a roughly 30-second request. Those are the numbers you want from your own platform: how fast does revocation propagate, how long do tokens live, and what does the control cost in latency. If your vendor cannot answer those questions, you do not have a control. You have a slide. The test is documented in AWS's write-up of governing agent access with AgentCore.

The trust stack: enforcement sinks as the blast radius grows Agent reasoning — prompts, tools, plans (never a control surface) Gateway — Agent Gateway / AgentCore Gateway, default-deny, Model Armor Policy — Cedar policies, per-tool IAM roles, human-approval conditions Identity — Entra Agent ID / Agent Identity, short-lived tokens, revocation Audit + recovery — immutable logs, Dapr attestation, idempotent writes The agent sits on top; every layer below it can say no without asking the agent.

Anthropic's zero-trust guide for agents organizes the same controls into three tiers — Foundation (unique agent IDs, short-lived tokens, deny-by-default RBAC), Enterprise (X.509, mTLS, ABAC, sandboxed execution, immutable audit trails), Advanced (hardware-backed identity with attestation, continuous authorization, just-in-time access, confidential computing). Two positions deserve emphasis: sandboxing is table stakes for agents handling untrusted input, and Least Agency — narrower than least privilege — limits what tools can do, how often, and where they reach.

The gates that must stay human

These gates stay human.

Money. Anything that spends, charges, refunds, or commits to a price. Dhawal Shah's money rule — nothing makes a paid call on its own — should be a platform rule, not a prompt. Cost boundaries belong in the platform too: loop caps, token budgets, and hard spending limits that the agent cannot raise. A cost boundary is a trust control, not a finance feature.

Identity and access changes. Modifying IAM, granting permissions, changing who can see what. An agent that can change its own permissions has escaped its own governance, and the skill-archiving incident shows how easily that happens. Access changes need a human approver and an audit entry with a human name on it.

External communication. Sending email, posting publicly, messaging customers, changing sharing on a document. The recipient cannot tell whether a human or an agent wrote the message, so the reputational blast radius is the same as if you sent it yourself. Google requires explicit user confirmation before sending email or changing Drive sharing.

Production and customer data. Modifying production infrastructure, changing customer records, reading sensitive storage. These actions are irreversible in practice even when they are reversible in theory, and the cost of being wrong is measured in customers.

The governance itself. Approving a new tool, widening a permission, promoting a task from Tier 2 to Tier 3, changing a policy. These decisions change the trust posture and must never be delegated to the thing being governed. This is the meta-gate, and it is the one most often forgotten, because it feels like overhead until the day the agent upgrades itself into a permission it was never granted.

A short sketch makes the shape concrete. A Cedar-style policy for a Tier 3 tool — an illustration, not a deployable policy — shows what deterministic enforcement looks like: the default is deny, and the permit is narrow, conditional, and tied to a human approval.

// Illustrative sketch — not a deployable policy. The shape is the point:
// default deny, a narrow permit, and a condition the agent cannot satisfy alone.
permit (
  principal == Agent::"support-triage",
  action == Action::"updateTicket",
  resource in Ticket::"queue/support"
) when {
  context.humanApproval == true &&
  resource.severity != "critical"
};

And the approval side, in the shape of the OpenAI Agents SDK's human-in-the-loop flow:

// Approval-gated tool, following the OpenAI Agents SDK human-in-the-loop guide.
// The run pauses; a human approves or rejects; the run resumes from saved state.
const updateTicket = tool({
  name: "updateTicket",
  needsApproval: true, // run pauses here until a human decides
  execute: async ({ ticketId, status }) => {
    return updateTicketInSystem(ticketId, status);
  },
});

The code is short because the idea is short. The machinery around it — the identity system, the policy engine, the audit trail, the queue where the human actually sees the request — is where the real work lives.

Recommendation: the decision framework in practice

Step 1 — Name the blast radius. List everything the agent can touch, and sort each item into a tier. Be specific: not "the codebase" but "open a pull request in staging" versus "merge to main." If you cannot list what it can touch, it does not deploy.

Step 2 — Run the four checks. Identity, permissions, audit trail, reversibility — for each tool, not just for the agent as a whole. Any check that fails demotes the task a tier.

Step 3 — Put the controls in the platform. Gateway enforcement, policy evaluation, short-lived tokens, revocation you have tested. Write the revocation test into your runbook and run it: revoke the agent's identity and time how long access actually stops. The published numbers — new requests refused within about a second, issued tokens expiring within five minutes — are the benchmark to beat.

Step 4 — Name the human gates. Money, access changes, external communication, production and customer data, and the governance itself. Write them down, put them in the policy engine rather than the prompt, and make sure a human actually sees the approval queue.

Step 5 — Start at Tier 1 and earn the next tier. Run read-only for a week and read the audit trail. Then promote one task, watch it for a week, and promote the next. Promotion is a governance decision, made by a human, recorded in the audit trail. This is the opposite of the usual rollout — deploy everything, then add controls after the first incident.

How much autonomy does this task get? Start from the blast radius, not from how capable the agent seems. What happens if it is wrong? blast radius first Wrong answer only? Tier 1 — read-only Undoable + reviewed? Tier 2 — approval gate Irreversible / money? Tier 3 — human gate Cannot bound or undo? Tier 0 — never delegate A failed check demotes the task. Start at Tier 1 and earn the next tier.

Architecture Decision

Decision: Adopt tiered, platform-enforced trust: every agent gets its own identity, per-tool least privilege, an immutable audit trail, and a reversibility plan; autonomy is granted per task by blast radius, with human gates enforced in the platform, not in prompts.

Context: Agents now run loops with tool access across production systems, and the November 2026 vendor releases — Microsoft Agent 365 and Entra Agent ID, Google Agent Gateway, AWS Bedrock AgentCore — all push enforcement into the platform. At the same time, incidents show governance failing at the moment of change, and reversibility remains a known gap.

Options considered: Prompt-based governance; per-agent static credentials with broad roles; a single trust level for the whole agent; and the tiered platform model adopted here.

Why this one: Prompt-based governance fails the CNCF test — a boundary that yields on the 100th attempt is not a boundary. Static credentials fail the identity test, since the agent's actions cannot be separated from the user's and revocation is all or nothing. A single trust level either over-restricts harmless work or under-restricts dangerous work. The tiered platform model is the only option where the control holds when the agent is confused or manipulated, because the enforcement does not depend on the agent's cooperation.

What it costs you: Engineering time up front — identity setup per agent, per-tool policies, an approval queue a human actually watches, and a revocation test in the runbook. It also costs speed at Tier 3, where every high-impact action waits on a human.

When to reverse it: If a vendor platform matures so a tier's controls are provably enforced and audited by the platform itself, the human gate for that tier can be narrowed — but only by a human governance decision, recorded in the audit trail, and only after revocation and audit behavior has been tested, not merely documented. Never reverse the meta-gate: the decision to change the trust posture always stays human.

When not to trust an agent

There are deployments where the framework says no, and saying no is the framework working. Do not trust an agent when you cannot give it its own identity — acting with a human's credentials makes every action unattributable and every revocation collateral damage. Do not trust it when its permissions cannot be scoped per tool. Do not trust it when there is no audit trail you can read. Do not trust it with an irreversible action that has no human checkpoint and no rehearsed rollback, because reversibility is already the weakest link.

And do not trust an agent with the governance of itself. No agent should approve its own access, modify its own permissions, install its own tools without review, or promote its own tasks to a higher tier. That is the line the whole framework exists to hold.

Why This Matters

Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

Trade-offs to Consider

Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

When NOT to Use This

Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

Decision Framework

Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

Share this articleShare on XShare on LinkedIn

Keep the decision frameworks coming

One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.