Claude Refused Your Request — and Billed You Anyway: stop_reason, Fallbacks, and the Sticky Model Swap
dev.to draft 2026-11-28: Claude Refused Your Request — and Billed You Anyway Title: Claude Refused Your Request — and Billed You Anyway: stop_reason, Fallbacks, and the Sticky Model Swap Source: juejin 2026-11-28 long
dev.to draft 2026-11-28: Claude Refused Your Request — and Billed You Anyway
Title: Claude Refused Your Request — and Billed You Anyway: stop_reason, Fallbacks, and the Sticky Model Swap
Source: juejin 2026-11-28 long-form (Claude API refusal/fallback mechanism, https://juejin.cn/spost/7712783067996700712). Same fact base, restructured for dev.to readers: conclusion first, sections, code kept, one discussion question at the end. No new hard facts introduced; no links to other platforms.
The short version
This week X lit up with accusations that Claude is "secretly sabotaging" AI development work. Strip away the argument and three separate things were being mixed into one: a capability ceiling written into training, a visible model fallback, and one category of refusal that still bills you. All three are written down in Anthropic's own docs. The difference is whether your code reads the fields that say so.
If you run Claude in agents, batch jobs, or training pipelines, this is the checklist: what a refusal looks like, how the five categories bill differently, the three ways to handle a fallback, and the one trap that catches almost everyone — after a fallback, later turns quietly keep using the weaker model, and nothing in the response flags it.
1. A refusal is not an error: it's an HTTP 200
This is the most counterintuitive part. When Claude's safety classifier refuses a request, you don't get a 4xx or an exception. You get a successful HTTP 200, and in the body stop_reason is "refusal".
So any monitoring that only retries on status codes will never see a refusal. Your agent gets an empty content block, treats it as "the model just didn't answer well this time," and passes it downstream — that's how a pipeline gets silently polluted.
The full shape of a refusal, per Anthropic's official docs (Refusals and fallback):
stop_reason: "refusal"-
stop_details.category: the policy area that triggered the refusal -
stop_details.explanation: human-readable text, unstable — display it, don't parse it -
stop_details.recommended_model: only appears on requests with server-side fallback enabled, telling you which model to retry directly; null just means the hint is missing, not that no fallback model exists -
categoryandexplanationboth being null is a normal value — it means this refusal didn't map to a named category -
stop_detailsitself only appears on refusals; it's null for every otherstop_reason
In streaming, stop_reason isn't in message_start — you have to wait for message_delta to judge it. A refusal can also arrive mid-stream, after some content has already flowed out. The docs are explicit: treat that partial output as incomplete and discard it.
2. Five refusal categories, three that still bill you
The classifier currently has five named categories. The names matter less than the third column:
| Category | Trigger (per the docs) | Billed if refused before any output? |
|---|---|---|
| cyber | Could enable cyber harm, e.g. malware or exploits; benign security work can trigger it too | No |
| bio | Could enable biological harm; beneficial life-science work can trigger it too | Yes |
| frontier_llm | Could help develop a competing AI model; benign ML work can trigger it too | Yes |
| reasoning_extraction | Asks the model to reproduce its internal reasoning in the output | Yes |
| general_harms | Other usage-policy areas | No |
| null (no named category) | Didn't map to a named category | No |
frontier_llm is the center of this week's storm. The docs say it plainly: it targets work that "could help develop competing AI models," and "benign machine learning work can trigger it too." And a refusal in this category, before any output, is billed in full at the rate of the model that ran — Anthropic's stated reason is that this category has a low false-positive rate.
That's why some people feel targeted: the request was refused, the bill still grew, and the response contained nothing but a refusal.
3. The three things in the controversy are three documented rules
Split the accusation apart and check each piece against the Fable 5.2 / Mythos 5.2 release posts and the system cards:
First, the capability ceiling is written into training. Anthropic's release post states that for accelerator kernel optimization and LLM architecture work — the two kinds of research "most directly able to accelerate AI development" — it applied limits, and the two models perform there at "about the level of Opus 5.5." It also states, in the same post, that agentic coding, hardware work, and traditional machine learning research (including interpretability) are unaffected, and that these capabilities do not change at inference time. That's a ceiling, not a runtime rewrite.
Second, the fallback is visible. In those narrow areas, a small subset of requests falls back to Opus 5. In Claude Code, only the sub-agent that hit the refusal falls back; the rest of the same session keeps using Fable. Picture a multi-agent task running in parallel: one worker quietly drops a tier while the others carry on — it feels like one part of the job suddenly got dumber.
Third, the refusal itself is transparent. The Opus 5.5 system card (2026-09-22) says, verbatim: "All of our blocking safeguards operate with transparent blocks and do not covertly change model responses." An independent line-by-line check of the system card grades "secretly sabotages" as not supported, while "limits some AI development work" and "blocks distillation" are confirmed. Anthropic did try an invisible safeguard once — with the Fable 5 launch in June 2026 — and pulled it about 48 hours later after the backlash, switching to visible fallback and calling the invisible approach "the wrong tradeoff."
As of 2026-11-25, Anthropic had not responded to these posts; the 2026-11-28 morning briefs say it "has not commented further." The accusation itself remains a user claim — but the three mechanisms above are documented rules you can verify without taking sides.
4. Three ways to handle a fallback — don't just retry
The docs give three routes:
-
Server-side fallback (beta): set
fallbacksto"default"and the API automatically retries on an Anthropic-recommended fallback model, per refusal category. For categories with no recommended fallback model, the refusal stands. Haiku 5.5 has no server-side fallback, so it needs one of the two routes below. - SDK middleware: the client handles refusals and retries automatically.
-
Retry it yourself: read
stop_details.recommended_modeland decide which model to retry. The docs also describe a "fallback credit" mechanism, so retrying yourself doesn't make you pay the prompt-cache cost twice.
5. The trap most people miss: fallbacks are sticky
This is the passage in the docs most worth pulling out on its own: once a fallback happens in a session, later turns may be served directly by the fallback model, without ever going back through the model you originally asked for — and later turns carry no fallback marker at all.
Per the docs, the fallback memory lasts about 1 hour, scoped to the organization. Three signals can tell you "this turn was actually answered by the fallback model": a fallback_message entry in usage.iterations, the absence of a message entry for the model you requested, and the model field in the response itself.
So logging only stop_reason isn't enough: the turn where the fallback happens has signals; every turn after it has none. The correct habit is to log response.model on every turn — when the model changes, your cost, latency, and capability assumptions all change with it.
One more small point: every attempt, including the refused one, counts separately against each model's rate limit. A retry storm hits your own quota first, not theirs.
6. A check function you can copy
import anthropic
client = anthropic.Anthropic()
def ask(prompt: str, model: str = "claude-fable-5-2"):
msg = client.messages.create(
model=model,
max_tokens=4096,
messages=[{"role": "user", "content": prompt}],
)
# 1. Check stop_reason first: a refusal is an HTTP 200, not an exception
if msg.stop_reason == "refusal":
details = getattr(msg, "stop_details", None)
category = getattr(details, "category", None) if details else None
print(f"refused category={category} model={msg.model}")
return None # Don't pass empty content downstream
# 2. Log the model that actually did the work every turn:
# after a fallback, response.model may not be the one you asked for
print(f"answered by {msg.model}")
return msg.content
Four rules, good enough for any loop that calls Claude:
- Check
stop_reasonon every response. If it'srefusal, stop this step, logstop_details.category, and don't pass empty content downstream. - Log
response.modelevery turn. Fallbacks are sticky — know the moment the model changes. - If a refusal arrives mid-stream, discard the partial output that already flowed out.
- Regularly check your bill for the categories that bill even when refused (bio / frontier_llm / reasoning_extraction). Don't let a refusal loop quietly burn money.
Honest limitations
- The billing rules are the September 2026 vintage as labeled by Anthropic, and the docs say they may change; this post quotes that vintage.
- The "about 1 hour" fallback memory and organization scope are the docs' own wording; the exact shape of
usage.iterationsentries follows the official docs. - The "secret sabotage" accusation itself is still a user claim — nobody has posted a reproduction with the API response attached. This post only breaks down the mechanisms the docs confirm; it doesn't rule on whether the accusation is true.
- The distillation block (asking the model to reproduce its internal reasoning) has no fallback model on Opus 5.5 — it's a straight refusal. If your training-data pipeline hits it, switching models won't get around it.
Your turn
Has Claude ever refused you? What did stop_reason say, and which category was it? Post it and let's compare — was it a ceiling, a fallback, or just a billed refusal?
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.