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
{{ message }}
Repository navigation
pm-stack notifications: all 269 send-ledger rows lack a usable timestamp — the measurement page is blind #14061
Finding (PM pages review, 2026-11-23): the Notifications measurement page is blind — every send-ledger row is excluded, so it reports "no sends" while the alert throat demonstrably sends.
Live evidence from /notifications (2026-11-24T03:34Z): "No sends in the rolling four-week window" directly above "269 ledger row(s) carried no usable send timestamp and were excluded from the roll-up." 269 is the whole ledger — the sent-vs-acted-on instrument (#3319) has never measured anything, and its default-off proposals ("no class is under the 10% threshold") are computed over an empty set. Meanwhile /alerts shows live incidents and pushes do reach Drew's phone.
Ask: find why alerts.notification_sends rows carry no usable send timestamp (writer not stamping, or the reader parsing a different field/format), backfill or repair what's recoverable, and make the page alarm — not calmly report emptiness — when the exclusion count equals the row count.
Coordination pointer — #14084 (PM push unification) subsumes this issue's alarm ask for the unified ledger; the legacy-ledger repair stays here.
Root-cause shape confirmed in code during the unification lane's premise check (2026-11-23): AlertsStore.logSend (pm-stack/aggregator/src/alerts.ts) inserts (class, object_ref, incident_id, outcome) — no timestamp column is named. The code comment states the assumption: "the send time is the row's defaulted created_at; sent_at is read first when a row carries one." The roll-up (sendTimestamp in src/notifications.ts) reads sent_at ?? created_at and excludes what it cannot parse — live, that's 269/269 rows. So the writer relies on a column default in the SQL-translated Turso store, and whatever the live rows carry defeats the parser.
In the #14084 design, the unified sends ledger makes this class of failure impossible by construction: sent_at is stamped by the writer (ISO-8601 UTC, schema-required, never a column default), and any undated row is a paging data defect (the alarm this issue asks for, designed-in). This issue remains the vehicle for the legacy ledger: find the exact format the live rows carry, backfill/repair what's recoverable, and alarm on the legacy page until cutover (slice S5 of #14084 reads its closure evidence from here).
Triage (oc-code-01, 2026-11-24): confirmed against the issue's live evidence (269 of 269 send-ledger rows excluded for no usable timestamp, so the roll-up reports no sends). The fix is in the pm-stack ledger write path (timestamp format or the reader) plus a check on the existing rows, which needs a pm-stack build and a read of the live ledger. This lane cannot run either. Left open for an implementation session.
Triage verdict (code-f, 2026-11-24, fresh read of main): still open and valid in substance. Root cause in code: AlertsStore.logSend (pm-stack/aggregator/src/alerts.ts:653) inserts (class, object_ref, incident_id, outcome) with no timestamp, so the send time is the column default created_at. The roll-up sendTimestamp (pm-stack/aggregator/src/notifications.ts:728) reads sent_at ?? created_at, and the live 269/269 exclusion means the stored default does not parse. Sizing: one scoped implementation packet (writer stamping or reader format fix, legacy backfill check, alarm when excluded == total), needing a pm-stack build and a live ledger read, so it belongs to a lane that can run those. Follow-on packet is to be enqueued from that lane. Tracking: #14158.
Activity
developing-today commentedon Nov 24, 2026
CODE-5166
developing-today-fleet commentedon Nov 24, 2026
Coordination pointer — #14084 (PM push unification) subsumes this issue's alarm ask for the unified ledger; the legacy-ledger repair stays here.
Root-cause shape confirmed in code during the unification lane's premise check (2026-11-23):
AlertsStore.logSend(pm-stack/aggregator/src/alerts.ts) inserts(class, object_ref, incident_id, outcome)— no timestamp column is named. The code comment states the assumption: "the send time is the row's defaulted created_at; sent_at is read first when a row carries one." The roll-up (sendTimestampinsrc/notifications.ts) readssent_at ?? created_atand excludes what it cannot parse — live, that's 269/269 rows. So the writer relies on a column default in the SQL-translated Turso store, and whatever the live rows carry defeats the parser.In the #14084 design, the unified sends ledger makes this class of failure impossible by construction:
sent_atis stamped by the writer (ISO-8601 UTC, schema-required, never a column default), and any undated row is a paging data defect (the alarm this issue asks for, designed-in). This issue remains the vehicle for the legacy ledger: find the exact format the live rows carry, backfill/repair what's recoverable, and alarm on the legacy page until cutover (slice S5 of #14084 reads its closure evidence from here).— Lane PUSH-UNIFY, 2026-11-24.
dezren39 commentedon Nov 24, 2026
Triage (oc-code-01, 2026-11-24): confirmed against the issue's live evidence (269 of 269 send-ledger rows excluded for no usable timestamp, so the roll-up reports no sends). The fix is in the pm-stack ledger write path (timestamp format or the reader) plus a check on the existing rows, which needs a pm-stack build and a read of the live ledger. This lane cannot run either. Left open for an implementation session.
dezren39 commentedon Nov 24, 2026
Triage verdict (code-f, 2026-11-24, fresh read of main): still open and valid in substance. Root cause in code:
AlertsStore.logSend(pm-stack/aggregator/src/alerts.ts:653) inserts(class, object_ref, incident_id, outcome)with no timestamp, so the send time is the column defaultcreated_at. The roll-upsendTimestamp(pm-stack/aggregator/src/notifications.ts:728) readssent_at ?? created_at, and the live 269/269 exclusion means the stored default does not parse. Sizing: one scoped implementation packet (writer stamping or reader format fix, legacy backfill check, alarm when excluded == total), needing a pm-stack build and a live ledger read, so it belongs to a lane that can run those. Follow-on packet is to be enqueued from that lane. Tracking: #14158.