Skip to content

Typosquat radar: no-registry languages, JVM classes, Node/Go stdlib (Part of #4982) - #5080

Merged
squid-protocol merged 4 commits into
mainfrom
churn/4982-20261014T0040Z
Oct 14, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
churn/4982-20261014T0040Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4982 (finishes the remaining boxes; #4547 acceptance).

Class: the typosquat radar tests names that are not registry packages. Same decision for each member: does the token resolve to a registry package?

Member Status
JCL / PL/I dataset and include names fixed: NO_REGISTRY_LANGS gate (also cobol, bms, csd, hlasm, assembly, agc_assembly, easytrieve, rexx, db2_sql, td)
Java/Groovy class names fixed: two classes of one package are not two packages (same_jvm_package; also Kotlin, Scala, Gradle)
Node core modules fixed (incl. node: prefix, fs/promises)
Go stdlib fixed (first segment, no dot, so github.com/... stays eligible)
Other stdlibs (Ruby, PHP, Perl, Lua, Dart, Swift, C#, Haskell), java.* not here: no evidence in golden alerts

Design note: the JVM rule compares the package part of the two tokens rather than a map of the project's own package declarations, since those are not kept in raw_imports and the gradle case is an external API class.

Golden: both legs re-blessed with crucible_check.py --update --yes. Diff vs main is exactly 11 typosquat hits gone (8 PL/I S001* incl. R0010301 counted twice, jcl CICSTS56 DSNC10/SDSNLOD2, groovy InputFiles), plus their snapshots. No other moves.

Tests: tests/core_engine/test_typosquat_nonpackage_4982.py 494 pass (whole Node and Go sets, every no-registry language, every JVM extension, still-fires negatives); plain pytest from an unrelated cwd passes.
Gates: pr_gates --fast 6/6, --ratchets 7/7.

Cross-repo: none.

Co-Authored-By: Claude Opus 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 Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 14, 2026 01:18
@squid-protocol
squid-protocol enabled auto-merge (squash) October 14, 2026 01:18
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol

Copy link
Copy Markdown
Owner Author

PR #5080 @ 2506d3a: 2 failed check(s)

== full-suite (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38494461784/job/115639818445
repro: python -m pytest -q tests
errors:
##[error]Process completed with exit code 1.
log tail:
Hosted Compute Agent
Version: 20261002.596
Commit: c3d12f3313a95f25162a1503be624f3b0617f8c0
Build Date: 2026-10-02T22:28:27Z
Worker ID: {8072450f-51e2-4459-9030-2d6d97776f02}
Region: centralus
Cloud: Azure
##[endgroup]
##[group]Operating System
Ubuntu
24.04.5
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-24.04
Version: 20261004.327.1
Included Software: https://github.com/actions/runner-images/blob/ubuntu24/20261004.327/images/ubuntu/Ubuntu2404-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu24%2F20261004.327
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Contents: read
Metadata: read
##[endgroup]
Secret source: Actions
Cache mode: write
Prepare workflow directory
Prepare all required actions
Complete job name: full-suite
##[group]Run echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
echo "full-suite parts: $PARTS (tested-tree skip: $SKIP)"
# #4935: "skipped" is a pass only when the gate proved this tree green on the PR; otherwise it is a failure
test "$PARTS" = "success" || { test "$PARTS" = "skipped" && test "$SKIP" = "true"; }
shell: /usr/bin/bash -e {0}
env:
PARTS: failure
SKIP: false
##[endgroup]
full-suite parts: failure (tested-tree skip: false)
##[error]Process completed with exit code 1.
Cleaning up orphan processes

== full-suite part 3/3 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/38494461784/job/115631048388
repro: python -m pytest -q tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_audit] tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_zero_dep_audit]
failing tests: tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_audit] tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_zero_dep_audit]
errors:
fail-on-cache-miss: false
E AssertionError: 'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a regression in it. If its rule broke, fix it; if the corpus lost its only example, restore coverage; only ba
tests/test_signal_coverage.py:22: AssertionError
FAILED tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_audit] - AssertionError: 'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a regressi
FAILED tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_zero_dep_audit] - AssertionError: 'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a
##[error]Process completed with exit code 1.
log tail:
XPASS tests/extraction/languages/test_jcl.py::test_jcl_args_valid["//STEP1 EXEC PGM=PROG,PARM='THIS STRI"...len102-1d86da8b-"'THIS STRING CONTINUES "...len72-7c3fedb5] - Known limitation: Engine cannot parse JCL line con
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid[//DD DATA \n INCLUDE MEMBER=NOPE \n/*] - Known limitation: No block shielding for instream data in JCL
XPASS tests/extraction/languages/test_jcl.py::test_jcl_dependency_invalid['//STEP1 EXEC PGM=PROG1 THIS COMMENT CO'...len69-d3e393cd] - Known limitation: Inline comments aren't stripped before dependency capture
FAILED tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_audit] - AssertionError: 'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a regressi
assert not ["'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a regress... if the corpus lost its only example, restore coverage; only baseline it with a reason if zero is genuinely
FAILED tests/test_signal_coverage.py::test_no_signal_lost_its_golden_coverage[tests/golden_master_zero_dep_audit] - AssertionError: 'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a
assert not ["'Non-Standard Unicode / Homoglyphs' now fires on no crucible file -- the golden master can no longer catch a regress... if the corpus lost its only example, restore coverage; only baseline it with a reason if zero is genuinely
2 failed, 8526 passed, 20 skipped, 4 xfailed, 3 xpassed, 2 warnings in 764.98s (0:12:44)
##[error]Process completed with exit code 1.
##[group]Run python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
python tests/tools/evidence_report.py --deltas --live >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
PYTHONUTF8: 1
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
EVIDENCE_REPORT_ADVISORY: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.15/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.15/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.15/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.55.0
Temporarily overriding HOME='/home/runner/work/_temp/b2bac608-1f54-4722-855d-38d60959af2f' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-protocol squid-protocol added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 14, 2026
@squid-protocol squid-protocol removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 14, 2026
@squid-protocol squid-protocol removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

CI shepherd: the head of this PR (2fddd2b) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-protocol squid-protocol added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Oct 14, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 71d07db into main Oct 14, 2026
51 of 53 checks passed
@squid-protocol
squid-protocol deleted the churn/4982-20261014T0040Z branch October 14, 2026 09:28
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