Ainfera

Concept · L4

Audit Chain L4.

The hash-chained sequence of AuditEvents for an Agent, where each event references the previous event's hash.
[02]What it isOne-paragraph definition

The Audit Chain makes Ainfera's record tamper-evident. Each AuditEvent embeds the hash of its predecessor, so any insertion, deletion, or edit breaks the chain. An Auditor can replay and verify the entire chain offline, without trusting Ainfera.

[03]Where it shows upAPI · SDK · Audit log

Where it shows up.

API
GET /v1/audit/:agent_id · GET /v1/audit/:agent_id/verify
SDK
from ainfera import AuditChain
Audit log
the Audit Chain is the audit log
[04]Code exampleWorking snippet

Code example.

chain = client.audit.get(agent_id=agent.id)

for event in chain.events:
    print(event.type, event.event_hash[:12], event.previous_hash[:12])

# Verify the whole chain offline
result = chain.verify()
assert result.intact, "audit chain broken!"
[05]RelatedOther concepts · full ontology

Spec alignment

Provides the verifiable event record required by EU AI Act Article 12 and structured for Annex IV technical documentation.