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
Govern Patrol remediation presentation helper
rcourtman72e085d52110
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 23d3564c4a..ab3416f65a 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -40,11 +40,12 @@ Patrol-specific presentation helpers.17. `frontend-modern/src/utils/aiPatrolSchedulePresentation.ts`18. `frontend-modern/src/utils/aiQuickstartPresentation.ts`19. `frontend-modern/src/utils/findingAlertIdentity.ts`-20. `frontend-modern/src/utils/patrolEmptyStatePresentation.ts`-21. `frontend-modern/src/utils/patrolFormat.ts`-22. `frontend-modern/src/utils/patrolRunPresentation.ts`-23. `frontend-modern/src/utils/patrolSummaryPresentation.ts`-24. `frontend-modern/src/utils/textPresentation.ts`+20. `frontend-modern/src/utils/remediationPresentation.ts`+21. `frontend-modern/src/utils/patrolEmptyStatePresentation.ts`+22. `frontend-modern/src/utils/patrolFormat.ts`+23. `frontend-modern/src/utils/patrolRunPresentation.ts`+24. `frontend-modern/src/utils/patrolSummaryPresentation.ts`+25. `frontend-modern/src/utils/textPresentation.ts`## Shared Boundaries@@ -54,10 +55,11 @@ Patrol-specific presentation helpers.1. Add or change Patrol page orchestration through `frontend-modern/src/features/patrol/usePatrolIntelligenceState.ts`, keep `frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts` as the canonical investigation-context derivation owner, keep `frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx` as the feature shell, keep the Patrol-owned section files under `frontend-modern/src/features/patrol/` as the heavy render owners, keep `frontend-modern/src/pages/AIIntelligence.tsx` as the route shell, keep `frontend-modern/src/stores/aiIntelligenceSummaryModel.ts` as the canonical AI summary normalization owner, and update `frontend-modern/src/stores/aiIntelligence.ts` together2. Add or change Patrol findings, approvals, investigation, or run-history presentation through `frontend-modern/src/components/AI/FindingsPanel.tsx` and `frontend-modern/src/components/patrol/`-3. Add or change Patrol header quickstart-credit or schedule presentation through `frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx`, `frontend-modern/src/utils/aiQuickstartPresentation.ts`, and `frontend-modern/src/utils/aiPatrolSchedulePresentation.ts`-4. Keep Patrol and chat identifier-label presentation aligned through the shared `frontend-modern/src/utils/textPresentation.ts`-5. Keep Patrol and chat stream-matching / mention dedupe aligned through the shared `frontend-modern/src/utils/chatIdentifiers.ts`-6. Keep Patrol transport and payload changes aligned through the governed AI runtime and API contract transport surfaces+3. Keep remediation execution badge copy and severity styling aligned through `frontend-modern/src/components/patrol/RemediationStatus.tsx` and `frontend-modern/src/utils/remediationPresentation.ts`+4. Add or change Patrol header quickstart-credit or schedule presentation through `frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx`, `frontend-modern/src/utils/aiQuickstartPresentation.ts`, and `frontend-modern/src/utils/aiPatrolSchedulePresentation.ts`+5. Keep Patrol and chat identifier-label presentation aligned through the shared `frontend-modern/src/utils/textPresentation.ts`+6. Keep Patrol and chat stream-matching / mention dedupe aligned through the shared `frontend-modern/src/utils/chatIdentifiers.ts`+7. Keep Patrol transport and payload changes aligned through the governed AI runtime and API contract transport surfaces## Forbidden Paths@@ -104,6 +106,11 @@ canonical owners for quickstart-credit messaging and Patrol interval optionlabeling used by `frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx`;future Patrol header work should extend those helpers instead of rebuildingcredit badges or schedule labels inline in the header shell.+`frontend-modern/src/utils/remediationPresentation.ts` is now also the+canonical owner for remediation result badge copy and success/failure styling+used by `frontend-modern/src/components/patrol/RemediationStatus.tsx`, so+Patrol execution feedback does not drift into inline message branches inside+the component.Patrol finding state must now also consume the canonical camelCase`alertIdentifier` field and pending-approval expiry metadata end to end.diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 26df33a929..37c67102bb 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -3111,7 +3111,8 @@"frontend-modern/src/utils/patrolEmptyStatePresentation.ts","frontend-modern/src/utils/patrolFormat.ts","frontend-modern/src/utils/patrolRunPresentation.ts",- "frontend-modern/src/utils/patrolSummaryPresentation.ts"+ "frontend-modern/src/utils/patrolSummaryPresentation.ts",+ "frontend-modern/src/utils/remediationPresentation.ts"],"verification": {"allow_same_subsystem_tests": false,@@ -3183,7 +3184,8 @@"frontend-modern/src/components/patrol/RemediationStatus.tsx","frontend-modern/src/utils/aiFindingPresentation.ts","frontend-modern/src/utils/approvalRiskPresentation.ts",- "frontend-modern/src/utils/findingAlertIdentity.ts"+ "frontend-modern/src/utils/findingAlertIdentity.ts",+ "frontend-modern/src/utils/remediationPresentation.ts"],"allow_same_subsystem_tests": false,"test_prefixes": [],@@ -3193,7 +3195,8 @@"frontend-modern/src/components/patrol/__tests__/InvestigationSection.test.tsx","frontend-modern/src/utils/__tests__/approvalRiskPresentation.test.ts","frontend-modern/src/utils/__tests__/findingAlertIdentity.test.ts",- "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts"+ "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts",+ "frontend-modern/src/utils/__tests__/remediationPresentation.test.ts"]},{diff --git a/scripts/release_control/canonical_completion_guard_test.py b/scripts/release_control/canonical_completion_guard_test.pyindex b997ca7894..d107d4ad58 100644--- a/scripts/release_control/canonical_completion_guard_test.py+++ b/scripts/release_control/canonical_completion_guard_test.py@@ -3071,6 +3071,45 @@ index 1111111..2222222 100644],)+ def test_remediation_presentation_change_requires_patrol_contract(self):+ required = infer_impacted_subsystems(+ ["frontend-modern/src/utils/remediationPresentation.ts"]+ )+ self.assertEqual(set(required), {"patrol-intelligence"})++ patrol = required["patrol-intelligence"]+ self.assertEqual(+ patrol["contract"],+ "docs/release-control/v6/internal/subsystems/patrol-intelligence.md",+ )+ self.assertEqual(+ patrol["touched_runtime_files"],+ ["frontend-modern/src/utils/remediationPresentation.ts"],+ )+ self.assertEqual(+ patrol["verification_requirements"],+ [+ {+ "id": "patrol-findings-and-approvals",+ "label": "patrol findings and approvals proof",+ "touched_runtime_files": [+ "frontend-modern/src/utils/remediationPresentation.ts"+ ],+ "allow_same_subsystem_tests": False,+ "test_prefixes": [],+ "exact_files": [+ "frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts",+ "frontend-modern/src/components/patrol/__tests__/ApprovalSection.test.tsx",+ "frontend-modern/src/components/patrol/__tests__/InvestigationSection.test.tsx",+ "frontend-modern/src/utils/__tests__/approvalRiskPresentation.test.ts",+ "frontend-modern/src/utils/__tests__/findingAlertIdentity.test.ts",+ "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts",+ "frontend-modern/src/utils/__tests__/remediationPresentation.test.ts",+ ],+ }+ ],+ )+def test_monitoring_metrics_hot_path_uses_specific_proof_policy(self):monitoring_rule = next(rule for rule in load_subsystem_rules() if rule["id"] == "monitoring")requirements = build_verification_requirements(diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex 005592dfe2..13394351bd 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -3815,6 +3815,37 @@ class SubsystemLookupTest(unittest.TestCase):"frontend-modern/src/utils/__tests__/approvalRiskPresentation.test.ts","frontend-modern/src/utils/__tests__/findingAlertIdentity.test.ts","frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts",+ "frontend-modern/src/utils/__tests__/remediationPresentation.test.ts",+ ],+ )++ def test_lookup_paths_assigns_remediation_presentation_to_patrol_intelligence(self) -> None:+ result = lookup_paths(["frontend-modern/src/utils/remediationPresentation.ts"])+ self.assertEqual(result["unowned_runtime_files"], [])+ self.assertEqual(+ {item["subsystem"] for item in result["impacted_subsystems"]},+ {"patrol-intelligence"},+ )+ match = result["files"][0]["matches"][0]+ self.assertEqual(+ match["contract"],+ "docs/release-control/v6/internal/subsystems/patrol-intelligence.md",+ )+ self.assertEqual(match["lane_context"]["lane_id"], "L6")+ self.assertEqual(+ match["verification_requirement"]["id"],+ "patrol-findings-and-approvals",+ )+ self.assertEqual(+ match["verification_requirement"]["exact_files"],+ [+ "frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts",+ "frontend-modern/src/components/patrol/__tests__/ApprovalSection.test.tsx",+ "frontend-modern/src/components/patrol/__tests__/InvestigationSection.test.tsx",+ "frontend-modern/src/utils/__tests__/approvalRiskPresentation.test.ts",+ "frontend-modern/src/utils/__tests__/findingAlertIdentity.test.ts",+ "frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts",+ "frontend-modern/src/utils/__tests__/remediationPresentation.test.ts",],)