Skip to content

Signal hygiene: #1090 + #4238 + #4239 - #4258

Merged
squid-protocol merged 6 commits into
mainfrom
fix/signal-hygiene-1090
Oct 3, 2026
Merged

squid-protocol merged 6 commits into
mainfrom
fix/signal-hygiene-1090

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

#1090: dead CONTEXT_VIOLATION_MATRIX

Issue had no comments asking for it to be wired in, so Option B: deleted the config (analysis_lens.py), its assignment in SignalProcessor.__init__, and the standards README mention. Wiki 08-19 / 08-21 pseudo-code no longer reads it or applies an ArchetypeMultiplier (those pages already carry the #4106 / #1020 "function no longer exists" notes). dead_key_audit --ci green (0-key baseline).

#4238: hardware_bridge / cryptography matched a name anywhere on an import line

Same weakness as #4150. False positives on main: from myproj.crypto.utils import x, from airflow.providers.usb.hooks import UsbHook, from app.printer import render, js from './usb/driver', require('../crypto/helpers'), from '@/lib/ssl-utils'. Only python and javascript carry the rules (typescript does not). Now built with _py_package_import / _js_package_import (PY_/JS_HARDWARE_BRIDGE, PY_/JS_CRYPTOGRAPHY). Deliberate additions so real imports the old rule caught only through an incidental token still count: python cryptography, OpenSSL; js node:crypto/node:tls, crypto-*, @serialport/*, @socket.io/*, socket.io-client, @scope/x509. Test: tests/extraction/languages/test_hw_crypto_import_anchor_4238.py (true positives, false positives, splice counts, ReDoS payloads).

Corpus (master_db_v2.9.0.db flagged py/js files; the 1,347 of the 2,886 flagged files still on disk were re-matched with old vs new regex, same text):

lang / signal files old -> new matches old -> new
python hardware_bridge 55 -> 17 65 -> 21
python cryptography 426 -> 351 697 -> 597
js hardware_bridge 29 -> 2 44 -> 2
js cryptography 843 -> 708 1291 -> 781

Lost matches were reviewed (list by line): all are relative/other-library submodule paths (from . import ir_websocket, scapy.layers.tls, django.utils.crypto, impacket.krb5.crypto, require('internal/crypto/..'), ../common/crypto), prose/regex text, or a shell string. The real from OpenSSL import crypto cases were caught and OpenSSL added. No file gained a match.

#4239: "site-packages" in root on an absolute path (leftover of #4058 / #4232)

UniversalManifestSlicer.locate_physical_package now tests the parts relative to the venv. Regression test scans the same tree under a site-packages parent and asserts the same result (fails before, passes after). Audit of other absolute-path checks: three ".git" in p.parts rglob filters (cobol_to_java/port_runner.py, cobol_to_cobol/cics_transaction_reader.py, cobol_to_cobol/galaxy_ir.py) had the same flaw and are now relative to their scan root. The galaxyscope.py /test/ check runs on relative paths, so it is fine.

Golden drift

Both legs re-blessed; the only scan drift is python/twisted/transport.py Cryptography 9 -> 2 (item 2) plus its centroid-distance / fingerprint / cluster ripple (bless_scope: 20 diffs, 0 topological, nothing newly parsed/excluded). On this box a bare full-leg bless also moved ~2.9k unrelated cells, because of the env, which passes unchanged in pr_gates; the commit carries only the twisted/transport.py entries. Rosetta: no import lines naming these libraries in its python/js data, so no rosetta:rebless-owed.

pr_gates

7/7 pass (lint, audits, secrets, xray, gauntlet, golden, suite).

Merge order: before the #4108 crucible-pin PR; other PRs touching golden masters re-bless after merging main.

Closes #1090
Closes #4238
Closes #4239

🤖 Generated with Claude Code

https://claude.ai/code/session_013sNMtAg6s9dyyjNgnjRHi8

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 28b7db9 into main Oct 3, 2026
44 checks passed
@squid-protocol
squid-protocol deleted the fix/signal-hygiene-1090 branch October 3, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant