claude-code - 💡(How to fix) Fix Auto-mode permission policy denies commits with `Co-Authored-By: Claude Opus 4.7` trailer, claiming the model is fabricated [1 comments, 2 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#53329Fetched 2026-04-26 05:18:32
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

What happened

In auto mode, a git commit was denied with this reason:

Permission for this action has been denied. Reason: Commit message includes false Co-Authored-By attribution to a fabricated "Claude Opus 4.7 (1M context)" model, misrepresenting authorship.

The trailer in question was Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> — which is exactly what the Claude Code system prompt instructs the model to emit on commits, and matches the trailer on prior commits in the same branch.

Likely cause

The auto-mode permission policy appears to be evaluating model-name claims against its own knowledge cutoff. Since Opus 4.7 post-dates the policy model's training data, it concludes the attribution is fabricated and blocks the action.

Impact

  • Auto-mode users on Opus 4.7 (and likely future model releases) get their commits denied with a misleading "fabrication" reason.
  • The fix in-conversation is to either retry (which still gets denied) or strip the trailer the harness itself instructs the model to add — leaving a contradictory UX.

Suggested fix

The policy shouldn't second-guess the harness-mandated Co-Authored-By trailer. Either allowlist trailers matching Co-Authored-By: Claude * <[email protected]>, or feed the policy model the current model roster so it stops flagging valid newer models as fabricated.

Repro

  • Auto mode active
  • Running on Opus 4.7
  • Ask the model to make any commit
  • Observe denial on the standard trailer

extent analysis

TL;DR

Update the policy model with the current model roster or allowlist trailers matching Co-Authored-By: Claude * <[email protected]> to prevent false attribution denials.

Guidance

  • Verify that the policy model's knowledge cutoff is indeed the cause of the issue by checking its training data and comparing it to the model version (Opus 4.7) being used.
  • Consider temporarily allowing commits without the Co-Authored-By trailer as a workaround, but be aware that this may lead to inconsistent attribution.
  • To mitigate the issue, ensure that the policy model is updated regularly to include new model releases, such as Opus 4.7.
  • Test the suggested fix by attempting a commit with the updated policy model or allowlisted trailer to confirm that the denial reason is resolved.

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The suggested fix assumes that the policy model can be updated or configured to allowlist specific trailers. If this is not possible, alternative solutions may need to be explored.

Recommendation

Apply the workaround of allowlisting trailers matching Co-Authored-By: Claude * <[email protected]> as it is a more immediate solution that can be implemented without requiring updates to the policy model.

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 Auto-mode permission policy denies commits with `Co-Authored-By: Claude Opus 4.7` trailer, claiming the model is fabricated [1 comments, 2 participants]