crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

Docs: add governance and auditability patterns for multi-agent workflows

Open kmishra1204 opened this issue 5 months ago • 8 comments

Proposal\nAdd a dedicated docs section for governance and auditability patterns in multi-agent CrewAI deployments.\n\n### Suggested sections\n- explicit handoff boundaries between agents\n- traceability expectations for tool calls\n- safe defaults for production-oriented runs\n- common anti-patterns to avoid\n\n## Why this helps\nMany teams evaluate CrewAI for real business workflows, where governance and auditability are core acceptance criteria. A focused section would improve reliable adoption.

kmishra1204 avatar Jun 19 '26 03:06 kmishra1204

Opened a docs PR for this proposal: https://github.com/crewAIInc/crewAI/pull/6234\n\nIt adds governance and auditability patterns to production architecture docs (handoff boundaries, traceability expectations, safe defaults, anti-patterns).

kmishra1204 avatar Jun 19 '26 04:06 kmishra1204

Thanks for opening this — governance patterns are exactly what production deployments need, and I think the traceability point is the one that tends to get overlooked until something goes wrong.

One pattern we've found essential in production: instead of relying solely on log aggregation for audit trails, we have each agent sign its completed tasks with a deterministic request ID derived from (wallet_key, task_seq, timestamp). The receipt is broadcast to a shared receipt channel that any agent can verify. This turns audit from "dig through logs" into "query the canonical receipt chain" — with cryptographic provenance attached to each step, not just structural association.

The key insight: if an agent's identity is its wallet (we use existing ETH/SOL/BTC keypairs from /llms.txt), then a signed receipt doesn't need a central registry to be meaningful — any other agent can verify who produced what, and the receipt chain is self-authenticating. We've been running this across ~20 agents in production at SunfishLoop (github.com/sunfishloop/sunfishloop) across CrewAI, AutoGen, and LangGraph, and it's been the single most valuable pattern for regaining trust when things go wrong in a multi-agent pipeline.

Happy to contribute concrete examples to the docs PR if that would be useful.

sunfishloop avatar Jun 20 '26 04:06 sunfishloop

Thanks for opening this — governance patterns are exactly what production deployments need, and I think the traceability point is the one that tends to get overlooked until something goes wrong.

One pattern we've found essential in production: instead of relying solely on log aggregation for audit trails, we have each agent sign its completed tasks with a deterministic request ID derived from (wallet_key, task_seq, timestamp). The receipt is broadcast to a shared receipt channel that any agent can verify. This turns audit from "dig through logs" into "query the canonical receipt chain" — with cryptographic provenance attached to each step, not just structural association.

The key insight: if an agent's identity is its wallet (we use existing ETH/SOL/BTC keypairs from /llms.txt), then a signed receipt doesn't need a central registry to be meaningful — any other agent can verify who produced what, and the receipt chain is self-authenticating. We've been running this across ~20 agents in production at SunfishLoop (github.com/sunfishloop/sunfishloop) across CrewAI, AutoGen, and LangGraph, and it's been the single most valuable pattern for regaining trust when things go wrong in a multi-agent pipeline.

Happy to contribute concrete examples to the docs PR if that would be useful.

You mentioned regaining trust when things go wrong. What specific incidents pushed you to build this pattern in the first place?

amansarkar-dev avatar Jun 22 '26 06:06 amansarkar-dev

the traceability axis is the one that pays off the most for production buyers, and worth treating it as its own sub-section in the docs rather than folding it into general logging guidance.

for the doc section specifically, a useful cut is to split traceability into three layers, each answering a different production question:

  1. operator traceability. the ops team needs to reconstruct what happened during an incident. typical surface: structured logging, OpenTelemetry spans, session replay. this is what most production deployments build first.

  2. compliance traceability. the GRC team needs evidence that survives an audit six months later, including when the audit is adversarial. operator-controlled logs do not survive this case because they are editable post-write. the answer here is signed records: each tool call produces a signed admission record (pre-execution decision) and a signed outcome record (post-execution result), joined by a content-derived identifier so a third party can verify the chain offline with only the agent's public key. EU AI Act Article 12 enforcement starts August 2, 2026, and that is the regulatory frame for this layer.

  3. handoff traceability. in multi-agent workflows, you need to prove which agent in the crew authorized a specific tool call and which agent executed it. with bilateral signed records, the handoff is itself an auditable event: the receipt for the delegating agent's authorization, the receipt for the delegate's execution, joined by a shared identifier.

the docs do not need to ship a specific library recommendation, but they should split the three questions cleanly so teams pick the right tooling for their actual problem. the same shape is in flight across the broader ecosystem right now, including the GovernanceDecision + GovernanceOutcome contract in PR #6030 which is the CrewAI core surface for this.

happy to contribute a draft of the compliance-traceability subsection if it would be useful, including a worked example wiring the bilateral receipt pattern into the existing CrewAI hook surface.

arian-gogani avatar Jun 24 '26 21:06 arian-gogani

A docs section here would help a lot, especially if it is written from an operator perspective instead of just an architecture perspective.

The questions teams usually need answered before they trust a multi-agent workflow are:

  • where the handoff boundary really is
  • which actions can produce side effects
  • what must be verified before the workflow is treated as successful
  • how retries, approvals, and rollback are supposed to work

I would also include a short section on the quiet failure mode where the run appears "done" from a bookkeeping standpoint but no trustworthy evidence exists for what actually happened. That is a much more common production problem than people expect.

I’ve been pretty happy using MartinLoop around governed runs because it forces those questions into the workflow instead of leaving them implicit.

Keesan12 avatar Jun 29 '26 04:06 Keesan12

Reliability note

Production automation failures usually reduce to a contract issue before a model/prompt issue:

  1. Success criteria — durable artifact id (message/booking/row), not only node green
  2. Side-effect before complete — never blind-retry without an idempotency key on the business object
  3. Tool vs path split — external action can succeed while the node/agent path still errors (silent-green / false-red)

If you have one failing execution + expected vs actual, reply with stack/version and I will send a free root-cause checklist.

IgorGanapolsky avatar Jul 23 '26 01:07 IgorGanapolsky

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Aug 22 '26 12:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 27 '26 15:08 github-actions[bot]