Files
hx/docs/adr/0006-approve-bridge-fail-closed.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

721 B

Permission bridge fails closed and delegates to the socket owner

Status: accepted

Context

The claude CLI provider asks permission through hx mcp-serve, which forwards over a Unix socket to the TUI process. hx tools run by codemode inside mcp-serve ask for their own permission.

Decision

Unknown permissions config values (typos) deny: it is a safety setting and failing open would hide the mistake. An unreachable socket denies. The socket owner stores "always" itself, so on the bridge side a yes is a plain yes. Interactive modes (ask, auto, yolo) leave -p behavior unchanged.

Consequences

Misconfiguration is visible rather than silently permissive.

Code: crates/hx-core/src/approve.rs