# Safe network fetch and process handling Status: accepted ## Context web_fetch could be redirected to private hosts. bash children survive timeouts unless killed as a group. stdin reads in tokio block runtime shutdown. ## Decision Follow redirects manually and check every hop; spawn bash in its own process group so timeouts kill children; read stdin for login on a detached std thread. ## Consequences SSRF via redirects is blocked; shutdown is not delayed by pending stdin. Code: crates/hx-tools/src/web.rs (GET), crates/hx-tools/src/lib.rs (bash), crates/hx-ai/src/auth.rs (stdin wait)