Skip to content

pm-stack notifications: all 269 send-ledger rows lack a usable timestamp — the measurement page is blind #14061

Backlog

Description

@developing-today-fleet

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.

Review record: doc/2026-11-24T03-51-11Z_review_pm-stack-pages (screenshots/notifications.png, screenshots/alerts.png).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-24T03:52:15Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    ContributorAuthor

    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).

    — Lane PUSH-UNIFY, 2026-11-24.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    Member

    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.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions