The OS Just Became the Agent Platform
At Build 2026, Microsoft made the single most important announcement for anyone running production AI agents: Windows is becoming a first-class agent runtime. Not an app that happens to run agents. Not a container orchestrator bolted onto the side. The operating system itself now understands what an agent is, what it's allowed to do, and when to cut it off.
I've been running a multi-agent platform on Windows for over a year — 50+ agents managing everything from my family's schedule to my content pipeline. So when Microsoft announces OS-level sandboxing for agents, I'm not evaluating a feature announcement. I'm comparing notes with a system I've already built the hard way.
Here's what they got right, what NVIDIA's competing approach reveals about the design space, and the gap that still matters most.
The Capability Grant Model — Mobile Permissions for Agents
The Windows Agent Runtime ships a per-agent capability grant system covering three dimensions: file system scope, network access, and application launch permissions. Users approve these grants during installation, analogous to mobile app permission dialogs.
This is the correct abstraction.
Every production agent system I've encountered — including my own hookflow governance layer — eventually arrives at the same insight: agents need declarative permission boundaries, not behavioral trust. You don't trust an agent to behave correctly. You constrain what it can do, then verify at the boundary.
In my platform, hookflows enforce this pattern through aspect-oriented interception. Every tool call passes through pre-execution hooks that evaluate governance rules. A dev-guard hookflow blocks raw git commands and forces governed dev-workflow tools. A safe-content-write hookflow prevents agents from writing large files through PowerShell. The agent doesn't decide to comply — the system makes non-compliance impossible.
Microsoft's capability grant model does the same thing at the OS layer. An agent declared with file scope limited to %USERPROFILE%\Documents\ProjectA physically cannot access files outside that path. The kernel enforces it. No amount of prompt injection or confused-deputy attacks changes the boundary.
What they got right: Making the grants declarative and user-visible at install time. This is mobile permissions done correctly for a more dangerous category of software.

How Windows Agent Runtime enforces per-agent capability grants at the OS level — the kernel makes non-compliance impossible
How This Compares to NVIDIA OpenShell
NVIDIA's OpenShell takes the same fundamental insight — agents need system-level containment, not behavioral promises — and applies it through container isolation rather than OS integration.
OpenShell's architecture is instructive:
- Dual-process containers: A privileged supervisor sets up the isolation boundary. The unprivileged agent process runs inside it. The agent never sees the host system directly.
- Declarative YAML policies: Static policies (filesystem, process) lock at sandbox creation. Dynamic policies (network, inference routing) can be updated at runtime. This mirrors the distinction between install-time grants and runtime governance.
-
Per-tool-call evaluation: The policy engine evaluates each tool invocation against the declared policy before execution proceeds — functionally identical to my hookflow
onPreToolUsepattern.
The key difference: OpenShell is infrastructure-level, Windows Agent Runtime is OS-level.
OpenShell runs anywhere Linux containers run. It's portable, composable, and doesn't require a specific operating system. Windows Agent Runtime is deeply integrated with the Windows kernel, Entra ID, and the Microsoft Store distribution pipeline.
For enterprises already committed to the Windows ecosystem, the OS-level approach wins on deployment friction. For multi-cloud or Linux-heavy shops, OpenShell's container model is more practical. For developers like me who run agent systems on Windows workstations daily, the Windows Agent Runtime addresses problems I currently solve with application-layer governance — but at a lower, more trustworthy layer of the stack.

