Files
hx/docs/adr/0029-tool-safety.md
T
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.

- scripts/lint-comments.sh + .comment-baseline: per-file comment count
  may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 13:37:32 +01:00

15 lines
596 B
Markdown

# 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)