Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Name Patrol runtime failures in assessment copy
rcourtmanb6e7af1bb565
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex a5b8cd79a1..b95d254c34 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -147,7 +147,10 @@ findings from infrastructure findings. When the only active Patrol findings aresynthetic Patrol service/runtime conditions such as the `ai-service`provider-credit failure, the top assessment should read as a Patrol runtimeissue rather than implying infrastructure issues were detected across the-estate.+estate. When there is exactly one active Patrol runtime finding, that same+assessment copy should name the concrete runtime failure, such as+`Insufficient API credits`, instead of reducing the state to a generic count of+runtime findings.That same runtime-versus-infrastructure distinction should route through theshared finding-presentation helper instead of being re-inferred separately bythe summary card and the findings list. The active finding row should surfacediff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex dee5125455..022ecadf0c 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -943,7 +943,7 @@ describe('AIIntelligence entitlement gating', () => {expect(screen.getByText('Patrol runtime issue')).toBeInTheDocument();expect(screen.getByText(- 'Patrol surfaced 1 active warning finding about its own runtime. Recent coverage is also incomplete, so the rest of your infrastructure is not fully verified.',+ 'Patrol has an active runtime issue: Insufficient API credits. Recent coverage is also incomplete, so the rest of your infrastructure is not fully verified.',),).toBeInTheDocument();});diff --git a/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.tsindex 20ab857b7f..f1c72c1a83 100644--- a/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts@@ -139,7 +139,7 @@ describe('getPatrolSummaryPresentation', () => {).toEqual({title: 'Patrol runtime issue',description:- 'Patrol surfaced 1 active warning finding about its own runtime. Recent coverage is also incomplete, so the rest of your infrastructure is not fully verified.',+ 'Patrol has an active runtime issue: Insufficient API credits. Recent coverage is also incomplete, so the rest of your infrastructure is not fully verified.',eyebrow: 'Patrol assessment',compactLabel: 'Patrol runtime issue',tone: 'warning',diff --git a/frontend-modern/src/utils/patrolSummaryPresentation.ts b/frontend-modern/src/utils/patrolSummaryPresentation.tsindex 7fca07e4a6..2669a26e53 100644--- a/frontend-modern/src/utils/patrolSummaryPresentation.ts+++ b/frontend-modern/src/utils/patrolSummaryPresentation.ts@@ -97,6 +97,16 @@ function formatFindingCount(count: number, severity: 'critical' | 'warning'): streturn `${count} active ${severity} finding${count === 1 ? '' : 's'}`;}+function getRuntimeFindingSummaryLabel(finding: PatrolAssessmentFinding | undefined): string {+ const title = String(finding?.title || '').trim();+ if (!title) {+ return 'a Patrol runtime issue';+ }++ const trimmedTitle = title.replace(/^pulse patrol:\s*/i, '').trim();+ return trimmedTitle || title;+}+function classifyActiveFindings(activeFindings: PatrolAssessmentFinding[] | undefined) {const runtimeCritical = (activeFindings ?? []).filter((finding) =>@@ -151,6 +161,28 @@ function getFindingAssessmentDescription(args: {args.overallHealth?.factors.some((factor) => factor.category === 'coverage'),);const classified = classifyActiveFindings(args.activeFindings);+ const activeRuntimeFindings = (args.activeFindings ?? []).filter(+ (finding) => finding.status === 'active' && isPatrolRuntimeFinding(finding),+ );++ if (classified.infrastructureTotal === 0 && classified.runtimeTotal === 1) {+ const runtimeFinding = activeRuntimeFindings[0];+ const runtimeLabel = getRuntimeFindingSummaryLabel(runtimeFinding);+ const runtimeSummary =+ runtimeFinding?.severity === 'critical'+ ? `Patrol is currently blocked by a critical runtime issue: ${runtimeLabel}.`+ : `Patrol has an active runtime issue: ${runtimeLabel}.`;++ if (hasCoverageGap) {+ return `${runtimeSummary} Recent coverage is also incomplete, so the rest of your infrastructure is not fully verified.`;+ }++ return (+ args.overallHealth?.prediction?.trim() ||+ `${runtimeSummary} Review the Patrol runtime issue for more detail.`+ );+ }+const findingSummaryParts: string[] = [];if (classified.infrastructureCritical > 0) {