Skip to main content

merged_frame

Function merged_frame 

Source
pub fn merged_frame(
    conversation_id: &ConversationId,
    history: &[TurnSnapshot],
    active: &TurnContext,
    round_id: RoundId,
) -> ContextFrame
Expand description

Shared lossless merged materialization over committed history plus the active turn — the single semantics both the runtime’s ConversationState::frame() and any external conversation driver’s merged-view entry use. The session aggregate that calls it lives in causa-runtime, but the projection itself is common frame vocabulary and stays with the facts. No reordering, no dedup, no trimming; nothing is written back.