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
Remove overlapping Patrol finding tool
rcourtman34b77e53b435
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 7e2f762834..d0560aef1b 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -6429,13 +6429,16 @@ verification step is a valid recommendation when remediation is not yetjustified; impact remains optional so the contract never pressures the modelto fabricate a consequence. Providers that omit either grounding field mustreceive a tool error and no partial finding may be persisted.-During a first-party Patrol run, the general model-facing-`pulse_alerts(action=findings)` spelling is a scoped alias for the same active-finding snapshot as `patrol_get_findings` and satisfies the duplicate-check-precondition. The adapter may return only findings inside the run's resolved-caller-requested finding scope, never dismissed history or context-only-dependency records from the broader effective evidence scope. This keeps-ordinary model tool choice composable without weakening the lifecycle gate.+The Patrol detection provider manifest exposes exactly one finding-lifecycle+read: `patrol_get_findings`. The general `pulse_alerts` surface remains+available to interactive Assistant sessions but is withheld from Patrol even+when every monitored subsystem is enabled. This prevents a provider from+combining the lifecycle tool name with the Alerts action schema, keeps the+mandatory duplicate check unambiguous, and avoids spending a failed provider+turn on an overlapping read contract. The Patrol adapter returns only findings+inside the run's resolved caller-requested finding scope, never dismissed+history or context-only dependency records from the broader effective evidence+scope.The provider schema is also the source of truth for the required-argumentchecklist rendered into Patrol's normal and bounded final-decision prompts.Every report call must be independently complete, including parallel calls fordiff --git a/internal/ai/chat/service.go b/internal/ai/chat/service.goindex 8984d262bc..578ad0f958 100644--- a/internal/ai/chat/service.go+++ b/internal/ai/chat/service.go@@ -4385,6 +4385,13 @@ func (s *Service) filterToolsForPatrol(providerTools []providers.Tool) []providefiltered := make([]providers.Tool, 0, len(providerTools))for _, tool := range providerTools {switch tool.Name {+ case agentcapabilities.PulseAlertsToolName:+ // Patrol has one canonical finding-lifecycle read. Offering the+ // interactive Alerts surface beside patrol_get_findings gives the+ // provider two overlapping schemas and lets it combine the tool name+ // from one with the arguments from the other. Keep pulse_alerts on the+ // Assistant profile and expose only the lifecycle-native read here.+ continuecase agentcapabilities.PulseDockerToolName:if !includeDocker {continuediff --git a/internal/ai/chat/service_filter_test.go b/internal/ai/chat/service_filter_test.goindex d5bcae50f4..c9a9d6491b 100644--- a/internal/ai/chat/service_filter_test.go+++ b/internal/ai/chat/service_filter_test.go@@ -17,6 +17,8 @@ func TestFilterToolsForPatrol_ConfigFlags(t *testing.T) {tools := []providers.Tool{{Name: "pulse_query"},+ {Name: "pulse_alerts"},+ {Name: "patrol_get_findings"},{Name: "pulse_docker"},{Name: "pulse_storage"},{Name: "pulse_kubernetes"},@@ -40,6 +42,12 @@ func TestFilterToolsForPatrol_ConfigFlags(t *testing.T) {if !hasToolName(filtered, "pulse_query") {t.Fatalf("expected pulse_query to remain included")}+ if hasToolName(filtered, "pulse_alerts") {+ t.Fatalf("expected interactive pulse_alerts to be excluded from the Patrol manifest")+ }+ if !hasToolName(filtered, "patrol_get_findings") {+ t.Fatalf("expected canonical patrol_get_findings to remain included")+ }}func TestFilterToolsForPatrol_DockerDisabled(t *testing.T) {@@ -51,6 +59,8 @@ func TestFilterToolsForPatrol_DockerDisabled(t *testing.T) {}tools := []providers.Tool{{Name: "pulse_query"},+ {Name: "pulse_alerts"},+ {Name: "patrol_get_findings"},{Name: "pulse_docker"},{Name: "pulse_storage"},}@@ -97,6 +107,8 @@ func TestFilterToolsForPatrol_AllEnabled(t *testing.T) {}tools := []providers.Tool{{Name: "pulse_query"},+ {Name: "pulse_alerts"},+ {Name: "patrol_get_findings"},{Name: "pulse_docker"},{Name: "pulse_storage"},{Name: "pulse_kubernetes"},@@ -105,11 +117,14 @@ func TestFilterToolsForPatrol_AllEnabled(t *testing.T) {filtered := svc.filterToolsForPatrol(tools)- for _, name := range []string{"pulse_query", "pulse_docker", "pulse_storage", "pulse_kubernetes", "pulse_pmg"} {+ for _, name := range []string{"pulse_query", "patrol_get_findings", "pulse_docker", "pulse_storage", "pulse_kubernetes", "pulse_pmg"} {if !hasToolName(filtered, name) {t.Fatalf("expected %s to be included", name)}}+ if hasToolName(filtered, "pulse_alerts") {+ t.Fatalf("expected pulse_alerts to remain Assistant-only when every Patrol subsystem is enabled")+ }}func hasToolName(tools []providers.Tool, name string) bool {