From 475e088cb5bc77515b95127a34b464fa050b9e45 Mon Sep 17 00:00:00 2001 From: "developing-today-fleet[bot]" <352462551+developing-today-fleet[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 03:48:20 +0000 Subject: [PATCH] fix(pm-aggregator): stop printing "old old" after ageMsText ages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ageMsText() already returns "2m old" / "1.5h old" / "fresh"; seven call sites appended a second " old" — the Overview health strip ("feed 2m old old", live on the dashboard) and six watchdog alert strings that land in Drew's pushes. Drop the redundant suffix at every site. Found by the 2026-11-23 PM pages review. --- pm-stack/aggregator/src/render.ts | 2 +- pm-stack/aggregator/src/watchdog.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pm-stack/aggregator/src/render.ts b/pm-stack/aggregator/src/render.ts index a55b57a1d8..92ac8d1814 100644 --- a/pm-stack/aggregator/src/render.ts +++ b/pm-stack/aggregator/src/render.ts @@ -4187,7 +4187,7 @@ export function renderOverviewBody(summary: OverviewSummary): string { }) .join("") : `

No quota pools measured yet.

`; - const healthStrip = `
${summary.health.up} of ${summary.health.total} services up${summary.health.down ? ` · ${summary.health.down} down` : ""}${summary.health.degraded ? ` · degraded` : ""}${summary.health.feedAgeMs !== null ? ` · feed ${esc(ageMsText(summary.health.feedAgeMs))} old` : ""} — health
`; + const healthStrip = `
${summary.health.up} of ${summary.health.total} services up${summary.health.down ? ` · ${summary.health.down} down` : ""}${summary.health.degraded ? ` · degraded` : ""}${summary.health.feedAgeMs !== null ? ` · feed ${esc(ageMsText(summary.health.feedAgeMs))}` : ""} — health
`; // #1116 item (5): when the feed itself has crossed the staleness // threshold the dashboard must say so visibly — a "feed X old" suffix // is not an actionable warning. The data-signal hook is what the diff --git a/pm-stack/aggregator/src/watchdog.ts b/pm-stack/aggregator/src/watchdog.ts index c554463c16..423ab32fdb 100644 --- a/pm-stack/aggregator/src/watchdog.ts +++ b/pm-stack/aggregator/src/watchdog.ts @@ -206,9 +206,9 @@ export function watchdogTierItems(inputs: WatchdogInputs): TierItem[] { put( item( "orchestration", - `Watchdog: orchestration section is stale — last run ${orch.ageMs !== undefined ? ageMsText(orch.ageMs) : "over 90m"} old`, + `Watchdog: orchestration section is stale — last run ${orch.ageMs !== undefined ? ageMsText(orch.ageMs) : "over 90m"}`, "watchdog: orchestration stale", - `The orchestration section is ${orch.ageMs !== undefined ? ageMsText(orch.ageMs) : "past 90m"} old — past the 90m stale threshold (#1148 watchdog), so the published tiers are aging in place.`, + `The orchestration section is ${orch.ageMs !== undefined ? ageMsText(orch.ageMs) : "past 90m"} — past the 90m stale threshold (#1148 watchdog), so the published tiers are aging in place.`, (Number.isNaN(generatedMs) ? now : generatedMs) + WATCHDOG_ORCHESTRATION_STALE_MS, now, "Check the hourly orchestration-pass job; the card clears itself when a fresh section publishes.", @@ -292,7 +292,7 @@ export function watchdogTierItems(inputs: WatchdogInputs): TierItem[] { "projects", `Watchdog: Project #4 audit is stale — last snapshot ${ageMsText(ageMs)} ago`, "watchdog: projects stale", - `The Project #4 audit is ${ageMsText(ageMs)} old, past its 24h freshness bound; repository readers may be looking at an outdated board schema or distribution.`, + `The Project #4 audit is ${ageMsText(ageMs)}, past its 24h freshness bound; repository readers may be looking at an outdated board schema or distribution.`, Date.parse(audit.generatedAt) + WATCHDOG_PROJECT_AUDIT_STALE_MS, now, "Check the fleet-feed collector's timer and the Project read; the card clears itself when a fresh audit snapshot publishes.", @@ -318,9 +318,9 @@ export function watchdogTierItems(inputs: WatchdogInputs): TierItem[] { put( item( "registry", - `Watchdog: registry facet is stale — session records ${ageMsText(inputs.registryAgeMs)} old`, + `Watchdog: registry facet is stale — session records ${ageMsText(inputs.registryAgeMs)}`, "watchdog: registry stale", - `The identity registry's merged session records are ${ageMsText(inputs.registryAgeMs)} old — past the 1h registry threshold (#1148 watchdog) — so session identity/coverage data is decaying behind the feed's own 5m alarm.`, + `The identity registry's merged session records are ${ageMsText(inputs.registryAgeMs)} — past the 1h registry threshold (#1148 watchdog) — so session identity/coverage data is decaying behind the feed's own 5m alarm.`, (Number.isNaN(generatedMs) ? now - inputs.registryAgeMs : generatedMs) + WATCHDOG_REGISTRY_STALE_MS, now, "Check the registry inputs (session launch records in the fleet feed); the card clears itself when fresh records merge.", @@ -392,7 +392,7 @@ function deriveHostHealthItems(snapshot: HostHealthSnapshot | null, now: number, "host-health", `Watchdog: host-health snapshot is stale — last collected ${ageMsText(now - generatedMs)} ago`, "watchdog: host health stale", - `The host-health collector (#10141) runs every 5 min; its snapshot is ${ageMsText(now - generatedMs)} old, past the 15 min bound (3 missed cycles), so every host-health verdict below may itself be out of date.`, + `The host-health collector (#10141) runs every 5 min; its snapshot is ${ageMsText(now - generatedMs)}, past the 15 min bound (3 missed cycles), so every host-health verdict below may itself be out of date.`, generatedMs + HOST_HEALTH_STALE_MS, now, "Check the pm-host-health user timer on the laptop; the card clears itself when the collector runs again.",