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
security_auditor reads func_internal_density from telemetry, but signal_processor never writes it — a permanently-zero feature in the security frame #2714
but signal_processor never puts func_internal_density into telemetry_payload (it writes func_complexity_gini at ~L849 and nothing else from that family — grep func_internal_density gitgalaxy/metrics/signal_processor.py returns nothing). The metric is computed only inside record_keeper.py (~L487) while the file_data row is written. So the .get default has fired for every file, every scan: the column is a constant 0.0 in the security training frame, the same shape as the prompt_injection / agentic_rce placeholders documented at analysis_lens.py ~L1105.
Why it is its own issue
Two fixes are possible and they are not equivalent:
Populate it — compute the density in signal_processor and write the key. That changes a security-model input for every file; whether the model was trained with the column at 0.0 decides whether that is a correction or a regression, and it needs the security model owner's call plus a look at what consumes the frame.
Remove the dead read — drop the key from the security row (and any schema that expects it), which changes nothing at runtime and documents the truth.
Either way it must not ride on #2705's floor PR: that PR blesses a DB column and the reports; this one touches a scored model's inputs.
Also worth knowing
Because the only live consumers today are the file_data column and the reports, #2705's floor has no ML blast radius at all — this dead read is why.
Activity
fix(recorders): floor func_internal_density's denominator at 12 lines…
fix(core-engine): freeze the security frame's dead func_internal_dens…