Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pm-stack/aggregator/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4187,7 +4187,7 @@ export function renderOverviewBody(summary: OverviewSummary): string {
})
.join("")
: `<p class="muted">No quota pools measured yet.</p>`;
const healthStrip = `<div class="card"><span class="dot ${summary.health.down || summary.health.degraded ? "down" : "up"}"></span><strong>${summary.health.up} of ${summary.health.total} services up</strong>${summary.health.down ? ` · ${summary.health.down} down` : ""}${summary.health.degraded ? ` · <span class="badge stale">degraded</span>` : ""}${summary.health.feedAgeMs !== null ? ` · feed ${esc(ageMsText(summary.health.feedAgeMs))} old` : ""} — <a href="/health">health</a></div>`;
const healthStrip = `<div class="card"><span class="dot ${summary.health.down || summary.health.degraded ? "down" : "up"}"></span><strong>${summary.health.up} of ${summary.health.total} services up</strong>${summary.health.down ? ` · ${summary.health.down} down` : ""}${summary.health.degraded ? ` · <span class="badge stale">degraded</span>` : ""}${summary.health.feedAgeMs !== null ? ` · feed ${esc(ageMsText(summary.health.feedAgeMs))}` : ""} — <a href="/health">health</a></div>`;
// #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
Expand Down
12 changes: 6 additions & 6 deletions pm-stack/aggregator/src/watchdog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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.",
Expand All @@ -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.",
Expand Down Expand Up @@ -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.",
Expand Down