Python: [Python][Agents] AgentMesh: Trust and Governance Layer#13517
Python: [Python][Agents] AgentMesh: Trust and Governance Layer#13517imran-siddique wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Adds agentmesh module to semantic_kernel.agents providing: - CMVKIdentity: Cryptographic identity with Ed25519 keys - TrustedAgentCard: Agent discovery and verification - TrustHandshake: Peer verification protocol - GovernancePolicy: Rate limiting, capability control, auditing - GovernedAgent: Agent wrapper with governance enforcement - GovernanceKernel: Kernel wrapper with policy enforcement Features: - Rate limiting (per-minute and per-hour) - Function allow/deny lists - Resource limits (concurrent tasks, memory) - Full audit logging - Trust score thresholds - Policy violation tracking
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! |
|
What's the requirement/need driving this? |
|
Great question! The need comes from several production multi-agent scenarios: Key Requirements
Real ExampleIn a multi-agent system where:
This module makes that possible with minimal code changes: \\python Now all invocations are identity-verified, policy-checked, and audit-logged\\ Similar integrations have been merged/submitted to AutoGen, CrewAI, A2A, and others. Happy to discuss specific use cases! |
Summary
Adds agentmesh module to \semantic_kernel.agents\ providing cryptographic identity verification and governance controls for Semantic Kernel agents.
Features
Trust Layer
Governance Layer
Governance Capabilities
Example
\\python
from semantic_kernel.agents.agentmesh import (
CMVKIdentity,
GovernedAgent,
GovernancePolicy,
)
identity = CMVKIdentity.generate('assistant', capabilities=['chat'])
policy = GovernancePolicy(
max_requests_per_minute=30,
allowed_functions=['chat'],
audit_all_invocations=True,
)
governed = GovernedAgent(agent=base_agent, identity=identity, policy=policy)
\\
Related