Found by read-only services audit. - recommendation._usp_from_deficits: skip di<=0 so «стройте его» is never emitted for OVERSUPPLIED formats; all-surplus top-K → [] (no white-space niches). Aligns with product_scoring._count_positive_usp (di>0). Was: «Дефицит формата X — стройте его» for a surplus format, reaching PDF/Excel USP-ниши. - report_assembler._domrf_coverage: drop ambiguous >1.0 percent-guess; normalize per-branch (analyze pct /100, supply_layers fraction as-is). Sub-1% coverage (0.8%) no longer read as 80% → no inflated confidence in the near-zero-coverage case §15 flags. tests for both + end-to-end no-inflation. 241+148 pass. |
||
|---|---|---|
| .. | ||
| api | ||
| integration | ||
| scrapers | ||
| scripts | ||
| services | ||
| smoke | ||
| sql | ||
| workers | ||
| __init__.py | ||
| conftest.py | ||
| test_admin_weight_profiles.py | ||
| test_concepts_stub.py | ||
| test_gate_verdict.py | ||
| test_health.py | ||
| test_layout_signature.py | ||
| test_layout_tz_pdf.py | ||
| test_nspd_client.py | ||
| test_nspd_sync.py | ||
| test_ping.py | ||
| test_poi_score.py | ||
| test_quarter_dump_lookup.py | ||
| test_rbac.py | ||
| test_sentry_init.py | ||
| test_velocity.py | ||
| test_weight_profiles.py | ||