Article icon
Article

Agents Can Change Course – Governance Needs to Follow Them When They Do

When Agents Go Off Script

Recent security breaches involving AI agents have garnered attention concerning the risks of autonomous AI activity. For example, a recent OpenAI incident involved agents who were sent to gather basic data and ended up hacking into government and university websites to complete their given task.

While AI capabilities show considerable promise, these events demonstrate the risks of deploying AI agents without proper governance practices. This risk only grows as enterprises begin scaling agentic operations. Forty percent of large organizations report actively scaling AI agents, and tech leaders expect the average number of AI agents they deploy to increase by 38% come 2027. The risk extends beyond unauthorized actions to manipulated prompts, requests outside an agent’s assigned remit, and excessive resource consumption. As agent use grows, enterprises have to address these risks throughout the workflow, not just evaluate the final action.

The Limits of Traditional Governance

Traditional enterprise applications were largely deterministic and executed tasks according to predefined business logic. That predictability allowed engineers to establish permissions and governance checkpoints around known execution paths.

As enterprise technology evolved, organizations added more governance and observability controls to address a range of platform behaviors. These included:

  1. Identity and access management (IAM): Governed access to certain systems
  2. Large language model (LLM) gateways: Logged prompts and responses
  3. Observability platforms: Traced agentic workflows end-to-end
  4. Output guardrails: Verified LLM content
  5. Model governance platforms: Supported model reliability

These controls address different parts of the problem and remain necessary. Agentic governance must connect safeguards on incoming content with authorization of specific actions and limits on ongoing execution. Checking a prompt does not determine whether every subsequent tool call is authorized, and authorizing a tool call does not limit how long an agent can keep running.

Agents Break the Predictability Assumption

AI agents do not follow a predetermined execution path. Agents can select tools, set parameters, choose the order of actions, and dynamically adjust their flow to reach the final objective. Without proper guardrails, an agent sanctioned for a specific task might leverage additional tools, data, systems, or other agents it gains access to as workflows evolve, leading to unexpected actions with downstream consequences. During early agent pilots, the scale of agentic operations was relatively limited, allowing organizations to manually observe most individual agentic actions and mitigate the associated consequences.

However, the pressure to expand agent utilization across production environments has made this stopgap measure less effective. In an IBM survey, 59% of tech CxOs identified security and compliance concerns as among the top barriers to scaling AI agents.

Various solutions are emerging across the industry to address these governance issues. Many of these ideas center on secure execution boundaries. While this is a meaningful first step toward runtime controls, containment only addresses part of the risk. These approaches leave gaps when agents operate outside the governed domain or, especially, when they require interventions during execution.

The Case for In-Flow Governance

A comprehensive approach to governance will require making autonomous execution visible, stopping consequential agent actions when necessary and preserving a log of agentic behavior and decisions. In-flow governance addresses these requirements through five elements:

  1. Prompt safeguards and control points throughout execution: Governance should address the instructions an agent receives as well as the actions it attempts. Prompt-injection detection can flag jailbreak and injection attempts before the agent acts, while hidden-text checks detect invisible Unicode used to conceal instructions. Topic restrictions define subjects the agent must refuse, and code detection can block executable code submitted in prompts. These checks should be configured for each agent’s function, alongside sensitive-data detection and redaction. They complement controls at tool invocation, model routing, data retrieval, agent handoffs, and output delivery.
  2. Enforcement across subsequent interactions: Controls should persist across the agentic workflow. Agent A might call on Agent B to complete a task. Governance should account for this and span all agents, whether invoked through tool calls, orchestrator routing, or agent-to-agent protocols.
  3. Risk-based intervention: Safeguards should account for a spectrum of risks and leverage proportionate controls. This means routine operations advance automatically, modifications pause for user consent, high-risk workflows halt until an external approver can verify the action, and the governance layer automatically denies blocked actions. All of this should happen at runtime, before interactions with core enterprise systems.
  4. Runtime limits and cost visibility: Permission to use a tool does not mean an agent should run indefinitely. Iteration caps can stop an agent after a configured number of reasoning-loop iterations, while token ceilings enforce consumption limits per agent. Operators also need a way to stop a running agent or an individual conversation. Cost observability serves a different purpose: translating token consumption into currency per agent and per run, with usage trends showing how consumption changes over time. Limits constrain execution; cost visibility helps teams understand its financial impact.
  5. Audit trails: The execution record should show not only what an agent did, but which safeguards ran and what they decided. That includes prompt checks, policy verdicts, human approvals, tool calls, and responses. Cryptographically linked, append-only records provide tamper-evident histories that support investigation and compliance review. The objective is evidence that controls operated during a run, not merely documentation that a policy existed.

Taken together with existing IAM, workflow approval, and policy enforcement technology, enterprises can create the necessary governance practices to allow for agentic scale.

See the Control Points in Action

Consider an enterprise employing a fleet of AI agents to modify its credentials or access policies. In-flow governance could enable different levels of autonomy based on each action’s risk:

  • A low-risk action: Granting permissions based on established enterprise policies and parameters could occur automatically.
  • A medium-risk action: Granting a user access to sensitive information would require the agent to pause the action, preserve the workflow state, and wait for confirmation from the user.
  • A high-risk action: Granting administrative privileges to a certain user would necessitate agents to pause and preserve the workflow while waiting for approval from authorized personnel.

The same workflow also needs safeguards beyond action approval. For example, an injection check can flag a prompt attempting to override the agent’s governing instructions, while topic restrictions can reject an unrelated request. If the agent keeps repeating a task, an iteration cap can stop the run even when individual tool calls are permitted. These controls address different problems: what is influencing the agent, whether its work remains in scope, and how long it can continue.

If any handoffs occur throughout the agentic workflow, the same approval patterns apply. The in-flow governance architecture records all actions so that internal audit can trace changes and understand where human-in-the-loop processes occurred. This establishes the foundation for agent deployments to span various workloads.

These safeguards should remain consistent across the frameworks an enterprise uses. A shared governance core can centralize policy evaluation and storage, audit requirements, sensitive-data rules, and approval logic, while framework-specific adapters provide the interception points needed to enforce decisions. In-flow describes where controls participate in execution; it does not mean the entire governance engine must run inside each agent. This separation allows governance to remain consistent as teams adopt or change frameworks.

The Goal Is Governed Autonomy

Agentic scale is not as simple as technical capability. The agents in the OpenAI incident demonstrated the technical capability to act beyond intended boundaries. The scaling constraint is whether enterprises can maintain control as autonomous execution expands.

In-flow governance brings prompt safeguards, action-level authorization, and execution limits into the same operating model. Automated checks and risk-based approvals can reduce the need to review every step manually, while token limits and cost visibility help teams manage consumption. The objective is neither unrestricted autonomy nor constant human supervision. It is autonomous work within defined boundaries, with evidence that those boundaries are being enforced.

Build your AI governance skills.

Explore training programs on AI governance, data governance, and compliance for data practitioners.

Black Friday Sale! Use code FRIDAY2026 for 25% off.