Skip to content

fix(guard): treat auto mode as unable to ask (#119) - #120

Merged
q-soriarty merged 2 commits into
developfrom
fix/119-auto-mode-approval-hint
Nov 29, 2026
Merged

q-soriarty merged 2 commits into
developfrom
fix/119-auto-mode-approval-hint

Conversation

@q-soriarty

@q-soriarty q-soriarty commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Claude Code auto mode (permission_mode: "auto") does not show a hook ask as a card; it hands the call to its classifier, which denied gh pr merge into develop after the user had approved it in chat. The workflow-guard plan (Task 12, step 8) foresaw this case.

  • Adapter: auto joins bypassPermissions and dontAsk in NO_ASK_MODES (hooks/lib/adapters/claude.mjs), so a merge into develop or main is denied with the WORKFLOW_GUARD_APPROVE=<N> hint and the approved rerun passes. Merges into epic/* stay allowed.
  • CHANGELOG [Unreleased] → Fixed

Closes #119

Test plan

  • New adapter test: auto mode denies with the approval hint, the WORKFLOW_GUARD_APPROVE=5 rerun passes
  • node --test hooks/test/ on Linux — 217/217
  • ./scripts/lint.sh — All checks passed
  • CI lint + guard-tests (ubuntu/macos/windows) green

Checklist

  • All workflow invariants are preserved (atomic commits, conventional commits, no AI signatures, gitflow, issue-driven, PR-only merges, semver)

Claude Code auto mode hands a hook ask to its classifier instead of showing
a card, so a merge into develop could be denied after the user approved it.
Auto mode now gets the deny with the WORKFLOW_GUARD_APPROVE hint.
@q-soriarty
q-soriarty merged commit ad1b664 into develop Nov 29, 2026
4 checks passed
@q-soriarty
q-soriarty deleted the fix/119-auto-mode-approval-hint branch November 29, 2026 20:20
@q-soriarty q-soriarty mentioned this pull request Nov 29, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant