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
Normalize relationship terminology in docs
rcourtmand5380b9df39d
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 5cf2430d0b..0ee4709d16 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -188,8 +188,8 @@ shared memory change presentation helper so the same heading, scope prefix, andchange-type labels are reused instead of being rebuilt ad hoc in AI-local code.The AI correlation root-cause engine also consumes the canonical unified-resource relationship model directly, so cross-resource reasoning stays aligned-with the same graph edges that back the resource API instead of maintaining a-parallel relationship vocabulary inside AI correlation.+with the same relationship edges that back the resource API instead of+maintaining a parallel relationship vocabulary inside AI correlation.The canonical relationship-summary helper also feeds resource change records,so AI timeline prompts read the same relationship wording and edge labels thatthe unified-resource contract emits instead of building another summary shapediff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 8039496ebf..de44a43ea8 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -146,7 +146,7 @@ canonical metadata pass instead of consumer-local attach wrappers.Those history reads now also accept governed `kind`, `sourceType`, and`sourceAdapter` query filters, and the backend store owns the correspondingfiltered counts, so the timeline contract can narrow by change class and-adapter provenance without inventing a frontend-only slice of the graph.+adapter provenance without inventing a frontend-only relationship slice.The same facet bundle contract now also returns grouped `recentChangeKinds`counts by canonical `ChangeKind`, so the shared drawer and summary chips canshow the distribution of restarts, anomalies, state transitions, and other@@ -173,8 +173,8 @@ Incident-driven anomaly entries are also a first-class contract now:instead of being flattened into generic status churn.For relationship changes, the `from` and `to` fields now summarize the actualedge(s) rather than only the parent pointer, so the API contract keeps the-graph transition legible even before the frontend expands the related-resource-chips.+relationship transition legible even before the frontend expands the+related-resource chips.The same relationship and change presenters now also own the state, restart,incident, and config summary fragments that feed those timeline values, so theAPI surface preserves the canonical wording before the frontend renders it.@@ -221,7 +221,7 @@ surface stays bounded even when callers ask for arbitrarily large historypages.Those relationship and timeline payloads now also carry `lastSeenAt` freshnessand optional metadata through the same owned contract, so the drawer can-preserve provenance without inventing a separate graph-detail schema.+preserve provenance without inventing a separate relationship-detail schema.Relationship-change timeline entries now also use the canonical relationshipsummary helper for their compact `from` and `to` wording, so the API keeps thehuman-readable edge label aligned with the unified-resource relationshipdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 1620cb7902..173a478a00 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -142,10 +142,11 @@ That same shared facet bundle now also carries grouped`recentChangeSourceAdapters` counts by canonical source adapter, so storageand recovery surfaces can separate Docker, Proxmox, TrueNAS, and ops-helperprovenance without inferring integration origin from the loaded slice.-Those same resource timeline records also preserve `relatedResources` graph-context for non-relationship changes, so storage and recovery views can still-link neighboring resources when the timeline entry is a restart, anomaly, or-config update rather than only when the edge itself changes.+Those same resource timeline records also preserve `relatedResources`+relationship context for non-relationship changes, so storage and recovery+views can still link neighboring resources when the timeline entry is a+restart, anomaly, or config update rather than only when the edge itself+changes.Those unified audit list endpoints also clamp oversized `limit` requests tothe governed maximum, so adjacent recovery and storage workflows do not turnbounded history reads into unbounded collection scans.diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex b0c393a87a..b316e42dd5 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -105,7 +105,7 @@ cross-resource context the detail drawer can surface later instead ofcollapsing state, restart, anomaly, or config changes down to resource-onlyhints.Those same relationship changes now summarize the actual edge(s) in `from` and-`to`, so the canonical timeline keeps the graph transition readable without+`to`, so the canonical timeline keeps the relationship transition readable withoutneeding the drawer to reconstruct an edge summary from raw endpoints.The backend AI and Patrol context renderers now derive their canonical changekind, source type, source adapter, actor, reason, and related-resource@@ -154,7 +154,7 @@ relationship summary used by resource change records, so change `from` andreconstructing a separate type-token summary in the emitter.The same AI resource-intelligence payload now also carries canonicalcorrelation evidence from the shared detector, so the drawer can show learned-edge patterns alongside the dependency graph without rebuilding correlation+edge patterns alongside the dependency relationships without rebuilding correlationreasoning from raw events. The Patrol intelligence page now also renders thatcorrelation evidence through the shared`frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx`@@ -210,7 +210,7 @@ falling back to a consumer-local scan.The frontend now also consumes those facet reads through`frontend-modern/src/api/resources.ts` and the dedicated resource detaildrawer, which keeps the presentation surface aligned with the governed API-contract instead of rebuilding the graph and timeline inline.+contract instead of rebuilding the relationship and timeline inline.The shared `ResourceFacetSummary` consumer now omits capability andrelationship badges from the default table/detail surface entirely, while thebackend contract keeps capability and relationship data on the owned resource@@ -222,7 +222,7 @@ before they are fully populated.The same facet bundle now also returns grouped recent-change counts bycanonical change kind, so the detail drawer can surface the distribution ofstate transitions, restarts, config updates, and anomalies without-recomputing timeline history in the browser, while broader graph or+recomputing timeline history in the browser, while broader relationship orcapability facets stay available behind the same contract for non-defaultconsumers that can prove they are populated and justified.That same facet bundle now also returns grouped recent-change provenance@@ -525,8 +525,8 @@ IP-summary rendering for AI resource context, so topology labels and addresslists stay aligned with the same redaction vocabulary instead of beingformatted in AI-local helpers.The AI correlation root-cause engine also consumes the canonical unified--resource relationship model directly, so graph reasoning and relationship-scoring stay on the same owned edge vocabulary instead of keeping a separate+resource relationship model directly, so relationship reasoning and scoring+stay on the same owned edge vocabulary instead of keeping a separateAI-local relationship struct.Those helpers now own the canonical redaction-hint order and count-to-labelprojection, so the AI summary and any other backend policy posture surface do@@ -535,17 +535,18 @@ They also own the canonical sensitivity and routing order used to formatpolicy-posture count summaries with human-readable labels, so the AI summaryand frontend policy card both read the same presentation sequence from theshared resource model.-Canonical resources now carry first-class graph-expansion fields:-`Capabilities` (bounded action definitions with approval levels),-`Relationships` (typed inter-resource links with direction and confidence),-and `RecentChanges` (typed change timeline entries with source, confidence,-and related-resource references). These fields are defined in+Canonical resources now carry first-class relationship, capability, and+timeline fields: `Capabilities` (bounded action definitions with approval+levels), `Relationships` (typed inter-resource links with direction and+confidence), and `RecentChanges` (typed change timeline entries with source,+confidence, and related-resource references). These fields are defined in`capabilities.go`, `relationships.go`, `changes.go`, `privacy.go`, and-`actions.go`. The backend keeps those graph fields for AI and correlation use,+`actions.go`. The backend keeps those fields for AI and correlation use,while the frontend consumer stays timeline-first and only preserves the-recent-change slice plus facet counts it actually renders. The store now also owns a-`resource_changes` persistence table with `RecordChange` and `GetRecentChanges`-methods so change history is queryable by canonical ID and time window.+recent-change slice plus facet counts it actually renders. The store now also+owns a `resource_changes` persistence table with `RecordChange` and+`GetRecentChanges` methods so change history is queryable by canonical ID and+time window.The shared change presentation helper also owns the canonical kind, sourcetype, and source adapter labels for those timeline entries, so summary cardsand drawer history surfaces both read the same badge vocabulary instead ofdiff --git a/internal/unifiedresources/canonical_ids_types_test.go b/internal/unifiedresources/canonical_ids_types_test.goindex 66b09d1994..f5234124b5 100644--- a/internal/unifiedresources/canonical_ids_types_test.go+++ b/internal/unifiedresources/canonical_ids_types_test.go@@ -112,7 +112,7 @@ func TestCanonicalizeLegacyResourceTypeAlias(t *testing.T) {}}-func TestResourceGraphFieldsDefaultToNil(t *testing.T) {+func TestResourceRelationshipFieldsDefaultToNil(t *testing.T) {r := Resource{}if r.Capabilities != nil {t.Error("Capabilities should default to nil")diff --git a/internal/unifiedresources/code_standards_test.go b/internal/unifiedresources/code_standards_test.goindex 3bd089198a..4e36278d6f 100644--- a/internal/unifiedresources/code_standards_test.go+++ b/internal/unifiedresources/code_standards_test.go@@ -665,6 +665,23 @@ func TestResourceRelationshipContextUsesCanonicalRelationshipPresentation(t *tes}}+func TestResourceRelationshipModelUsesCanonicalEdgeComment(t *testing.T) {+ data, err := os.ReadFile(filepath.Join("relationships.go"))+ if err != nil {+ t.Fatalf("failed to read relationships.go: %v", err)+ }+ source := string(data)+ requiredSnippets := []string{+ "// ResourceRelationship represents a typed relationship edge between two unified resources.",+ "type ResourceRelationship struct {",+ }+ for _, snippet := range requiredSnippets {+ if !strings.Contains(source, snippet) {+ t.Fatalf("internal/unifiedresources/relationships.go must pin canonical relationship edge snippet %q", snippet)+ }+ }+}+func TestPatrolSeedCorrelationContextUsesCanonicalSummaryFormatter(t *testing.T) {data, err := os.ReadFile(filepath.Join("..", "ai", "patrol_ai.go"))if err != nil {diff --git a/internal/unifiedresources/relationships.go b/internal/unifiedresources/relationships.goindex b5cab809ee..eb1eb8df73 100644--- a/internal/unifiedresources/relationships.go+++ b/internal/unifiedresources/relationships.go@@ -13,7 +13,7 @@ const (RelOwnedBy RelationshipType = "owned_by" // e.g., pod owned_by deployment)-// ResourceRelationship represents a typed graph edge between two unified resources.+// ResourceRelationship represents a typed relationship edge between two unified resources.type ResourceRelationship struct {SourceID string `json:"sourceId"`TargetID string `json:"targetId"`