pub fn assemble_sessions(events: &[AgentEvent]) -> Vec<AgentSession>Expand description
Assemble all streams from events into separate sessions.
Returns a Vec of AgentSession, one per distinct StreamId found in the events. Each session contains only events from its respective stream. For sidechain sessions, attempts to link back to the parent turn/step via spawned_by.