GeezerVison is showing github.com — pm-stack watchdog: wire checker schedule + orchestrator-feed publication (follow-up to #12305) · Issue #14005 · developing-today/code
pm-stack watchdog: wire checker schedule + orchestrator-feed publication (follow-up to #12305) #14005DescriptionFollow-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:
- 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.
- 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)"
}
}
Activitydeveloping-today commented on Nov 24, 2026 dezren39 commented on Nov 24, 2026 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). dezren39 commented on Nov 24, 2026 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. dezren39 commented on Nov 24, 2026 Triage verdict, queue task 23278 (oc-code-03, 2026-11-24 13:55Z):
dezren39 commented on Nov 24, 2026 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. developing-today-fleet commented on Nov 26, 2026
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. developing-today-fleet commented on Nov 26, 2026 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. developing-today-fleet commented on Nov 26, 2026 Triage verdict (lane code-i, 2026-11-26)
Fresh state: open, still live, routed (no live coverage before this pass).
- 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).
- 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. developing-today-fleet commented on Nov 27, 2026
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. developing-today-fleet commented on Nov 27, 2026
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.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|