feat(forecast): расширить горизонт прогноза до 24 мес (ТЗ §12.1, Q1) #1306
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1306
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/horizon-24-months"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Расширяет горизонт Site Finder 6/12/18 → 6/12/18/24 (Q1 из #944, ТЗ §12.1).
API отвергал
?horizon=24(422), хотя движок УЖЕ считает 24 на каждом ране:_DEFAULT_HORIZONS=(6,12,18,24)во всех 6 точках стека,PIPELINE_HORIZON_MONTHS=24._hidden_release_fractionклампит h/18→1.0 (без переполнения),future_supply._horizon_weightрасширяет окно чисто — скрытых ≤18 потолков нет (backend-engineer проверил весь forecast-путь). Чистое расширение валидатора-enum, не новая математика.Backend
_ALLOWED_FORECAST_HORIZONS→ {6,12,18,24}, Query/docstring/error-msg auto-derive.meta.horizons→ автоматически «6,12,18,24».Frontend
HorizonSelectorHORIZONS=[6,12,18,24]. Тип horizon=number (union не нужен). Прочие потребители data-driven (meta.horizons/forecasts_by_horizon). Layout 4 кнопки ок.Test plan
Closes #944 (Q1 горизонт 24 — последний пункт MVP; см. резюме в issue)
API отвергал ?horizon=24 (422), хотя ТЗ §12.1 называет 6/12/18/24, а движок УЖЕ считает 24 на каждом ране: _DEFAULT_HORIZONS=(6,12,18,24) во всех 6 точках стека (orchestrator/forecast-task/demand_supply_forecast/scenarios/ special_indices/report_assembler), PIPELINE_HORIZON_MONTHS=24. _hidden_release_fraction клампит h/18→1.0 на 24 (без переполнения), future_supply._horizon_weight расширяет окно чисто — скрытых ≤18 потолков нет. Чистое расширение валидатора-enum, не новая математика. Backend: _ALLOWED_FORECAST_HORIZONS → {6,12,18,24}, Query/docstring/error-msg. Frontend: HorizonSelector HORIZONS=[6,12,18,24] (тип horizon=number, union не нужен; прочие потребители data-driven через meta.horizons/forecasts_by_horizon). Тесты: API принимает 24/отвергает 30; движок-тесты доказывают h=24 осмыслен (поля посчитаны, demand(24)>demand(18), hidden созрел, индексы в диапазонах). Closes #944 (Q1 горизонт 24)