pub fn build_forest(procs: &[RawProc]) -> (Vec<ProcNode>, Vec<ProcNode>)Expand description
Fold the flat table into a forest of agent trees plus the orphaned MCP list.
An agent root is a process that classifies as a harness and has no
harness ancestor. Harness processes nested under a root become
Subagent nodes of that root’s tree.