[Contrib] Agent-OS Governance Extension: Kernel-Level Policy Enforcement#7212
Open
imran-siddique wants to merge 1 commit intomicrosoft:mainfrom
Open
[Contrib] Agent-OS Governance Extension: Kernel-Level Policy Enforcement#7212imran-siddique wants to merge 1 commit intomicrosoft:mainfrom
imran-siddique wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Adds kernel-level governance for AutoGen multi-agent conversations. Features: - GovernancePolicy: Define rules for agent behavior - GovernedAgent: Wrap individual agents with policy enforcement - GovernedTeam: Govern entire agent teams - Content filtering with blocked patterns - Tool call limits and filtering - Full audit trail Integration with Agent-OS kernel for enterprise governance. See: https://github.com/imran-siddique/agent-os
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7212 +/- ##
==========================================
- Coverage 81.22% 80.47% -0.76%
==========================================
Files 244 246 +2
Lines 18512 18674 +162
==========================================
- Hits 15036 15027 -9
- Misses 3476 3647 +171
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Feb 5, 2026
Member
Author
Ready for Final Review 🙏This PR has been open for a while. The AgentMesh trust layer integration is complete and tested. Could a maintainer please provide a final review? Happy to address any remaining concerns. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds kernel-level governance for AutoGen multi-agent conversations using Agent-OS.
Why This Matters
AutoGen enables powerful multi-agent conversations, but lacks built-in policy enforcement. This extension provides:
Changes
Example Usage
\\python
from autogen_ext.governance import GovernedTeam, GovernancePolicy
from autogen_agentchat.agents import AssistantAgent
Define policy
policy = GovernancePolicy(
max_tool_calls=10,
blocked_patterns=["DROP TABLE", "rm -rf"],
blocked_tools=["shell_execute"],
)
Create governed team
team = GovernedTeam(
agents=[analyst, reviewer],
policy=policy,
)
Run with governance
result = await team.run("Analyze Q4 sales")
audit = team.get_audit_log()
\\
Value for AutoGen Users
Integration Path
This extension works standalone, but can also integrate with the full Agent-OS kernel for:
References