Repository navigation
Conversation
Cargo feature unification can enable serde_json preserve_order and expose the typed encoder's map iteration order. Sort object keys recursively just before serialization, leaving array order unchanged. Cover nested typed objects and arrays with an exact-output regression.
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.
Summary
serde_json/preserve_order.This is the Core dependency fix for rustscript-agent#15, where the unchanged public JSON fixture observed different bytes after enabling the ACP SDK.
Verification
typed_json_encode_sorts_nested_object_keysfailed underserde_json/preserve_orderbefore the fix (1 selected, Cargo exit 101). The same selector passed on540715b3with and without that feature (1 selected and Cargo exit 0 in each run).Seven focused controls passed, covering typed JSON validation, budgets, recursive schemas, optional fields, and ordered HTTP headers.
cargo fmt --checkandgit diff --checkpassed.The unchanged Agent
auth_bundle_teststarget passed locally (18/18, including the original failure) using a temporary override to the exact Core candidate, withserde_json/preserve_orderstill enabled. This verifies the local dependency combination; the published Agent pin has not changed.