Add backend/app/services/site_finder/future_supply.py — deterministic, no-LLM §9.3 composite quantifying queued competing supply (hidden + future) vs market absorption, computed on-the-fly (not stored). - Reads VIEW v_supply_layers_latest (incl. non-derivable graddoc_stub/ insider_manual L3 rows), not a layer recompute. - Reuses market_metrics.compute_market_metrics for monthly absorption (available / months_of_supply == sold/mo; algebra verified). - months_of_pressure = (hidden + future_by_horizon) / absorption/mo; index = linear-clamp saturation at 18mo (1.5x EKB cycle); confidence=MIN (thin L2/L3 honestly drags composite to low). - L3 horizon-weighted (NULL expected_online_date -> neutral 0.5); open excluded from numerator (only hidden+future compete with a new object). - Graceful: empty/thin/no-absorption -> index None + low, div-by-zero guarded. - 54 unit tests (pure-helper math + mocked db/market_metrics). |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| best_layouts.py | ||
| cadastre_fetch.py | ||
| competitors.py | ||
| custom_pois.py | ||
| filters.py | ||
| future_supply.py | ||
| gate_verdict.py | ||
| layout_signature.py | ||
| layout_velocity_refresh.py | ||
| macro.py | ||
| market_metrics.py | ||
| noise_loader.py | ||
| parser.py | ||
| poi_loader.py | ||
| poi_score.py | ||
| pzz_loader.py | ||
| quarter_dump_lookup.py | ||
| quarter_price_index_refresh.py | ||
| quarter_price_refresh.py | ||
| scorer.py | ||
| supply_layers.py | ||
| velocity.py | ||
| weight_profiles.py | ||