mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
test(valid-detection-benchmark): pin each fix-site key element and non-integer closure totals
- one sourcing-queue pair per fix-site key element (path-only, function-only), each proven red by dropping that key line alone - the closure decode test covers a self-consistent bool total next to the float total - the _request_order docstring names the two ties that remain open (fix revisions; shared candidate digest with another family or CWE)
This commit is contained in:
@@ -97,8 +97,11 @@ def _request_order(request: SourcingCandidateRequest) -> tuple[str, ...]:
|
||||
used to be ordered by input position, so cap selection was
|
||||
permutation-sensitive; the advisory, package-manifest, and license digests
|
||||
make the order a function of content only. The fix-site path and function
|
||||
are the non-digest scalars two otherwise identical requests can still
|
||||
differ on; appending them keeps every existing order intact.
|
||||
are the non-digest fix-site scalars; appending them keeps every existing
|
||||
order intact. Two ties remain. Requests identical on all nine keys can
|
||||
still differ in their fix revisions, which no key element carries. Two
|
||||
requests can also share one candidate digest while differing in family or
|
||||
CWE; DUPLICATE_CANDIDATE then resolves that pair by input order.
|
||||
"""
|
||||
digest = request.model_assistance_digest or ""
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user