Repository navigation
Closed
Labels
metricsHeuristics, risk exposures, and topological math updates
Description
Summary
Follow-up cleanup after #1089 was closed won't-do. SignalProcessor._get_context_multipliers (gitgalaxy/metrics/signal_processor.py:254) still returns a third key, injection, that is now permanently inert:
ECOSYSTEM_MISMATCH_WEIGHTS(gitgalaxy/standards/analysis_lens.py:1042) never sets aninjectionpenalty for either mismatch direction (systems_in_websets onlymemory,web_in_systemsonlystate_mutation), so the value is always1.0.- There is no
injectionconsumer insignal_processor.py. At the call site (~line 551)context_mpis merged intomp_mapviasetdefault, soinjectionlands as a no-op1.0multiplier and is never read. - Per [METRICS] Wire ECOSYSTEM_MISMATCH_WEIGHTS injection penalty into security_auditor.py taint tracking #1089 / fix(#3018,#3019,#3020): stop overclaiming SQL injection from co-located regexes #3022, we deliberately do not amplify injection as a scorable risk (AST-less engine can't prove a value reaches a sink; ~0% precision, Remove AST-dependent Security & Vulnerability metrics (Injection, RCE, Memory) #1020). So this key will never be wired.
Proposed scope
Pick one:
- (a) Recommended — delete it. Drop
"injection"from themultipliersdict returned by_get_context_multipliers, so the function only returns the two keys that have consumers (memory,state_mutation). Themp_map.setdefaultloop at the call site needs no change (it just iterates whatever keys are present). - (b) Keep it, mark it. Leave the key but add a comment stating it is intentionally unwired per fix(#3018,#3019,#3020): stop overclaiming SQL injection from co-located regexes #3022, so a future reader doesn't "fix" it by wiring an amplifier.
Verification
- Per the Differential Scan protocol (CLAUDE.md):
python tests/tools/crucible_check.py; re-bless golden masters only if output changes (it should not — the key is a no-op today). - Update/verify
tests/core_engine/test_signal_processor.pyif it asserts on the returned dict shape.
References
- [METRICS] Wire ECOSYSTEM_MISMATCH_WEIGHTS injection penalty into security_auditor.py taint tracking #1089 (closed won't-do), fix(#3018,#3019,#3020): stop overclaiming SQL injection from co-located regexes #3022 (injection = structural signal, not verdict), Remove AST-dependent Security & Vulnerability metrics (Injection, RCE, Memory) #1020, [BUG/METRICS] SignalProcessor's ecosystem-context risk multiplier subsystem is dead code #1053
Metadata
Metadata
Assignees
Labels
metricsHeuristics, risk exposures, and topological math updates
Activity
cleanup(#3099): drop the dead `injection` key from _get_context_multi…