Skip to main content

Module artifacts

Module artifacts 

Source
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§

ArtifactDiagnostic
Safe diagnostic returned when an artifact cannot be recovered.
ArtifactMetadata
Durable metadata for one bounded redacted artifact.
ArtifactRecovery
A recovery result that keeps metadata usable when the body is unavailable.
ArtifactStore
Application-owned bounded artifact store.
ArtifactWrite
A successful artifact write, including the safe projection used by the UI.

Enums§

ArtifactKind
Coarse classification of an artifact body.
ArtifactRetentionState
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.