Repository navigation
Scan baseline: re-review the twelve unsloth-zoo sites 2026.10.11 moved - #16264
Merged
Merged
Conversation
pip scan-packages :: hf-stack fails on PRs that resolve unsloth-zoo 2026.10.11: twelve CRITICAL/HIGH findings whose matched code is byte-identical to a reviewed entry (same evidence_hash), with only the pinned file digest moved. Add an entry at the new digest next to each reviewed one; nothing is removed.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Nov 2, 2026
danielhanchen
added a commit
that referenced
this pull request
Nov 4, 2026
…16624) `pip scan-packages :: hf-stack` fails on main (run 41772420551) and on every PR whose closure resolves unsloth-zoo 2026.11.1, which #16554 made the installer floor: ``` Summary: 5 HIGH, 13 MEDIUM 5 of the 18 finding(s) above are at a site already reviewed in scripts/scan_packages_baseline.json. What differs from the reviewed entry: HIGH unsloth-zoo unsloth_zoo/compiler.py same matched code, file digest outside the pin HIGH unsloth-zoo unsloth_zoo/mlx/loader.py same matched code, file digest outside the pin HIGH unsloth-zoo unsloth_zoo/mlx/speculative.py 9 matched line(s) added and 2 gone HIGH unsloth-zoo unsloth_zoo/temporary_patches/granitemoehybrid.py 2 matched line(s) appended to a reviewed file, none gone HIGH unsloth-zoo unsloth_zoo/temporary_patches/moe_utils.py same matched code, file digest outside the pin ``` ## Review | File | What changed in 2026.11.1 | Verdict | |---|---|---| | `unsloth_zoo/compiler.py` | Matched code identical to the reviewed entry; other lines in the file moved the pin | Same as reviewed | | `unsloth_zoo/mlx/loader.py` | Same | Same as reviewed | | `unsloth_zoo/temporary_patches/moe_utils.py` | Same | Same as reviewed | | `unsloth_zoo/mlx/speculative.py` | Every new match is `mx.eval(...)` (MLX array materialisation) or `model.eval()`, not Python `eval` | Benign | | `unsloth_zoo/temporary_patches/granitemoehybrid.py` | New `_build_norm_forward`: takes `inspect.getsource` of the installed transformers `GraniteMoeHybridRMSNorm.forward`, replaces the single `return self.weight * hidden_states.to(input_dtype)` line with a fixed dtype-cast template, and `exec(compile(...))`s it into the transformers module namespace | Benign: the same source-patching pattern as the reviewed `compiler.py` sites; nothing is decoded, fetched or read from the environment | I read both files in the 2026.10.11 and 2026.11.1 wheels downloaded from PyPI. ## Change As in #16264, each new entry sits next to the reviewed entries for its file, pinned at the 2026.11.1 file digest. The entries were produced by `scripts/scan_packages.py unsloth-zoo==2026.11.1 --write-baseline` and copied in; the baseline was not regenerated, so every other package's entries are untouched. Nothing is removed, so shards that still resolve older zoo releases are unaffected. 45 added lines, one file. ## Testing - `scripts/scan_packages.py unsloth-zoo==2026.11.1`: exit 1 on main (5 HIGH), exit 0 with this change (13 MEDIUM, unchanged). - `scripts/scan_packages.py unsloth-zoo==2026.10.11`: exit 0 before and after. - `tests/security/test_scan_packages.py`, `tests/security/test_lint_av_shapes.py`, `tests/test_scripts_write_lf.py`: 181 passed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pip scan-packages :: hf-stacknow fails on PRs whose closure resolves unsloth-zoo 2026.10.11, for example #16258:All twelve are the same kind: the scanner's matched code is byte-identical to a reviewed entry (the same
evidence_hash), and only the pinnedfile_sha256moved because other lines in the file changed in the release.evidence_hashmatchesunsloth_zoo/device_type.pyunsloth_zoo/llama_cpp.pyunsloth_zoo/triton_kernels_compat.pyunsloth_zoo/vision_utils.pyunsloth_zoo/vision_utils.pyunsloth_zoo/compiler.pyunsloth_zoo/vllm_gdn_replayssm.pyunsloth_zoo/vllm_utils.pyunsloth_zoo/mlx/decision.pyunsloth_zoo/mlx/loader.pyunsloth_zoo/mlx/speculative.pyunsloth_zoo/temporary_patches/moe_utils.pyChange
As in #16114, each new entry sits next to the reviewed one it matches, pinned at the 2026.10.11 file digest. Nothing is removed, so shards that still resolve older zoo releases are unaffected. I did not regenerate the whole file with
--write-baseline, since a single-package scan would drop every other package's entries. The diff is 108 added lines and no removed ones.Verification
scripts/scan_packages.py unsloth-zoo==2026.10.11on main gives5 CRITICAL, 7 HIGHwith exit 1, matching the CI hf-stack run. On this branch it exits 0 (24 finding(s) suppressed by baseline, 13 MEDIUM left).tests/securityand the others that import it: 638 passed.