Skip to content

pm-stack notifications Phase 2 step 4: cron narrowing to the daily DO canary (#8569) #13470

Done

Description

@dezren39

Phase 2 step 4 — cron narrowing to the daily DO canary (of #8569)

Parent: #8569. Design of record: doc/2026-11-17_design_pm8569_notifications_phase2.md §5 step 4 + the parent design's §8. Steps 1–3 land first; step 1's deploy leg must be live (heartbeats flowing) before the page checks retire — the DO owns them only once it is actually receiving beats.

Scope

  • The page-health-push cron narrows the day this ships: its page checks retire (the pm-notify DO's alarm owns stack-silence detection) and it becomes a daily canary only — is the DO itself alive, and did it receive yesterday's heartbeats (read GET /status on the relay: lastBeatAt, snapshotSeq, lastDelivery).
  • The schedule change updates doc/fleet-schedule-registry.md in the same pass (repo schedule rule): the registry row(s) for the page-health-push surface change to the daily-canary shape; no schedule is created or retired without its row moving with it.
  • Separately reviewed under this issue (a recorded decision, not a silent default): whether any mirrored class beyond stack.silent ever cuts over to edge sending. The review's outcome is recorded on pm-stack notifications Phase 2: Cloudflare edge relay + Durable Object dead-man's switch — push that survives the stack being down #8569 either way; a "yes" files its own implementation issue — it is not built here.

Acceptance

  • The cron's page checks no longer run; the daily canary runs and reports DO liveness + yesterday's heartbeat receipt.
  • A dead DO (or a day with no heartbeats while the stack was up) makes the canary fail loudly through the existing cron reporting path.
  • doc/fleet-schedule-registry.md matches the live schedule after the change.

Out of scope

  • The cutover build itself, if the review says yes (its own issue).

Filed by lane felix from #8569's step-1 pass, 2026-11-23. Filed without a pilot packet: the shortlist is operator-managed, and chained packets for #8569's steps are cut by the queue operator (same recorded pattern as #13342).

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    Triage verdict — oc-code-01, 2026-11-24 (queue task 22322)

    Fresh check against origin/main:

    No new packet is filed; the existing ordered split on #8569 already carries steps 2–3. Step 4 should be dispatched once steps 2 and 3 merge. No code changed in this pass.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict — code-h, 2026-11-24 (queue task 23144)

    Fresh check at 12:40Z:

    No new packet filed; the ordered split on #8569 already carries steps 2–3. Dispatch step 4 once both merge. No code changed.

  4. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    worker: agent-next-23-local
    lane: agent-next-23-local
    transition: parked — rechecked 2026-11-27

    Fresh prerequisite state: pm-notify is in service at https://pm-notify.developing-today.workers.dev in pm-stack/platform/workers.json. Live GET /status returned up=true, silent=false, lastBeatAt=2026-11-27T00:37:39.671Z, snapshotSeq=8, subscriptions=0, and lastDelivery=null, confirming heartbeat receipt. Steps 2 (#13468 / PR #14636) and 3 (#13469 / PR #15230) are merged.

    Schedule source found: dezren39/hatch-personal main at 04341b503dbd2030e67d9ce9248b9b8fd0554391, workspace/goals/keep-the-four-repos-healthy/crons/minutely/[email protected]. It is enabled, owned by goal:keep-the-four-repos-healthy, and currently runs every 5 minutes in America/Chicago. The code registry has a distinct pm-watchdog-heartbeat-check.timer row from #14388, but still no row for page-health-push.

    Remaining execution gate: this Codex/Fleet session has no Muse cron.update tool or configured scheduler server. The repo copy is a projection; editing it alone would not change the live job. I have not changed the live schedule, repo projection, registry, or Project fields.

    Decision: no mirrored event class beyond stack.silent cuts over to edge sending; the laptop remains sender.

    Resume condition: a cron.update-capable scheduler surface is available to this lane. Then change the live job to the daily DO canary, update its source projection and doc/fleet-schedule-registry.md in the same pass, and verify the canary reads /status and reports stale/missing heartbeats.

  5. added
    status/parked
    queue/parked
    epic/pm-stack
    primary-parent/pm-stack
    stray-work
    on Nov 26, 2026
  6. added
    queue/claimed
    and removed
    queue/claimed
    on Nov 28, 2026
  7. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Lane DRV-C4 claims #13470 (pm-stack notifications Phase 2 step 4). Prerequisite check: steps 2 (#13468 / PR #14636) and 3 (#13469 / PR #15230) are merged and the pm-notify DO is live receiving heartbeats (per the 2026-11-26 recheck on this issue), so step 4 is unblocked. Executing: narrow the page-health-push cron to the daily DO canary, move the fleet-schedule-registry row in the same pass, and record the mirrored-class decision on #8569.

  8. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Step 4 complete — lane DRV-C4, 2026-11-29

    Cron narrowing (live, verified). The page-health-push Muse cron is now the daily pm-notify canary: daily@06:47:00 America/Chicago, owner goal:keep-the-four-repos-healthy, delivering to the main chat. Its page checks and waiting-on-Drew leg are retired; the pm-notify DO alarm owns stack-down detection. Each run reads GET https://pm-notify.developing-today.workers.dev/status and reports DO liveness + heartbeat receipt; a dead DO, silent=true, or a stale/missing lastBeatAt (>2h; the stack beats ~every 60s) fails loudly through the delivery chat.

    • One wrinkle, recorded plainly: the pre-narrowing 5-minute job was absent from the live scheduler (cron.list, disabled jobs included, holds no such job; its state file last records page checks 2026-11-17; the definition file in hatch-personal was a stale projection). The narrowing was therefore landed by re-creating the job via cron.add in canary form (the restore-or-retire the missing decision-system crons: dropped-thread-catcher + pending-questions-hourly #14571 restore pattern). The stale crons/minutely/[email protected] projection in hatch-personal is superseded by crons/daily/page-health-push__daily@06:47:00.md.
    • First run verified: manual fire 2026-11-29 (run e9a57fac-dc0c-4f84-a423-7c858e8ccd4c) finished HEALTHY — HTTP 200, up=true, silent=false, lastBeatAt ~13s old, snapshotSeq 16; the canary state object was written and the legacy state keys verified intact. Next scheduled run: 2026-11-29 06:47 CST.

    Registry (same pass). PR #16671 (merged 2026-11-29T08:40:35Z) adds the missing Surface 1 row for page-health-push in its narrowed form plus a dated amendment note in doc/fleet-schedule-registry.md — the live schedule and the registry now match.

    Cutover review. Recorded on #8569 (comment 7253261061): no mirrored class beyond stack.silent cuts over to edge sending; the laptop remains sender. No implementation issue filed, per this issue's rule for a no.

    All acceptance criteria are met; closing as completed.

  9. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Closed as implemented.

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

    epic/pm-stackprimary-parent/pm-stackqueue/parkedstatus/parkedstray-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions