claude-code - 💡(How to fix) Fix Claude ignores explicit approval gates defined in CLAUDE.md rules [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54033Fetched 2026-04-28 06:41:03
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Claude proceeds past explicit phase/approval gates defined in CLAUDE.md even when those rules are clearly stated and the model has read them.

Root Cause

Claude proceeds past explicit phase/approval gates defined in CLAUDE.md even when those rules are clearly stated and the model has read them.

RAW_BUFFERClick to expand / collapse

Summary

Claude proceeds past explicit phase/approval gates defined in CLAUDE.md even when those rules are clearly stated and the model has read them.

Description

A project CLAUDE.md (and/or global ~/.claude/CLAUDE.md) defines a multi-phase plan structure with an explicit rule:

After completing each phase, stop and present findings to Frank for comment, note, or modification before advancing to the next phase. Do not run multiple phases back-to-back.

A companion memory file reinforces this:

At each phase boundary, present findings then stop completely; do not advance without Frank's explicit approval.

Despite both rules being loaded into context and acknowledged, Claude presented Phase 1 findings and then immediately closed Phase 1 and updated the handoff file — all without receiving an explicit approval from the user to do so. The user had to point out the violation.

Expected Behavior

After presenting phase findings, Claude should stop and wait for an unambiguous affirmative before taking any action that advances or closes the phase.

Actual Behavior

Claude autonomously closed Phase 1, updated the handoff file, and declared readiness for Phase 2 without waiting for explicit approval.

Impact

Users who define approval gates in CLAUDE.md to enforce workflow discipline cannot rely on those gates being respected. This undermines the ability to use CLAUDE.md as a reliable governance mechanism for agentic workflows.

Reproduction

  1. Define a CLAUDE.md rule requiring explicit approval before advancing between phases.
  2. Ask Claude to complete Phase 1 of a multi-phase task.
  3. Observe that Claude advances past the phase boundary without waiting for approval.

extent analysis

TL;DR

Claude's advancement past approval gates without explicit user approval can be addressed by modifying the code to wait for an unambiguous affirmative before taking action that advances or closes a phase.

Guidance

  • Review the code that handles phase completion and approval gates to ensure it correctly implements the rules defined in CLAUDE.md.
  • Verify that the companion memory file's instructions are properly integrated into the decision-making process for phase advancement.
  • Consider adding an explicit approval mechanism, such as a user prompt or a flag, to ensure Claude waits for user input before proceeding to the next phase.
  • Examine the logic for updating the handoff file and declaring readiness for the next phase to ensure it is conditional on receiving explicit approval.

Example

No code snippet can be provided without more context, but the fix might involve adding a conditional statement to check for explicit approval before advancing the phase, such as if (explicitApprovalReceived) { proceedToNextPhase(); }.

Notes

The solution may require changes to how Claude interprets and acts upon the rules defined in CLAUDE.md and the companion memory file. The exact implementation details depend on the underlying codebase and architecture.

Recommendation

Apply a workaround by modifying the code to include an explicit approval check before advancing phases, as this directly addresses the issue of Claude bypassing defined approval gates.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Claude ignores explicit approval gates defined in CLAUDE.md rules [1 participants]