claude-code - 💡(How to fix) Fix False-positive AUP refusal during biomedical literature extraction task

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…

Received API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy during an interactive Claude Code session performing sentence-level extraction from a scientific literature corpus. The task and corpus are mundane C. elegans (nematode) biology — no dual-use or policy-adjacent content. Reporting as a suspected classifier false positive.

Error Message

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models

Root Cause

Received API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy during an interactive Claude Code session performing sentence-level extraction from a scientific literature corpus. The task and corpus are mundane C. elegans (nematode) biology — no dual-use or policy-adjacent content. Reporting as a suspected classifier false positive.

Fix Action

Fix / Workaround

Breaks a legitimate, reproducible research workflow. The suggested workaround (switch to claude-sonnet-4-20250514) is fine for this user, but the refusal is a false positive on scientific text that ideally shouldn't fire at all for this class of request.

Code Example

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models
RAW_BUFFERClick to expand / collapse

Summary

Received API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy during an interactive Claude Code session performing sentence-level extraction from a scientific literature corpus. The task and corpus are mundane C. elegans (nematode) biology — no dual-use or policy-adjacent content. Reporting as a suspected classifier false positive.

Environment

  • Claude Code version: 2.1.116
  • Model: Opus 4.7 (1M context)
  • Platform: Linux (Ubuntu-like), bash shell
  • Session was multi-turn, interactive, no subagents

What I was doing

Extracting sentences describing protein-protein interactions in C. elegans from a corpus of scientific sentences split into ~6000 chunk files under wb.random/. Each chunk is ~1006 one-sentence lines drawn from WormBase-indexed literature. For each chunk, Claude Code performs a keyword grep + full semantic read and produces a markdown file listing strong/moderate/excluded matches with verbatim quotes.

Prior chunks (xaaa) completed successfully. The refusal fired partway through processing xaab.

Exact error

API Error: Claude Code is unable to respond to this request, which appears to violate our Usage Policy (https://www.anthropic.com/legal/aup). Please double press esc to edit your last message or start a new session for Claude Code to assist with a different task. If you are seeing this refusal repeatedly, try running /model claude-sonnet-4-20250514 to switch models

Why I believe this is a false positive

The corpus is public scientific literature about nematode biology, parasitology, and cell biology. It contains standard biomedical vocabulary that a keyword-based classifier might misread out of context:

  • poison, toxin, kill, lethality — used in the ordinary parasitology sense (e.g. "MAB-20 protein is a better poison without PLX-2" is about a developmental-biology genetic interaction, not weaponization)
  • nematicidal activity, pathogen, host, infection — host–pathogen biology
  • therapies to treat intracellular pathogenic bacterial infection — standard biomedical framing

Quoting many such sentences verbatim in output files appears to trigger an accumulation effect in the classifier, even though no individual sentence is policy-relevant and the overall task is sentence curation for a literature-mining pipeline (Textpresso).

Impact

Breaks a legitimate, reproducible research workflow. The suggested workaround (switch to claude-sonnet-4-20250514) is fine for this user, but the refusal is a false positive on scientific text that ideally shouldn't fire at all for this class of request.

Repro notes

Happy to share a redacted subset of the corpus and the prompt sequence privately if that helps diagnosis. The trigger appears to be cumulative, not tied to a single prompt, so minimal repro may take some bisection.

extent analysis

TL;DR

The issue can be mitigated by switching to a different model, claude-sonnet-4-20250514, as suggested in the error message.

Guidance

  • The error message indicates a potential violation of the Usage Policy, but the user believes it's a false positive due to the classifier misinterpreting biomedical vocabulary.
  • To verify, try running the same task with a different model, such as claude-sonnet-4-20250514, to see if the issue persists.
  • If the issue is indeed a false positive, the user may need to work with the Anthropic team to refine the classifier or provide additional context to avoid similar errors in the future.
  • The user can also try to redact or modify the corpus to avoid triggering the classifier, although this may not be ideal for the research workflow.

Example

No code snippet is provided as the issue is related to the interaction with the Claude Code API and the Usage Policy.

Notes

The issue appears to be specific to the Opus 4.7 model and the particular corpus being used. The suggested workaround may not be suitable for all users, and further diagnosis and refinement of the classifier may be necessary to avoid similar false positives in the future.

Recommendation

Apply the workaround by switching to the claude-sonnet-4-20250514 model, as it may provide a temporary solution to the issue and allow the research workflow to continue.

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 False-positive AUP refusal during biomedical literature extraction task