Skip to content

fix(hooks): coerce quoted false for short_circuit / prompt_gate - #632

Merged
plind-junior merged 2 commits into
vouchdev:testfrom
kurosawareiji7007-hub:fix/hooks-coerce-bool-enabled
Jul 30, 2026
Merged

fix(hooks): coerce quoted false for short_circuit / prompt_gate#632
plind-junior merged 2 commits into
vouchdev:testfrom
kurosawareiji7007-hub:fix/hooks-coerce-bool-enabled

Conversation

@kurosawareiji7007-hub

Copy link
Copy Markdown
Contributor

Summary

  • #620 / #558 moved most config loaders onto coerce_bool, but short_circuit_cfg and prompt_gate_cfg still used bare bool().
  • Quoted YAML enabled: "false" therefore silently enabled short-circuit and the prompt gate on every Claude Code turn.
  • Both readers now use coerce_bool(..., False).

Test plan

  • tests/test_hooks.py::test_short_circuit_cfg_is_defensive (quoted false/true)
  • tests/test_hooks.py::test_prompt_gate_cfg_is_defensive (quoted false/true)
  • CI green on test

Fixes #631

@github-actions github-actions Bot added docs documentation, specs, examples, and repo guidance tests tests and fixtures size: XS less than 50 changed non-doc lines labels Jul 30, 2026
@plind-junior
plind-junior enabled auto-merge July 30, 2026 13:09
…hdev#631)


vouchdev#620 fixed most loaders, but short_circuit_cfg and prompt_gate_cfg still
used bare bool(), so enabled: "false" silently turned those features on.
both now use coerce_bool.

Fixes vouchdev#631
auto-merge was automatically disabled July 30, 2026 13:21

Head branch was pushed to by a user without write access

@kurosawareiji7007-hub
kurosawareiji7007-hub force-pushed the fix/hooks-coerce-bool-enabled branch from 3d6971c to 96b88a7 Compare July 30, 2026 13:21
@plind-junior
plind-junior enabled auto-merge July 30, 2026 15:10
@plind-junior
plind-junior merged commit 6a6e6a8 into vouchdev:test Jul 30, 2026
16 checks passed
@github-actions github-actions Bot added the ci: passing ci is green label Jul 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

diff coverage: n/a — this PR changes no python under src/vouch/, so there is nothing for the gate to measure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: passing ci is green docs documentation, specs, examples, and repo guidance size: XS less than 50 changed non-doc lines tests tests and fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants