Cycle 2 follow-up: harden the permission tests so they actively
falsify the "ambient umask masking a regression" hypothesis raised
during the adversarial review pass.
- `_run_hook` now sets `preexec_fn=lambda: os.umask(0o022)` on the
bash subprocess. The child starts with a permissive 022 umask so a
bare file would land at mode 0644. The hook's own `umask 077` in
the parse subshell remains the only thing protecting
`last_python_err.log` and `last_input.log`, so `test_dump_is_not_world_readable`
and `test_python_stderr_log_is_not_world_readable_on_failure` now
empirically prove that protection rather than passively benefitting
from a CI runner's restrictive ambient umask.
- Docstring precision: the helper's primary diagnostic surface is
`hook.log` (a file under `STATE_DIR`), not the subprocess's stderr.
Subprocess stderr is captured here only to surface unexpected
interpreter failures (e.g., a bash syntax error introduced by a
future edit), and the docstring now says so.
No production-code changes. 26/26 tests still pass.