Repository navigation
Description
Refs #14061
Parent tracking: #14158
Scope
Legacy send-ledger repair for pm-stack notifications: all 269 rows in the AlertsStore ledger are excluded by sendTimestamp (pm-stack/aggregator/src/notifications.ts), so the measurement page reports no sends.
Root cause (verified on main)
AlertsStore.logSend (pm-stack/aggregator/src/alerts.ts) inserts (class, object_ref, incident_id, outcome) with no timestamp; the send time falls back to the created_at column default, which does not parse.
Work
- Stamp
sent_atexplicitly in the writer (ISO-8601 UTC). - Make the reader accept the format the live rows actually carry, or backfill
sent_atfor recoverable legacy rows. - Alarm when excluded rows equal total rows.
Done check
A test that writes a send through logSend and reads it back through sendTimestamp, plus a test that an undated row triggers the alarm.
Owned paths: pm-stack/aggregator/src/alerts.ts, pm-stack/aggregator/src/notifications.ts, and their tests.
Coordinate with #14084 (PM push unification), which owns the unified ledger.
{
"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-24T14:32:00Z",
"session_id": "ses_e5df224b130ffeIqO7mTfWJNik",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/code",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/code",
"repo": "developing-today/code",
"branch": "main",
"sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
},
"auth_subject": "oc-code-08",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
-
AlertsStore.logSendstampssent_atexplicitly in ISO-8601 UTC on every new ledger row. - The reader accepts the stamped format, and the measurement page reports sends for rows written after the change.
- Legacy rows (the 269 rows named in the scope) are repaired or explicitly excluded with the reason recorded.
- Tests cover the writer stamping and the reader parsing, and the pm-stack suite stays green.
Activity
developing-today commentedon Nov 24, 2026
CODE-5324
developing-today-fleet commentedon Nov 24, 2026
Intake review
Fleet monitor intake pass (protocol section 5), 2026-11-24.
fix(pm-stack): stamp sent_at on send ledger, repair legacy rows, alar…
dezren39 commentedon Nov 24, 2026
Progress (xaltha lane, 2026-11-24): PR #14574 open — #14574
Slice landed: logSend stamps sent_at (ISO-8601 UTC) on every row; reader normalizes the legacy column-default timestamp format and repairLegacySendRow backfills sent_at for recoverable legacy rows (unrecoverable rows stay excluded, counted as undated, reason shown on the notifications page); roll-up gains total + alarm (excluded == total) and the page renders an ALARM banner in that case. Tests cover the logSend→sendTimestamp round-trip, legacy normalization/backfill, and the all-undated alarm.
Verification: remote only — fleet queue dispatch is blocked by TLS defect #13185, so the fleet-command workflow fallback is running
bun test test/notifications.test.tson branch xaltha/14419-send-ledger-sent-at: https://github.com/developing-today/fleet/actions/runs/45474489791 (in progress at note time; result will be followed up here).