Audit Event Contract
The shared event and verifier contract: canonical event shape, hashing, and sequencing.
Read the contract →Cryptographic audit trail decision for compliance evidence
Esta página aún no está disponible en tu idioma.
nexus records operational events in service-local staging tables and file sinks, but those records are mutable by any operator with database or filesystem access. Regulated deployments need audit evidence that can be independently verified after it leaves the hot database path. Request analytics cannot serve this purpose because analytics rows are optimized for tenant observability, enrichment, and product queries rather than evidentiary integrity.
The shared Audit Event Contract already defines canonical event encoding, BLAKE3 leaf and node hashing, batch envelopes, and verifier rules. nexus needs a server-side pipeline that consumes those canonical events, sequences them per tenant, signs sealed batch roots, anchors batch roots to WORM object storage, and exposes offline verification.
Chosen option: per-tenant Merkle chains with signed batch roots and WORM anchors.
Producers publish canonical CBOR audit events to nexus.audit.events.<tenant_id>.
The audit service owns the durable consumer, validates each event, assigns a monotonic per-tenant sequence number, stores the canonical hash in Postgres, seals batches with the shared Merkle construction, signs batch envelopes with ed25519, and writes anchored manifests and event archives to S3-compatible Object Lock storage.
The native verifier CLI validates archive contents by recomputing event hashes and Merkle roots, checking per-tenant chain continuity, and verifying ed25519 signatures against archived public keys. If a verification run fails, see Runbook: Audit Verifier Failure. Read APIs expose events and inclusion proofs from the hot store with the same tenant authorization checks used by other read services.
Audit Event Contract
The shared event and verifier contract: canonical event shape, hashing, and sequencing.
Read the contract →Audit Proof Format
How inclusion proofs, Merkle roots, and signed batch envelopes are structured.
See the proof format →Audit Archive Export
Exporting sealed archives from Object Lock storage for offline verification.
Export archives →Verifier Failure Runbook
What to do when a verification run fails: triage steps and escalation paths.
Open the runbook →For background, see the audit lessons in Bifrost: Lessons Learned (“Patterns to improve on” item 1) and Helicone: Lessons Learned (“Patterns to improve on” item 2).