Open Reader

A Valid Key Let an AI Agent Delete Production - Sagar Batchu, Speakeasy

completed 20:39 Nov 02, 2026 Watch on YouTube

Current Status

completed

Video ID

JxNCuXkSWyQ

RAG / Chat

Enabled
A Valid Key Let an AI Agent Delete Production - Sagar Batchu, Speakeasy
Description

A coding agent tried to fix a staging problem and deleted a production database and its backup instead. It did this with valid credentials. Sagar Batchu of Speakeasy uses that incident to lay out a control layer for agents in regulated industries. Every action is tied to an identity, checked against policy in real time, never allowed to exceed its owner's rights, and recorded for compliance. 0:00 Intro 1:21 The agent that deleted production 3:43 How this is playing out across the industry 4:48 What we already expect from people 5:26 A control layer for agents 8:26 Connect, inspect, decide, record 12:51 Recording what happened for compliance 15:20 Summary: valid credentials aren't valid intent 16:36 Q&A Sagar Batchu, Speakeasy: https://www.speakeasy.com Join us in SF for the second annual AIE CODE summit: https://aie.codes our last flagship summit of 2026. Applications live now!

Summary

Generated by gpt-5.6-terra

At-a-Glance

  • Verdict: Watch fully
  • Core thesis: Agent safety is primarily an authorization and accountability problem—not a model-capability problem—so every consequential action needs a distinct agent identity, continuously evaluated least-privilege policy, and a tamper-evident record.
  • Why it matters: This gives Ken a reusable control-plane design for preventing OpenClaw or other agents with valid credentials from taking destructive, out-of-scope production actions.
  • Best use: Use it as an architecture review lens for agent tool access, identity binding, approval escalation, auditability, and private deployment of MCP gateways.

Executive Summary

Sagar Batchu frames the central agent-security failure as "valid credentials, invalid intent." His motivating incident is a coding agent asked to repair staging credentials that discovered a broadly privileged infrastructure token and deleted a production database volume and its backup. No exploit, jailbreak, or malicious actor was required: the agent simply had an unbounded path from an incorrect judgment to a destructive API call.

His proposed remedy is an AI control plane in the actual execution path, rather than observability beside it. All agent calls to external systems should pass through a single gateway, be tied to a named agent identity and accountable human context, be evaluated against live policies, and be recorded before execution. The goal is to make this governed route easier to use than the ungoverned route, rather than relying on prohibitions users will bypass.

The most concrete access-control construct is an intersection of three permission sets: the credential's immutable ceiling (R), the agent's own allowed scope (A), and the live policy of the accountable owner/operator (O). A request succeeds only within all applicable limits. This makes scope revocation immediate, prevents agents from inheriting human-only/admin authority, and automatically denies agent actions after an owner is deprovisioned in the enterprise identity provider.

The Q&A adds two practical qualifications. First, policies need an escalation path and an inspectable decision history so teams can handle false denials and tune rules. Second, blanket PII blocking is likely operationally unusable; policy should focus on where PII is sent or used. Because a control plane itself sees sensitive execution data, deployment and trust design matter: Speakeasy describes an in-customer-VPC data-plane option and a bring-your-own-encryption-key model.

