Skip to content

[Feature] Trust-verified task delegation with Agent Governance Toolkit #5562

@imran-siddique

Description

@imran-siddique

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions