Skip to main content

Module attachments

Module attachments 

Source

Structs§

AttachmentReclamationReport
Outcome of a host-invoked unreferenced-attachment reclamation sweep.
AttachmentSourcePolicyError
FileAttachmentStore
InMemoryAttachmentStore
NoopAttachmentManifest
No-op AttachmentManifest for ephemeral facades: records nothing, imposes no boundary guard (holds_ref returns true), and exposes no refs. The backend is the sole source of truth for these runtimes.
OpenAttachmentSourcePolicy
SessionAttachmentStore
The concrete, session-bound facade over a flat AttachmentStore backend — the only attachment surface the runtime and its consumers ever see.
StoredAttachment
StoredBlobRef
One blob enumerated by AttachmentStore::list. Feeds mark-and-sweep GC: the sweeper pairs each blob’s id against the live root set and uses last_modified_epoch_ms to apply the write grace period. Backends that cannot report a modification time leave it None, and the sweep treats such blobs as always past the grace window.

Enums§

AttachmentProducer
AttachmentStoreError
AttachmentStorePersistence

Traits§

AttachmentRootSet
A source of the live attachment root set across every session a store factory owns. Committed refs and intents with owners that can still commit are roots; terminal-owner intents remain roots through their retention window. Unscoped host puts use the legacy age-only fallback.
AttachmentSourcePolicy
AttachmentStore
A flat, content-addressed blob store: host-supplied dumb infrastructure.

Functions§

content_id
reclaim_unreferenced_attachments
Mark-and-sweep GC for attachment blobs — the host-invocable counterpart to StoreMaintenance::gc_unreachable for attachment payloads.
resolve_llm_request_attachments