Repository navigation
Conversation
Four implementations of one protocol is the shape that produces parser differentials, and the only way to find them is to feed the same bytes to all four. This serves one canned guest-agent response over a unix socket and tabulates what Rust, Python, Go and JavaScript each do with it. It found the three bugs fixed in this branch, and it is what says the v1 surface agrees on all 39 of its cases -- a negative result worth being able to re-derive. Not wired into `sdk/run-tests.sh`: it needs all four toolchains, and it answers "do these agree?" rather than asserting a fixed expectation. Run it by hand when the wire format changes or when one SDK's decoding is touched. It does not use `sdk/simulator`, deliberately. The simulator is the real guest agent with one trait swapped, which is exactly what makes it trustworthy -- a test that passes against it cannot be rejected by a real agent on validation grounds. A fault-injection mode would put test-only branches in the production handler and cost that property.
Collaborator
Author
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.
Feeds the same malformed guest-agent responses (39 v1, 20 v0 cases) to the Rust, Go, Python and JS SDKs and tabulates which accept or reject each. Used to find the issues fixed in the sibling PRs split out of #1281.
Standalone under
sdk/compat/parser-differential/; not wired intosdk/run-tests.shor CI. See its README for usage.