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§
- Audit
Pipeline - Bridges engine lifecycle hooks to an
AuditSinkover a bounded channel. - Audit
Record - One immutable audit record.
- File
Audit Sink - A ready-to-use
AuditSinkthat appends one tab-separated line per record to a file — a turnkey compliance trail with no external dependency.
Enums§
- Audit
Action - What happened, for the audit log.
Traits§
- Audit
Sink - Append-only audit destination supplied by the host.