fix(site-finder): gate velocity on confidence of objective_complex_mapping (#307 OBJ-2) #1720
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#1720
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/objective-mapping-is-reviewed-gate-307-obj2"
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?
Задача (#307 OBJ-2)
Backfill #1331/#1333 добавил low-confidence auto-mappings (down to 0.50) с
is_reviewed=false, которые молча шли в velocity MV.Решение
Гейт
(is_reviewed = TRUE OR match_method = 'manual' OR match_score >= 0.85).Не строгий
is_reviewed=true: в живой таблице только 2 из 309 reviewed → строгий гейт обнулил бы фичу. 0.85 = документированныйAUTO_ACCEPT_THRESHOLD(vault: «fuzzy 0.85+ надёжны для auto-use»). Изолирует именно риск-сет (auto_fuzzy_v2 0.625, corroborated 0.50-0.75).velocity.py:_MAPPING_CONFIDENCE_GATEв обоих mapped-CTE.165_velocity_mapping_reviewed_gate.sql: redefinemv_layout_velocityс гейтом (формула weighted-AVG #21 сохранена).Verify (live, read-only)
EKB mappings 303→264 (drop 39 low-conf); MV-объекты 275→236.
pytest -k "velocity or mapping or layout"→ 130 passed, 11 skipped; ruff clean.⚠️ Деплой передефинирует прод-MV (DROP+CREATE+REFRESH ~30s lock); покрытие 275→236 — это и есть фикс, не регрессия.
Closes #307 (OBJ-2)