You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
authored and
Zaid Salem
committed
feat(wb-alerts): Phase 1 — per-channel dynamic trust for checkpoint reports
Checkpoint source_trust was a static {admin:0.9, crowd:0.4} keyed only on
last_source_type — every crowd report scored 0.4 regardless of which channel
reported it, so the trust number carried no signal (audit leak #1). But the
checkpoint channels (ahwalaltreq 0.75, a7walstreet 0.75, road_jehad 0.70, ...)
already have learner-tuned reliability weights in channel_reliability.
Thread that weight into crowd trust: provenance.source_trust(last_source_type,
channel_reliability) — admin stays authoritative (0.9); crowd is scored by the
channel's reliability bounded [0.2, 0.85] (never reaches admin, keeps a floor);
falls back to the flat 0.4 prior when no weight is known. provenance stays
I/O-free; routers/v2 resolves the weights once per request via the new
get_channel_reliability_map() (degrades to {} if the table is absent).
Tests: +9 (provenance + v2 wiring); suite 147 passed, FP audit 96/96.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments