You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG/DATA-INTEGRITY] galaxyscope.py computes typosquat_hits but never persists it -- record_keeper.py's column is always 0 #376
bugUnintended behavior or logic failure in the enginedata-integrityIssues relating to RAM state or SQLite database fidelitypriority: lowUI tweaks, documentation, and minor optimizationssupply-chainDependency firewall, manifest parsing, and CycloneDX
...but typosquat_hits is a purely local variable -- it's never attached to summary or summary["ecosystem_audits"]. gitgalaxy/recorders/record_keeper.py:698 reads:
Both fallback paths miss, so the SQLite typosquat_hits INTEGER column is always 0 -- even though the detection genuinely ran and the count is correct and visible in the console log. Detection itself is unaffected; this is purely a persistence/reporting gap.
🎯 Objective
The real typosquat-hit count should survive into the SQLite export, not just stdout.
🛠️ Proposed Implementation
Attach typosquat_hits to summary["ecosystem_audits"] (or summary directly, matching whichever fallback path record_keeper.py is meant to use) at the point it's computed in galaxyscope.py.
✅ Acceptance Criteria
A repo with a real typosquat hit produces a non-zero typosquat_hits column in the SQLite output, proven by a test.
bugUnintended behavior or logic failure in the enginedata-integrityIssues relating to RAM state or SQLite database fidelitypriority: lowUI tweaks, documentation, and minor optimizationssupply-chainDependency firewall, manifest parsing, and CycloneDX
Activity
Fix TYPOSQUAT_WHITELIST, typosquat_hits, and disqualifiers (#375, #376,
Fix TYPOSQUAT_WHITELIST, typosquat_hits, and disqualifiers (#375, #376,
Fix TYPOSQUAT_WHITELIST, typosquat_hits, and disqualifiers (#375, #376,
squid-protocol commentedon Jul 24, 2026
Fixed in #387 (merged).