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§
- Evidence
Sink - Shared, line-oriented JSONL sink for evidence logging.
- Evidence
Sink Config - Configuration for evidence logging.
Enums§
- Evidence
Sink Destination - 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.