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
Hide default drawer governance posture
rcourtman065df632bc5e
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex b2fc5bd740..287a6ff916 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -205,6 +205,10 @@ stay available in the drawer and AI/governance surfaces without being promotedto always-on row chrome. Inline row badges are reserved for non-default policystates so the canonical resource surface does not imply that every host carriesan operator-actionable governance exception.+The resource drawer now applies the same rule to its investigation-context+governance block: the default posture remains part of the canonical policy+contract, but the drawer only surfaces the governance section when the policy+state is non-default or otherwise consequential to operator understanding.The shared routing policy itself now stays intentionally minimal: it carriesonly the routing scope and the redaction hints derived from canonicalsensitivity, and the cloud-summary decision is derived from that scopediff --git a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsxindex 3ffe34cf9e..4c127257f0 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/ResourceDetailDrawer.history.test.tsx@@ -353,6 +353,29 @@ describe('ResourceDetailDrawer change history section', () => {).toBeNull();});+ it('keeps default internal cloud-summary posture out of the investigation context drawer block', async () => {+ const resource = baseResource({+ id: 'agent-default-policy',+ name: 'default-policy-host',+ displayName: 'Default Policy Host',+ policy: {+ sensitivity: 'internal',+ routing: {+ scope: 'cloud-summary',+ },+ },+ aiSafeSummary: 'agent resource; status online; sources agent',+ });++ render(() => <ResourceDetailDrawer resource={resource} />);++ await screen.findByText('Investigation context');+ fireEvent.click(screen.getByRole('button', { name: 'Show context' }));++ expect(screen.queryByText('Data Governance')).toBeNull();+ expect(screen.queryByText('AI-Safe Summary')).toBeNull();+ });+it('keeps details label-first without a summary sentence', () => {facetBundleMock.getFacetBundle.mockResolvedValueOnce({capabilities: [],diff --git a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.tsindex 33143df117..9fc9f4331c 100644--- a/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts+++ b/frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts@@ -24,6 +24,7 @@ import {getResourcePolicyDisplayLabel,getResourcePolicyRedactionLabels,getResourceRoutingScopeLabel,+ hasDefaultResourcePolicyPosture,} from '@/utils/resourcePolicyPresentation';import type { ResourceIntelligence } from '@/types/aiIntelligence';import {@@ -79,7 +80,9 @@ export const useResourceDetailDrawerDerivedState = (: (resource.aiSafeSummary?.trim() ?? ''),);const hasGovernanceData = createMemo(- () => policyBadges().length > 0 || Boolean(governanceSummary()),+ () =>+ !hasDefaultResourcePolicyPosture(resource.policy) &&+ (policyBadges().length > 0 || Boolean(governanceSummary())),);const agentMeta = createMemo(diff --git a/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts b/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.tsindex 0adf3b53c6..2f65a3d884 100644--- a/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/resourcePolicyPresentation.test.ts@@ -4,6 +4,7 @@ import {RESOURCE_POLICY_REDACTION_ORDER,RESOURCE_POLICY_ROUTING_ORDER,RESOURCE_POLICY_SENSITIVITY_ORDER,+ hasDefaultResourcePolicyPosture,getResourcePolicyTableBadges,getResourcePolicyDisplayLabel,getResourcePolicyRedactionSummaries,@@ -36,6 +37,15 @@ describe('resourcePolicyPresentation utils', () => {});it('suppresses the default internal cloud-summary posture in table rows', () => {+ expect(+ hasDefaultResourcePolicyPosture({+ sensitivity: 'internal',+ routing: {+ scope: 'cloud-summary',+ },+ }),+ ).toBe(true);+expect(getResourcePolicyTableBadges({sensitivity: 'internal',@@ -54,6 +64,16 @@ describe('resourcePolicyPresentation utils', () => {},}).map((badge) => badge.label),).toEqual(['Sensitive', 'Local First']);++ expect(+ hasDefaultResourcePolicyPosture({+ sensitivity: 'sensitive',+ routing: {+ scope: 'local-first',+ redact: ['hostname'],+ },+ }),+ ).toBe(false);});it('uses the governed aiSafeSummary for redacted resources', () => {diff --git a/frontend-modern/src/utils/resourcePolicyPresentation.ts b/frontend-modern/src/utils/resourcePolicyPresentation.tsindex ea0ce305a2..d9c651a402 100644--- a/frontend-modern/src/utils/resourcePolicyPresentation.ts+++ b/frontend-modern/src/utils/resourcePolicyPresentation.ts@@ -108,15 +108,18 @@ export const getResourcePolicyBadges = (policy?: ResourcePolicy): PolicyBadgePrereturn [sensitivityPresentation[policy.sensitivity], routingPresentation[policy.routing.scope]];};+export const hasDefaultResourcePolicyPosture = (policy?: ResourcePolicy): boolean =>+ Boolean(+ policy &&+ policy.sensitivity === 'internal' &&+ policy.routing.scope === 'cloud-summary' &&+ (policy.routing.redact?.length ?? 0) === 0,+ );+export const getResourcePolicyTableBadges = (policy?: ResourcePolicy): PolicyBadgePresentation[] => {if (!policy) return [];- const hasDefaultPolicyPosture =- policy.sensitivity === 'internal' &&- policy.routing.scope === 'cloud-summary' &&- (policy.routing.redact?.length ?? 0) === 0;-- if (hasDefaultPolicyPosture) {+ if (hasDefaultResourcePolicyPosture(policy)) {return [];}