fix(proxy): align signed-thinking wire accounting - #3015
Open
JerrettDavis wants to merge 3 commits into
Open
Conversation
Contributor
PR governanceThis PR follows the template and is marked ready for human review. |
|
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
JerrettDavis
marked this pull request as ready for review
August 14, 2026 04:58
JerrettDavis
requested review from
DevanshiVyas and
chopratejas
as code owners
August 14, 2026 04:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Signed-thinking histories force byte-faithful passthrough because re-serializing signed Anthropic blocks can invalidate their signatures. Headroom correctly forwarded the original client bytes, but continued reporting mutations, transforms, savings, response headers, and prefix state from a different body that never reached the provider. Separately, the final Anthropic guard hoisted every
role: systemmessage into the top-level prompt, including valid mid-conversation system sections, changing their semantics and destroying the cached prefix if that mutation ever shipped.This coupled fix makes downstream accounting use the actual wire body whenever the signed-thinking lock discards edits, and narrows system relocation to the current Anthropic model and placement contract.
Closes #2990
Closes #2991
Type of Change
Changes Made
MemoryErrorconditions.*.googleapis.comroutes; hostname-boundary validation rejects lookalike and userinfo URLs.main, including fix(ci): prevent native detector from hanging test shards #2996, fix(proxy): complete stateless Responses and buffered CCR lifecycle #2997, fix: tool_search_tool_regex deferred and falsely resolved on direct-Anthropic path #2971, ci: allow Dependabot deps commits #3009, ci: allow generated dependency commit bodies #3012, and the MCP dependency cap.Testing
pytest)ruff check .)mypy headroom)Test Output
Real Behavior Proof
main.Runtime Rollout Safety
Review Readiness
Checklist
CHANGELOG.md— it is generated by release-please from my Conventional Commit PR title (a CI guard enforces this)Screenshots (if applicable)
Not applicable; proxy wire behavior and accounting only.
Additional Notes
Human review only. No merge or auto-merge is configured. Current provider contract reference: https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages