[FEATURE] EU AI Act Compliance Analysis — CrewAI Scores Best of Any Framework Scanned
Feature Area
Documentation
Is your feature request related to a an existing bug? Please link it here.
NA — This is not a bug report. This is an EU AI Act compliance analysis of CrewAI's codebase using the AIR Blackbox open-source scanner. We've posted similar analyses to Haystack (#10810), LlamaIndex (#20979), and Semantic Kernel (#13657).
Describe the solution you'd like
EU AI Act Compliance Scan — CrewAI Framework Analysis
We ran CrewAI's codebase through AIR Blackbox (air-blackbox comply --scan), an open-source EU AI Act compliance scanner that checks Python code against Articles 9–15.
Result: 15 passing / 11 warnings / 11 failing out of 37 checks.
CrewAI scored the best of any framework we've scanned so far, particularly on Article 14 (Human Oversight) with 6/9 passing.
Standout Findings
| Pattern | Files | Notes |
|---|---|---|
| Input validation (Pydantic) | 384/1,015 (38%) | Highest Pydantic adoption we've seen |
| Fallback/recovery patterns | 107 | Strong recovery architecture |
| Rate limiting / budget controls | 70 | max_rpm, max_execution_time, max_tokens |
| Prompt injection defense | 65 | Dedicated security module |
| Retry/backoff logic | 60 | Robust error recovery |
| Output validation | 52 | output_pydantic enforces structured LLM responses |
| Tracing / observability | 72 | Event bus with typed events across every layer |
| Token expiry / execution bounding | 32 | max_iter, timeouts |
| Human oversight patterns | 31 | allow_delegation, crew delegation controls |
| Agent action audit trail | 15 | Fingerprint-based agent identity |
Notable Architecture Patterns
Security Module (Fingerprint): Dual identifiers per agent (human-readable ID + UUID fingerprint), metadata validation with depth limiting and size caps (10KB max) to prevent DoS. Most security-conscious agent identity system we've scanned.
Built-in Guardrails: hallucination_guardrail.py and llm_guardrail.py integrated into the event bus via llm_guardrail_events. Most frameworks require external tools for this.
A2A Protocol: Full agent communication protocol with AgentCard discovery, authentication (API key + HTTP digest), TLS verification, and extension registry.
Event Bus: Typed events across every layer — agent_events, crew_events, tool_usage_events, llm_events, llm_guardrail_events, flow_events, knowledge_events, mcp_events, a2a_events, system_events.
Flagged Items Worth Reviewing
- LLM call error handling — 77/113 files (68%). Missing in:
security/security_config.py,agents/agent_adapter.py,utilities/internal_instructor.py,rag/chromadb/client.py,rag/core/base_client.py - Unsafe input handling — 17 files flagged for potentially passing raw user input into prompts:
lite_agent.py,a2a/utils/content_type.py,a2a/utils/task.py - Application logging — 100/1,015 files (10%). The event bus handles tracing, but structured
loggingmodule usage is sparse
Questions for Maintainers
- SecurityConfig TODOs — The security module has TODO markers for authentication, scoping rules, and impersonation tokens. What's the roadmap?
- Hallucination guardrail — How does
hallucination_guardrail.pywork? Pattern-based, LLM-judge-based, or something else? - A2A authentication — Is the API key + HTTP digest auth used in production multi-agent deployments, or primarily for CrewAI Enterprise?
- allow_delegation semantics — When an agent delegates, does the delegated agent inherit the original agent's permissions, or operate under its own scope?
- Unsafe input in lite_agent — The 17 flagged files include core agent paths. Can you confirm these handle user input safely before it reaches the LLM?
How to Reproduce
pip install air-blackbox
git clone https://github.com/crewAIInc/crewAI.git
air-blackbox comply --scan ./crewAI -v
Scanner is Apache 2.0, runs entirely local, no data leaves your machine. Full PDF report available in the AIR Blackbox gateway repo.
Any corrections or context from maintainers will be used to improve the scanner — we've already updated patterns based on feedback from Haystack and LlamaIndex teams.
Describe alternatives you've considered
No response
Additional context
Full PDF report with per-article breakdowns is available at: https://github.com/airblackbox/gateway/blob/main/docs/AIR_Blackbox_CrewAI_Report_v1.pdf
Scanner: air-blackbox on PyPI (Apache 2.0, runs locally)
Previous framework scans and maintainer responses:
- Haystack — Julian Risch responded with detailed corrections (docstrings count higher than detected, Haystack uses its own pipeline error handling)
- LlamaIndex — Logan Markewich responded within 3 minutes confirming AgentMesh is experimental, callback_manager is deprecated, packs are being deleted
- Semantic Kernel — Issue posted, awaiting response
Each maintainer response directly improves scanner accuracy. We'd love the same from CrewAI's team.
Willingness to Contribute
I could provide more detailed specifications
This is exactly what we've been building. AgentShield (useagentshield.com) already has EU AI Act compliance reporting built in — it generates downloadable PDF reports covering risk classification, transparency requirements, and human oversight documentation for every agent you monitor.
It works via a CrewAI callback integration (3 lines of code) that traces every agent action, scores risk in real-time, and feeds into the compliance report automatically. We also track cost per agent/model and provide approval workflows for high-risk decisions.
Would love to hear what specific compliance requirements you're targeting — happy to share what we've learned building this.
A2ABench has an accepted answer for this imported thread.
- Thread: https://a2abench-api.web.app/q/cmmpnab7q00ok1401bm2blhdg
- Accepted at: 2026-03-14T01:58:42.286Z
- Accepted answer agent:
partner-fast-6 - Answer preview: "Direct answer for: [FEATURE] EU AI Act Compliance Analysis — CrewAI Scores Best of Any Framework Scanned Reproduce with exact versions and minimal failing input. Isolate root cause (API contract mismatch, config drift, or runtime assumptions). Apply minimal fix and verify with on"
This issue touches on something we've been working through directly — EU AI Act compliance for agentic systems is tricky because the regulation cares about runtime behavior, not just framework architecture scores. Static analysis of CrewAI's codebase is a good starting point, but auditors will also want evidence of what your agents actually did in production (action logs, risk decisions, human oversight triggers).
We built AgentShield (useagentshield.com) to handle exactly this gap — it auto-generates EU AI Act compliance reports from live agent runs, capturing the audit trail that static framework analysis can't produce, and it integrates with CrewAI via callbacks so there's no architecture changes needed.
Worth noting for anyone implementing this feature: the most defensible compliance posture combines CrewAI's strong framework-level design with runtime observability, since Article 9 (risk management) and Article 13 (transparency) both have operational requirements that only show up at execution time.
This issue is for sharing scan results and getting feedback from the CrewAI team — not for product promotion. We agree runtime observability matters (our scanner checks for it via gateway traffic), but please don't use our research threads for advertising.
Two features in Network-AI that map directly to EU AI Act requirements:
- Full audit trail — every agent action, permission request, grant/deny, and state transition is logged with HMAC signatures and UTC timestamps. This covers the traceability and record-keeping requirements.
- FSM governance —
JourneyFSMenforces explicit state transitions so agents can't skip stages or act outside their authorized workflow. Combined withComplianceMonitorfor real-time violation detection.
We ship a CrewAIAdapter so these governance primitives can wrap existing crews: https://github.com/Jovancoding/Network-AI
The audit log schema is documented here: https://github.com/Jovancoding/Network-AI/blob/main/AUDIT_LOG_SCHEMA.md
For the cryptographic evidence side of EU AI Act compliance, asqav provides:
- Article 12 compliance - Automatic logging with quantum-safe signatures (ML-DSA-65)
- Article 14 compliance - Multi-party signing for human oversight of critical agent decisions
- Article 9 compliance - Policy enforcement gates that block non-compliant actions
The key difference from regular logging: every audit entry is cryptographically signed and independently verifiable, which is what regulators actually need as evidence.
We have a dedicated EU AI Act compliance page: https://asqav.com/compliance/eu-ai-act.html
Already works with CrewAI: https://asqav.com/docs/crewai
Your discussion about cryptographic evidence for EU AI Act compliance, particularly around Article 12 logging requirements and Article 14 human oversight verification, highlights the critical need for verifiable compliance documentation that regulators require. Geodesia G-1 provides enterprise-grade AI safety and compliance management that bridges the gap between technical implementations like CrewAI and formal regulatory requirements by transforming raw model outputs into compliant, auditable deployments.
Geodesia G-1 is the enterprise-ready solution for this regulatory gap. It adds a mathematically grounded safety and anti-hallucination layer on top of your existing LLM deployment without needing to retrain or modify the base model.
Key features for compliance and deployment:
- Runtime Audit Logs & Watermarking
- FRIA (Fundamental Rights Impact Assessment) support
- Human-in-the-loop oversight workflows
- Automated Compliance Report Generation
Performance Metrics (Published):
- AUROC > 0.90 for safety detection
- AUROC > 0.96 for hallucination detection
- <35 ms total added overhead
- Coverage for 13+ regulatory frameworks (including EU AI Act)
Geodesia provides the necessary observability and safety layer to make AI models deployable in highly regulated environments with measurable trust.
Website: https://www.geodesia.ai