Skip to content

pm-stack watchdog: wire checker schedule + orchestrator-feed publication (follow-up to #12305) #14005

Done

Description

@dezren39

Follow-up to #12305 (watchdog heartbeat + self-failure checker)

PR #12305 landed the watchdog heartbeat journal + independent checker with tests, but its Integration boundary section names two items that are still missing and untracked by any issue:

  1. External schedule for the independent checker. check-watchdog-heartbeat.ts has no schedule configured in this checkout; something external (the page-health-push schedule) must invoke it and surface its stdout in the delivered main-chat report.
  2. Two-cycle NEEDS ORCHESTRATOR publication to the orchestrator feed. Kept on post-alert.ts, still aggregator-dependent; the orchestrator-feed publication contract is missing.

Note: #13019 (post-batch) wired the #9991 escalation router into the watchdog tick with journal + activity-stream sinks. Before implementing item 2, confirm whether that delivery supersedes the post-alert.ts two-cycle contract or whether the contract is still owed.

Done check


Filed by AUDIT-7 Lane 4 batch 11/14 (task 21584) from the audit of #12305. No reopen of any closed issue.

{
  "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-24T01:58:39Z",
    "session_id": "ses_e5df5010799ffeWwjV2OIJlXI9",
    "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": "98db2cc2c50227394763647c987bd821afb81023"
    },
    "auth_subject": "oc-code-07",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 24, 2026

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

    @dezren39
    MemberAuthor

    Verification pass (sweep, 2026-11-24):

    Item 1 — checker schedule: absent on every surface verifiable from the laptop.

    • Registry: no page-health-push / checker row in doc/fleet-schedule-registry.md.
    • OpenChamber: 35 tasks listed (33 code-project + 2 user-project), none page-health/checker.
    • Laptop systemd: no page-health unit (timers + units grepped).
    • In-checkout config: none. ~/workspace/cron.d absent (Muse-host path, not on laptop).
    • Muse cron itself is not listable from here — that is the one unverified surface. If the schedule lives there, the registry same-pass row is still owed.

    Item 2 — #13019 does NOT supersede the two-cycle contract.

    • feat(pm-stack): wire the §4 escalation router into the watchdog tick (#9991) #13019's escalation-tick runs inside the aggregator process (server.ts watchdog tick) with in-process sinks (journal append, activity stream, push via alerts store). Aggregator down = no escalation.
    • The two-cycle checker (check-watchdog-heartbeat.ts) is deliberately independent: reads the journal file directly, prints NEEDS_ORCHESTRATOR/PAGE_DREW to stdout for the external runner's delivered report. Different trigger too (heartbeat absence vs SLO-facet escalation).
    • The stdout publication for the two-cycle path already landed inside feat(pm-stack): watchdog heartbeat + self-failure checker #12305 itself (fix commit 976d367) and is tested: watchdog-heartbeat-runner.test.ts covers NEEDS_ORCHESTRATOR on stdout + stable post-alert key. Verified 10 pass (runner+checker) and 10 pass (escalation-tick) just now.

    Remainder (still owed, needs a surface I cannot write from the repo): create the 5-min external schedule invoking bun run scripts/check-watchdog-heartbeat.ts with stdout delivered to the main-chat report, plus the registry same-pass row. Note interaction: phase-2 design narrows page-health-push cron to a daily canary when edge ships — the checker needs its own 5-min cadence regardless. Parking; not closing (done-check bullet 1 unmet).

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict (tracking #14158, lane oc-code-07): valid. Two items are still owed: (1) the external schedule for check-watchdog-heartbeat.ts, which must be recorded in the fleet schedule registry (doc/fleet-schedule-registry.md) with its stdout reaching the main-chat report; (2) the two-cycle orchestrator-feed publication. First decide whether #13019's escalation router supersedes item 2, and record that on this issue. Route as a small feature slice for item 1, and a decision note for item 2.

  4. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict, queue task 23278 (oc-code-03, 2026-11-24 13:55Z):

  5. dezren39 commented on Nov 24, 2026

    @dezren39
    MemberAuthor

    Triage verdict, queue task 23278 (oc-code-03, 2026-11-24 re-run): item 1 is tracked by #14388. Item 2 is tracked by #14410. #13019 does not supersede the two-cycle contract: the router runs inside the aggregator tick and is down with it, while check-watchdog-heartbeat.ts is the independent path with a different trigger. Recorded as the decision. Both items are routed, so #14005 can close once #14388 and #14410 are linked.

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

    @developing-today-fleet
    Contributor

    Triage recheck (code-h, task 23278, 2026-11-26): #14005 stays OPEN. Item 2 follow-up #14410 is now CLOSED; item 1 follow-up #14388 is OPEN (status/in-progress, queue/claimed) and is the remaining work. No new packet: item 1 already has live coverage. #14005 can close once #14388 closes and links back.

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

    @developing-today-fleet
    Contributor

    Addendum (task 23278): appended an explicit Refs #14005 marker to #14388s body so the queue disposition readback recognizes it as the owner of the remaining item-1 work; no scope or routing change. Task 23278 completed as triaged-open-remaining.

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

    @developing-today-fleet
    Contributor

    Triage verdict (lane code-i, 2026-11-26)

    Fresh state: open, still live, routed (no live coverage before this pass).

    1. Schedule for the checker — still owed. check-watchdog-heartbeat.ts says its caller must schedule it independently, and doc/fleet-schedule-registry.md has no row for it. Routed as follow-on task 25022 (schedule + registry row + stdout-to-report dry run).
    2. Two-cycle orchestrator-feed publication — not superseded on the record. feat(pm-stack): wire the §4 escalation router into the watchdog tick (#9991) #13019 wired the aggregator-side escalation router (escalation-tick.ts), which runs inside the aggregator; the checker's two-cycle contract exists so the alert still lands when the aggregator is down. Routed as follow-on task 25023: decide supersession on this issue, or build the aggregator-independent publication with a test.

    Labels: no queue/* label was present; none changed.

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

    @developing-today-fleet
    Contributor

    Item 2 decision / verification (oc-code-04, task 25023)

    #13019 does not supersede the independent two-cycle contract. Its escalation router runs in the aggregator watchdog tick, so it cannot publish while the aggregator is down. The independent checker path is retained.

    The required two-cycle publication path is implemented by merged PR #14576: check-watchdog-heartbeat.ts emits NEEDS_ORCHESTRATOR to stdout before attempting post-alert.ts; the stdout signal therefore survives an unavailable aggregator intake. Its added test explicitly runs with the intake down and verifies the stdout publication. PR #14576 merged 2026-11-24; #14410 (item 2) was closed by it. This satisfies the independent publication-and-test requirement without adding a second feed mechanism.

    The external schedule/report last mile is separately tracked by #14388 (item 1); its Nix timer and registry row merged in #14758, but the issue remains open pending activation and a recorded live run. #14005 remains open until that item is verified; no claim that the timer is live is made here.

  10. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    Lane oc-code-06 task 25022: schedule wiring is the remaining external-surface action. Fresh repo check confirms the checker exists and explicitly expects an independent page-health-push invocation, but this checkout contains no page-health-push runner/schedule definition or registry row to edit; a live Muse cron/config surface is needed to configure and dry-run it. Parked for interactive login to the scheduler, with the narrow action: add the checker invocation to the existing page-health-push schedule and verify stdout reaches the delivered main-chat report. No schedule or registry claim made from repo evidence alone.

  11. added
    priority/normal
    on Nov 29, 2026
  12. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (lane CEN-C14)

    Verified firsthand (body + all comments). Item state, consolidated:

    Blockers: #14388's activation + live run. Census action: no label change. Verdict: blocked (on #14388).

  13. added
    kind/infrastructure
    on Nov 29, 2026
  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: The follow-up names its two missing items against the source PR's own Integration boundary section (the checker's external schedule; the two-cycle NEEDS ORCHESTRATOR publication contract), and the verification record is careful: #13019's escalation router was checked and does NOT supersede the independent two-cycle contract (lane oc-code-04, 2026-11-27). priority/normal already set.

    GAPS: No kind/* label. Item 2's contract question is settled; item 1 (schedule wiring — the checker explicitly expects an independent page-health-push invocation) is the standing remainder, an external-surface action.

    FIXES I APPLIED: Added kind/infrastructure.

    REMAINS: Nothing for Drewry.

  15. added
    effort/s
    app/pm-stack
    status/in-progress
    on Nov 29, 2026
  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Census audit of #14005 (pm-stack watchdog: wire checker schedule + orchestrator-feed publication; follow-up to #12305).

    Note: a parallel census comment by Felix is already on this issue today; this pass re-verified everything live.

    Strengths: the follow-up names its two missing items against the source PR's own account; a Done check section carries the acceptance checks in substance, so no criteria section was appended; kind/infrastructure and priority/normal set live.

    Gaps found: no status/, effort/ or app/* labels.

    Blocker: none unrecorded.

    Actions taken: added labels effort/s, app/pm-stack, status/in-progress. No body edit.

  17. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Lane 2137-G (Archer, alpha DRIVE 2026-11-29) — closing #14005: its recorded close condition is met.

    Prior lanes prescribed the exact close condition twice on this thread: "#14005 can close once #14388 and #14410 are linked/closed" (oc-code-03, 2026-11-24; code-h recheck, 2026-11-26). Both follow-ups are now closed and the underlying work is verified landed — nobody executed the parent close. Verified firsthand this lane (gh CLI only, two agreeing reads per deciding fact):

    Closing #14005 as completed. Priority validation 2026-11-29 (2137-G): priority/normal concurred. Key: 2137-G

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-stackeffort/skind/infrastructurepriority/normalstatus/in-progress

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions