frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Open-Source Article 12 Logging Infrastructure for the EU AI Act

31•systima•12h ago
EU legislation (which affects UK and US companies in many cases) requires being able to truly reconstruct agentic events.

I've worked in a number of regulated industries off & on for years, and recently hit this gap.

We already had strong observability, but if someone asked me to prove exactly what happened for a specific AI decision X months ago (and demonstrate that the log trail had not been altered), I could not.

The EU AI Act has already entered force, and its Article 12 kicks-in in August this year, requiring automatic event recording and six-month retention for high-risk systems, which many legal commentators have suggested reads more like an append-only ledger requirement than standard application logging.

With this in mind, we built a small free, open-source TypeScript library for Node apps using the Vercel AI SDK that captures inference as an append-only log.

It wraps the model in middleware, automatically logs every inference call to structured JSONL in your own S3 bucket, chains entries with SHA-256 hashes for tamper detection, enforces a 180-day retention floor, and provides a CLI to reconstruct a decision and verify integrity. There is also a coverage command that flags likely gaps (in practice omissions are a bigger risk than edits).

The library is deliberately simple: TS, targeting Vercel AI SDK middleware, S3 or local fs, linear hash chaining. It also works with Mastra (agentic framework), and I am happy to expand its integrations via PRs.

Blog post with link to repo: https://systima.ai/blog/open-source-article-12-audit-logging

I'd value feedback, thoughts, and any critique.

Comments

kanzure•1h ago
Anyone can generate an alternative chain of sha256 hashes. perhaps you should consider timestamping, e.g. https://opentimestamps.org/ As for what the regulation says, I haven't looked but perhaps it doesn't require the system to be actually tamper-proof.
systima•45m ago
Thanks for the thoughts and feedback.

Fair point on the reconstruction attack.

The library is deliberately scoped as tamper-evident, not tamper-proof; it detects modification but does not prevent wholesale chain reconstruction by someone with storage access. The design assumes defence-in-depth: S3 Object Lock (Compliance mode) at the infrastructure layer, hash chain verification at the application layer.

External timestamping (OpenTimestamps, RFC 3161) would definitely add independent temporal anchoring and is worth considering as an optional feature. From what I can see, Article 12 does not currently prescribe specific cryptographic mechanisms (but of course the assurance level would increase with it).

On the regulatory question: Article 12 requires "automatic recording" that enables monitoring and reconstruction and current regulatory guidance does not require tamper-proof storage (only trustworthy, auditable records). The hash chain plus immutable storage is designed to meet that bar, but what you raise here is good and thoughtful.

Show HN: Explain Curl Commands

https://github.com/akgitrepos/explain-my-curl
28•akgitrepos•2d ago•0 comments

Show HN: Online OCR Free – Batch OCR UI for Tesseract, Gemini and OpenRouter

https://onlineocrfree.qzz.io
8•naimurhasanrwd•2h ago•2 comments

Show HN: Open-Source Article 12 Logging Infrastructure for the EU AI Act

31•systima•12h ago•2 comments

Show HN: Effective Git

https://github.com/nolasoft/okgit
22•nola-a•2d ago•2 comments

Show HN: TrAIn of Thought – AI chat as I want it to be

https://bix.computer/graphMode
2•two-sandwich•1h ago•0 comments

Show HN: Agent Action Protocol (AAP) – MCP got us started, but is insufficient

https://github.com/agentactionprotocol/aap/
8•hank2000•5h ago•1 comments

Show HN: A tool to give every local process a stable URL

https://github.com/logscore/roxy
3•lsreeder01•2h ago•0 comments

Show HN: We want to displace Notion with collaborative Markdown files

https://www.moment.dev/
12•antics•4h ago•3 comments

Show HN: I built a sub-500ms latency voice agent from scratch

https://www.ntik.me/posts/voice-agent
548•nicktikhonov•1d ago•152 comments

Show HN: Demucs music stem separator rewritten in Rust – runs in the browser

https://github.com/nikhilunni/demucs-rs
5•nikhilunni•6h ago•1 comments

Show HN: React-Kino – Cinematic scroll storytelling for React (1KB core)

https://github.com/btahir/react-kino
17•bilater•2d ago•1 comments

Show HN: OpenMandate – Declare what you need, get matched

https://openmandate.ai
2•raj-shekhar•4h ago•0 comments

Show HN: Apcher – Generate self-hosted Node.js workflows from prompts

https://apcher.dev
3•Samueedwards1•4h ago•8 comments

Show HN: Omni – Open-source workplace search and chat, built on Postgres

https://github.com/getomnico/omni
165•prvnsmpth•1d ago•41 comments

Show HN: Pianoterm – Run shell commands from your Piano. A Linux CLI tool

https://github.com/vustagc/pianoterm
57•vustagc•1d ago•21 comments

Show HN: AI tool that brutally roasts your AI agent ideas

https://whycantwehaveanagentforthis.com
4•Sattyamjjain•5h ago•1 comments

Show HN: Timber – Ollama for classical ML models, 336x faster than Python

https://github.com/kossisoroyce/timber
197•kossisoroyce•1d ago•33 comments

Show HN: uBlock filter list to blur all Instagram Reels

https://gist.github.com/shraiwi/009c652da6ce8c99a6e1e0c86fe66886
123•shraiwi•1d ago•48 comments

Show HN: Govbase – Follow a bill from source text to news bias to social posts

https://govbase.com
209•foxfoxx•1d ago•86 comments

Show HN: DejaShip – an intent ledger to stop AI agents from building duplicates

https://github.com/mingulov/dejaship
3•mdn0•5h ago•0 comments

Show HN: Sai – Your always-on co-worker

https://www.simular.ai/sai
2•pentamassiv•6h ago•2 comments

Show HN: Herniated disc made me build a back-safe kettlebell app

https://kbemom.com/
2•blacktarmac•6h ago•2 comments

Show HN: Web Audio Studio – A Visual Debugger for Web Audio API Graphs

https://webaudio.studio/
64•alexgriss•1d ago•7 comments

Show HN: Kai – macOS native fully autonomous AI agent.

https://www.hikai.space
3•StephaneBessa•7h ago•1 comments

Show HN: Visual Lambda Calculus – a thesis project (2008) revived for the web

https://github.com/bntre/visual-lambda
48•bntr•3d ago•9 comments

Show HN: Diarize – CPU-only speaker diarization, 7x faster than pyannote

https://github.com/FoxNoseTech/diarize
2•loookas•7h ago•4 comments

Show HN: PingMeBud – A macOS app that listens to meetings so you don't have to

https://www.pingmebud.com/
2•spaceman3•7h ago•0 comments

Show HN: LazyTail – Terminal log viewer with built-in MCP server for AI analysis

https://github.com/raaymax/lazytail
3•raaymax•8h ago•0 comments

Show HN: FixYou – AI tool that tells you which cancer screenings you need

https://www.fixyou.app/
2•forrestzhong•8h ago•0 comments

Show HN: Qast – Cast anything (files, URLs, screen) to any TV from the CLI

https://github.com/richlegrand/qast
4•narragansett•8h ago•1 comments