The Prefix Check: A Thinking Block Is Signed Over Everything Before It

Claude Fable 5.2, Mythos 5.2, Fable 5.1, Mythos 5.1, Opus 5.5, Sonnet 5.5, and Haiku 5.5 all support preserved thinking, and each thinking block is signed over the full system prompt, tools, and prior messages as they stood when Claude produced it. If any part of that prefix changes before the next request, the API returns a 400 error reading "Invalid signature in thinking block. The block is bound to a different conversation." The check compares byte-level prefixes, not sessions or users — the same user in the same conversation still fails once the prefix differs.

Where Harnesses Trip It: Compaction, Tool Changes, Instruction Edits

Three harness behaviors touch this prefix. Context compaction that replaces earlier messages with a summary. Adding tools mid-session, or an MCP server changing its own tool list. And rewriting the system prompt mid-turn. Switching models falls into a separate category (model_binding_mismatch) that needs no manual fix, but each of the first three means every thinking block sent after that point fails the prefix check on the very next request. A harness that runs native context editing with automatic compaction on by default hits this risk every time compaction fires.

From Design to Operations: A Prefix-Check Gate Checklist

The beta header thinking-binding-controls-2026-08-01 and thinking.block_binding.prefix_mismatch_behavior aren't stored between requests, so both have to go on every request for as long as the conversation runs. Fix the target as a number before shipping: in staging, apply "error" to every conversation so a prefix change fails the build with a 400 immediately, and in production, set a first target of keeping conversations that depend on "drop_block" under 5%. If that share climbs past target, it's a signal that the compaction or tool-change logic on that path needs a redesign.

The most common failure is sending a compaction block without removing the original messages it summarizes — in that case the 400 error may not name the change at all. The second is running without the beta header: some models then let a block that fails the prefix check through without an error, billing it under a thinking_mismatch_allowed status — the absence of an error doesn't mean the prefix matched.

Recovery splits into two moves. The immediate one is switching to "drop_block", which drops the invalid thinking for that conversation alone, then reading the dropped block's path out of the response's input_transformations array. The lasting one is turning compaction, tool additions, and instruction changes into an append-only pattern — appending updates at the end instead of editing history — and continuing to send each running conversation the system prompt and tools from its last successful request.

Three checks belong on the pre-launch list. First, run a test that changes the system prompt only on the third request and confirm input_transformations logs a prefix_binding_mismatch entry; a test that expects an empty array will fail falsely after a model switch, since model_binding_mismatch entries are then expected, so branch by reason. Second, pin the MCP server's tool list so a server-side change doesn't shift the prefix out from under you. Third, confirm no proxy strips the beta header — if it never arrives, the error keeps asking for it.

The same check reaches message batches and token counting. A batch item that leaves prefix_mismatch_behavior unset never gets a 400; it silently drops or lets through the invalid block, so batch operations that don't set it can't observe prefix failures at all. The token-counting endpoint accepts the same header and setting, so applying it there too keeps pre-billing counts aligned with what the real request will send.

"drop_block" invalidates the prompt cache from the first dropped block onward, and when something changes on every turn, that loss compounds turn over turn. Track the drop_block conversation share and the extra output tokens per turn weekly; if the share isn't falling, treat it as a sign that the compaction logic is still editing history directly, and put the append-only rewrite on the backlog.

Takeaways at a Glance

Surviving the prefix check means making the harness append-only, not working around the signature. Resend the beta header and prefix_mismatch_behavior on every request, catch changes immediately with "error" in staging, and track a production target of under 5% of conversations depending on "drop_block" — then compaction, tool swaps, and model switches overlapping won't let reasoning quietly disappear.

References

Fix a thinking block bound to a different conversation — Anthropic

Claude Platform release notes — Anthropic

Ask AI about this article

The assistant has read this article. Ask anything — it answers from the text and says so when something isn't in it.

Loading the chat…