mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 18:28:19 +00:00
feat(valid-detection-benchmark): 11.1 governance and confidentiality adversarial suites
This commit is contained in:
@@ -362,7 +362,7 @@
|
||||
- _Boundary: Replacement Freeze Integration_
|
||||
- _Depends: 2.4, 4.4, 5.1, 10.6_
|
||||
- [ ] 11. Validate the complete replacement benchmark
|
||||
- [ ] 11.1 (P) Run governance, review, population, and confidentiality adversarial suites
|
||||
- [x] 11.1 (P) Run governance, review, population, and confidentiality adversarial suites
|
||||
- Exercise alias/fork reservation, enumerated-only events, historical path/digest changes, lifecycle forks, self-review, missing judgments, model-only labels, ecosystem ambiguity, license leakage, raw diagnostic access, and post-freeze contamination.
|
||||
- Prove every scoped fixture is readable and nonzero before interpreting a refusal or zero result.
|
||||
- Done when every mutation fails at its owning boundary, no private/label-bearing byte reaches an arm or shared report, and retirement/development opening never rewrites prior evidence.
|
||||
@@ -452,3 +452,4 @@
|
||||
- Task 10.1 review: `sourcing_queue_build._request_order` sorts by (url, advisory_locator, reachability_digest, model_digest) with a stable sort, so two distinct candidates tying on all four keys get cap selection decided by input order (restart reproducibility still holds — decode is canonical-bytes-bound — but permutation-rebuild determinism does not). The next task owning that module (10.2+) should extend the sort key with the remaining content digests or refuse tied-but-distinct requests closed. Also noted: an `INSUFFICIENT_FAMILIES` refusal does not durably persist that attempt's exclusions (10.2 owns review-record exclusion durability).
|
||||
- Task 10.2 review (2026-11-22): both 10.1 fold-ins landed (7-key `_request_order` discriminating old four-key ties + `InsufficientFamiliesRefusal.attempt_exclusions` durable persistence). Residual, forwarded to the next owner of `sourcing_queue_build.py`: distinct candidates differing only in non-digest fix-site scalars (path/function under identical repo/advisory/reachability/manifest/license digests) still tie on all seven keys and get cap selection by input order (round-1 reviewer reproduced divergent state digests across permutations); fix is fix-site scalars in the key or a closed refusal of residual ties. Optional hardening forwarded for the cohort modules: `project_accepted_ground_truth` call sits outside a closed-refusal wrapper (defense-in-depth only; unreachable with a consistent queue), and `decode_cohort_batch` accepts self-consistent forgeries whose `pending_entries`/`outcome.queue_entry_digest` are non-digest strings (downstream matching fails closed; a digest check would match sibling-field rigor). Real Python cohort remains PENDING external review records — the 10.2 done criterion is fixture-verified only.
|
||||
- Task 10.4/10.5 reviews (2026-11-22), advisories forwarded to the next owners: (a) `cohort_selection.py` `_ledger_facts` accepts a non-tuple `pending_entries` iterable from forged in-process ledgers without STATE_MISMATCH (durable paths enforce tuple-of-digests upstream; failure direction is starvation, never acceptance) — one-line isinstance guard; (b) `positive_set_closure.py` `_validate_closure` lacks the `type() is int` strict check on `total_accepted_positives` (forged float 40.0/bool decodes; no gate can flip; integers are equally forgeable, store authority is the integrity boundary) — one-line strict-int guard; (c) `_pending_by_ecosystem` docstring equivalence claim is false in the CONFLICTING_ACCEPTED_REVIEW corner (committed third-round marks the entry answered, fourth-round conservatively keeps it pending; fail-safe direction, committed behavior untouched) — docstring fix only. Real cohorts for rounds 3 and 4 remain PENDING external review records; the 10.5 combined-set closure (48 positives, both ecosystems, 5 families) is fixture-verified only.
|
||||
- Task 11.1 review (2026-11-22), advisory forwarded to the reservation-identity owner (pre-dates 11.1; load-bearing before the 11.6 real run): `reservation_identity.py:70` strips the `.git` suffix case-sensitively (`removesuffix(".git")`), and `reservation_guard.py:178` repeats the case-sensitive strip after an IGNORECASE regex, so a mixed-case `https://GITHUB.com/ACME/Core.GIT` URL normalizes to a distinct identity and escapes the reservation scan (admission still fails closed via the reviewed-registry check in population_freeze). Fix: case-insensitive suffix normalization at both sites + adversarial test. Also: the `license_class` conjunct of the public-material gate (`population_materials.py:92`) has no independent mismatch fixture (non-permissive class + allowlisted expression); one-line addition to the confidentiality suite when next owned.
|
||||
|
||||
Reference in New Issue
Block a user