pub fn prepare_session(workspace_root: &Path, thread_id: &str) -> AgentTempInfoExpand description
Return the session policy and best-effort prune expired sibling sessions and
stale active-session helpers when the active session crosses a high-water mark.
The active directory is not created here; FileWriteOrEdit creates it on
demand through its normal parent-directory path.