Skip to content

docs: shadow-patch flag is a manual hint (Part of #8431) - #8627

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
docs/8431-shadow-patch-docs
Nov 18, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
docs/8431-shadow-patch-docs

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8431 (slice 2 of 3; slice 1 is #8611). Docs only: bring the wiki and the claims inventory in line with the manual-hint behaviour #8611 introduced.

Merge order: merge after #8611 (still open at the time of writing); these docs describe the behaviour that PR adds to security_auditor.py. This branch is cut from origin/main, not from #8611's branch, so it carries only the 3 doc files.

What changed

--shadow-patch-detected is now documented as a manual hint: when set, every file with file_impact > 0.5 gets the alert "SHADOW PATCH (manually asserted via --shadow-patch-detected; no hash or version was compared)". It assigns no AI Threat Class, no score and no is_ml_threat, and it works without a model. The old text said it forced Stealer / Trojan at score 100 and was unreachable without a model.

Class / Sibling gaps

Class: every doc surface that describes the shadow-patch flag's behaviour (CLI help, README, wiki pages, claims inventory).

Member Status
galaxyscope.py help text, gitgalaxy/security/README.md:23,56 handled in #8611
docs/wiki/01-02-galaxyscope-cli-reference.md:83 handled here
docs/wiki/02-20-security-auditor.md:24,27,45,52 handled here
docs/security_claims_inventory.md row 111 handled here
docs/security_claims_inventory.md finding 5 (line 64) and next-steps item 2 (line 240) not changed: they record the audit's state before #8611, a dated finding rather than a live claim
Real hash-and-version detection missing: different mechanism (previous-scan hash from the rehydrator DB, manifest version via guidestar_lens, its own signal column); code work, slice 3 of #8431

Sibling gaps: real detection (above). Until it lands, the hint marks files by file_impact, not by change.

Remaining slices

Slice 3: option A detection (separate, larger code change).

Facts checked

  • Docs only; no parsing logic touched, so no golden bless or ratchets.
  • Alert text and flag behaviour read from gitgalaxy/security/security_auditor.py:129 and galaxyscope.py:4326 on current main.

Co-Authored-By: Claude Sonnet 5.5 [email protected]

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 18, 2026 19:07
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 19:08
@squid-shepherd
squid-shepherd Bot merged commit d316c0d into main Nov 18, 2026
57 checks passed
@squid-shepherd
squid-shepherd Bot deleted the docs/8431-shadow-patch-docs branch November 18, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant