How Microsoft Ships Enterprise AI Agents at Scale: Harnesses and Rubrics
Inside Microsoft's enterprise agent architecture: layered context retrieval, cryptographic agent identities, and rubric-based automated evaluation.
On this page
Deploying an autonomous AI agent inside a Fortune 500 enterprise is fundamentally different from building a developer side project. In an enterprise environment, an agent cannot simply run as an anonymous API script with root database access.
An enterprise agent must operate under strict corporate governance:
- It must inherit the precise role-based access controls (RBAC) of the human user invoking it.
- It must hold a verifiable cryptographic identity to prevent rogue lateral movement across corporate networks.
- Every action must be evaluated continuously against deterministic compliance rubrics.
Across Microsoft 365 Copilot and Azure AI Foundry, Microsoft engineered a standardized Enterprise Agent Harness to solve these governance, security, and evaluation barriers at scale.
The Architecture of the Enterprise Agent Harness
+-----------------------------------------------------------------------+
| Microsoft Enterprise Agent Stack |
+-----------------------------------------------------------------------+
| |
| [ User Ingress (Teams / Office / VS Code) ] |
| | |
| v |
| [ Agent Identity & Auth (Microsoft Entra ID Service Principal) ] |
| | - Issues scoped OIDC tokens on behalf of human user |
| | - Binds agent actions to immutable tenant audit logs |
| v |
| [ Layered Context Retrieval (Microsoft Graph + Semantic RAG) ] |
| | - Strict per-user ACL filtering (Zero cross-tenant leakage) |
| | - Ingests emails, meetings, chats, SharePoint docs |
| v |
| [ Agent Orchestration Core (Semantic Kernel / AutoGen) ] |
| | (Plans execution steps; selects type-safe enterprise plugins)|
| | |
| v |
| [ Sandboxed Enterprise Tool Execution ] |
| | - SAP ERP, Dynamics 365, GitHub API, ServiceNow |
| v |
| [ Rubric-Based Automated Evaluation Engine (Continuous Eval) ] |
| | - Safety & Groundedness: Did response use unverified data? |
| | - Policy & Compliance: Did agent violate financial rules? |
| v |
| [ Verified Output Returned to Enterprise User ] |
+-----------------------------------------------------------------------+
1. Cryptographic Agent Identity via Entra ID
In naive agent implementations, backend microservices execute tool actions using a shared, privileged master service account. If an agent hallucinates or suffers a prompt injection attack, it can access any database in the company.
Microsoft solves this by treating every autonomous agent as an independent Entra ID Service Principal:
- When a user asks an agent to summarize financial filings, the agent acts via OAuth On-Behalf-Of (OBO) flows.
- The agent only inherits the permissions that the human user holds in SharePoint and SQL databases.
- If an employee does not have clearance to view executive compensation, the agent’s database calls are rejected at the kernel level by the database itself, completely bypassing prompt-level security risks.
2. Layered Context Retrieval (Microsoft Graph)
Context stuffing fails at enterprise scale because a company possesses petabytes of unorganized data. Microsoft indexes enterprise communications into Microsoft Graph, pairing semantic vector search with real-time ACL filtering:
- Before any document chunk enters the agent’s prompt, the security gateway verifies that the requesting user possesses active read rights.
- This guarantees zero cross-department data leakage even if two teams share the same cloud tenant.
3. Rubric-Based Continuous Evaluation
Traditional unit tests cannot verify non-deterministic multi-agent workflows. Microsoft deploys an automated Continuous Evaluation Pipeline using calibrated evaluator models running alongside production traffic:
Evaluation Rubric Dimensions:
1. Groundedness (1-5): Does every factual assertion cite an injected Graph document?
2. Relevance (1-5): Did the agent answer the user's specific request without scope creep?
3. Safety & Hallucination: Did the agent invent policies, prices, or commitments?
If an updated prompt or new model checkpoint drops below a 4.8 rubric threshold on historical production test benches, deployment is blocked automatically.
Key Engineering Takeaways
- Never use god-mode service accounts for agents: Always enforce delegated On-Behalf-Of (OBO) authentication so the agent cannot exceed the human caller’s real permissions.
- Enforce data permissions at the storage layer: Do not rely on LLM system prompts to enforce data privacy. Access control must be enforced by the storage engine itself.
- Automate continuous rubric evaluations: Establish multi-dimensional scoring rubrics (groundedness, relevance, safety) to catch behavioral regressions before releases reach users.
/* Comments */
Comments are offline right now — we reconnect automatically, nothing is lost.