GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pm-stack send ledger: stamp sent_at on write and repair legacy rows (slice of #14061) · Issue #14419 · developing-today/code

pm-stack send ledger: stamp sent_at on write and repair legacy rows (slice of #14061) #14419

New issue
Copy link
New issue
Copy link
Done
Done
pm-stack send ledger: stamp sent_at on write and repair legacy rows (slice of #14061)#14419
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/claimedQueue worker lifecycle statestatus/in-progressQueue worker lifecycle statestatus:in-reviewwork/assignedQueue worker lifecycle state

Description

@dezren39
dezren39
opened on Nov 24, 2026
Issue body actions

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

  1. Stamp sent_at explicitly in the writer (ISO-8601 UTC).
  2. Make the reader accept the format the live rows actually carry, or backfill sent_at for recoverable legacy rows.
  3. 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.logSend stamps sent_at explicitly 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

  1. developing-today commented on Nov 24, 2026

    @developing-today
    developing-todayBot
    on Nov 24, 2026 – with developing.today
    Contributor
    More actions

    CODE-5324

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

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    Intake review

    Fleet monitor intake pass (protocol section 5), 2026-11-24.

    • Related: Related: parent pm-stack notifications: all 269 send-ledger rows lack a usable timestamp — the measurement page is blind #14061, tracking Queue reprioritization programme 2026-11-24: full census, reorder, unblock #14158. Root cause is verified on main in the body (AlertsStore.logSend inserts no timestamp).
    • Live check: no merged PR or commit found in the issue's own record that resolves it; the issue stands as filed. (Bounded check - the worker taking this item re-verifies against current main.)
    • Risks: Risk: the legacy-row repair touches 269 ledger rows; keep it a data repair with a count check, not a schema redesign.
    • Suggested approach: Suggested approach: stamp sent_at in the writer first, then a one-off repair for legacy rows, then verify the measurement page reports sends.
    • Labels normalised: kind/enhancement, app/pm-stack, priority/normal, effort/s, status/needs-triage, meta/enriched ; acceptance criteria appended to the body.
  3. developing-today-fleet
    added
    kind/enhancement
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    status/needs-triageNot yet triaged; needs a first look
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 24, 2026
  4. dezren39
    added a commit that references this issue on Nov 24, 2026

    fix(pm-stack): stamp sent_at on send ledger, repair legacy rows, alar…

    965fb75
  5. developing-today
    added
    status:in-review
    on Nov 24, 2026
  6. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

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

  7. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 26, 2026
  8. developing-today-fleet
    added 2 commits that reference this issue on Nov 26, 2026

    Merge main into xaltha/14419-send-ledger-sent-at (merge-watch refresh, …

    e42558d

    Merge pull request #14574 from xaltha/14419-send-ledger-sent-at

    8a47889
  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    Merge-watch complete (queue task 23965, lane VH): PR #14574 MERGED — merge commit 8a47889.

    Premise/ownership: issue open, no live claim, held/user label, or Drew-decision gate found in issue/PR comments; fix not superseded on main (main's logSend still stamped no sent_at; no normalize/repair/alarm present).

    Refresh: branch was 1 ahead / 1657 behind main (cf30ac6). Per-file 3-way merge (base 28b3d0f / main / PR head): alerts.ts, render.ts, test/notifications.test.ts clean; notifications.ts had exactly ONE conflict at sendTimestamp. Resolved as merge commit e42558d (parents: PR head 965fb75 + main cf30ac6), pushed fast-forward to the PR branch: combines #14419 normalization/repair with main's #15090 at-column fallback (precedence sent_at > created_at > at; already-ISO values pass through verbatim so main's tests keep their contract; legacy column-default formats normalized). Diff of refreshed head vs main = only the PR's 4 files.

    Verification on exact head e42558d: GitHub mergeable=true / mergeable_state=clean (three consecutive reads). Tests: fleet Actions exec dispatch is blocked by TLS defect #13185 (UnknownIssuer), so verification ran via the fleet-command workflow in GitHub Actions — run 45845234213 (https://github.com/developing-today/fleet/actions/runs/45845234213), Linux job success: bun install && bun test test/notifications.test.ts = 32 pass, 0 fail, including all four #14419 tests and main's #15090 at-only test. (An earlier run 45843153214 without bun install failed only on the missing web-push package — the same environment failure as the PR's original Nov 24 run 45474489791; no assertion failures.)

    Disposition: the PR body used "Refs #14419" (no closing keyword), so the issue did not auto-close; closing it with this comment since every acceptance criterion is met by the merged fix.

  10. developing-today-fleet
    closed this as completedon Nov 26, 2026
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

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)queue/claimedQueue worker lifecycle statestatus/in-progressQueue worker lifecycle statestatus:in-reviewwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.