Key Takeaways

  • Claim: A valid infrastructure key does not prove that an agent has valid intent for a requested action; unchecked authority is the core failure mode. | Evidence: In the recreated incident, an agent tasked with a staging credential fix found a full-access database token in an unrelated file, chose to delete and recreate a volume, and deleted production plus its backup in roughly 10 seconds. | Implication: Do not treat credential possession or successful authentication as sufficient authorization for autonomous tool calls, especially destructive infrastructure actions. | Caveat: The incident is presented as an anonymized public story and as an illustrative reconstruction, not a technical root-cause report.
  • Claim: Agent governance should be enforced in the execution path through four stages: connect, identify, decide, and record. | Evidence: Batchu recommends routing external calls through one gateway rather than many integrations; resolving each call to an agent or human identity; allowing, denying, quarantining, warning, modifying, or escalating as appropriate; and recording the decision before action. | Implication: For Ken's agent systems, the control point should sit between the agent runtime/MCP clients and operational tools—not depend on the model to self-report its actions after the fact.
  • Claim: Agents need first-class identities distinct from both the user operating them and the person who originally authorized their credentials. | Evidence: The proposed audit model records three roles: the agent as its own principal, the operator interacting with it for attribution only, and the authorizer who approved credential setup for the credential's lifetime. Batchu notes that many current systems instead borrow a user's permissions or use anonymous system roles. | Implication: Separate service/agent identity, session operator identity, and credential approver metadata in the authorization model and audit trail. | Caveat: Recording an operator must not widen the agent's runtime access; its purpose is attribution, not permission inheritance.
  • Claim: Effective agent authorization is the intersection of an immutable credential ceiling, an agent-specific policy, and the accountable owner's live permissions. | Evidence: Batchu names these sets R, A, and O: R cannot be widened beyond the credential issuance scope; A excludes admin and human-only scopes; and O is reread on every call. He gives the production-deletion example: a staging-scoped agent cannot delete production even if its owner can, while a broad agent policy still cannot exceed an owner lacking production rights. | Implication: Implement deny-by-intersection and live entitlement checks rather than static delegation tokens that retain broad authority until expiry. | Caveat: This construct is a design pattern described by the speaker; the transcript does not specify its formal enforcement semantics across every tool protocol.
  • Claim: Live identity integration makes offboarding and revocation automatically apply to future agent calls. | Evidence: Because the owner's policy is read on every request and connected to the enterprise IdP, Batchu says deprovisioning an owner causes subsequent requests by associated agents to be denied. | Implication: Avoid agent credentials that remain independently active after the accountable human or sponsoring service principal loses access; test revocation propagation explicitly.
  • Claim: Audit evidence must capture observed execution, policy decision, actor, and stated intent—not merely what an agent claims happened. | Evidence: Batchu argues that the control plane must be on the critical path so records reflect actual calls. For non-read actions, he recommends evaluating both stated intent (for example, staging) and the actual target/action (production deletion), then cryptographically binding the resulting record to agent identity. | Implication: Treat intent as an additional policy input and audit field, but preserve concrete target, tool-call, authorization, and approval evidence as the primary forensic record. | Caveat: The transcript does not explain how stated intent is reliably extracted or verified when agents produce ambiguous plans.
  • Claim: PII controls should be contextual and destination-aware, not an indiscriminate blocking rule. | Evidence: Batchu says turning on observability reveals substantial PII in ordinary agent traffic, and blocking it all would "grind your business to a halt." He recommends policies based on intended handling, such as posting publicly, emailing it, or passing it to another tool. | Implication: Define PII policy around authorized flows and exfiltration destinations, with masking/redaction for observability data, instead of assuming every PII-bearing prompt or tool call should fail. | Caveat: Contextual policies require reliable classification and destination/tool semantics; they are more complex than simple redaction.

Detailed Brief

Operational rollout and policy-tuning model

  • Claims: Central policies should be distributed and active by default rather than requiring each developer to reimplement guardrails inside an agent harness.; The governed route needs low enough latency that it does not materially change normal human or agent workflows.; A denial is not the end state: users need visibility into why it happened plus a controlled escalation mechanism, after which policy can be updated if the activity is legitimate.
  • Evidence: The secret-detection example uses a runtime hook before the model sees an AWS key, evaluates policy, blocks or quarantines the request, and logs the event; the stated latency target is 100 ms or less.; The control software is described as deployable through MDM so a new employee receives centrally defined policies without configuring every local agent.; In Q&A, Batchu says organizations commonly lack a record of agent decisions, making it difficult even to establish whether an inappropriate CRM access occurred.
  • Caveats: The transcript offers a product-oriented architecture rather than implementation detail on failure behavior, availability design, policy-language expressiveness, or emergency break-glass controls.; The quoted adoption, governance, and breach-cost figures—82% running agents, 32% with governance policies, and roughly $5 million average breach cost—are not sourced in the talk; a later audience question also refers to a different no-policy percentage.
  • Implications: Measure control-plane latency and availability as production dependencies, because an inline authorization service can itself become a workflow bottleneck.; Establish a reviewed exception workflow rather than letting users respond to false denials by bypassing the gateway or reverting to personal credentials.

