summaryrefslogtreecommitdiffstats
path: root/static/htmx.min.js.gz
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-21 11:06:01 +0000
committeraur-build <aur-build@localhost>2026-11-21 11:06:01 +0000
commit4aaa0b87618ab3f41049a4da587421b758449f6f (patch)
tree45f7918c3b126dd9339cd7a2cf64e7d474566f18 /static/htmx.min.js.gz
parent7f5d3dc2ae540b7d4faf5e8c854e638fe70b9fd3 (diff)
downloadaur-build-4aaa0b87618ab3f41049a4da587421b758449f6f.tar.gz
aur-build-4aaa0b87618ab3f41049a4da587421b758449f6f.zip
tools: the probe enumerates pub items itself instead of trusting the table
`release-surface-probe.py` used to take its candidate list from `tools/test-surface.py`. That made it strictly downstream of the inference it existed to audit: an item the detector dropped could never be probed, and the tool reported "0 leaked" about a table that was missing the leak. The auditor was right that "proven by compiling, not inferring" did not hold. It now enumerates on its own — every `pub` declaration in `src/`, found by scanning the files — and applies its own deliberately simpler production-use rule (comments, strings and `use` lines do not count). Two independent rules that must agree is a check; one rule consulted twice is not. Three control experiments were run against it, and the first two failed before the tool was correct: - un-gating `review::approve::withdraw` initially reported nothing, because the probe built paths from the census module (`aur_build::review::withdraw`) instead of the real one (`aur_build::review::approve::withdraw`). A path that cannot compile even with the feature was silently filed as "not nameable". Paths are now derived from the declaring file, with the module-door and intermediate re-export paths tried too. - with that fixed, un-gating `withdraw` is caught by name and location. - restoring `open_reviews_for` together with the test that used it is caught too. Restoring only the function is correctly not caught: with no test naming it, it is dead code, not a test-only leak. That last distinction is a separate category now. A public item that nothing in `src` or `tests` reaches — `reopen_rejected`'s shape — is reported and fails the run, counted over the declaring file too so a helper used only by its own module is not falsely called unreachable. `db::Writer` stays reachable on purpose and is now probed for that claim: an item listed in `test-surface-interface.json` must actually resolve, or the file is stale and the probe says so.
Diffstat (limited to 'static/htmx.min.js.gz')
0 files changed, 0 insertions, 0 deletions