The problem in one paragraph
Most teams treat compliance for agents as a documents exercise: a policy, a risk register, a vendor questionnaire. Then a regulator, an auditor or a customer asks one concrete question: show me what this agent did on that day, why it did it, who approved it, and prove nobody changed the record afterwards. If the answer is a pile of application logs and a dashboard screenshot, the policy does not help you.
Three European regimes ask versions of that same question. The EU AI Act wants automatic logs, human oversight and monitoring. DORA wants incidents you can reconstruct and report on a clock, and third-party risk you can evidence. GDPR wants decisions you can explain and personal data you can erase. One well-designed record serves all three. This article shows how to build it, what a database can and cannot do for you, and a 30-day plan.
One rule first, and it comes from the vendor page itself: no tool makes you compliant. A tool produces records and controls. You still own the processes, the classification, the reporting and the explanation. Every section below separates the two.
The three regimes in one frame
Regime What it asks of an agent system The evidence regulators will want
EU AI Act Automatic event logging (Art. 12), log retention of at least six months (Art. 19 and 26(6)), human oversight (Art. 14), post-market monitoring (Art. 72) Logs, retention proof, approval records, drift reports
DORA (financial entities) ICT incident management (Art. 17), major incident reporting (Art. 19), third-party risk and exit (Art. 28) Incident reconstruction, evidence handed to supervisors, register of information
GDPR Access and explanation (Art. 15 and 22), erasure (Art. 17), security of processing (Art. 32) Causal explanation, erasure receipts, access controls
A timing note, because it changes your plan. As of my earlier research, the Digital Omnibus moved the AI Act high-risk obligations for Annex III systems to 2 December 2027 (Annex I products to 2 August 2028). That is a year from today for Annex III. DORA has applied since 17 January 2025 and GDPR for years, so for banks, insurers and payment firms the AI Act date is the least urgent of the three. Confirm current dates with counsel.
Step 1: Decide what a decision point is
Compliance logging fails most often at design time, not at storage time. The Trust page says it plainly: ZizkaDB does not wrap your LLM calls. You call log at the decision points. If you never log the point where the agent chose to refuse a claim, no database can reconstruct it.
For each agent, list the moments a regulator could ask about:
Input received (what the agent was asked, from whom, under which session).
Context retrieved (which documents, which memory, which tool results).
Reasoning step that changed the outcome (a tool chosen, a rule applied).
Action taken (payment, message, record update).
Human review (approval, override, escalation).
Outcome and later correction.
Write this list down per agent. It is the single most valuable compliance artifact you will produce, and it costs a day.
Step 2: Log every decision with its cause
Article 12 asks for automatic recording of events. The useful design is a record where each event points to the event that caused it. ZizkaDB events carry agent, event, data, parent_id, session_id, metadata, timestamp, a SHA-256 checksum and a chain hash that links to the agent's previous event.
python
from zizkadb import ZizkaDB # verify import and constructor against the current SDK docs
db = ZizkaDB(api_key=KEY)
req = db.log(agent="claims-agent", event="input_received",
data={"claim_id": "C-1042", "channel": "web"},
session_id=sid, metadata={"customer_id": "cust_77"})
ctx = db.log(agent="claims-agent", event="policy_retrieved",
data={"policy_ref": "P-2291", "version": "2026-03"},
session_id=sid, parent_id=req.id,
metadata={"customer_id": "cust_77"})
dec = db.log(agent="claims-agent", event="claim_declined",
data={"reason_code": "EXCLUSION_7", "rule": "water-damage-gradual"},
session_id=sid, parent_id=ctx.id,
metadata={"customer_id": "cust_77"})
Two habits matter more than the syntax.
Always set parent_id. The causal chain is what answers the question why, and it is what you will hand to a supervisor.
Always tag events with an erasable identifier such as customer_id in metadata. The Trust page is explicit that erasure works on tagged events, so an untagged event is one you cannot find later when a customer asks to be forgotten.
Log reason codes and references, not free text full of personal data. Secrets such as password or api_key fields are redacted before storage, but redaction of keys is not a substitute for data minimisation.
Verify the exact call signatures in the current SDK before you copy this. The shape above follows the documented event model, not a pasted reference.
Step 3: Set retention deliberately
Articles 19 and 26(6) point to keeping logs for at least six months, and sector rules often require far longer. On the Trust page, nothing is deleted until you set a retention period per agent. Over the REST API this is one call:
bash
curl -X PUT https://db.zizka.ai/v1/agents/claims-agent/retention \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"days": 730}' # check the body schema in the docs
On the managed cloud there is also an account-wide minimum retention. It can be raised but never lowered, which protects you from a well-meaning admin shortening it during a cost review. That is the control an auditor wants to hear about.
What stays with you: choosing the period. Six months is a floor under the AI Act, not an answer. Banks and insurers frequently need years. Write the number, the reason and the legal basis into your policy, then set it in the system.
Step 4: Make human oversight a logged event
Article 14 asks for human oversight that is real. A policy saying a person reviews high-risk decisions proves nothing. A logged approval linked to the decision proves a lot.
python
db.log(agent="claims-agent", event="human_review",
data={"reviewer": "j.alvarez", "action": "approved", "note_ref": "N-5531"},
session_id=sid, parent_id=dec.id,
metadata={"customer_id": "cust_77"})
Log the override as well as the approval. If reviewers approve ninety-nine percent of declines in under five seconds, that is evidence your oversight is a rubber stamp, and better that you find it than a supervisor does. What stays with you: designing the oversight process, training reviewers and giving them time and authority to say no.
Step 5: Prove the record was not changed
An audit trail that cannot show it was not edited is a diary. Every event is checksummed and chained to the previous one for that agent, so an edit, a removal or a reordering shows up when you verify the chain.
bash
curl -H "Authorization: Bearer $KEY" \
"https://db.zizka.ai/v1/events/chain?agent=claims-agent"
Be precise about what this proves, because auditors will be. The Trust page says storage is not write-once (WORM). The chain makes changes detectable. It does not prevent them. It also shows the record is unaltered, not that it is complete: if you never logged an event, no chain reveals the gap. Say this in your own documentation before someone else says it for you.
On the managed cloud, two controls strengthen the story.
Trusted timestamps. Every hour, each agent's newest chain link is stamped by an RFC 3161 time-stamping authority through a Merkle tree, so only a hash leaves the system. An auditor can check a stamp with openssl ts -verify. This proves the chain existed in that form at that time, which is the argument a hash chain alone cannot make.
Read-only auditor keys. An auditor can read and verify every agent's history but cannot write or delete. Giving an auditor a key instead of a spreadsheet export is a much better conversation.
Step 6: Build the DORA incident runbook
DORA applies to financial entities, and your agents are ICT systems and often third-party ICT services. When an agent causes or contributes to an incident, Article 17 expects you to manage and record it, and Article 19 expects major incidents to be reported.
The clock comes from Commission Delegated Regulation (EU) 2025/301. The initial notification is due as early as possible, within four hours from classification of the incident as major and no later than 24 hours from the moment the financial entity became aware; the intermediate report within 72 hours of the initial notification; the final report no later than one month after the intermediate report. Classification itself, deciding whether an incident is major, is your job and follows the regulation's criteria.
Here is where the agent record earns its place. In the first four hours you need to answer: which sessions were affected, what did the agent see, what did it do, and when did it start. Run it as a script, not as a meeting:
python
affected = db.search(query="claim_declined", agent="claims-agent",
since="2026-12-01T08:00:00Z") # confirm filter names in docs
for e in affected:
chain = db.why(e.id) # causal chain: inputs, tool results, steps
state = db.at(agent="claims-agent", ts=e.timestamp) # logged state at that moment
Then hand the supervisor and your auditors an evidence pack. On the managed cloud this is one agent's events for a period or session as a ZIP: chain links, erasure receipts, trusted timestamps and a small verify.py. The auditor runs the verification on their own computer with Python alone, with no call back to the vendor. That independence is the point. Evidence that only verifies on the vendor's servers is a claim, not evidence.
What stays with you: classifying incidents, deciding what to report, writing the notifications and running the process on a real clock. A useful drill is to pick last month's worst agent failure and time how long it takes to produce the session replay and pack. If it takes two days, your four-hour clock is fiction.
One more honest limit from the documentation: time travel reconstructs the logged state from stored events. It does not re-run the model. Completeness depends on what you logged in Step 1.
Step 7: Handle DORA third-party risk and exit
Article 28 treats an agent audit store as an ICT third-party service if you buy it as a service. Regulators will ask where the data sits, who the sub-processors are, and how you leave.
The Trust page offers two deployment modes, and the difference matters for your register of information.
Question Self-hosted Managed cloud
Where is data? Your servers; nothing leaves except an optional anonymous SDK ping (turn off with ZIZKADB_TELEMETRY=false) AWS Frankfurt (eu-central-1); events, vectors and backups stay in region
Who operates it? You ZIZKA AI S.L., Málaga, Spain
Source review Open source core, AGPL-3.0 Same core
Exit You already hold the data; export as NDJSON with checksums and chain links Full NDJSON export; data readable 90 days after cancellation
Sub-processors None for core storage Listed below
Managed cloud sub-processors, as listed by the vendor: Amazon Web Services (hosting, database, backups; all stored data), OpenAI (embeddings for semantic search when it is switched on; keyword search works without it), Anthropic (behavior report, cloud only, on request; counts and event or tool names only), Stripe (billing; no agent events) and Google (email delivery for sign-in codes and reports).
Read that list as a buyer would. If your policy forbids sending data to a US-based model provider, switch off semantic search or self-host, and note that logging and causal APIs work without an OpenAI key. For a GDPR Article 28 data processing agreement, a security questionnaire or deployment in your own cloud account, the vendor points to its enterprise contact.
What stays with you: the register of information, the criticality assessment, the exit plan and the testing of that plan. Run a real export and a real restore before you sign, not after.
Step 8: Answer the explanation request
GDPR Articles 15 and 22 and the Court of Justice judgment in Dun and Bradstreet Austria (C-203/22, 27 February 2025) point toward meaningful explanations of automated decisions. For credit, the Consumer Credit Directive II applies from 20 November 2026 and brings human intervention and explanation rights for automated creditworthiness assessments.
The causal chain gives you the raw material: the inputs, tool results and steps that led to the outcome. You still write the explanation in language the customer understands.
python
chain = db.why(decision_event_id)
chain contains: input_received -> policy_retrieved -> claim_declined -> human_review
Keep two outputs: the customer-facing explanation and the internal technical chain. Do not paste the chain at a customer. What stays with you: writing the explanation, offering a human review route and honouring the right to contest.
Step 9: Make erasure and legal hold coexist
This is where agent audit trails usually collide with GDPR. Article 17 gives people a right to erasure. Your audit and legal-claim duties push the other way. Article 17(3)(e) allows keeping records needed for legal claims. The design has to handle both.
The documented behaviour is this. forget deletes the matching events and their vectors and leaves a content-free tombstone, so the chain stays verifiable. A legal hold suspends erasure for records needed for legal claims.
python
db.forget("customer_id", "cust_77") # deletes matching events and vectors, leaves tombstones
On the managed cloud, a legal hold can apply to one agent or to the whole account. It blocks retention-based deletion, GDPR erasure and agent or account deletion, and released holds stay on the record. That last detail matters: a hold with no history is a hold you cannot defend.
Test this before you depend on it. Create a test customer, log a session, erase, then verify the chain and confirm what the evidence pack shows as an erasure receipt. I flag this as something to test because the interaction of tombstones, chain verification and exports is exactly where a mistaken assumption hurts.
What stays with you: tagging events with the identifier, deciding when a hold applies, and weighing each erasure request against your legal obligations. A tool should never make that legal call for you.
Step 10: Monitor behaviour after deployment
Article 72 asks providers of high-risk systems to monitor after they are placed on the market. For agents, the practical risk is silent drift: a model upgrade, a prompt edit or a changed data source quietly shifts behaviour.
python
report = db.behavior_change("claims-agent", window="30d")
The documented approach compares a window (24 hours, 7, 30 or 90 days) against the preceding period and reports counted checks with the rule that flagged each one. There is no score. It needs at least 100 events per period, otherwise it reports insufficient_data. A low-volume agent will not get a meaningful report, which is honest and also a reason to keep the periods long.
What stays with you: the monitoring plan, who reads the report, the threshold for action and the record of what you did about it.
Step 11: Security of processing
GDPR Article 32 is a catch-all, and the Trust page lists what the product provides: TLS, tenant isolation by API key or token scoped to the tenant, encryption at rest through standard database and disk encryption on whoever operates the infrastructure, bring-your-own embedding keys encrypted in the database, secret redaction before storage and the read-only auditor keys from Step 5. What stays with you is access management: who holds keys, how they rotate and who reviews access.
An illustrative case
An invented composite, not a real client. A mid-sized insurer runs a claims triage agent. A customer disputes a declined water-damage claim and files a complaint. In the same week a model upgrade changes how the agent reads policy exclusions, and an internal reviewer notices more declines than usual.
With the Step 1 design in place, the compliance lead does four things in an afternoon. She pulls the causal chain for the disputed claim and writes the customer explanation. She runs the 30-day behaviour report and sees the decline counts shift after the upgrade date. She classifies the situation under the firm's own incident criteria as not major, and records why. And she hands the internal auditor a read-only key and an evidence pack for the affected sessions.
Without that design she would have a three-day reconstruction from application logs that nobody can prove are unmodified. The difference is not cleverness. It is that the questions were anticipated when the agent was built.
Honest limits
Read these before you buy anything, from anyone.
Not certified. The vendor states that it does not claim SOC 2, ISO 27001 or HIPAA certification today, and it does not offer write-once storage. If your procurement requires those, you will need compensating controls or a different route.
Tamper-evident, not tamper-proof. The chain detects edits. It does not prevent them and does not prove completeness.
Some controls are managed cloud only. Evidence pack, trusted timestamps, legal hold, minimum retention and read-only auditor keys are described as managed cloud features. Check the open source edition for each one before assuming it.
Scale. The product is built for normal agent loops, not thousands of parallel writes per second. Async embedding queues and benchmarks are on the vendor's roadmap.
Log points are yours. It does not wrap model calls, so gaps in your instrumentation are gaps in your evidence.
Vendor claims. This article is written by the vendor and uses its page as the source. Run the tests above yourself.
Your 30-day plan
Days 1 to 5: Scope. List agents, classify each against the AI Act risk categories and DORA scope, and write the decision-point list from Step 1.
Days 6 to 12: Instrument. Add log calls with parent_id and the erasable identifier for one agent. Log human reviews as events.
Days 13 to 17: Retention and holds. Set per-agent retention and the account minimum. Write down the legal basis for each period. Define who may place a legal hold.
Days 18 to 22: Prove it. Verify the chain, generate an evidence pack, and have someone outside the team run verify.py and openssl ts -verify without help.
Days 23 to 26: Drill. Run a DORA incident drill against the four-hour and 24-hour marks. Run an erasure test and an explanation request test.
Days 27 to 30: Close the gaps. Complete the register of information entry, the exit test, the monitoring plan and the data processing agreement. Write the list of things you still cannot evidence, and share it with your compliance owner.
Where ZizkaDB fits
ZizkaDB is a causal audit database for AI agents, tilted toward regulated European sectors. It records each event with a SHA-256 checksum and a hash chain, supports why, time travel, behaviour change reports, per-agent retention, erasure with tombstones and export with checksums. The managed cloud runs in AWS Frankfurt and adds the evidence pack, trusted timestamps, legal hold, minimum retention and read-only auditor keys. You can also self-host with Docker Compose. The core is open source under AGPL-3.0, so your engineers and your auditors can read it, and the MCP server is MIT licensed. Commercial embedding of the AGPL code needs legal review, and Enterprise customer-VPC deployments use a separate commercial licence.
Listed plans: self-hosted is free for one agent with unlimited events on your hardware; Pro is 29 euros per month for 500,000 events, three agents and 90 days retention; Team is 69 euros per month for 1.5 million events, ten agents and one year; Enterprise is by contract for up to 50 agents, custom retention and customer VPC. Confirm current terms on the site.
The company is ZIZKA AI S.L., Málaga, Spain. To test the claims in this article, start with the self-hosted version and one agent, then ask for the managed-cloud compliance features in a trial. Questions on the data processing agreement or a security questionnaire go to founder@zizka.ai.
Sources
Commission Delegated Regulation (EU) 2025/301, Article 5 (reporting time limits), EUR-Lex
ESAs final report JC 2024 33 on DORA incident reporting standards
ZizkaDB home page and Trust page, db.zizka.ai (vendor material)
Regulation (EU) 2024/1689 (AI Act), Regulation (EU) 2022/2554 (DORA), Regulation (EU) 2016/679 (GDPR)
Court of Justice, Dun and Bradstreet Austria, C-203/22, 27 February 2025
