pub fn guard_density(
original: &str,
compressed: &str,
ext: &str,
target: f64,
) -> (String, QualityScore)Expand description
#940: density-specific guard that does NOT penalise line reduction.
The standard score() composite weights line_score at 20% and the
adaptive threshold rises as line_score drops — so a density target of
0.4 (which intentionally discards ~60% of lines) always fails by
construction. Density mode needs a structure-only gate: AST + identifiers.