Repository navigation
Description
Description
This epic tracks findings from a proactive, population-scale validation exercise: rather than
waiting for a bug report, we froze a corpus of 718 real-world repositories (2.1M declared files,
135M+ LOC of verified code, spanning ~40 languages from the Linux kernel and WordPress to
COBOL mainframe systems and TensorFlow), ran the full v2.4.7 engine against all of them, merged
every per-repo result into one queryable database, and swept every column in it looking for
anything implausible, structurally invariant, or systematically zero. This is the same "does the
data actually look like reality" instinct behind #325, just run at 700-repo scale instead of
single-fixture scale.
Headline result: 96.5% of the 428 columns we validated (413/428) carried plausible, real
signal. Of the 3.5% (15 columns) that didn't, none were random noise — every one traced back to
a specific, nameable root cause, ranging from "nobody ever wrote the regex" to "a fix that
passed its unit test never actually worked in production." That's the real value of this
exercise: two of the findings below (#367, #368) were already closed as fixed, verified by a
passing unit test — and this run proves that test validated the arithmetic without ever proving
the real pipeline feeds it real data. A synthetic fixture can't catch that kind of gap; only a
full run against real, varied, unpredictable source code can.
Methodology & Tools Used
utilities/batch_process.py
(in this repo) — batch-scanned all 718 pinned repos undergitgalaxy/data/with the v2.4.7
engine. 0 failed repos, 233.5M LOC processed. Output (per-repo SQLite/JSON/SARIF/SBOM,
gzip-compressed) committed to
gitgalaxy-raw-output/v2.4.7.build_master_db.py
(gitgalaxy-population-analyses) — merged all 718*_galaxy_master.dbfiles into one
master_db_v247.db. Extended with--input-dir/--outputCLI flags and transparent
gzip-decompression support so it could point at the new raw-output source (previously
hardcoded to a stale local test directory). Zero data loss confirmed: 718 repos / 1,201,836
files / 5,713,449 functions / 2,126,151 classes, source counts == master counts across every
table.db_health_assessor.py
(gitgalaxy-population-analyses) — single-pass NULL/empty/zero sweep across every column in
every table (repo_data,file_data,function_data,folder_data,class_data,
excluded_artifacts). Flagged 65 raw anomalies across 428 total columns.- Manual root-cause triage — every flagged column was traced back to its producer (or
confirmed absence of one) inlanguage_standards.py/record_keeper.py/analysis_lens.py,
cross-checked against sibling computed-risk columns, and spot-verified with direct SQL against
the real 1.2M-row dataset (not just the health tool's own summary) before being classified.
Results, By The Numbers
- 428 total columns evaluated across 6 tables.
- 413 / 428 (96.5%) passed clean — including
folder_data,class_data, and
excluded_artifactscoming back 100% healthy with zero flags. - 65 raw flags (32 distinct columns) were raised. After triage:
- 24 raw flags (11 distinct columns) were false positives in the health-check tool
itself — real, working engine signal that the tool's static whitelist/filter just isn't
aware of (→ db_health_assessor.py false-flags 11 working columns as DEAD FEATURE (llm_/ml_/dl_ whitelist gap + lit_* active-logic filter blind spot) gitgalaxy-population-analyses#1). - 6 raw flags (6 distinct columns) are likely benign, expected metadata gaps (e.g. small
repos with no computable dependency graph, module-level functions correctly having no parent
class) — noted, not filed, since nothing about them looks structurally wrong. - 35 raw flags (15 distinct columns) are real engine-side findings, broken out below by how
much design work each one actually needs.
- 24 raw flags (11 distinct columns) were false positives in the health-check tool
Sub-Issues
Straightforward — clear root cause, mechanical or precedented fix:
- Dead naming-convention signature family: struct_camel_case/snake_case/pascal_case/upper_case/short_vars/long_vars/var_decl have zero producers #1145 — 7-column dead naming-convention signature family (
struct_camel_case/
snake_case/pascal_case/upper_case/short_vars/long_vars/var_decl):
zero producers anywhere inlanguage_standards.py, 0 of 1.2M files, corpus-wide. - prompt_injection / agentic_rce have zero producers -- apply #323 precedent (remove or scope real detector) #1146 —
prompt_injection/agentic_rce: same zero-producer shape, but likely resolved
the same way Remove ai_tools, ai_memory, ai_logic_loop from SIGNAL_SCHEMA -- not realistically detectable via regex #323 resolvedai_tools/ai_memory/ai_logic_loop(behavioral/semantic
detection isn't reliable via lexical regex) rather than implemented. - tabs_vs_spaces conflates a lighthearted structural fact with a risk-exposure score -- move out of RISK_SCHEMA #1147 —
tabs_vs_spacesraw hit-count column is vestigial: the real signal moved to the
computedrisk_tabs_vs_spacesscore (which works correctly, 865K files with real data);
nothing writes the raw column anymore. - file_data.ecosystem_baseline never propagated from repo-level (100% empty across 1.2M files) #1149 —
file_data.ecosystem_baselineis 100% empty for all 1.2M files even though the
repo-levelrepo_data.ecosystem_baselineis correctly populated for all 718 repos — never
propagated down. - 367,
368 — reopened as regressions.
Both were closed via Fix record_keeper.py's four dead security-flag SQLite columns (#366-369) #381 with a passing unit test, but this population run shows
has_credentials/binary_anomalyare still 100% zero across all 1.2M files despite real
underlying signal existing (risk_secrets_risk: 437 files with real data). The unit test
validated the fix's arithmetic against a hand-builtequationsdict; it never proved the real
pipeline handsrecord_keeper.pyanequationsdict shaped the same way. Exactly the class of
gap a synthetic fixture can't catch and a real-corpus run can.
Needs investigation before a fix is even scoped:
- audit_shadow_apis (repo_data) is 99.7% zero with no confirmed producer -- investigate before fixing #1148 —
audit_shadow_apis(repo_data) is 99.7% zero with no confirmed producer found in
core/,security/, ormetrics/— not a clean 100%, so unlike the others this needs
confirmation of whether a producer exists somewhere untraced before deciding remove vs. fix.
Needs design thinking, not just a code fix:
- obfuscation_flag / GlassWorm-style detector: needs a real design decision, not a code fix #1150 —
obfuscation_flagis intentionally hardcoded to0(an honest "not implemented"
placeholder per [BUG/DATA-INTEGRITY] record_keeper.py's "glassworm_flag" SQLite column is always False -- no producer exists #369) because no self-propagation/worm-pattern detector exists. This isn't
a wiring bug to fix — it's an open question of whether a real detector is buildable at all
within this engine's regex-only, AST-free constraints, and if not, whether the column
should be formally deprecated rather than left as a permanent placeholder.
Filed in the tool's own repo (gitgalaxy-population-analyses, not this repo):
- db_health_assessor.py false-flags 11 working columns as DEAD FEATURE (llm_/ml_/dl_ whitelist gap + lit_* active-logic filter blind spot) gitgalaxy-population-analyses#1 —
db_health_assessor.py's static whitelist
doesn't recognize thellm_/ml_/dl_/lazy_evaluationfamily (real signal, just rare in
a non-AI-heavy corpus) or thelit_*literature-sensor family (real signal, but only in
markdown files — which the tool's own "active logic" filter structurally excludes from its
zero-check population). Both cause the tool to mislabel working engine features as dead.
References
- Raw output data:
gitgalaxy-raw-output/v2.4.7(718 repos, 0 failures, 233.5M LOC, commit
e4b0353) - Merged database:
gitgalaxy-population-analyses/data/master_db_v247.db - Root pattern precedent: [Epic] Recurring pattern: keys read by a consumer that no producer ever writes #325 (recurring "consumer reads a key no producer writes" pattern),
Remove ai_tools, ai_memory, ai_logic_loop from SIGNAL_SCHEMA -- not realistically detectable via regex #323 (precedent for removing lexical-regex-unfriendly behavioral signatures)
Activity
Add automated DB health audit workflow, seeded with v2.4.7's report
docs(recorders): confirm audit_shadow_apis has a real, working produc…
fix(#367): read has_credentials from durable hit/risk vectors, not eq…
fix(#368): make scan_binary's findings reach the binary_anomaly column (
squid-protocol commentedon Aug 28, 2026
Closing — all findings resolved
Every sub-issue from the v2.4.7 population-scale validation is now closed:
Engine-side findings (this repo):
prompt_injection/agentic_rce→ closed not-planned (Remove ai_tools, ai_memory, ai_logic_loop from SIGNAL_SCHEMA -- not realistically detectable via regex #323 precedent: not reliably detectable via lexical regex)tabs_vs_spacesraw column → fixedaudit_shadow_apis→ fixedfile_data.ecosystem_baselinenever propagated from repo level → fixedobfuscation_flagplaceholder → design decision made / fixedhas_credentials/binary_anomalyregressions (real pipeline never fedrecord_keeper.pyanequationsdict shaped like the unit-test fixture) → fixedTooling finding (
gitgalaxy-population-analyses):db_health_assessor.pyfalse-flagging 11 working columns (llm_/ml_/dl_whitelist gap +lit_*denominator blind spot) → fixed in Stop db_health_assessor from false-flagging 11 working columns as DEAD gitgalaxy-population-analyses#2 (merged 2026-08-28)Headline result stands: 413/428 columns (96.5%) carried plausible real signal; all 15 that didn't traced to a specific nameable root cause, now each addressed. Closing.