Runtime Governance Middleware for Microsoft Agent Framework (MAF) #112
imran-siddique
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🛡️ Runtime Governance for Microsoft Agent Framework (MAF)
We've built a governance middleware layer that integrates directly into MAF's middleware pipeline, bringing policy enforcement, capability sandboxing, audit trails, and rogue agent detection to any MAF-powered application.
Architecture
Demo Output (3 Scenarios)
Scenario 1: Policy Enforcement
Scenario 2: Capability Sandboxing (Ring 2)
Scenario 3: Rogue Agent Detection
Audit Summary:
Try It
pip install agent-framework --pre git clone https://github.com/microsoft/agent-governance-toolkit cd agent-governance-toolkit pip install -e packages/agent-os packages/agent-mesh packages/agent-sre python demo/maf_governance_demo.pyComponents
maf_adapter.pydemo/research_policy.yamlKey Design Decisions
await call_next()or blocks, fitting MAF's native middleware pattern. Two OSS projects from Microsoft working together: Agent Framework for orchestration and Agent Governance Toolkit for runtime security.agent-framework, which allows the same governance middleware to be used with other frameworks such as Dify, LlamaIndex, CrewAI, and Google ADK. Whenagent-frameworkis installed, the adapter uses MAF's native types directly; otherwise it provides compatible base classes.What's Next
--livemode with real LLM provider (Azure OpenAI / Ollama)We'd love feedback on the middleware design and policy schema. If you're building MAF agents and need governance guardrails, give this a spin! 🚀
Beta Was this translation helpful? Give feedback.
All reactions