feat(site-finder): macro_indicator table + backfill + reader (#945 PR A) #963
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#963
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/945-macro-indicator"
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?
Site Finder v2 /
GG-форсайт— EPIC #945 PR A (фундамент критпути, детерминированный, без LLM).Unified
macro_indicatortyped series table (§8.8) + idempotent backfill: cbr_mortgage_series → 4 ИЖК-серии по exact series_id (русские месяцы → make_date), domrf → медиана primary_rate. Readermacro.py(get_macro_series/get_latest_macro).Prod dry-run (rollback): 345 строк, вменяемые (ставка avg 8.39%, domrf 19.13%). 25 тестов, code-reviewer ✅. key_rate → PR B (живой CBR-скрейпер). Additive, runs under deploy.yml _schema_migrations gate (migration 123).
Часть #944. Refs #945.
Site Finder v2 / GG-форсайт foundation (deterministic, no LLM). New typed macro_indicator series table (§8.8: indicator_type/region/obs_date/value/ source/frequency/unit) consolidating scattered macro data. Backfill (idempotent, ON CONFLICT DO UPDATE): - cbr_mortgage_series → 4 ИЖК series by exact series_id (rate_weighted/ issued_count/issued_volume/term), Russian-month period 'Август 2019' parsed via 12-month Cyrillic CASE → make_date (guard ^[А-Яа-яЁё]+ [0-9]{4}$ skips junk periods). region=sverdl. - domrf_mortgage_rates → median primary_rate per snapshot_date (mortgage_rate_primary_domrf). Reader services/site_finder/macro.py: get_macro_series/get_latest_macro (psycopg-v3 CAST), pure classify_cbr_series mirror (test-enforced consistency). Prod dry-run (rollback): 345 rows, sane values (rate avg 8.39%, domrf 19.13%). key_rate left for PR B (live CBR scraper). 25 tests, no LLM, additive.