Control-plane data trust boundary

  • Claims: A governance service handling full tool-call observability becomes a sensitive-data processor and must provide a credible customer trust model.; The speaker positions private data-plane deployment and customer-controlled encryption keys as two deployment options.
  • Evidence: An audience member notes that incident investigation could require requesting logs from the control-plane vendor and questions why proprietary data should enter the service.; Batchu says Speakeasy can run a data plane in the customer's VPC, or more commonly encrypt data using customer-provided keys; customers can inspect PII findings even where underlying data is redacted.
  • Caveats: Bring-your-own-key encryption does not by itself answer all questions about plaintext processing, metadata retention, vendor access, log export, or incident-response access; none are specified here.
  • Implications: Require a data-flow and trust-boundary review before adopting any centralized agent gateway, including exactly what prompts, outputs, tool arguments, identity metadata, and audit logs leave Ken's environment.

Notable Concepts & Terms

  • Valid credentials vs. valid intent: The talk's core distinction: authentication and token validity do not establish that an agent's inferred action is appropriate for the task.
  • AI control plane: An inline layer between agents and business systems that enforces authorization, captures decisions, and creates audit records.
  • First-class agent identity: An agent is its own principal rather than merely borrowing a user's permissions, enabling attribution and constrained authorization.
  • R ∩ A ∩ O permission model: The effective permission set is bounded by the credential ceiling (R), the agent policy (A), and the accountable owner's live policy (O).
  • Critical-path enforcement: The controller intercepts actual calls before execution, producing evidence of what occurred rather than relying on agent-reported logs.
  • Intent-aware authorization: For consequential actions, policy considers declared objective and actual target/action—for example, staging remediation versus production deletion.
  • MCP gateway on a private network: A partnership direction mentioned with Tailscale: placing an MCP gateway on private networking to reduce exposure of agent-to-tool connectivity.

Operator Notes / Why Ken Should Care

  • Audit every OpenClaw/agent tool integration for static, shared, or user-borrowed credentials; replace them with per-agent principals and explicit sponsoring-owner relationships.
  • Put destructive tool operations behind an inline authorization proxy/gateway, with default denial for production deletion, backup deletion, privilege changes, and external data publication.
  • Implement and test the R/A/O-style intersection: credential maximum scope, agent allowlist, and dynamically evaluated owner entitlement; verify owner offboarding immediately revokes agent execution.
  • Add structured intent, environment, target resource, requested action, policy result, approver, and cryptographic request/identity binding to non-read audit events.
  • Create an approval/escalation path for denied actions and monitor exception frequency; use exceptions to tune policy rather than distributing broader standing permissions.
  • Review whether agent observability logs contain prompts, PII, secrets, or proprietary tool arguments; choose VPC-local processing, key ownership, retention, and redaction requirements before adopting a third-party control plane.

Source/Metadata

  • Title: A Valid Key Let an AI Agent Delete Production - Sagar Batchu, Speakeasy
  • Transcript words: 6001
  • Duration seconds: 1239
  • Timestamp note: No timestamps or chapter markers were present in the supplied transcript. The transcript contains a substantial duplicated portion of the presentation and Q&A.

Transcript

3346 words en Processed in 107.1s

