EU AI ACT · ARTICLE 12

EU AI Act Article 12
Compliance for AI Agents

Article 12 requires high-risk AI systems to automatically log all events. Here's what that means for AI agents — and how InspectModular satisfies it in under 5 minutes.

⚠️
Enforcement starts August 2026
High-risk AI requirements including Article 12 logging become enforceable August 2026. Penalties: up to €35M or 7% of global revenue. Start compliance preparation now.

What Article 12 Requires

Article 12 states that high-risk AI systems must be designed to "automatically record events ('logs') throughout the lifetime of the AI system." For AI agents this means logging:

Session starts and ends
When an agent session begins and terminates
🔧 Tool calls and actions
Every tool invoked, file accessed, API called
🛡 Policy checks
Every action checked against your org rules
Decisions and outcomes
What the agent decided and why
👤 Agent identity
Which agent, tool, and model acted
📅 Precise timestamps
When each event occurred, in UTC

How to Comply — 4 Steps

01
Create a InspectModular account
Sign up at getprimer.cloud — free plan includes full audit trail.
Create account →
02
Paste MCP config into your IDE
Go to MCP Setup → select your IDE (Cursor, Claude Code, VS Code, Windsurf, Zed) → copy the JSON config block → paste into your IDE config file. Logging starts immediately.
MCP Setup →
03
Set policy rules (Article 9 risk management)
In Policy → Rules, define what agents are allowed to do. Every rule check is logged with outcome — satisfying Article 9 risk management requirements.
Policy →
04
Verify your audit trail
Open Audit in your dashboard. Every agent action appears with timestamp, agent, action type, and outcome. Export for regulatory evidence.
View audit →

Audit Log Format

// Every audit log entry (Article 12 compliant):
{
  "timestamp": "2025-08-12T14:32:07.412Z",   // UTC, millisecond precision
  "workspace_id": "ws_...",                    // Your organization
  "agent": "claude-code",                      // Agent identity
  "action": "write",                           // What was attempted
  "target": "src/config/database.ts",          // Target of action
  "outcome": "allowed",                        // allowed | blocked | warned
  "policy_rule": null,                         // Rule triggered (if any)
  "session_id": "sess_...",                    // Session grouping
  "severity": "info"                           // Log severity
}

Frequently Asked Questions

When does EU AI Act Article 12 become enforceable?
High-risk AI system requirements become enforceable in August 2026. The EU AI Act entered into force August 2024. Penalties can reach €35M or 7% of global annual revenue.
Which AI systems are "high-risk" under the EU AI Act?
Per Annex III: AI used in HR/employment, credit/finance, education, law enforcement, critical infrastructure, healthcare, and justice administration. If your AI agents operate in these domains, Article 12 applies.
Does InspectModular work for Python pipelines and not just IDE agents?
Yes. IDE agents connect via MCP config (Cursor, Claude Code, VS Code, Windsurf). Python/Node.js pipelines connect via REST API. Both produce identical audit trail entries. One dashboard covers all.
Are the audit logs tamper-resistant?
Yes. InspectModular audit logs are stored in an append-only database partition. They cannot be modified or deleted by agents or users. They can be read and exported for regulatory purposes.

Start EU AI Act compliance today

Free plan includes full audit trail. No CLI installation. Connect in under 60 seconds.

Start free →View audit trail →