Skip to content

fix(targethasher): preserve query inputs#238

Open
sywhang wants to merge 1 commit into
mainfrom
pbt-targethasher-immutability
Open

fix(targethasher): preserve query inputs#238
sywhang wants to merge 1 commit into
mainfrom
pbt-targethasher-immutability

Conversation

@sywhang

@sywhang sywhang commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

toTarget shouldn't mutate the Target, but currently it is doing so when hashing the results.

Clone set-like protobuf slices before sorting and filter external URL attributes on a copied rule so hashing never mutates caller-owned query results.

Add Rapid properties that permute target, dependency, attribute, and value ordering while asserting stable semantic hashes and byte-for-byte input immutability.

Clone set-like protobuf slices before sorting and filter external URL attributes on a copied rule so hashing never mutates caller-owned query results.

Add Rapid properties that permute target, dependency, attribute, and value ordering while asserting stable semantic hashes and byte-for-byte input immutability.
@sywhang
sywhang requested review from a team as code owners July 24, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants