Skip to main content

Module audit

Module audit 

Source
Expand description

Compliance-grade audit trail for stream lifecycle.

A host supplies an AuditSink (append-only table, Kafka, WORM bucket) and wraps it in an AuditPipeline. The pipeline is an Observer, so it installs on the engine builder like any telemetry hook and records every publish/play lifecycle transition.

§Hot-path contract

Recording is a non-blocking try_send onto a bounded channel; a background worker drains it to the sink. If the channel is full the record is dropped and dropped is incremented — alert on it rather than letting a slow sink stall the media path. Mirrors arcly-http’s AuditPipeline.

Structs§

AuditPipeline
Bridges engine lifecycle hooks to an AuditSink over a bounded channel.
AuditRecord
One immutable audit record.
FileAuditSink
A ready-to-use AuditSink that appends one tab-separated line per record to a file — a turnkey compliance trail with no external dependency.

Enums§

AuditAction
What happened, for the audit log.

Traits§

AuditSink
Append-only audit destination supplied by the host.