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
Centralize policy routing decision labels
rcourtman5cb333d25622
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex b2b3065484..43d439fb0b 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -112,6 +112,9 @@ That governed context should also surface the canonical routing posture andredaction hints that were derived from the shared policy model, so promptsreflect the same sensitivity, routing, and scrub decisions that the runtimeuses for export boundaries instead of rebuilding privacy posture locally.+The same shared policy presenter also owns the `Allowed`/`Blocked` routing+decision labels shown in the resource drawer, so the policy state wording+stays canonical instead of being rendered inline by the consumer.That same policy boundary now applies to chat structured-mention prefetch andresource-summary formatting: mention resolution must consume canonicalunified-resource policy metadata, skip discovery fan-out when governeddiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 2e69e73a0f..0a3f878b78 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -122,6 +122,10 @@ The canonical policy-posture aggregate now also lives in`internal/unifiedresources/policy_posture.go`, so AI summaries and resourcecontext share the same sensitivity, routing, and redaction counts from theresource model instead of rebuilding governance posture in AI-local code.+The same policy presenter now also owns the `Allowed`/`Blocked` routing+decision labels shown in the resource detail drawer, so routing-state wording+stays canonical with the rest of the policy surface instead of being+rendered inline by the drawer.The backend AI and Patrol graph context renderers now derive their canonicalrelationship labels, direction, provenance, freshness, and metadata flagsfrom `internal/unifiedresources/relationship_presentation.go`, so the graphdiff --git a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxindex eea3d997ab..12a2b0013e 100644--- a/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx+++ b/frontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsx@@ -48,6 +48,7 @@ import { ResourceAPI } from '@/api/resources';import {getResourcePolicyBadges,getResourcePolicyRedactionLabels,+ getResourcePolicyRoutingDecisionLabel,getResourceRoutingScopeLabel,getResourceSensitivityLabel,} from '@/utils/resourcePolicyPresentation';@@ -1063,13 +1064,17 @@ const DrawerContent: Component<ResourceDetailDrawerProps> = (props) => {<div class="flex items-center justify-between gap-2"><span class="text-muted">Cloud Summary</span><span class="font-medium text-base-content">- {props.resource.policy?.routing.allowCloudSummary ? 'Allowed' : 'Blocked'}+ {getResourcePolicyRoutingDecisionLabel(+ props.resource.policy?.routing.allowCloudSummary,+ )}</span></div><div class="flex items-center justify-between gap-2"><span class="text-muted">Raw Signals</span><span class="font-medium text-base-content">- {props.resource.policy?.routing.allowCloudRawSignals ? 'Allowed' : 'Blocked'}+ {getResourcePolicyRoutingDecisionLabel(+ props.resource.policy?.routing.allowCloudRawSignals,+ )}</span></div></Show>diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 5591658a41..3dd78c105b 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -1897,6 +1897,7 @@ describe('frontend resource type boundaries', () => {expect(resourceDetailDrawerSource).toContain('getResourceChangeKindPresentation');expect(resourceDetailDrawerSource).toContain('getResourceChangeSourceTypePresentation');expect(resourceDetailDrawerSource).toContain('getResourceChangeSourceAdapterPresentation');+ expect(resourceDetailDrawerSource).toContain('getResourcePolicyRoutingDecisionLabel');expect(resourceChangeSummarySource).toContain('getResourceChangeKindPresentation');expect(resourceChangeSummarySource).toContain('getResourceChangeSourceTypePresentation');expect(resourceChangeSummarySource).toContain(diff --git a/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts b/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.tsindex 0109508285..800c674e41 100644--- a/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts@@ -8,6 +8,7 @@ import {getResourcePolicyRoutingSummaries,getResourcePolicySensitivitySummaries,getResourcePolicyRedactionLabels,+ getResourcePolicyRoutingDecisionLabel,getResourceRedactionHintLabel,getResourceRoutingScopeLabel,getResourceSensitivityLabel,@@ -17,6 +18,8 @@ describe('resourcePolicyPresentation utils', () => {it('formats canonical policy labels', () => {expect(getResourceSensitivityLabel('restricted')).toBe('Restricted');expect(getResourceRoutingScopeLabel('local-only')).toBe('Local Only');+ expect(getResourcePolicyRoutingDecisionLabel(true)).toBe('Allowed');+ expect(getResourcePolicyRoutingDecisionLabel(false)).toBe('Blocked');expect(getResourceRedactionHintLabel('platform-id')).toBe('Platform ID');});diff --git a/frontend-modern/src/utils/resourcePolicyPresentation.ts b/frontend-modern/src/utils/resourcePolicyPresentation.tsindex d9ea2b2e28..c5ec46ff91 100644--- a/frontend-modern/src/utils/resourcePolicyPresentation.ts+++ b/frontend-modern/src/utils/resourcePolicyPresentation.ts@@ -107,6 +107,9 @@ export const getResourceSensitivityLabel = (sensitivity?: ResourceSensitivity):export const getResourceRoutingScopeLabel = (scope?: ResourceRoutingScope): string =>scope ? routingPresentation[scope].label : 'Unrouted';+export const getResourcePolicyRoutingDecisionLabel = (allowed?: boolean): string =>+ allowed ? 'Allowed' : 'Blocked';+export const getResourceRedactionHintLabel = (hint?: ResourceRedactionHint): string =>hint ? redactionLabels[hint] ?? hint : 'Unclassified';