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
Sanitize Patrol runtime failures in history
rcourtmanfc10de9b5477
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex d0af5af05b..25beb83d51 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -7387,21 +7387,7 @@]}],- "work_claims": [- {- "id": "codex-candidate-lane-availability-as-resource-facet",- "agent_id": "codex",- "summary": "Attach agentless availability checks as a facet on the known resource they monitor (explicit link + unique address correlation + network-endpoint fallback) and surface the facet on the platform resource row per the bounded-row contract.",- "target_id": "v6-product-lane-expansion",- "claimed_at": "2026-06-26T10:12:44Z",- "heartbeat_at": "2026-06-26T10:12:44Z",- "expires_at": "2026-06-26T14:12:44Z",- "work_item": {- "kind": "candidate-lane",- "id": "availability-as-resource-facet"- }- }- ],+ "work_claims": [],"open_decisions": [],"source_of_truth_file": "docs/release-control/v6/internal/SOURCE_OF_TRUTH.md","resolved_decisions": [diff --git a/frontend-modern/src/utils/__tests__/patrolFormat.test.ts b/frontend-modern/src/utils/__tests__/patrolFormat.test.tsindex 434ec9bf1b..104004561b 100644--- a/frontend-modern/src/utils/__tests__/patrolFormat.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolFormat.test.ts@@ -221,6 +221,22 @@ describe('patrolFormat', () => {);});+ it('classifies wrapped provider stream stalls without leaking runtime internals', () => {+ const summary = formatPatrolRuntimeFailureSummary({+ errorSummary: 'Provider analysis error',+ errorDetail:+ 'agentic patrol failed: provider error: stream read error: stream chunk timed out after 12s',+ errorCount: 1,+ });++ expect(summary).toBe(+ 'Provider connection failed. Check provider reachability before retrying Patrol.',+ );+ expect(summary).not.toContain('agentic patrol');+ expect(summary).not.toContain('stream read error');+ expect(summary).not.toContain('stream chunk');+ });+it('redacts unknown provider details defensively', () => {const detail = formatPatrolRuntimeFailureDetail('provider returned Authorization: Bearer sk-live-secret and url https://example.invalid/path?token=abc for user_abc123',diff --git a/frontend-modern/src/utils/__tests__/patrolRunPresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolRunPresentation.test.tsindex b7f3c6b203..6d3cc7a435 100644--- a/frontend-modern/src/utils/__tests__/patrolRunPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolRunPresentation.test.ts@@ -200,6 +200,29 @@ describe('patrolRunPresentation', () => {'Checked 1 of 2 scoped resources in 453ms. Runtime issue: Selected model does not support Patrol tools: Provider rejected Patrol tool calls. Choose a Patrol model and endpoint with tool-call support.',});+ expect(+ getPatrolRunOperatorRecordPresentation({+ auto_fix_count: 0,+ duration_ms: 120_000,+ effective_scope_resource_ids: [],+ error_count: 1,+ error_detail:+ 'agentic patrol failed: provider error: stream read error: stream chunk timed out after 12s',+ error_summary: 'Provider analysis error',+ existing_findings: 0,+ finding_ids: ['runtime-provider'],+ new_findings: 0,+ resources_checked: 66,+ resolved_findings: 0,+ scope_resource_ids: [],+ status: 'error',+ }),+ ).toEqual({+ headline: 'Patrol needs attention',+ detail:+ 'Checked 66 resources in 2m. Runtime issue: Provider connection failed. Check provider reachability before retrying Patrol.',+ });+expect(getPatrolRunOperatorRecordPresentation({auto_fix_count: 0,diff --git a/frontend-modern/src/utils/patrolFormat.ts b/frontend-modern/src/utils/patrolFormat.tsindex cf65cafdbf..e8c08faef7 100644--- a/frontend-modern/src/utils/patrolFormat.ts+++ b/frontend-modern/src/utils/patrolFormat.ts@@ -135,12 +135,23 @@ export function formatPatrolRuntimeFailureDetail(text: string | undefined): strilower.includes('connection refused') ||lower.includes('no such host') ||lower.includes('i/o timeout') ||+ lower.includes('timed out') ||lower.includes('context deadline exceeded') ||+ lower.includes('stream read error') ||+ lower.includes('stream chunk') ||lower.includes('timeout') ||lower.includes('returned status 5')) {return 'Provider connection failed. Check provider reachability before retrying Patrol.';}+ if (+ lower === 'provider analysis error' ||+ lower === 'agentic patrol failed' ||+ lower.startsWith('provider analysis error: agentic patrol failed') ||+ lower.startsWith('agentic patrol failed: provider error')+ ) {+ return 'Provider analysis failed. Check Provider & Models before retrying Patrol.';+ }return raw.replace(/https?:\/\/[^\s"')]+/gi, '[redacted-url]')@@ -162,6 +173,12 @@ export function formatPatrolRuntimeFailureSummary(input: {const summary = formatPatrolRuntimeFailureDetail(input.errorSummary);const detail = formatPatrolRuntimeFailureDetail(input.errorDetail);if (summary && detail && summary !== detail) {+ if (+ summary.toLowerCase().startsWith('provider analysis failed') &&+ detail.toLowerCase().startsWith('provider ')+ ) {+ return detail;+ }if (summary.toLowerCase() === 'provider connection issue' &&detail.toLowerCase().startsWith('provider connection failed')