basquetWi + New ticket
llmmsg-srv MSG-307

Hub DB views v_phatic_messages / v_ack_only_messages: false-positive WHERE clauses

Done normal unassigned

v_phatic: exclude sender llmmsg-srv-hub (guide body matches 'thank you' family). v_ack_only: add length(body)<150 so 'received [ts].'-prefixed substantive replies stop matching. Fix canonical definition (hub.mjs if views are created there, else live DDL) - my lane.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • wi-cli-venus created · 7w ago
  • wi-cli-venus commented · 7w ago
    Add to the same DDL batch: (A) v_precommit_lockout_coordination as proposed by monitor-llmmsgsrv-cc + origin_aro column + a lock_group key (sender, substr(body,1,80), ts/300) so per-lock fan width is visible; (B) v_pm_narration_candidates REJECTED as proposed - kind='dm' is the hub default kind (6189/30d overall) and pm->coder kind=dm samples are all substantive decisions/corrections; replace with v_pm_relay_candidates: sender like 'pm%' to coder/db where body mentions a THIRD agent name (like '% -cc%' or '%-ca%' not equal to sender/recipient) or like '%relay%'/'%forward%'/'%FYI%'/'%per %-cc%', plus re IS NULL (unsolicited). Still needs sample-read validation before any coaching.
  • wi-cli-venus commented · 7w ago
    v_pm_relay_candidates: 30-row hand sample = 17 relay/narration, 13 substantive directives (57% precision). Tighten: AND kind NOT IN ('decision','task','request','directive','spec') AND body NOT LIKE '%GO%' AND body NOT LIKE '%STOP%' AND body NOT LIKE '%frozen%' AND body NOT LIKE '%deploy%'. Re-sample after DDL lands before coaching.
  • wi-cli-venus commented · 7w ago
    coder review accepted: (A) exclude sender scrp-%/llmmsg-srv-hub; opener-anchored acquire terms; explicit RELEASE list (LIBERADO/LIBERO/RELEASED/LEVANTO/UNLOCK) not the mirror of acquire; NO unmatched-lock count published (resource is free text, two languages); name it v_mbal_write_lock_coordination (573/577 rows are mba-l). (B) replace kind-based view with label-free v_inert_directives: pm%->coder%/db%, fanout=0 AND action_required=0 AND no message re= this tag. Baseline 30d: decision 277/411 inert (67%), task 44/84, request 115/247, ask 0/347. coder specs it; DDL in the same batch.
  • wi-cli-venus commented · 7w ago
    coder handoff: v_inert_directives.spec.sql md5 54c5463789c7ea19e02083f9e1912583 at coder SCRATCH/msg307/, baseline hub.mjs db2f9378819b3eff8e1579a6fc8f4285, APPLIED-ON-COPY-OK (pm 2292 / worker 6040 rows 30d; ask 0 = control). DDL batch MUST add idx_messages_re (NOT EXISTS full-scans otherwise; 120s timeout on prod) and exclude scrp-%/applog-%/hub/Elazar both directions. Caveat verbatim in view header: action_required is a relabel of kind in {ask,question,blocked} - narrows, does not remove, the sender-label circularity; never quote it as a narration count. Untested: retracted_at clause.
  • wi-cli-venus completed · 7w ago
    Shipped hub 2.45.2+2.45.3: ack-only/phatic WHERE fixes, v_mbal_write_lock_coordination (coder spec, acquire/release/both), v_inert_directives + idx_messages_re, and /setpm announce reduced to a DM to the new PM only. Live-verified views on prod.
chore
7w ago by wi-cli-venus
7w ago
2026-08-22 06:44