微軟推出 agent controls:在 agent 動手之前,先用政策擋一次
微軟 Responsible AI 團隊在 2026-11-18 推出 agent controls,一個託管在 Azure 的服務,讓企業集中定義、管理、評估 AI agent 的行為政策,不管 agent 用哪個框架、跑在哪朵雲。微軟的說法是:寫在 system prompt 裡的政策只是建議;agent 回答得很得體,還是可能轉出不該轉的錢、呼叫沒授權的工具,或把資料送到不該去的地方。
怎麼運作
- 底層是兩個開源規格:Agent Hooks 定義在哪裡介入(啟動、輸入、模型呼叫、工具呼叫、輸出、結束),runtime 會在這些點暫停並要一個決定;Agent Control Specification(ACS) 定義怎麼做決定,先收集證據,再交給像 Rego 這樣的 policy engine 判斷。
- 政策可以組合三種評估方式:Azure AI Content Safety 分類器、LLM judge、確定性規則。
- 每次評估回傳 allow、deny 或 transform,由 agent 的 host 去執行:放行、擋下,或修改後再繼續。
- 每次評估也會回傳一張 receipt,記錄套用了哪些政策和版本,方便事後追查每個動作是依哪個決定。
官方範例
- 微軟用一家虛構的 Caldova Bank 示範:客服 agent 要轉帳超過 10,000 美元時,在
pre_tool_call由確定性規則擋下,交給人審。 - 客人說自己失業繳不出錢時,在輸入階段由 LLM judge 判斷,停止自動推銷信用方案,轉給專人處理。
- 回覆裡有個資時,在輸出階段由 PII 分類器抓出來,依設定直接擋下或遮蔽後再送出。
- 目前是公開預覽。微軟也說它是 Microsoft Foundry 和 Microsoft Agent 365 治理功能背後共用的 policy engine。
Microsoft launches agent controls, a managed Azure service that checks agent actions against policy at runtime
Microsoft’s Responsible AI team introduced agent controls on 2026-11-18, a managed Azure service that lets enterprises centrally define, manage, and evaluate policies for AI agent behavior across frameworks, platforms, and clouds. Microsoft’s framing: a policy that lives in a system prompt is a suggestion, and an agent can give a perfectly appropriate answer while still moving money it shouldn’t, calling a tool it isn’t authorized to use, or sending data somewhere it doesn’t belong.
How it works
- It is built on two open-source primitives. Agent Hooks defines where control happens (startup, input, model calls, tool calls, output, shutdown), and the runtime pauses at each point to ask for a decision. The Agent Control Specification (ACS) defines how the decision is made: it gathers evidence and passes it to a policy engine such as Rego.
- Policies can combine three evaluation methods: Azure AI Content Safety classifiers, LLM judges, and deterministic rules.
- Each evaluation returns allow, deny, or transform, and the agent host enforces it by proceeding, blocking the action, or applying a change before continuing.
- Each evaluation also returns a receipt that names the policies and versions applied, so teams can trace every action back to its policy decision.
Microsoft’s example
- Microsoft walks through a fictional Caldova Bank: when its support agent prepares a transfer over $10,000, a deterministic rule at
pre_tool_callstops it and sends it to human review. - When a customer says they lost their job and can’t pay, an LLM judge at input flags hardship, so the agent stops automated credit offers and hands the customer to a specialist.
- When a response contains customer PII, a classifier at output catches it, and the policy blocks or redacts the response depending on configuration.
- Agent controls is in public preview. Microsoft says it is also the shared policy engine behind governance features in Microsoft Foundry and Microsoft Agent 365.