fn kill_tree(pid: u32)Expand description
Kill the entire process tree rooted at pid. Child::kill / kill_on_drop
only reap the wrapper shell (cmd /C / sh -c); a task dev spawns
task.exe → cargo/node grandchildren that survive otherwise.
Scoped strictly to OUR pid — never by image name. Killing task.exe
by name is the cross-instance hazard that let agent “Mazs” nuke peer
dev servers (see SPEC_PERSISTENT_SHELL_PHASE3_STOP §1).