Summary
Proposing a governance callback/middleware for CrewAI that enforces policy before agent task delegation, powered by the Agent Governance Toolkit (AGT) — v3.2.0 Public Preview, 9,500+ tests, 5 SDK languages.
Problem
When CrewAI agents delegate tasks to other agents or invoke tools, there's no built-in mechanism to enforce organizational policies — e.g., which agents can delegate to whom, what data can flow between tasks, or whether human approval is required for sensitive operations.
Proposed Solution
AGT already ships an agentmesh-integrations package with CrewAI support. The integration provides:
- Pre-delegation policy checks — Evaluate YAML/OPA policies before any task handoff
- Agent identity verification — Verify trust scores between delegating and receiving agents
- Audit trail — Automatic logging of all delegation decisions with policy evaluation results
- Human-in-the-loop gates — Configurable approval workflows for high-risk delegations
Example Usage
`python
from crewai import Crew
from agt.integrations.crewai import GovernanceCallback
crew = Crew(
agents=[...],
tasks=[...],
callbacks=[GovernanceCallback(policy="delegation-policy.yaml")]
)
`
References
Would love feedback on the best hook points in CrewAI's delegation flow.
Summary
Proposing a governance callback/middleware for CrewAI that enforces policy before agent task delegation, powered by the Agent Governance Toolkit (AGT) — v3.2.0 Public Preview, 9,500+ tests, 5 SDK languages.
Problem
When CrewAI agents delegate tasks to other agents or invoke tools, there's no built-in mechanism to enforce organizational policies — e.g., which agents can delegate to whom, what data can flow between tasks, or whether human approval is required for sensitive operations.
Proposed Solution
AGT already ships an agentmesh-integrations package with CrewAI support. The integration provides:
Example Usage
`python
from crewai import Crew
from agt.integrations.crewai import GovernanceCallback
crew = Crew(
agents=[...],
tasks=[...],
callbacks=[GovernanceCallback(policy="delegation-policy.yaml")]
)
`
References
Would love feedback on the best hook points in CrewAI's delegation flow.