Repository navigation
Conversation
This branch has not been deployed
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.
Malformed MCP JSON can currently overwrite a tool refusal: a result containing both
"isError": trueand"isError": falseis returned as success because Python keeps the last duplicate member. Duplicate JSON-RPC IDs/results are also silently accepted, and deeply nested JSON escapes as an untypedRecursionError.Decode MCP responses with duplicate-member and non-standard-constant rejection, and translate decoder recursion failures into the existing
ProoflineError. Both synchronous and asynchronous clients share this decoder. The change does not retry tool calls or include response values in errors.Validation: all 266 tests pass, including 32 new loopback HTTP regression cases covering both handshake and tool responses, duplicate IDs/results/nested members, non-standard constants, conflicting refusal flags, and excessive nesting. Existing MCP tests verify normal results and refusals remain intact. Pinned Ruff checks and mypy (232 source files) also pass. Tests used
--basetemp=../pytest-full-1because this Windows machine's default pytest temp folder is inaccessible.Prepared with Codex assistance for the Software Engineering Intern application; the applicant still needs to review and understand the code, run a real Proofline review, and record their narrated walkthrough before applying.