Add Rust codec round-trip tests#29
Open
ringotokens-commits wants to merge 2 commits into
Open
Conversation
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.
TentOfTrials Rust Codec Bounty PR Draft
Issue: #2
Patch: /Users/aiagent/Documents/Codex/2026-07-08/yo/outputs/tentoftrials_rust_codec_bounty.patch
Diagnostic artifacts:
Summary
Adds deterministic protocol frame codec regression coverage for malformed frames and decoder recovery. The patch also fixes the frame header size constant to match the 20-byte header emitted by the encoder, rejects nonzero reserved bytes, and lets the decoder resynchronize on a later valid frame after malformed input.
Changes
FRAME_HEADER_SIZEfrom 24 to 20 to match the actual encoded wire header.ProtocolError::InvalidMessage.macos-x64encryptly binary mapping sopython3 build.pycan generate diagnostics on Intel macOS when the bundled binary exists.Testing
Result:
Result:
diagnostic/build-c2c53e9d.jsondiagnostic/build-c2c53e9d.logd1locally because this machine lacksgo,cmake,luac,ghc, Java runtime, and the existing C module has a compile error.Diagnostic password printed by the build:
Checklist
Note: the local full build failure is outside the Rust codec change;
cargo test --libpasses./claim #2