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:
Marius Ciepluch
2026-11-23 13:31:01 +01:00
parent b82b52f976
commit 364b4c0777
3 changed files with 58 additions and 16 deletions
+5 -2
View File
@@ -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 (