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
Rename graph summary to correlation summary
rcourtmane60f0358fac5
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 29eace3604..07af1e6a64 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -164,9 +164,9 @@ lifecycle-adjacent detail surfaces can distinguish Docker, Proxmox, TrueNAS,and ops-helper provenance without re-inferencing the integration mix in thebrowser.Timeline entries surfaced through that same boundary also preserve-`relatedResources` graph context for non-relationship changes, so adjacent+`relatedResources` correlation context for non-relationship changes, so adjacentfleet and install surfaces can link the affected neighbors without trying to-reconstruct graph context from the raw resource payload alone.+reconstruct correlation context from the raw resource payload alone.That same shared `internal/api/` boundary now also assumes tenant AI servicesstay on canonical Patrol runtime wiring: adjacent fleet and install surfacesmust not revive tenant snapshot-provider bridges through shared AI handlerdiff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 89584f70c7..dfd32b458b 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -289,7 +289,7 @@ The Patrol intelligence page now also fetches the learned correlation listfrom the canonical AI correlations endpoint, so the global AI surface and theresource drawer both expose the same learned edge evidence instead of onlyshowing a correlation count. The same page and drawer now render that list-through the shared `frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx`+through the shared `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`card, so the learned-correlation layout and edge wording stay aligned acrossboth surfaces. That shared card also owns the correlation ordering andtruncation rule, so callers pass raw learned edges instead of page-specific@@ -332,8 +332,8 @@ The resource-intelligence payload used by the resource drawer also carriesthe same canonical policy posture snapshot, so the detail surface can showgoverned posture context without inventing a second posture contract.That same resource-intelligence payload also carries dependency and-dependent graph context from unified-resource correlations, so the drawer-can show canonical graph relationships without reconstructing them from the+dependent correlation context from unified-resource correlations, so the drawer+can show canonical correlation relationships without reconstructing them from therelationship timeline alone.The shared AI resource and infrastructure prompt contexts should also surfacethe same canonical recent changes section before any patrol-local fallback sodiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 807a621587..4e35804928 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -85,9 +85,9 @@ Own canonical runtime payload shapes between backend and frontend.and the learned-correlation payload loaded into the shared AI intelligence store, so the Patrol intelligence page and the AI summary page consume the same governed correlation slice instead of each page fetching its own copyand the shared dashboard-load bundle inside `frontend-modern/src/stores/aiIntelligence.ts`, so the page orchestration stays on the store-owned bundle instead of enumerating the AI fetches inlineand the shared `frontend-modern/src/components/Infrastructure/ResourcePolicySummary.tsx` card, so the AI summary page and resource drawer render the same governed policy-posture counts instead of carrying duplicate posture UI loops- and the shared `frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx` card, so learned correlations and graph context stay rendered through one governed frontend card instead of separate page-local list loops- and the same shared graph card's ordering and truncation rule, so callers pass raw correlations instead of encoding their own top-N sort behavior- and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` and `frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx` cards' infrastructure resource-link default, so the Patrol page, resource drawer, and problem-resource dashboard panels inherit the canonical resource-filter path construction instead of rebuilding infrastructure URLs inline+ and the shared `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx` card, so learned correlations and correlation context stay rendered through one governed frontend card instead of separate page-local list loops+ and the same shared correlation card's ordering and truncation rule, so callers pass raw correlations instead of encoding their own top-N sort behavior+ and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` and `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx` cards' infrastructure resource-link default, so the Patrol page, resource drawer, and problem-resource dashboard panels inherit the canonical resource-filter path construction instead of rebuilding infrastructure URLs inline8. Route frontend API-client parsed error propagation, API-error-status fallback handling, allowed-status handling, custom status-specific error handling, command-trigger success envelope handling, shared response parsing pipelines, missing-resource lookup handling, metadata CRUD routing, stream event consumption, response status, collection normalization, scalar payload coercion, and structured error normalization through canonical shared helpers under `frontend-modern/src/api/`9. Add or change API token scope, assignment, and revocation presentation through `frontend-modern/src/components/Settings/APITokenManager.tsx`10. Add or change infrastructure operations token generation, lookup, assignment, and reporting/install presentation through `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx`@@ -159,10 +159,10 @@ The same facet bundle contract now also returns grouped`recentChangeSourceAdapters` counts by canonical source adapter, so theshared drawer and summary chips can distinguish Docker, Proxmox, TrueNAS, andops-helper provenance without inventing frontend-local integration heuristics.-Canonical timeline entries now also preserve graph context in+Canonical timeline entries now also preserve correlation context in`relatedResources`, so the history surface can explain which neighboringresources moved with restart, anomaly, config, state transition, and-relationship changes instead of only exposing graph endpoints when the edge+relationship changes instead of only exposing correlation endpoints when the edgeitself changed.Restart timeline entries are also a first-class contract now: `restart` changekinds can serialize Docker and Kubernetes restart metadata instead of being@@ -195,14 +195,14 @@ client in `frontend-modern/src/api/resources.ts`, which fetches the governedcapability, relationship, and timeline surfaces from `internal/api/resources.go`instead of teaching the drawer or list views to reconstruct them inline.The same AI resource-intelligence payload now also carries dependency and-dependent graph arrays plus correlation evidence, so the drawer can render-canonical graph context from the shared AI contract instead of inferring it+dependent correlation arrays plus correlation evidence, so the drawer can render+canonical correlation context from the shared AI contract instead of inferring itfrom the relationship facet payload alone.The same AI frontend client now also loads `/api/ai/intelligence/correlations`through the shared `frontend-modern/src/stores/aiIntelligence.ts` store forthe Patrol intelligence page and the AI summary page, so thelearned-correlation list is governed by the same API contract that backs the-resource drawer's graph evidence instead of being fetched as page-local state.+resource drawer's correlation evidence instead of being fetched as page-local state.That correlations route now reads through the canonical AI intelligencefacade first, so the handler and its payload keep the detector behind oneshared access layer instead of routing directly to Patrol-local correlationdiff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex ec97e80d9b..338bc53f1a 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -123,15 +123,15 @@ The resource drawer now carries the same canonical posture snapshot throughthe resource-intelligence payload, so the resource-level AI card can show theorg posture context without introducing a separate posture endpoint.That same resource-intelligence payload also carries canonical dependency and-dependent graph context plus canonical correlation evidence, so the resource+dependent correlation context plus canonical correlation evidence, so the resourcedrawer can surface relationship reachability and learned edge patterns-directly from the AI contract instead of inventing a second graph summary.+directly from the AI contract instead of inventing a second correlation summary.The Patrol intelligence page now also consumes the learned correlation listfrom the canonical AI correlations endpoint through the shared`frontend-modern/src/stores/aiIntelligence.ts` store, so the global summaryand the resource drawer both reflect the same learned edge evidence insteadof each page fetching its own copy. Both surfaces now render that evidence-through the shared `frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx`+through the shared `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`card, so the correlation layout stays governed by one component instead oftwo page-local card implementations. That shared card also owns thecorrelation ordering and truncation rule, so the page and drawer hand it raw@@ -146,7 +146,7 @@ repeating the individual summary, findings, approval, and correlation fetchesinline.The shared`frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` and-`frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx`+`frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`cards now own the canonical Infrastructure resource-link default, so thePatrol page and resource drawer inherit resource-filter href constructionthrough the shared summary cards instead of rebuilding local wrappers in eachdiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 7f02ec71c7..9554be938e 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -138,9 +138,9 @@ rendered inline by the drawer.That same helper also owns the drawer's `Cloud Summary` and `Raw Signals`routing rows, so the detail view no longer reconstructs the row structure ordecision labels locally.-The backend AI and Patrol graph context renderers now derive their canonical+The backend AI and Patrol correlation context renderers now derive their canonicalrelationship labels, direction, provenance, freshness, and metadata flags-from `internal/unifiedresources/relationship_presentation.go`, so the graph+from `internal/unifiedresources/relationship_presentation.go`, so the correlationsemantics live with the resource model instead of being duplicated in prompthelpers or drawer-specific markdown.That same resource model now also owns the canonical@@ -156,7 +156,7 @@ correlation evidence from the shared detector, so the drawer can show learnededge patterns alongside the dependency graph without rebuilding correlationreasoning from raw events. The Patrol intelligence page now also renders thatcorrelation evidence through the shared-`frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx`+`frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`card, so the same learned-edge list stays governed by one frontend surfaceinstead of separate page-local implementations. That shared card also ownsthe correlation ordering and truncation rule, so callers pass raw correlation@@ -378,7 +378,7 @@ is present, so the graph history view preserves the richer provenance alreadycarried by the unified-resource model instead of flattening those fields away.The same Infrastructure resource-only links now also default through theshared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx`-and `frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx`+and `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`cards from the Patrol page, resource drawer, and problem-resource dashboardpanels, so canonical resource-filter path construction stays owned by theshared summary cards rather than being duplicated per surface.diff --git a/frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx b/frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsxsimilarity index 96%rename from frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsxrename to frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsxindex e60fe4328d..79ee42144b 100644--- a/frontend-modern/src/components/Infrastructure/ResourceGraphSummary.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx@@ -7,11 +7,11 @@ import {formatResourceCorrelationHeadline,formatResourceCorrelationPattern,formatResourceCorrelationSummary,- formatResourceGraphSummaryText,+ formatResourceCorrelationSummaryText,sortResourceCorrelations,} from '@/utils/resourceCorrelationPresentation';-interface ResourceGraphSummaryProps {+interface ResourceCorrelationSummaryProps {correlations?: ResourceCorrelation[] | null;dependencies?: string[] | null;dependents?: string[] | null;@@ -23,7 +23,7 @@ interface ResourceGraphSummaryProps {maxCorrelations?: number;}-export const ResourceGraphSummary: Component<ResourceGraphSummaryProps> = (props) => {+export const ResourceCorrelationSummary: Component<ResourceCorrelationSummaryProps> = (props) => {const className = () => props.class?.trim() ?? '';const correlations = createMemo(() => sortResourceCorrelations(props.correlations ?? []));const dependencies = () => props.dependencies ?? [];@@ -33,7 +33,7 @@ export const ResourceGraphSummary: Component<ResourceGraphSummaryProps> = (propsconst hasContent = () =>dependencies().length > 0 || dependents().length > 0 || correlations().length > 0;const summaryText = () =>- formatResourceGraphSummaryText({+ formatResourceCorrelationSummaryText({dependenciesCount: dependencies().length,dependentsCount: dependents().length,correlationsCount: correlations().length,@@ -182,4 +182,4 @@ export const ResourceGraphSummary: Component<ResourceGraphSummaryProps> = (props);};-export default ResourceGraphSummary;+export default ResourceCorrelationSummary;diff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex 207ef34310..bc1b7960ad 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -60,7 +60,7 @@ import {getResourceRoutingScopeLabel,getResourceSensitivityLabel,} from '@/utils/resourcePolicyPresentation';-import { ResourceGraphSummary } from './ResourceGraphSummary';+import { ResourceCorrelationSummary } from './ResourceCorrelationSummary';import { ResourceChangeSummary } from './ResourceChangeSummary';import { ResourceFacetSummary } from './ResourceFacetSummary';import { ResourcePolicySummary } from './ResourcePolicySummary';@@ -822,7 +822,7 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {compact/><ResourcePolicySummary posture={policyPosture()} title="Policy posture" />- <ResourceGraphSummary+ <ResourceCorrelationSummarytitle="Correlation context"dependencies={resourceDependencies()}dependents={resourceDependents()}diff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceGraphSummary.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceCorrelationSummary.test.tsxsimilarity index 94%rename from frontend-modern/src/components/Infrastructure/__tests__/ResourceGraphSummary.test.tsxrename to frontend-modern/src/components/Infrastructure/__tests__/ResourceCorrelationSummary.test.tsxindex 87c787764c..1cb0d45f75 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceGraphSummary.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceCorrelationSummary.test.tsx@@ -1,12 +1,12 @@import { render, screen } from '@solidjs/testing-library';import { describe, expect, it } from 'vitest';-import { ResourceGraphSummary } from '../ResourceGraphSummary';+import { ResourceCorrelationSummary } from '../ResourceCorrelationSummary';-describe('ResourceGraphSummary', () => {+describe('ResourceCorrelationSummary', () => {it('renders learned correlations with canonical labels and totals', () => {render(() => (- <ResourceGraphSummary+ <ResourceCorrelationSummarytitle="Learned correlations"correlations={[{@@ -42,7 +42,7 @@ describe('ResourceGraphSummary', () => {it('renders correlation context with dependency and dependent links', () => {render(() => (- <ResourceGraphSummary+ <ResourceCorrelationSummarytitle="Correlation context"dependencies={['storage-1']}dependents={['vm-child']}diff --git a/frontend-modern/src/pages/AIIntelligence.tsx b/frontend-modern/src/pages/AIIntelligence.tsxindex 87a6d3f406..6c7ac978cf 100644--- a/frontend-modern/src/pages/AIIntelligence.tsx+++ b/frontend-modern/src/pages/AIIntelligence.tsx@@ -90,7 +90,7 @@ import {import { getAIQuickstartCreditsPresentation } from '@/utils/aiQuickstartPresentation';import { buildPatrolScheduleOptions } from '@/utils/aiPatrolSchedulePresentation';import { ResourcePolicySummary } from '@/components/Infrastructure/ResourcePolicySummary';-import { ResourceGraphSummary } from '@/components/Infrastructure/ResourceGraphSummary';+import { ResourceCorrelationSummary } from '@/components/Infrastructure/ResourceCorrelationSummary';import { ResourceChangeSummary } from '@/components/Infrastructure/ResourceChangeSummary';import {getProTrialStartedMessage,@@ -1328,11 +1328,11 @@ export function AIIntelligence() {</div><Show when={(aiIntelligenceStore.correlations?.correlations?.length ?? 0) > 0}>- <ResourceGraphSummary- title="Learned correlations"- correlations={aiIntelligenceStore.correlations?.correlations ?? []}- summaryText={`${correlationTotal()} total`}- />+ <ResourceCorrelationSummary+ title="Learned correlations"+ correlations={aiIntelligenceStore.correlations?.correlations ?? []}+ summaryText={`${correlationTotal()} total`}+ /></Show><ResourcePolicySummary posture={policyPosture()} title="Data Governance" />diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex eda91f320e..70f2f1539f 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -355,7 +355,7 @@ describe('AIIntelligence entitlement gating', () => {});});- it('renders canonical learned correlations in the summary page', async () => {+ it('renders canonical learned correlations in the summary page through the correlation card', async () => {hasFeatureMock.mockReturnValue(true);licenseStatusMock.mockReturnValue({ subscription_state: 'active' });getPatrolStatusMock.mockResolvedValue(defaultPatrolStatus({ license_required: false }));@@ -424,7 +424,7 @@ describe('AIIntelligence entitlement gating', () => {render(() => <AIIntelligence />);await waitFor(() => {- expect(screen.getByText('Learned correlations')).toBeInTheDocument();+ expect(screen.getByRole('heading', { name: 'Learned correlations' })).toBeInTheDocument();});expect(screen.getByText('2 total')).toBeInTheDocument();@@ -596,7 +596,6 @@ describe('AIIntelligence entitlement gating', () => {expect(screen.getByRole('link', { name: 'Open related resource agent-1 in Infrastructure' }),).toHaveAttribute('href', '/infrastructure?resource=agent-1');- expect(screen.getByText('proxmox_adapter')).toBeInTheDocument();expect(screen.getByText('Learning signals')).toBeInTheDocument();expect(screen.getByText('Data Governance')).toBeInTheDocument();expect(screen.getByText('4 governed resources')).toBeInTheDocument();diff --git a/frontend-modern/src/utils/__tests__/resourceCorrelationPresentation.test.ts b/frontend-modern/src/utils/__tests__/resourceCorrelationPresentation.test.tsindex 85bfbf7e30..48b565e404 100644--- a/frontend-modern/src/utils/__tests__/resourceCorrelationPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/resourceCorrelationPresentation.test.ts@@ -5,7 +5,7 @@ import {formatResourceCorrelationHeadline,formatResourceCorrelationPattern,formatResourceCorrelationSummary,- formatResourceGraphSummaryText,+ formatResourceCorrelationSummaryText,sortResourceCorrelations,} from '@/utils/resourceCorrelationPresentation';@@ -89,14 +89,14 @@ describe('resourceCorrelationPresentation utils', () => {it('formats canonical graph summary text', () => {expect(- formatResourceGraphSummaryText({+ formatResourceCorrelationSummaryText({dependenciesCount: 2,dependentsCount: 1,correlationsCount: 3,}),).toBe('2 dependencies · 1 dependent · 3 correlations');expect(- formatResourceGraphSummaryText({+ formatResourceCorrelationSummaryText({dependenciesCount: 0,dependentsCount: 0,correlationsCount: 0,diff --git a/frontend-modern/src/utils/resourceCorrelationPresentation.ts b/frontend-modern/src/utils/resourceCorrelationPresentation.tsindex 1d7f381a12..dac0831e81 100644--- a/frontend-modern/src/utils/resourceCorrelationPresentation.ts+++ b/frontend-modern/src/utils/resourceCorrelationPresentation.ts@@ -95,7 +95,7 @@ const formatPluralCount = (count: number, singular: string, plural: string): strconst formatSummaryParts = (parts: Array<string | null | undefined>): string =>parts.filter((part): part is string => Boolean(part && part.trim())).join(' · ');-export function formatResourceGraphSummaryText(options: {+export function formatResourceCorrelationSummaryText(options: {dependenciesCount: number;dependentsCount: number;correlationsCount: number;