Technical Guide

    Preventing an Approved LLM Action from Running with Different Arguments Than the Approver Saw

    Bind each approval to a digest of the exact tool, arguments, actor and context the approver saw. Make the approval single-use and short-lived. At execution, a deterministic policy layer in the execution path recomputes the digest, consumes the approval atomically, and blocks any mismatch. Retain evidence of both the approval and the enforcement outcome.

    Controls that bind an approval to the exact call

    1. Canonical form of tool, arguments, actor and context
    2. Digest of that form stored with the approval
    3. Single-use approval with expiry
    4. Atomic check-and-consume immediately before execution
    5. Fail closed on unknown tools or missing approval requirements
    6. Pinned, hashed tool definitions

    Evaluation criteria for approval controls

    • Is the approval bound to the exact tool, arguments and actor, rather than stored as a boolean?
    • Is a canonical form used, so independent serializers produce identical bytes?
    • Is approval consumption atomic and single-use, with defined behavior for concurrent or repeated requests?
    • Is the call re-validated by a deterministic policy layer at execution, with unknown tools failing closed?
    • Is any difference in arguments or tool definition blocked and recorded?
    • Is the evidence tamper-evident and retained with identities, digests, timestamps and outcomes?

    Why approval and execution drift apart

    Many human-in-the-loop designs treat approval as a review step that sits beside execution. A reviewer sees a rendering of a proposed tool call, clicks approve, and a flag is set. Later, a separate component runs the call. Nothing guarantees that the call it runs is the call the reviewer saw. This is a time-of-check to time-of-use gap: the check happened on one object and the use happens on another.

    OWASP's AI Agent Security guidance is direct about the weakness. A `user_confirmed` flag is not enough. The authorization component must verify that the approval belongs to the current actor and the exact tool call, that it is still valid, and that it has not already been consumed. Any change to the target or parameters requires a new approval.

    The framing matters for how you fix it. This is an integrity and enforcement problem in the execution path. It is not a user-interface problem, and it is not solved by asking reviewers to be more careful.

    Failure modes that create a mismatch

    Any step that regenerates, re-parses, re-serializes or re-issues arguments after approval can change what runs. If the model is asked to produce the call again, or an intermediary normalizes, coerces or rewrites parameters, the approved and executed forms may diverge even without an attacker. The following mechanisms are documented in current OWASP guidance.

    The common thread is that approval attached to a label, such as a tool name or a boolean, does not constrain the data the call carries.

    • Displayed action differs from executed action: OWASP LLM01:2026 cites invisible-character smuggling as a way the action a reviewer sees can differ from the one that executes.
    • Injected parameters: Prompt injection can lead an agent to call a tool with attacker-controlled parameters. Model output must be treated as untrusted at the tool boundary.
    • Tool definition changes after approval: A compromised MCP server can update a tool definition after it was approved, a pattern often called a rug pull.
    • Stale approval signals: Annotations such as readOnlyHint or destructiveHint can change client approval behavior without any visible change to the description.
    • Approved tool, hostile arguments: A tool allowed to auto-run, such as a ping tool, can be called repeatedly to exfiltrate data through DNS queries. Approving the tool does not constrain its arguments.
    • Execution outside the prompt: Approval prompts do not stop programs when an integration runs a command, such as Git, outside the prompted path.

    Enforcing at execution, not reviewing after the fact

    Binding only works if the check sits where the call actually executes. OWASP describes a pre-execution hook, outside the agent, that can allow, block or escalate each pending action. Its agentic guidance describes a policy enforcement point and decision point that validates intent and arguments, enforces schemas and rate limits, issues short-lived credentials, and revokes or audits on drift. Credentials and state-change capability stay in application code, not in the model.

    That layer does three jobs. It decides, from the operation, target, arguments and caller's authority, whether a call needs a human. It enforces that the executed arguments match the approved ones. It blocks any mismatch. Because the decision is deterministic and runs outside the model, a regenerated or injected argument cannot talk its way past it.

    Trussed enforces policy in the execution path for individual interactions and tool calls across models, agents, tools and MCP servers. The actions available are allow, redact, block, rate limit and escalate for human approval. Enforcement happens at runtime, not through review after the fact. Its scope is the individual call, not a business transaction spanning tasks or agents.

    Two cautions apply to any design. Approval fatigue degrades reviewer judgment at volume, so scope approval rules by action and risk instead of routing everything to a person. For high-impact actions, show approvers a pre-execution plan or dry-run diff, and normalize or reject hidden characters before rendering.

    Evidence to retain

    An auditor's question is simple: can you show that what was approved is what ran? Answering it requires two linked records, plus a record of what happened when they disagreed.

    The approval record should hold the approver identity, the actor, the tool, the argument digest, the context presented, the timestamp and the expiry. The execution record should hold the agent identity, the tool invoked, a hash of the executed arguments, the result and the timestamp. A matching digest across the two records is the proof of equivalence. A block event should record the mismatch and the enforcement decision.

    OWASP's payments guidance recommends storing a hash of the arguments rather than the raw arguments, for privacy, and including the previous entry's hash so the log is tamper-evident. That pattern is described for payments but transfers well to tool calls. Decide separately whether to retain the rendered view the approver saw, and under what retention and residency rules.

    Trussed generates audit-ready evidence from enforcement itself, mapped to HIPAA, NAIC, NYDFS, the EU AI Act and NIST, with configurable retention and data residency in a self-managed deployment in the customer cloud. Evidence is a product of the enforcement decision, not a separate logging exercise.

    Approval bound to the call that runs

    Proposed call

    Tool, arguments, actor and context are serialized into one canonical form.

    Approval

    A human approves a digest of that form. The approval is single-use and expires.

    Execution check

    The digest is recomputed and the approval consumed atomically before the call runs.

    Evidence

    Approval and enforcement outcome, including any blocked mismatch, are recorded.

    See enforcement and evidence at the tool-call level

    Walk through how policy is enforced in the execution path, how calls are escalated for human approval, and how audit-ready evidence is produced.

    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.