Answers · AI evidence
Microsoft's new agent controls service, in public preview since November 18, 2026, checks an AI agent's inputs, tool calls and outputs against central policies and returns a receipt with each decision. What does that receipt record, what doesn't it record, and what else do you need to keep for an audit trail of what the agent actually did?
Last updated
TL;DR: Agent controls is a managed Azure service, announced in public preview on November 18, 2026, that evaluates an agent's actions and content against central policies at runtime. It is built on two open-source pieces: Agent Hooks, which defines intervention points across the agent lifecycle (startup, input, model calls, tool calls, output and shutdown), and the Agent Control Specification (ACS), which defines how each decision is made from classifiers, LLM judges and deterministic Rego rules. At each configured point the agent host sends the event (with agent and session identifiers, a timestamp and a sequence number) to the service, which returns allow, deny or transform. Each evaluation also returns a receipt identifying the policies and versions applied, and Microsoft tells applications to record these receipts alongside execution outcomes, so each action can be traced back to its policy decision. The receipt records the decision, not the outcome: Microsoft notes that HTTP 200 only means the evaluation completed, and the host is the one that applies the decision and runs the tool. For an audit trail you also need what the host then did, what the target system observed, any human review, and storage the agent can't edit.
What should I check, step by step?
1. Keep every agent controls receipt, including denies and transforms, together with the agent id, session id, sequence number, intervention point and timestamp of the event it answered.
- Record what the host did with each decision: whether the tool ran, was blocked, or ran with transformed arguments, and the result the target system returned.
- Store a hash of the tool arguments as checked and as executed, so you can show the action that ran is the one that was evaluated.
- For escalations to a person, record who approved, when, and exactly what call they approved, and bind that approval to the call that then ran.
- Keep the policy text for each policy version a receipt names, so a reviewer can later see the rule that was actually applied, not today's version.
- Write receipts and outcomes to storage the agent's own credentials can't modify or delete, and check regularly that the record count matches the number of evaluations the host made.
What is Microsoft's Azure agent controls service and how does it evaluate AI agent actions?
Microsoft introduced agent controls on its Command Line blog on November 18, 2026 as a managed Azure service, in public preview, for defining and evaluating policies on agent behavior across frameworks, platforms and clouds. Policies are stored as Azure resources and evaluated through a hosted API (a POST to the Content Safety account's unifiedModerate endpoint, API version 2026-09-01-preview). The same engine sits behind governance features in Microsoft Foundry and Microsoft Agent 365.
- It builds on two open-source specifications Microsoft published earlier: Agent Hooks, a framework-neutral contract with eight intervention points (agent startup, input, before and after each model call, before and after each tool call, output and agent shutdown), and ACS, a request-and-decision format in which annotators such as safety classifiers, LLM judges or external APIs gather evidence and a policy engine such as Rego returns the decision. Microsoft's example is a fictional bank whose agent may not complete a transfer over $10,000 on its own: at the pre-tool-call point the proposed transfer is sent for evaluation and a larger amount is denied for human review.
What does an Azure agent controls receipt record, and what doesn't it record?
According to Microsoft, each evaluation returns a decision (allow, deny or transform) and a receipt that identifies the policies and versions applied. Applications are told to record these receipts alongside execution outcomes so teams can trace each action back to the policy decision. The request that produced the receipt carries the Agent Hooks specification it follows, the intervention point, a timestamp, a sequence number, agent and session identifiers, and the payload and target being checked.
- The receipt is the policy service's answer, not proof of what happened next. Microsoft's post says HTTP 200 means the evaluation completed, not that the action is permitted, and that the host validates the decision and receipt, applies the decision and connects review outcomes to its own workflows. Whether the tool then ran, with which arguments, and what it changed are facts the host and the target system hold. The post doesn't describe how long receipts are kept by the service, whether they are signed, or how a third party would check one.
- Agent Hooks adds a related record on the host side: Microsoft's August 2026 post on the contract says every interception emits an InterceptionRecord that carries the decision, which interceptor decided, the sequence number and content identities computed before and after enforcement, and never the customer content itself. That makes it possible to export a record of an agent's decisions without exporting prompts.
How do you turn AI agent policy-decision receipts into an audit trail of what the agent did?
An audit trail has to answer what the agent was allowed to do, what it actually did, and whether the record could have been changed. Agent controls receipts answer the first part well. Pair each one with the host's record of the outcome (ran, blocked or transformed, and the target system's response), the content hashes before and after enforcement, and any human approval, all keyed by the same agent, session and sequence number.
- Then make the combined record hard to rewrite. Keep the details in your own systems, but send a hash of each receipt-plus-outcome record and its time to an append-only store outside the agent's reach. Gaps in sequence numbers, or tool calls in the target system's logs with no matching receipt, are worth alerting on, because they show actions that may have skipped the policy check.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Record a receipt for one agent tool call that pairs the agent controls decision with what our host actually did: the intervention point, the policy and version named in the decision receipt, whether the transfer ran, and hashes of the arguments as checked and as executed, with no customer data.”
{
"tool": "record_action",
"arguments": {
"action_type": "agent.policy_decision_applied",
"outcome": "success",
"occurred_at": "2026-11-19T16:00:00Z",
"client_event_id": "support-agent:session-8812:seq-14:pre_tool_call",
"summary": "pre_tool_call transfer_funds: decision deny (amount over 10,000 USD agent limit), policy transfer-guard version recorded from the decision receipt; host did not run the tool; escalated to human review queue item hr-3391; args_sha256 as checked recorded; no transfer executed",
"action_sha256": "<sha256 of the stored decision receipt plus the host's outcome record>"
}
}- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside the agent's runtime and outside the policy service.
- Use the agent, session and sequence number in client_event_id so each ledger entry lines up with exactly one evaluation, and send denies and transforms as well as allows.
- Keep customer data, prompts and account numbers out of summary; the hash ties the entry to the full receipt and outcome record you keep.
- A Rightshold receipt shows what you recorded and when. It doesn't evaluate policies, call Azure, read agent controls receipts or confirm what your host did.
Rightshold isn't affiliated with Microsoft and doesn't integrate with Azure agent controls, Agent Hooks or ACS. Details are from Microsoft's Command Line posts introducing agent controls (November 18, 2026), the Agent Control Specification (June 2, 2026) and Agent Hooks (August 27, 2026), read November 19, 2026. Agent controls is in public preview and its API and receipt contents may change.
What are the sources?
- Microsoft Command Line: Introducing agent controls: An enterprise control plane for agent behavior (November 18, 2026)
- Microsoft Command Line: Agent Control Specification (ACS) for runtime governance (June 2, 2026)
- Microsoft Command Line: Agent Hooks, a framework-neutral AI governance contract (August 27, 2026)
Related
- Record a named approver, exact tool call and policy version in a tamper-evident entry for every agent approval
- Logging every AI agent tool call for audit
- Bind an approver and scope to an agent tool call, result, and timestamp
- Requiring human approval before an AI agent spends money
- What does the IETF Agent Audit Trail draft require in each AI agent log record?
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
