Expand description
Structured log entry for internal forensics.
§Critical Security Properties
- Borrows from AgentError with explicit lifetime
- CANNOT outlive the error that created it
- Forces immediate consumption by logger
- NO heap allocations in accessors
- NO leaked memory
- NO escaped references
This structure exists only during the logging call and is destroyed immediately afterward, ensuring all sensitive data is zeroized when the error drops.
The short lifetime is a FEATURE, not a limitation. It enforces that sensitive data cannot be retained beyond its intended scope.
Structs§
- Context
Field - Metadata value wrapper with zeroization for owned data.
- Internal
Log - Structured log entry with borrowed data from AgentError.