Three approaches to agent containment: OS-level capability grants, container isolation, and application-layer behavioral governance — each with distinct trade-offs
Dynamic Profiles and Credential Injection — The Real Innovation
Here's where the architecture gets interesting. The Windows Agent Runtime preview documentation describes dynamic capability profiles — the ability to adjust an agent's permission scope based on the current task context without reinstallation.
This maps to a pattern I call contextual governance in my harness engineering practice. Different agents need different permissions at different times. A content-writing agent needs file system access to the blog repo during writing, but should lose that access during research phases where it's only reading external sources. A finance agent needs API access to banking integrations during bill processing, but that credential should never be in scope during casual conversation.
In my system, I handle this through proxy-layer credential injection. Agents never hold credentials directly. The extension layer injects them at call time based on the agent's current declared scope. If a hookflow determines the agent shouldn't have access to a particular service right now, the credential simply isn't injected — the agent can't even attempt the call.
Microsoft's approach brings this concept into the OS:
- Entra ID integration: Agent identity is managed through Microsoft's identity platform, with short-lived tokens scoped to the current task
- Intune policy enforcement: Enterprise admins define agent permission boundaries through the same MDM tooling they use for device management
- Automatic environment cleanup: Windows 365 for Agents automatically destroys tokens, cached data, and session state when a task completes
This is credential injection elevated to a platform primitive. Instead of each agent platform implementing its own secure credential management (as I do with extension-layer injection), the OS provides it natively.
What's Still Missing — The Governance Gap
Microsoft nailed sandboxing. They got capability grants right. The credential injection model is sound. But there's a critical gap: runtime behavioral governance.
Sandboxing tells you what an agent can access. It doesn't tell you what the agent should do with that access. An agent with legitimate file system permissions can still write garbage to a production config. An agent with network access can still make API calls that violate business logic. An agent with application launch permissions can still interact with software in nonsensical ways.
This is where hookflows and per-turn evaluation fill the gap in my system. Beyond "can this agent access this resource?" I enforce "is this specific action, with these specific parameters, acceptable given the current context?"
Examples from my production platform:
- A
calendar-date-guardhookflow blocks calendar event creation when the computed date doesn't match the weekday the agent claims - A
validate-email-urlshookflow blocks outbound emails if any URL in the body returns a non-200 status - A
linkedin-brand-safetyhookflow prevents any message that claims I use competitor AI tools
None of these are sandboxing problems. The agent has permission to create calendar events, send emails, and post on LinkedIn. The governance layer ensures it does those things correctly.
Microsoft's Agent Governance Toolkit addresses some of this with capability-based security inspired by POSIX — explicit grants for read, write, execute, and network access, plus a strict mode that blocks dangerous tool categories. But it's still operating at the resource-access level, not the behavioral-correctness level.
The next evolution is clear: OS-level sandboxing (what exists now) combined with declarative behavioral governance (what's still application-layer). The platform that ships both as integrated primitives wins.

The governance gap: resource access and credentials are solved at the OS/infrastructure layer, but behavioral correctness remains an application-layer problem that only hookflows and per-turn evaluation address today
What This Means for Agent Developers
If you're building production agent systems today, here's the practical takeaway:
Adopt the capability-grant mental model now. Whether you're targeting Windows Agent Runtime, OpenShell, or your own governance layer, the pattern is the same: declare what agents can access, enforce at the boundary, make non-compliance impossible.
Don't wait for the OS. Windows Agent Runtime ships in preview to Insiders in June 2026. Vision-based agents aren't on the roadmap until 2027. Your production agents need governance today. Build application-layer harnesses that can eventually delegate to OS-level enforcement when it matures.
Layer your governance. OS sandboxing handles resource access. Application-layer hookflows handle behavioral correctness. You need both — and they're complementary, not competing. My 7-layer governance stack exists because no single layer catches everything.
Watch the credential injection pattern. This is the area where Microsoft's platform advantage is strongest. Entra ID plus Windows Agent Runtime plus Intune creates a credential lifecycle that's extremely hard to replicate at the application layer. If you're on Windows, lean into this.
The Bottom Line
Microsoft got the hard part right: the OS itself understands agents as first-class citizens with bounded capabilities. This is the correct architectural direction — and it validates the governance-first approach I've been running in production for over a year.
The gap is behavioral governance — ensuring agents use their legitimate permissions correctly, not just that they can't escape their sandbox. That's still an application-layer problem, and it's where harness engineering and hookflow governance carry the weight.
But the direction is clear. OS-level sandboxing plus declarative behavioral governance plus proxy-layer credential injection is the stack. Microsoft just shipped the foundation layer. The rest is coming.
Resources:
- Windows Agent Runtime — Build 2026 Developer Preview
- NVIDIA OpenShell — GitHub
- NVIDIA OpenShell — Secure Autonomous AI Agents
- Microsoft Windows 365 for Agents — Enterprise Controls
- Agent Governance Toolkit — OWASP Agentic Risk Deep Dive
- Windows 365 for Agents — Data Leak Prevention
- OpenAI Codex — Building a Safe Windows Sandbox
- Microsoft Agent 365 — Generally Available
Top comments (0)