An agent can authenticate successfully and still ask to do something it should not do. A valid credential might permit access to a customer system while the particular task permits only a summary. Exporting every customer record would cross that task boundary even if the API accepts the token.

Put the check where the action happens

Runtime authorization evaluates the proposed operation before execution. Microsoft’s reference architecture separates the place that enforces the result from the service that decides policy. The distinction matters: the component holding the tool credential must be able to refuse execution, regardless of what the model asks next.

Proposed action reaches an enforcement point, which consults policy. Allowed actions reach the service; denied actions stop; approval-required actions wait.

01 / Runtime authorization

One action. One enforceable decision.

  • Proposed action

    User · task · target

  • Enforcement point

    Holds the tool credential

    Checks policy using context + current rules; receives the decision.

  • Decision outcomes

    Allow → protected service executes the action.

    Deny / stop → no tool execution.

    Hold for approval → bind approval to the exact action, then return to policy.

TrustCyber / Illustrative design

Illustrative control flow. Human approval returns a decision to the enforcement point; it does not bypass the check.

The decision needs enough context to distinguish legitimate work from an overreach: the acting user, agent identity, approved task, operation, target, data classification, and relevant conditions. A policy can then allow a bounded read, refuse an export, or ask a person to authorize a specific change.

Keep credentials outside the model’s text and make the enforcement route unavoidable. If the same agent retains a broad token for a direct call, a separate policy service cannot reliably govern that action. The protected service should also enforce the business rules it knows best, such as whether an account is eligible for a refund.

The retry is a new request

Suppose a person approves sending a report to one internal recipient. Delivery fails, and the agent proposes a shared link instead. The destination, exposure, and retention may now be different. Reusing the original approval without checking those differences turns a narrow authorization into a wider one.

Bind approval to the meaningful parts of the action. Where the workflow allows minor changes, define those tolerances explicitly. Otherwise, changed payloads, recipients, amounts, or resources should return to the decision point. This is particularly important when the model replans after an error.

Failure cases worth exercising
TestExpected evidence
Approval has expiredExecution is held or denied; the reason is recorded
Policy service is unavailableThe configured safe failure behaviour is observed
Tool redirects to another resourceThe new destination is checked before access
Agent attempts a direct API callThe protected action cannot bypass enforcement

Three decisions for one report action

Hypothetical trace AT-01 uses report R7, acting service identity report-agent-17 and policy RP3. Human approval AP-7 permits one send of R7 to ops-review@example.invalid, valid from 09:00 to 09:15 on the exercise clock. The addresses and identifiers are synthetic.

AT-01 — request, decision, enforcement and result
VariantPolicy decision and scopeEnforcement and downstream outcome
09:05 · allowR7 to ops-review@example.invalid; AP-7 matches recipient, payload and validity.Enforcement releases one call, request M-7. Mail record MR-7 confirms delivery to that recipient.
09:06 · approval requiredAgent proposes sending R7 to finance-review@example.invalid. AP-7 does not cover the changed recipient.Enforcement holds the request for a new approval. No downstream request is issued; the original delivery grants no further send authority.
09:16 · deny: expiredAgent proposes another send under AP-7 after its validity window.Enforcement denies the request and records expiry D-9. No downstream request is issued; any new approval must also account for the completed first send.

In this example, the connector owner retains the mail credential at the enforcement point. The agent has no independent mail credential. The trace records both the policy result and the destination’s evidence; an allow decision alone does not establish delivery.

Keep the decision and the result

An authorization log explains why an action was permitted. A tool response records what the service reported. The downstream state establishes what actually happened. Keep these linked through request identifiers so investigators can distinguish a refused operation, a successful change, and a timeout with an uncertain outcome.

This adds work to the execution path, so choose policy attributes that can be obtained reliably and measure the latency. Start with consequential operations such as external sends, financial changes, and access grants. The practical test is whether a reviewer can reconstruct one action from the original task through the final state without relying on the agent’s account of its own behaviour.

Review the approval-to-execution path

The AI Exposure and Control Assessment traces identities, approvals and enforcement across an agreed workflow.

Selected primary sources

Open the primary-source pages used to verify the claims summarized here.