Commit 6dd9cf1
Bridge classifier still produces the three-way Mitigable/Unmitigable/
Informational output, but now distinguishes two further cases inside
the Informational tier so the suggested action matches reality:
PhantomDeclared cohort override (closes #74 in part):
- New `is_build_script_only_or_vendored_pin(name)` predicate covers
pkg-config, cc, bindgen, cmake, autocfg, vcpkg, winres,
embed-resource, openssl-src.
- When a phantom-declared crate matches, the action flips from
"Strip from Cargo.toml" to "DO NOT STRIP — load-bearing via build.rs
side-effects or native-lib linkage". Same Informational class,
different recommendation. Stops `cargo machete --fix` from breaking
cross-compile TLS / native-lib resolution.
- Feature-based detection (e.g. openssl-sys with `vendored` feature)
remains future work — it needs feature-set plumbing into evidence
that the bridge doesn't have today.
PhantomTransitive cohort override (closes #75):
- New `is_dioxus_gui_parent(parent)` matches wry, dioxus-desktop,
dioxus.
- New `is_gtk_webkit_family(name)` matches the atk*/gdk*/gtk*/glib/
gio*/gobject-sys/gtk3-macros/proc-macro-error/paste/fxhash/
webkit2gtk* surface observed in presswerk.
- When (parent is Dioxus GUI) AND (crate is GTK/webkit family), emit
the Cohort E-2 message naming the no-local-fix path + tracker.
- printpdf+kuchiki sub-rule covers the printpdf-internal HTML→PDF
parser path.
Five new regression tests in `bridge::classify::tests` (14 total in
the module). Full lib suite: 343 passed.
Also restores the test module corruption in src/assail/analyzer.rs:
the squash-merge sequence for PRs #71 / #77 (refile of #72) / #73
left the file with an unclosed delimiter at line 7962 (count_julia_dce
helper had flake_findings body, julia_ext_jl_dce_is_exempt was missing
its closing braces, two flake tests landed inside the Julia section).
Reassembles each section in its intended location; no test logic
changed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5266c4b commit 6dd9cf1
2 files changed
Lines changed: 317 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7794 | 7794 | | |
7795 | 7795 | | |
7796 | 7796 | | |
7797 | | - | |
7798 | | - | |
7799 | | - | |
7800 | | - | |
7801 | | - | |
7802 | 7797 | | |
7803 | 7798 | | |
7804 | 7799 | | |
| |||
7817 | 7812 | | |
7818 | 7813 | | |
7819 | 7814 | | |
7820 | | - | |
7821 | | - | |
7822 | | - | |
7823 | | - | |
7824 | | - | |
7825 | | - | |
7826 | | - | |
7827 | | - | |
7828 | | - | |
7829 | | - | |
7830 | | - | |
7831 | | - | |
7832 | | - | |
7833 | | - | |
7834 | | - | |
7835 | | - | |
7836 | | - | |
7837 | | - | |
7838 | | - | |
7839 | | - | |
7840 | | - | |
7841 | | - | |
7842 | | - | |
7843 | | - | |
7844 | | - | |
7845 | | - | |
7846 | | - | |
7847 | | - | |
7848 | | - | |
7849 | | - | |
7850 | | - | |
7851 | | - | |
7852 | | - | |
7853 | | - | |
7854 | | - | |
7855 | | - | |
7856 | | - | |
7857 | | - | |
7858 | | - | |
7859 | | - | |
7860 | | - | |
7861 | 7815 | | |
7862 | 7816 | | |
7863 | 7817 | | |
| |||
7880 | 7834 | | |
7881 | 7835 | | |
7882 | 7836 | | |
| 7837 | + | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
7883 | 7841 | | |
7884 | 7842 | | |
7885 | 7843 | | |
| |||
7944 | 7902 | | |
7945 | 7903 | | |
7946 | 7904 | | |
| 7905 | + | |
| 7906 | + | |
| 7907 | + | |
| 7908 | + | |
| 7909 | + | |
| 7910 | + | |
| 7911 | + | |
| 7912 | + | |
| 7913 | + | |
| 7914 | + | |
| 7915 | + | |
| 7916 | + | |
| 7917 | + | |
| 7918 | + | |
| 7919 | + | |
| 7920 | + | |
| 7921 | + | |
| 7922 | + | |
| 7923 | + | |
| 7924 | + | |
| 7925 | + | |
| 7926 | + | |
| 7927 | + | |
| 7928 | + | |
| 7929 | + | |
| 7930 | + | |
| 7931 | + | |
| 7932 | + | |
| 7933 | + | |
| 7934 | + | |
| 7935 | + | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
| 7939 | + | |
| 7940 | + | |
| 7941 | + | |
| 7942 | + | |
| 7943 | + | |
| 7944 | + | |
| 7945 | + | |
| 7946 | + | |
| 7947 | + | |
| 7948 | + | |
| 7949 | + | |
| 7950 | + | |
| 7951 | + | |
| 7952 | + | |
| 7953 | + | |
| 7954 | + | |
| 7955 | + | |
| 7956 | + | |
| 7957 | + | |
| 7958 | + | |
| 7959 | + | |
| 7960 | + | |
| 7961 | + | |
| 7962 | + | |
| 7963 | + | |
7947 | 7964 | | |
7948 | 7965 | | |
7949 | 7966 | | |
| |||
0 commit comments