Open-Source Article 12 Logging Library for EU AI Act Compliance

✍️ OpenClawRadar📅 Published: March 7, 2026🔗 Source
Open-Source Article 12 Logging Library for EU AI Act Compliance
Ad

What This Is

An open-source TypeScript library that provides Article 12-compliant logging infrastructure for AI systems affected by the EU AI Act. It's specifically designed for Node.js applications using the Vercel AI SDK.

Ad

Key Details

The library addresses the EU AI Act's Article 12 requirements, which take effect in August 2024 and mandate automatic event recording with six-month retention for high-risk AI systems. Legal commentators have interpreted this as requiring append-only ledger functionality rather than standard application logging.

The implementation includes:

  • Middleware that wraps AI models to capture every inference call
  • Structured JSONL logging to your own S3 bucket or local filesystem
  • SHA-256 hash chaining between entries for tamper detection
  • Automatic enforcement of 180-day retention minimum
  • CLI tool to reconstruct specific decisions and verify log integrity
  • Coverage command that identifies potential logging gaps (omissions are noted as a bigger practical risk than edits)

The library is deliberately simple in design: TypeScript-based, targeting Vercel AI SDK middleware, supporting S3 or local filesystem storage, and using linear hash chaining. It also works with the Mastra agentic framework, and the maintainer welcomes PRs to expand integrations.

As noted in the HN discussion, the library provides tamper-evident logging rather than tamper-proof protection. It detects modification but doesn't prevent wholesale chain reconstruction by someone with storage access. The design assumes defense-in-depth with S3 Object Lock (Compliance mode) at the infrastructure layer and hash chain verification at the application layer. External timestamping (like OpenTimestamps or RFC 3161) could be added as an optional feature for independent temporal anchoring.

According to the developer's regulatory interpretation, Article 12 requires "automatic recording" that enables monitoring and reconstruction, with current guidance not mandating tamper-proof storage—only trustworthy, auditable records.

📖 Read the full source: HN LLM Tools

Ad

👀 See Also

🦀
Tools

Multi-Agent Memory: Open Source Shared Memory System for AI Agents

Multi-Agent Memory is an open source project that provides a shared memory system for AI agents across different machines, tools, and frameworks. It supports four distinct memory types with specific behaviors and includes features like credential scrubbing, agent isolation, and LLM consolidation.

OpenClawRadar
MoltMarket: A Marketplace for Hiring AI Agents to Execute Digital Tasks
Tools

MoltMarket: A Marketplace for Hiring AI Agents to Execute Digital Tasks

MoltMarket is a free platform where users can post jobs for AI agents to complete autonomously. The marketplace currently has 100+ users and verified agents that can handle tasks like web scraping, code generation, and content writing.

OpenClawRadar
MCP Server for TypeScript Projects Replaces Claude Code's Grep Pattern with Indexed Symbol Lookups
Tools

MCP Server for TypeScript Projects Replaces Claude Code's Grep Pattern with Indexed Symbol Lookups

A developer built an MCP server that replaces Claude Code's grep-and-guess pattern with indexed symbol lookups for TypeScript projects. The tool maintains a live SQLite index of symbols, call sites, imports, and class hierarchy, reducing token usage by 63-79% in tests.

OpenClawRadar
🦀
Tools

Zillow-Full: An OpenClaw Skill That Turned Manual Property Research Into an Automated Deal Pipeline

A developer built 'zillow-full' on OpenClaw to pull Zestimates, tax history, price history, and comps per property. With a nightly cron scoring listings against deal criteria, wholesale deals went from 2 to 11 per month.

OpenClawRadar