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/APPSEC] Dev Agent Firewall's Silent Mutation Risk dampener can never be satisfied -- nothing writes telemetry["has_tests"] #373
No producer anywhere writes telemetry["has_tests"], so has_tests is always False, and not has_tests is always True. Unlike most of the other findings in this audit, this is a false-positive risk, not a false-negative one: a high-flux, high-in-degree file can never have this guardrail dampened by genuine test coverage, even if it's thoroughly tested. The engine already computes real coverage data (meta.get("test_coverage_map", {}), used elsewhere in signal_processor.py's verification scoring) -- it's just never threaded into telemetry["has_tests"].
🎯 Objective
Files with real, meaningful test coverage should be able to suppress the Silent Mutation Risk guardrail as designed.
🛠️ Proposed Implementation
Derive a real boolean from the existing test_coverage_map (or the verification risk score) and write it into telemetry["has_tests"] before DevAgentFirewall.evaluate_ecosystem() runs.
✅ Acceptance Criteria
A file with high state flux, high in-degree, AND real test coverage does NOT trigger silent_mutation_risk, proven by a test using the real pipeline.
Activity
Dampen Silent Mutation Risk with real test coverage (#373) (#384)