Expand description
Bounded, redacted local artifacts for recoverable tool evidence.
The artifact store is an application boundary: it owns filesystem effects, redaction, retention, and recovery diagnostics. Handles and metadata are safe to place in provider-neutral tool and context contracts; artifact bodies are never stored in those contracts.
Structs§
- Artifact
Diagnostic - Safe diagnostic returned when an artifact cannot be recovered.
- Artifact
Metadata - Durable metadata for one bounded redacted artifact.
- Artifact
Recovery - A recovery result that keeps metadata usable when the body is unavailable.
- Artifact
Store - Application-owned bounded artifact store.
- Artifact
Write - A successful artifact write, including the safe projection used by the UI.
Enums§
- Artifact
Kind - Coarse classification of an artifact body.
- Artifact
Retention State - Retention state recorded with artifact metadata.
Constants§
- DEFAULT_
MAX_ ARTIFACT_ BYTES - Default maximum number of bytes retained for one artifact body.
- DEFAULT_
RETENTION - Default artifact retention period.
Functions§
- bounded_
redacted_ lines - Redact and cap tool lines before placing them in a compatibility/session projection. This function never returns the original body by default.