Implementation Guide

    Enforcing policy on an agent's plan before it calls any tool

    Treat each tool call an agent proposes as an enforcement decision point, and evaluate it in the execution component, outside the agent's context, before it runs. Policy takes agent identity, tool, arguments, data classification and context as inputs and returns allow, redact, block, rate limit or escalate for human approval. Each decision should record evidence. This covers individual interactions and tool calls, not whole transactions across tasks and agents.

    Where the enforcement point sits

    1. 1

      Prompt instructions

      The model is asked to comply. The result depends on the model's interpretation, so a disallowed call can still be made and executed.

    2. 2

      Post-hoc review

      Calls are examined after the fact. Useful for investigation, but the action has already run.

    3. 3

      Log-based monitoring

      Activity is observed and alerts are raised. Unless it is wired to block, the call executes first.

    4. 4

      Enforcement in the execution path

      The call is evaluated before it runs. A blocked call never reaches the tool.

    Evidence each decision should produce

    • Decision identifier and timestamp, tied to the interaction and the tool call
    • Agent identity, user and delegation context
    • Tool, MCP server and the arguments as evaluated, after parsing and decoding
    • Data classification and context used in the decision
    • Policy version and the rule that matched
    • Outcome, whether the call executed, and for escalations the approver and the approval binding

    The plan is not the enforcement unit

    An agent decomposes a goal into steps and then calls tools, APIs and MCP servers to carry them out. The plan is text the model generates, and it can change after every tool response. What actually reads data, changes records or triggers actions is the sequence of tool calls. The practical way to enforce policy on a plan is therefore to evaluate each proposed call as it is formed, rather than approving the plan once up front.

    It helps to separate the points in an agent loop: plan generation, tool selection, argument construction, tool invocation and tool response. The first three happen inside the model, where an external control can only influence the outcome. The enforceable points are invocation and response. At invocation, a check outside the agent can validate the call, its arguments and the caller's permissions before execution. At response, tool output should be treated as untrusted data, including output from approved servers, and the next call it prompts should be re-validated in trusted code, independent of how the model interpreted the output.

    Two details decide whether invocation checks hold up. Inspect the pending action itself, not the agent's description of it. And parse commands rather than matching strings, decoding common encodings such as base64 and hex before inspection.

    Define the policy inputs

    A decision is only as good as the attributes available when the call is evaluated. Start with the inputs below and add attributes as your risk model requires.

    Be careful with tool metadata. A tool's read or write label alone may not establish risk, and annotations from MCP servers you do not trust should not drive decisions. Choose controls by the effect of the call: sensitive reads, writes, data disclosure and irreversible actions deserve stricter outcomes than low-impact reads.

    • Agent identity and delegation: Which agent is calling, on whose behalf, and with what trust level.
    • Tool and MCP server: The specific tool, the server that hosts it, and the resources in scope, such as read-only versus write.
    • Call arguments: The parsed, decoded arguments of the pending call, including targets and payload content.
    • Data classification: The sensitivity of data the call would read, send or change.
    • User and session context: The requesting user, the task context and the preceding tool responses.
    • Rate and volume: Call frequency, volume and targets over a window, which supports limits per agent.

    Map outcomes to planned actions

    Each outcome answers a different risk. Allow when identity, tool, arguments and data classification all fall within policy. Redact when the call is acceptable but part of its content is not, for example removing sensitive entities from arguments before they reach a tool. Block when the call is outside policy, so it never executes. Rate limit when individual calls are acceptable but their frequency, volume or targets are not, such as bulk reads by one agent. Escalate when the call is permitted only with a human decision.

    Human approval needs more than a flag. A user_confirmed field set by the agent or interface proves little. The enforcing component should verify that the approval belongs to the current actor and the exact tool call, is still valid and has not been used. Check and consume it in one atomic step immediately before execution, so concurrent or repeated requests cannot reuse it.

    Escalation also needs restraint. One report cited by OWASP found that Claude Code users approve 93% of permission prompts, which shows how per-action prompts become habitual. Reserve escalation for risk-based cases and let clear policy handle the rest.

    • Allow: Inputs are within policy. The call proceeds and the decision is recorded.
    • Redact: The call proceeds with restricted content removed from arguments.
    • Block: The call is stopped before execution.
    • Rate limit: Calls beyond a defined rate, volume or budget are held or refused.
    • Escalate: Execution waits for an approval bound to the actor and exact call.

    Limits, evaluation and rollout

    This approach has a defined scope. It enforces policy on individual interactions and tool calls. It does not govern a business transaction across tasks and agents, and it does not give end-to-end tracing of an agentic workflow. Evaluating each call also does not judge whether a sequence of individually permitted calls adds up to an acceptable outcome, so rate, volume and target attributes matter.

    When assessing any approach, ask whether it sits in the execution path so a blocked call never reaches the tool, or only alerts afterward. Ask which agents, tools and MCP servers it covers, whether it evaluates the real pending call, whether approvals are bound and consumed once, which outcomes it supports, and what it records and exports. Start in observe mode or simulate policies, review the decisions, then enforce.

    Trussed enforces policy in the execution path across models, agents, tools and MCP servers, with allow, redact, block, rate limit and escalate for human approval, scoped to individual interactions and tool calls. Enforcement generates audit-ready evidence for regulated enterprises, and it can be deployed self-managed in the customer cloud.

    For EU AI Act planning, as of December 2026 the Digital Omnibus on AI, in force since 27 July 2026, moves high-risk application dates to 2 December 2027 for stand-alone high-risk systems and 2 August 2028 for AI embedded in products.

    From proposed step to executed call

    Agent proposes a call

    Tool, arguments and caller are captured before anything runs.

    Policy evaluates

    Identity, tool, arguments, data classification and context are checked outside the agent.

    Outcome applied

    Allow, redact, block, rate limit or escalate for human approval.

    Evidence recorded

    The decision and its inputs are written as part of enforcement.

    See how enforcement and evidence work on a tool call

    Walk through a pre-execution decision, from policy inputs to the evidence it produces, with a Trussed expert.

    See How Evidence Is Produced
    Next step

    How does your AI governance program compare?

    See where your program has gaps in less than 2 minutes.