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] record_keeper.py's "binary_anomaly" SQLite column is always False -- no producer exists #368
bugUnintended behavior or logic failure in the enginedata-integrityIssues relating to RAM state or SQLite database fidelitypriority: highCore feature broken, but workarounds existschemaData schema updates for JSON outputs or SQLite tables
No producer anywhere writes file_data["binary_anomaly"]. The engine already has binary-format anomaly detection (security_lens.py::scan_binary() sets threats["sec_extension_mismatch"] and threats["sec_high_risk_execution"] for magic-byte/header mismatches), but that output never becomes file_data["binary_anomaly"]. The binary_anomaly INTEGER SQLite column is permanently 0.
Related: #366/#367/#368 -- the same table's other security flag columns.
🎯 Objective
The SQLite binary_anomaly column should reflect real binary-format anomaly detections (embedded execution headers, magic-byte/extension mismatches).
🛠️ Proposed Implementation
Confirm whether scan_binary()'s output ever reaches file_data at all for binary files (it may be a Zero-Dependency-Mode/binary-path gap, not just a naming mismatch -- worth checking before assuming a simple rename fixes it). Thread the real result into file_data["binary_anomaly"].
✅ Acceptance Criteria
A file with a magic-byte/extension mismatch or embedded execution header produces binary_anomaly = 1 in the SQLite output, proven by a real test.
Regression found via population-scale validation (#1144)
Same shape as the regression just found on #367: closed via #381 with a passing unit test, but a
full v2.4.7 run against 718 real repos (1,201,836 files) shows binary_anomaly is still 100%
zero across every file. #381's fix reads file_data.get("equations", {}).get("sec_extension_mismatch", 0), verified only against a
hand-built mock equations dict in the test -- not against real pipeline output.
Given #368's original body already flagged this as "murkier... may be a Zero-Dependency-Mode/
binary-path gap, not just a naming mismatch, worth checking before assuming a simple rename
fixes it" -- that caveat looks like it was correct, and the #381 fix didn't actually close the
gap it was worried about.
Reopening. See #1144 for the full validation methodology and the other
findings from the same run.
bugUnintended behavior or logic failure in the enginedata-integrityIssues relating to RAM state or SQLite database fidelitypriority: highCore feature broken, but workarounds existschemaData schema updates for JSON outputs or SQLite tables
Activity
Fix record_keeper.py's four dead security-flag SQLite columns (#366-3…
squid-protocol commentedon Jul 24, 2026
Fixed in #381 (merged).
squid-protocol commentedon Aug 7, 2026
Regression found via population-scale validation (#1144)
Same shape as the regression just found on #367: closed via #381 with a passing unit test, but a
full v2.4.7 run against 718 real repos (1,201,836 files) shows
binary_anomalyis still 100%zero across every file. #381's fix reads
file_data.get("equations", {}).get("sec_extension_mismatch", 0), verified only against ahand-built mock
equationsdict in the test -- not against real pipeline output.Given #368's original body already flagged this as "murkier... may be a Zero-Dependency-Mode/
binary-path gap, not just a naming mismatch, worth checking before assuming a simple rename
fixes it" -- that caveat looks like it was correct, and the #381 fix didn't actually close the
gap it was worried about.
Reopening. See #1144 for the full validation methodology and the other
findings from the same run.