Repository navigation
fix(security): shadow-patch flag is a manual hint, assigns no class (Part of #8431) - #8611
Conversation
…Part of #8431) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8611 @ a66a000: 2 failed check(s) == full-suite (failure) -- real == full-suite part 4/4 (failure) -- real |
…tcome (Part of #8431) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (5196469) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #8611 @ 5196469: 10 failed check(s) == Analyze (python) (failure) -- real == db2 ${{ matrix.shard }} (cancelled) -- infra == equivalence-e2e (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra |
|
CI shepherd: the head of this PR (0bb8735) is not the one a maintainer labelled |
|
No description provided. |
|
PR #8611 @ 0bb8735: 10 failed check(s) == crucible (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == shard 3 (1670389 LOC) (failure) -- real == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
… (CodeQL clear-text source, Part of #8431) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…, one more REFLECTION_METAPROGRAMMING (Part of #8431) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #8427. Fixes the shadow-patch path in #8431 (option B-lite: keep the flag as a manual hint, assign no class).
What changed
--shadow-patch-detectedstays, but only as "manually asserted". Insecurity_auditor.pythe override block that forced class 2 (Stealer / Trojan) at score 100 is gone. A new_apply_manual_shadow_patch_hintruns before theif not self.modelearly return, so it works without a model. It adds an alert to files withfile_impact > 0.5: "SHADOW PATCH (manually asserted via --shadow-patch-detected; no hash or version was compared)". It sets noAI Threat Class, no score and nois_ml_threat. The CLI help andgitgalaxy/security/README.mdsay the same.Real detection (hash vs previous scan or base ref, plus manifest version) is not feasible in 5 files: it needs state from
state_rehydrator, a manifest-version reader and a new signal column.Class / Sibling gaps
Class: the shadow-patch path (flag, pass-through, override, reachability, comparison, tests, docs).
--shadow-patch-detectedgalaxyscope.py)is_shadow_patchif not self.model)test_security_auditor.py,test_ml_real_model_2986.pyupdated; no-model, light-file and flag-unset cases addedgitgalaxy/security/README.md:23,56docs/wiki/01-02-galaxyscope-cli-reference.md:83docs/wiki/02-20-security-auditor.md:24,27,45,52Sibling gaps: real hash-and-version detection (acceptance A): different mechanism (previous-scan hash from the rehydrator DB, manifest version via guidestar_lens, its own signal column); not here because it exceeds the file cap. The hint still marks files by
file_impact > 0.5, not by change, so it is a coarse annotation of a human claim.Remaining slices
docs/wiki/01-02-galaxyscope-cli-reference.mdline 83 anddocs/wiki/02-20-security-auditor.mdlines 24, 27, 45, 52: replace the Trojan/unreachable text with the manual-hint behaviour (2 files).docs/security_claims_inventory.mdrow for shadow patch (1 file).Facts checked
pytest tests/security_auditing/: 898 passed, 2 skipped, 2 xfailed.test_ml_real_model_2986.pyis skipped in this venv (no scikit-learn), so its edited test did not run here; the no-model test lives intest_security_auditor.pyand did run.audit_check.py: all clear. Pinned ruff 0.17.1 format clean on the 4 changed.pyfiles.pr_gates --ratchets, golden bless (no parsing logic touched;security_auditor.pyruns after extraction).Co-Authored-By: Claude Sonnet 5.5 [email protected]
🤖 Generated with Claude Code