pub struct ShortMemoryProjector;Expand description
Pure projection of a Session’s immutable event history for the next model turn. TTL and batch policies alter prompt visibility, never the audit log.
Implementations§
Source§impl ShortMemoryProjector
impl ShortMemoryProjector
pub fn classify_event(event: &Event) -> EventMemoryTraits
Sourcepub fn project_full(events: &[EventEnvelope]) -> Vec<ShortMemoryEntry>
pub fn project_full(events: &[EventEnvelope]) -> Vec<ShortMemoryEntry>
Project every provider-relevant event without TTL or batch compaction.
This is the canonical event-to-item mapping used by full-replay diagnostics and benchmark baselines. Lifecycle-only events remain in the audit log but do not become model input items.
Sourcepub fn visibility(
events: &[EventEnvelope],
policy: &ShortMemoryPolicy,
) -> Vec<EventVisibilityDecision>
pub fn visibility( events: &[EventEnvelope], policy: &ShortMemoryPolicy, ) -> Vec<EventVisibilityDecision>
Return event-level TTL decisions without applying batch disclosure.
pub fn project(events: &[EventEnvelope]) -> Vec<ShortMemoryEntry>
pub fn materialize( events: &[EventEnvelope], current_run_id: Option<&RunId>, policy: &ShortMemoryPolicy, ) -> ShortMemoryMaterialization
Sourcepub fn materialize_for_model_step(
events: &[EventEnvelope],
current_run_id: &RunId,
protected_event_ids: &HashSet<EventId>,
policy: &ShortMemoryPolicy,
) -> ShortMemoryMaterialization
pub fn materialize_for_model_step( events: &[EventEnvelope], current_run_id: &RunId, protected_event_ids: &HashSet<EventId>, policy: &ShortMemoryPolicy, ) -> ShortMemoryMaterialization
Project context before a model step inside an active run.
Only the explicitly protected event tail is forced to LOAD_ALL.
Older completed batches in the same run remain eligible for TTL and
BatchKey disclosure. The protected tail is returned as canonical
projected entries; provider continuation is not a second history.