Skip to main content

Module evidence_sink

Module evidence_sink 

Source
Expand description

JSONL evidence sink for deterministic diagnostics.

This provides a shared, line-oriented sink that can be wired into runtime policies (diff/resize/budget) to emit JSONL evidence to a single destination. Ordering is deterministic with respect to call order because writes are serialized behind a mutex, and flush behavior is explicit and configurable.

§Size cap

File-backed sinks enforce a maximum size (default 50 MiB). Once the cap is reached, further writes are silently dropped to prevent unbounded disk growth. The cap can be configured via EvidenceSinkConfig::max_bytes.

Structs§

EvidenceSink
Shared, line-oriented JSONL sink for evidence logging.
EvidenceSinkConfig
Configuration for evidence logging.

Enums§

EvidenceSinkDestination
Destination for evidence JSONL output.

Constants§

DEFAULT_MAX_EVIDENCE_BYTES
Default maximum evidence file size: 50 MiB.
EVIDENCE_SCHEMA_VERSION
Schema version for JSONL evidence lines.