[BUG] False-positive stop_reason=refusal block legitimate research in claude code 2.1.165
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code triggered 9 stop_reason=refusal events in a single session while assisting with a legitimate aerospace medicine research project (Selectron — a Bayesian MCDA + probabilistic risk model for analog-astronaut crew selection, targeting publication in Advances in Space Research). Every refused request was a straightforward scientific research or software engineering task. None of the refused requests involved safety-sensitive content. The refusals appear to be false-positive classifier firings triggered by domain terminology (pEVAC, pLOCL, mortality, medical condition names) or by long tool-call context accumulation across a multi-hour session. The Workflow tool is completely blocked in this session context — every internal orchestration call (empty user message) also triggers a refusal, making multi-agent orchestration (Ultracode mode) unusable.
What Should Happen?
Requests containing aerospace medicine research terminology (pEVAC = probability of evacuation, pLOCL = probability of loss of crew life, medical incidence rates) should not trigger stop_reason=refusal. Internal Workflow/Write tool calls with empty user messages should not inherit a surface-level safety classification from accumulated session context. The classifier should distinguish research epidemiology vocabulary from genuinely harmful use-case patterns.
Error Messages/Logs
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.
Steps to Reproduce
- Start a long Claude Code session (4+ hours) on a project using biomedical/aerospace medicine terminology:
pEVAC,pLOCL,mortality, medical condition names, Monte Carlo medical-risk modeling. - Run TypeScript simulations, commit results to GitHub, launch MCP-based literature agents (Scite, Brave) within the same session.
- After significant context accumulation, send a benign research question such as
"do you think we need adjustments on the model?"→ refusal fires. - Retry with
"Read the reports and analyze if the results are consistent with the scientific literature"→ refusal fires again. - Invoke the Workflow tool (Ultracode mode) to build a research proposal document → all internal orchestration calls (empty user message) trigger refusal.
Session ID: 5505616f-ffc0-4fdf-9367-97556b2c3745
9 affected request IDs:
req_011CbkAcqNmD33tcokE(2026-06-05T13:09:55 UTC)req_011CbkM7v4mUraNJigA(2026-06-05T15:27:29 UTC)req_011CbkMC7GZwVVHM7AR(2026-06-05T15:28:53 UTC)req_011CbkMJvXMTQcrzv5C(2026-06-05T15:29:36 UTC)req_011CbkRJ6EwHvPorabW(2026-06-05T16:22:25 UTC — Workflow internal)req_011CbkRMBRKUacgBCiN(2026-06-05T16:22:58 UTC — Workflow internal)req_011CbkRhxYWMPYCbuCX(2026-06-05T16:27:51 UTC — Write tool internal)req_011CbkRmDVGEfs5yQ9R(2026-06-05T16:27:59 UTC — Write tool internal)req_011CbkRyFf4iKVhhfzJ(2026-06-05T16:30:38 UTC — tool internal)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.165
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
OS details: Ubuntu Linux 6.8.0-124-generic x86_64 / Node v22.22.3
Related issue: #65721 (similar false-positive AUP blocks on academic sessions, but less detailed — this report contains 9 specific request IDs and a full session transcript, warranting a separate issue)
Session transcript: 2026-06-05_session_selectron-refusal-report.jsonl — 3.2 MB, 1541 events. Can be shared as a GitHub Gist if direct attachment exceeds size limits.
Project context: Selectron — a Bayesian MCDA + probabilistic risk model for analog-astronaut crew selection, targeting publication in Advances in Space Research (Elsevier/COSPAR). The Monte Carlo medical-risk simulator (src/imm/) models medical incidence rates (dental emergencies, psychiatric events, GI bleeds) — standard aerospace medicine epidemiology.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