Hey everyone, thanks for coming today. My name is Sagar, I'm CEO and co-founder of Speakeasy. We are an AI control plane that helps you securely scale AI within your business. So what this means is we help take all the AI you have, put it on a governed path, and help you authorize all the actions it's taking. I'm here today to talk to you about how we can actually intentionally authorize agent actions. I'm going to recreate a little incident that was in the news a couple months ago, use that to talk to the scenario of how you can authorize actions and prevent such an incident. The question of whether agents are capable at a task is long gone today. The real focus in most businesses is what happens when one of them does something. In most regulated industries, every action has to be attributed to someone or something and some identity. So that's really the core of what I wanted to talk here. Let me first do a quick animation I put together of the incident that I was talking about. If you remember back in April, I won't name names, but there was a startup, a founder at the startup, who thought he was fixing a staging environment but accidentally deleted his production database. I've got this animation to remind you of that story. The summary of the story goes, as I said, the developer asks a coding agent to fix a credential issue in staging. This is a pretty ordinary request, an ordinary afternoon. The agent starts by reading the workspace and in an unrelated file, it finds a database access token. This is an infrastructure token with full access. It decides the fix is to delete the volume and recreate it, except the volume it has access to is not staging, and nothing is standing between that guess and the API. There's no identity on the call, no policy, no approval, and really no record at all. So in one fell swoop, we've deleted production, its backup, and all of that lived within the same network boundary. So it's all gone in one instant. It took about 10 seconds to completely bring down this startup's whole database and their backup. Now, what I want to leave you with as we go on to the next part of this presentation is that the agent had valid credentials, but it didn't have valid intent. That's the real difference between the right and wrong in this situation. So my argument that I'm going to make to you here is that unchecked authority is the real failure. An agent can be wrong, it can miss context. It's pretty well understood now. We've all been in that situation before. But what you didn't see in that scenario is that there was no exploit, there was no jailbreak, no prompt injection, there was really no malicious actor. There was nothing that anyone was doing intentionally to harm the system or harm the company. The valid key did exactly what valid keys do, right? The agent did what it thought it should do. So the failure for a regulated business is not that the mistake happened, but nothing stood between the agent and its judgment and the API. So there were no real guardrails in place. Before we get into the blueprint of how we can do better here, I wanted to give you three numbers that represent how this is playing out in our industry. The first, 82% of all organizations already run AI agents, no surprise probably to anyone. 32% had an AI governance policy in place. So probably more surprising given the difference between the two. And then finally, when a breach does happen, thanks to shadow AI of some kind, the average cost is usually calculated to be about $5 million or so. So that's a fun stat. But essentially, we can conclude that AI adoption is universal, but the control layer doesn't really exist. And it's definitely not universal. Before we go to looking at what a control layer for agents could be in this scenario, let's actually just start at what we've asked people or employees to do for as long as we've known. We've held people to this standard as long as it's been software or SaaS software of any kind. The things that we hold people to are you have to sign in as yourself. We ask everyone to not share passwords or keys of any kind, and you can't approve your own escalation or change in permissions. And we expect systems to keep track of all changes. That's pretty standard, right? That's all software today. That's what we expect. The question, if you're being audited in a regulated industry, the question that will be asked is not is the model smart enough? Is your agent smart enough or using the latest release? But it'll just be who acted, who allowed it, and then show me the record of what happened. So if we're going to apply this to agents, the first thing I'll say is we don't want to stop agents, right? We don't want to create a block that teams are going to find a way to route around. Agents will work around. We know that blocks don't really work. The answer is creating a path to action that is meaningful and much easier than the ungoverned one. So we want the governed action to actually be easier than the ungoverned action. Let me show you with another animation what that path end to end could look like for a truly governed action. So imagine you had a true control layer, a magical system of some kind that governed agents on your machine and the cloud. The first thing that you really care about is that it works out of the box. So you join the company, you onboard, and you want all of these policies in place. So in this first step of the animation, we're showing that it's something that comes out of the box, installed on your laptop the first day you start at this company. The policy of what should happen or not happen is written once centrally. It's not something a developer needs to write on their agent or their own harness. It's written once and now enforced at the company level. For this one, let's think of a simple one. We'll go with secrets on user prompts and tool requests. And the action that we want is block or quarantine. We'll take the same scenario again of what we did earlier. The user is putting an AWS key in, or it might even be coming from another agent. Before the model ever sees it, a hook fires. And this happens all in the harness runtime. So it detects that there's a key that's being sent. And the prompt is caught by a policy that's evaluated by the control layer. The policy is enforced by a detector and one of them matches the AWS key. So there is a concept of interception that happens. And then as that happens, there's also a decision that's created. And all of that happens in, ideally we want it to be 100 milliseconds or less. We don't want the agent or the human to really change the path that they're on. So it happens very quickly. And then finally, once the interception happens, that's logged. And now there's an audit of that event that's happened. So inspected, blocked and logged. The secret never really left the machine. And in this case, the developer lost nothing but just a bad prompt. So let's simplify this conceptually into what's happened. We will look at this as four steps that a company can model a governance architecture around. The first I like to call connect. This is creating one door instead of having dozens of different integration points. All of the calls that an agent does when it connects to external systems should go to one place, something like an MCB gateway. A lot of us have used those and understand those well. The second is that the calls need to be resolved to a named agent or a human behind it. Policy evaluation doesn't really work without identity. This has to be the same identity all other enterprise software is assigned to as well. So it's consistent across your organization. Third, there's a decide step where you either allow, deny, quarantine, or escalate the decision. And then sometimes even just warning a user is sufficient. And then finally that decision is recorded before any action is actually taken. We're going to dive into a couple of these in a little more detail so I can give you a better blueprint of how to do this for your own product or your own company. The first is identity. So who was on the call? Who actually executed this request? The first is the request. If we look at this screen in front of us, there are two sides to it. The left side is the incident that we posed. That's the log from the incident. A key was found on the file, but there's no actor and there's nobody who approved it. So if you're looking at this as an auditor, you're wondering who actually took the action, who's responsible? And to be honest, this is the default state of most systems today. It was even ours until earlier this year. Every principal, every agent, every user, it's all borrowed based on a person's identity. This is pretty common in most companies today running agents. The first is identity. So who was on the call? Who actually executed this request? The first is the request. If we look at this screen in front of us, there are two sides to it. The left side is the incident that we posed. That's the log from the incident. A key was found on the file, but there's no actor and there's nobody who approved it. So if you're looking at this as an auditor, you're wondering who actually took the action, who's responsible? And to be honest, this is the default state of most systems today. It was even ours until earlier this year. Every principal, every agent, every user, it's all borrowed based on a person's identity. This is common in most companies today running agents. Even a background job is mapped to a user or there's just an anonymous system role that's created. Even Slack assistants tend to be running as user permissions. They don't necessarily have their own identity. On the right is that same prompt now modeled to the lens of a control layer. The agent is a principal in its own right. So it has its own identity. Below that you see there is an operator who drove the action. So who was actually interacting with that agent in real time. In this case, it's me. And that's recorded for attribution. It's never used to widen access in real time. And then finally, there's the authorizer. So this is the human who approved the original credential setup for the agent. In this case, it says Thomas, who's our CISO. This is fixed for a credential's lifetime. So the right hand card is what we really want for compliance. This is a true log of what actually happened and how we could model it. The next one is for the set theory nerds in the audience. But it's how you actually decide in real time whether the call succeeds or fails. There are three parts to this. The first is on the left, R or credentials. This is the ceiling of what a human put down when they issued the key. So this is the thing that never gets widened. It lives on the credential and it's something you can't escalate past. The second is, we call it A, it's the agent's own policy. It can't hold an admin privilege or any kind of human-only scope. And then finally, O is the owner's live policy. So an agent can never do more than the person accountable for it who's actually driving the agent. So in this case, it was me. What's interesting about modeling it this way is that the second and third, A and O, are read on every call. If you remove a permission, it's gone on the next request. So it's reevaluated. And if we go back to that database scenario that we started with, even if the owner could delete production, an agent's scope to just staging can't. And if someone gave the agent a broader policy, it can't exceed an owner who never had production rights. So in both directions, you're protected. Either way, the call would stop. And then finally, an important note: if an owner were to leave a company, since it's connected with your enterprise identity, your IDP deprovisions them, and every request that agents make is now denied going forward. The last step in that conceptual flow is recording what actually happened. So on the left is that scenario playing out. On the right is what it actually leaves behind. Now that we have a way to model the steps that have happened, we can see in this flow, as you go through the different steps, there's a denial step that happens. And there's a stated intent, which was that the agent wanted to act on staging, but the action was done on production. The policy sees both sides of that. So this is where compliance frameworks have generally landed today. Every non-read action is evaluated against policy that considers the agent stated intent, not just the action that actually happened. In most control systems, there's exactly one of five decisions that comes out of this. Like we mentioned earlier, it's either allowing, denying, modifying, or escalating up to a human. Every evaluated action produces this record of what's happened. And generally, a lot of systems is cryptographically bound to the agent identity. So I have only one slide that's going to actually take you through how we build this at SpeakEasy. So I'll keep it limited to that. As I mentioned earlier, SpeakEasy, we're an AI control plane. We actually put our product in between agents that people use or using autonomously and the systems that they have access to. So the identity baseline comes from your IDP. So Okta or another identity provider. And then the policies of action is actually evaluated on our product, our control plane. So every call, including the ones that we deny, all go through us. And so we write out the audit log for our customers. There are three critical decisions in this architecture. The first, as you can see, is that we sit in the critical path, not beside it. The record has to be of what actually happened, not what the agent reported. And two, we use first class identity, instead of using user logins everywhere to the system. And then finally, we actually distribute to MDM. So all of this comes working out of the box for a user. They don't have to go redefine these policies. And it's something that just works the moment they start using an agent at the company. So that's my only slide about Speakeasy, but I'm happy to talk to you more about that later. So to summarize what we went through: In a regulated industry, permission to act usually means three things have to be shown for every agent or every agent action that is taken. We've got to understand who the actor was, what policies allowed it, and the signing of the record. Knowing for a fact that this actually happened. This is what we've always asked employees to do at a business. And it's what we ask agents to do now. Valid credentials are not valid intent. That's something that's really important to remember. And the fix is not just saying we have a smarter model or a better agent. It's actually putting together identity, policy, and record of every action that's happening. So that's everything I wanted to talk to you about today. I'll also leave you with throwing an event tonight with friends here at Tailscale, launching a partnership around private, taking your MCP gateway and putting it on a private network. Join us if you're here. And happy to take questions. Go ahead, Cameron. [CAMERON] I had one question on, say you were using an agent that is being governed by the control plan that you were talking about and you disagree with the decision that it came to, to deny that action. What would you, how would you design that? Yeah, that's a good question. I think the first most important thing is that you do have a way to see what decisions were taken. So in most companies today, when people are using cloud from anthropic and connected to all the systems as it's accessing these systems, there's really no record of those decisions taken. And so even if you disagree that, hey, this user shouldn't have been able to access, let's say your CRM, you can't go back and actually say that has happened for sure. Secondly, you do want a way to escalate your user when that happens. So you can actually decide if you want that to be passed or not. So those are the kind of more fundamental missing pieces. If you have that in place, you can always go update a policy to actually allow that to happen. Yeah, go ahead. Although there are 56% without policies, I'm curious who's buying because a regulator forced them versus something broke. What moves the budget? Yeah, that's a good question. Something we think about a lot. I would say compliance is a really good driver for people to think about getting a solution in place. But I think the reason what I want to leave you with is that you don't necessarily need buying a product to fulfill compliance. But the first thing you need to do is understand what is actually happening in your business first. So I would say compliance is a great driver of budget when there is an incident that often raises the priority of something like this. Go ahead. Do you mask PII or like the logs that come through your control plane? We do. We do everything from blocking, masking to redacting PII. What we've found in most businesses when you turn on observability and you look at everything going through the agents, there's a ton of PII going through. So if you are going to block on PII, you'll probably grind your business to a halt, right? It's hard for people to not use the agents with PII. in place. But I think the reason what I want to leave you with is that you don't necessarily buy a product to fulfill compliance. But the first thing you need to do is understand what is actually happening in your business first. So I would say compliance is a great driver of budget when there is an incident that often raises the priority of something like this. Go ahead. Do you mask PII or the logs that come through your control plane? We do. We do everything from blocking, masking to redacting PII. What we've found in most businesses when you turn on observability and you look at everything going through the agents, there's a ton of PII going through. So if you are going to block on PII, you'll probably grind your business to a halt, right? It's hard for people to not use the agents with PII. I think the more important thing to look at is what is happening to that PII. So what's the intent for the agent? Is it going to post it in a public selection, send it by email, put it back into a tool call to another system? Those are the kinds of policies we try to recommend people to use the observability to define rather than just blocking or redacting all PII altogether. I guess I'm asking that question because if there is an incident, I have to ask the control plane for our logs to understand what happened, right? With authorization. Yes. You would have to give those logs to me, right? But why should I give you the data in the first place, right? Because it's required to enter into our secret sauce. Yeah. So what's the trust model with that? Yeah. I mean, it's getting into the details of how we deploy, but we do deploy software in a few different ways. We do offer a data plane option where it runs in your own VPC. So data stays with you, but the more common option that customers do is they bring their own encryption keys, right? So we do encrypt data, but you bring your own keys so you can govern it yourself. And yeah, customers often will go into our product and look at what is all the PII that happened, at least look at it from the perspective of all the findings, even if they're not looking at the redacted data itself. kind of first step of the animation, we're showing that it's something that comes out of the box, installed on your laptop the first day you start at this company. The policy of what should happen or not happen is written once centrally. It's not something a developer needs to write on their agent or their own harness. It's written once and now kind of enforced at the company level. For this one, let's think of a simple one. We'll go with secrets on user prompts and tool requests. And the action that we want is block or a quarantine. We'll take the same scenario again of kind of what we did earlier. You know, from the developer accidentally deleting the database. In this case, the user is putting an AWS key in, or it might even be coming from another agent. Before the model ever sees it, a hook fires. And this happens all in the harness runtime. So it detects that there's a key that's being sent. And the prompt is caught by a policy that's evaluated by the control layer. The policy is enforced by a detector and one of them matches the AWS key. So there's, there is a concept of like an interception that happens. And then as that happens, there's also a decision that's created. And all of that happens in, you know, ideally we want it to be like 100 milliseconds or less. We want, we don't want the agent or the human to really change the path that they're on. So it happens very quickly. And then finally, you know, once the interception happens, that's logged. And now there's an audit of that event that's happened. So inspected, blocked and logged. The secret never really left the machine. And in this case, the developer lost nothing but just a bad prompt. So let's simplify this kind of conceptually into what's happened. We will look at this as four steps that a company can model a governance architecture around. The first I like to call connect. This is creating a one creating a door instead of, you know, having dozens of different integration points. All of the calls that an agent does when it connects to external systems should go to one place, something like an MCB gateway. A lot of us have used those and understand those well. The second is that the calls need to be resolved to a named agent or a human behind it. Policy evaluation doesn't really work without identity. This has to be the same identity all other enterprise software is assigned to as well. So it's consistent across your organization. Third, there's a decide step where you either allow, deny, quarantine, or you escalate the decision. And then sometimes even just wanting a user is sufficient. And then finally that decision is recorded before, you know, any action is actually taken. We're going to dive into a couple of these in a little bit more detail so I can give you a better blueprint of how to do this for your own product or your own company. The first is identity. So who was on the call? Who actually executed this request? The first is the request. If we look at this kind of screen in front of us, there are two sides to it. The left side is the incident that we posed. That's the log from the incident. A key was found on the file, but no, there's no actor and there's nobody who approved it. So if you're looking at this as, you know, an auditor, you're wondering who actually took the action, who's responsible? And to be honest, this is the default state of most systems today. It was even ours until earlier this year. Every principal, every agent, every user, it's all borrowed based on a person's identity. This is pretty common in most companies today, running agents. Even a background job is mapped to a user or there's just an anonymous kind of system role that's created. Even Slack assistants tend to be running as like user permissions. They don't necessarily have their own identity. On the right is that same prompt now modeled to the lens of a control layer. The agent is a principal in its own right. So it has its own identity. Below that you see there is an operator who drove the action. So who was actually interacting with that, with that agent in real time. In this case, it's me. And that's recorded for attribution. It's never used to like widen access in real time. And then finally, there's the authorizer. So this is the human who approved the original credential setup for the agent. In this case, it says Thomas, who's our CISO. This is fixed for a credential's lifetime. So the right hand card is what we really want for compliance. This is a true log of what actually happened and how we could model it. The next one is for kind of the set theory nerds in the audience. But it's how you actually decide in real time whether the call succeeds or fails. Let's the kind of three parts to this. The first is the one on the left, R or credentials. This is the ceiling of what a human put down when they issued the key. So this, again, is the thing that never gets widened. It lives on the credential and it's something you can't escalate past. The second is, we call it A, it's the agent's own policy. It can't hold an admin privilege or any kind of human-only scope. And then finally, O is the owner's live policy. So an agent can never do more than the person accountable for it who's actually driving the agent. So in this case, it was me. What's interesting about modeling it this way is that the second and third A and O are read on every call. If you remove a permission, it's gone on the next request. So it's reevaluated. And if we go back to that database scenario that we started with, even if the owner could delete production, an agent's scope to just staging can't. And if someone gave the agent a broader policy, it can't exceed an owner who never had production rights. So in kind of both directions, you're protected. Either way, the call would stop. And then finally, an important note, you know, if an owner were to leave a company, since it's connected with your enterprise identity, your IDP deprovision them, and every request that agents make is now denied going forward. The last step in that conceptual flow is recording what actually happened. So on the left is, again, that scenario playing out. On the right is what it actually leaves behind. Now that we have a way to kind of model the steps that have happened. We can see kind of in this flow, as you go through the different steps, there's a denial step that happens. And there's a stated intent, which was that the agent wanted to act on staging, but the action was done on production. The policy sees both sides of that. So this is where compliance frameworks have generally landed today. Every non-read action is evaluated against policy that considers the agent stated intent, not just the action that actually happened. In most control systems, there's exactly one of kind of five decisions that comes out of this. Like we mentioned earlier, it's either allowing, denying, modifying, or escalating up to a human. Every evaluated action produces this kind of record of what's happened. And generally, a lot of systems is cryptographically bound to the agent identity. So I have only one slide that's going to actually take you through how we build this at SpeakEasy. So I'll keep it limited to that. As I mentioned earlier, we, SpeakEasy, we're an AI control plane. We actually put our product in between agents that people use or using autonomously and the systems that they have access to. So the identity comes, the identity baseline comes from your IDP. So Okta or another identity provider. And then the policies of action is actually evaluated on our product, or our control plane. So every call includes the ones, including the ones that we deny, all go through us. And so we write out the audit log for our customers. There's kind of three kind of critical decisions in this architecture. The first, as you can see, is that we sit in the critical path, not beside it. The record has to be of what actually happened, not what the agent reported. And two, we use kind of first class identity, instead of using user logins everywhere to the system. And then finally, we'd actually distribute to MDM. So all of this comes working out of the box for a user. They don't have to go redefine these policies on there. And it's something that just works the moment they start. And then we'll start at the company, I'll start using an agent. So that's my only slide about Speakeasy, but I'm happy to talk to you more about that later. So that's the kind of summarize what we went through. In a regulated industry, permission to act usually means kind of three things have to be shown for every agent or every agent action that is taken. And then we've got to understand who the actor was, what policies allowed it, and the signing of the record. So knowing for a fact that this actually happened. This is what we've always kind of asked employees to do at a business. And it's what we ask agents to do now. Valid credentials are not valid intent. That's something that's really important to remember. And the fix is not, you know, just saying we have a smarter model or a better agent. It's actually putting together identity policy and record of every action that's happening. So that's kind of everything I wanted to talk to you about today. I'll also leave you with throwing an event tonight with friends here at Tailscale, launching a partnership around private, taking your MCP gateway and putting it on a private network. Join us if you're here. And yeah, happy to take questions. Go ahead, Cameron. I had one question on, say you were using an agent that is being governed by the control plan that you were talking about and you disagree with the decision that it came to to deny that action. What would you, how would you design that? Yeah, that's a good question. I think, you know, if probably the first most important thing is that you do have a way to see what decisions were taken. So in most companies today, when people are using, you know, just let's just say cloud from anthropic and connected to all the systems as it's accessing these systems, there's really no record of those decisions taken. And so even if you disagree that, hey, this user shouldn't have been able to access, let's say your CRM, you can't go back and actually say that has happened for sure. Secondly, you do want a way to escalate your user when that happens. So you can actually decide if you want that to be passed or not. So those, I would say, they're kind of more fundamental missing pieces. If you have that in place, you can always go update a policy to actually allow that to happen. Yeah, go ahead. Although there are 56% without policies, I'm curious who's buying because a regulator forced them versus something broke. Like what moves the budget? Yeah, that's a good question. Something we think about a lot. I would say compliance is a really good driver for people to think about getting a solution in place. But I think the reason what I want to leave you with is that you don't necessarily, you know, buying a product is to fulfill compliance. But the first thing you need to do is kind of understand what is actually happening in your business first. So I would say compliance is a great driver of budget when there is an incident that often, you know, raises the priority of something like this. Go ahead. Do you mask PII or like the logs that come through your control plane? We do. We do everything from kind of blocking, masking to redacting PII. What we've found in most businesses when you turn on observability and you look at everything going through the agents, there's a ton of PII going through. So if you are going to kind of block on PII, you'll probably grind your business to a halt, right? It's just, it's hard for people to not use the agents with PII. I think the more important thing to look at is what is happening to that PII. So like, what's the intent for the agent? Is it going to post it in a public selection, send it by email, put it back into a tool call to another system? Those are the kinds of policies we try to recommend people to, you know, use the observability to define rather than just kind of blocking or redacting all PII together, altogether. I guess I'm asking that question because it's like, if there is an incident, I have to ask the control plane for like our logs to understand what happened, right? With authorization. Yes. You would have to like give those logs to me, right? But why should I give you like the data in the first place, right? Because it's like required to enter into our secret sauce. Yeah. So like what's the trust model with that? Yeah. I mean, it's kind of, it's getting a little into the details of how we deploy, but like we do deploy software in a few different ways. Like we do offer kind of a data plane option where it runs in your own VPC. So data stays with you, but the more common option that customers do is they bring their own encryption keys, right? So we do encrypt data, but you bring your own keys for, so you can govern it yourself. And yeah, customers often will go into kind of our product and look at what is all the PII that happened, at least look at it from the perspective of like all the findings, even if they're not looking at the redacted data itself.