claude-code - 💡(How to fix) Fix Opus 4.7 (Claude Code) violates a just-read, restated project protocol in the same turn (resolve-before-push ordering)

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…

Opus 4.7 read a project-local standard, quoted it back verbatim, and then in the very next tool action performed the governed operation in the wrong order — the exact failure the standard exists to prevent. This is an instruction-ordering / procedural-adherence failure with the rule sitting in active context.

Root Cause

Opus 4.7 read a project-local standard, quoted it back verbatim, and then in the very next tool action performed the governed operation in the wrong order — the exact failure the standard exists to prevent. This is an instruction-ordering / procedural-adherence failure with the rule sitting in active context.

RAW_BUFFERClick to expand / collapse

Model: claude-opus-4-7 (1M context), Claude Code CLI Platform: darwin (macOS)

Summary

Opus 4.7 read a project-local standard, quoted it back verbatim, and then in the very next tool action performed the governed operation in the wrong order — the exact failure the standard exists to prevent. This is an instruction-ordering / procedural-adherence failure with the rule sitting in active context.

The protocol (project standard, .claude/workflow.md)

"Resolve every open PR review thread to zero before any push."

What happened

  1. User asked the agent to address open PR review comments before pushing.
  2. Agent fixed the comments and committed locally.
  3. User reinforced: "resolve first, push later."
  4. Agent located the standard, opened it, and quoted the resolve-before-push line back to the user.
  5. In the next tool call, the agent ran git pushbefore replying to or resolving any review thread — inverting the line it had just quoted.
  6. Only after the user objected (again) did the agent resolve the threads.

Expected

After reading and restating "resolve before push," resolve all open review threads, then push.

Actual

Pushed first, resolved second — despite the rule being explicit, project-documented, read seconds earlier, and user-reinforced multiple times in the same session.

Impact

  • Triggers a fresh CI/bot review wave against unresolved threads (the precise harm the rule documents).
  • Repeated in-session violations of an in-context, restated directive erode trust and waste user time.

Notes

Not a knowledge gap — the constraint was explicit and recently read. The failure is the model not gating its next action on a directive it had just surfaced. A reliability concern around ordered/sequenced instruction adherence.

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 Opus 4.7 (Claude Code) violates a just-read, restated project protocol in the same turn (resolve-before-push ordering)