gendesign/backend
Light1YT f87c5cb0b8 feat(forecasting): §9.6 key-rate sensitivity module (#951d, advisory)
Add rate_sensitivity.py: regress Δln(sales) on lagged Δ(key_rate) per segment,
gate (n≥8, r2≥0.1, slope<0), shrink toward EKB-wide prior (w=n/(n+10); EKB prior
bootstrapped from all-None spec, gate-fail→0.0 neutral), emit §9.6 explainability
phrase (X=100·(exp(β)−1), Y=lag, Z=most-sensitive Source-B bucket area floor).
Pure numpy helpers (ols_slope_r2, best_lag, shrink) DB-free + unit-tested on
synthetic series (real slope/lag recovery); compute_rate_sensitivity tested with
mocked PR1/PR2. Wrong-sign guarded 3 layers; degrades to insufficient-data /
EKB-wide form on thin/wrong-sign. ADVISORY until PR6 backtest — not wired into
any endpoint. 28 tests (forecasting/ total 141), ruff clean.

Follow-ups for PR6 backtest: validate lag selection out-of-sample (spurious-lag
on short windows), confirm _SHRINK_K + confidence thresholds before prod wiring.
2026-06-03 11:05:55 +05:00
..
alembic ops: alembic baseline, pre-commit, TIGER cleanup, pg_dump scripts 2026-04-26 13:08:51 +03:00
app feat(forecasting): §9.6 key-rate sensitivity module (#951d, advisory) 2026-06-03 11:05:55 +05:00
db/init ops: alembic baseline, pre-commit, TIGER cleanup, pg_dump scripts 2026-04-26 13:08:51 +03:00
output feat(geo): NSPD bulk-fetcher без Playwright + resume-friendly UI 2026-05-11 08:53:28 +03:00
tests feat(forecasting): §9.6 key-rate sensitivity module (#951d, advisory) 2026-06-03 11:05:55 +05:00
.dockerignore fix(scraper): диагностируем «кнопка не работает» — Redis lock + task_received log 2026-04-28 23:17:42 +03:00
.env.example refactor(security): убрать X-Admin-Token (Caddy basic_auth достаточен) (#437) 2026-05-23 10:41:22 +00:00
.env.runtime.example sprint1: nspd scraper industrialization, per-bucket elasticity, cadastre cross-check, sentry releases 2026-04-30 21:51:19 +03:00
alembic.ini ops: alembic baseline, pre-commit, TIGER cleanup, pg_dump scripts 2026-04-26 13:08:51 +03:00
debug.log feat(geo): NSPD bulk-fetcher без Playwright + resume-friendly UI 2026-05-11 08:53:28 +03:00
Dockerfile fix(scraper): диагностируем «кнопка не работает» — Redis lock + task_received log 2026-04-28 23:17:42 +03:00
pyproject.toml feat(rbac): role-based access control via X-Authenticated-User middleware (#585) 2026-05-26 06:18:40 +00:00
uv.lock feat(rbac): role-based access control via X-Authenticated-User middleware (#585) 2026-05-26 06:18:40 +00:00