Read-only Session tree projection over Pixir Logs.
This module does not create a second message store. It folds each Session's Log,
reads durable subagent_event and session_fork facts, and projects parent/child
relationships for presenters and diagnostics.
Summary
Functions
Project one root Session into a JSON-serializable tree.
Render a compact human-readable tree.
Functions
Project one root Session into a JSON-serializable tree.
The root Session must have a Log in opts[:workspace]. Child Sessions referenced by
Subagent lifecycle events or fork lineage may be missing; those are represented
honestly with "log_exists" => false. Fork children are discovered by scanning
workspace Logs for session_fork.parent_session_id (ADR 0024).
Render a compact human-readable tree.