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
Keep reliability signals in Patrol decision floor
rcourtman99ee4433d085
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 6052598ace..fc80978b0f 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -6444,17 +6444,18 @@ symptom is established; causal analysis belongs to the separate Proinvestigation track. Quiet triage is not a deterministic replacement formodel-owned assessment.High-confidence deterministic lifecycle flags must nevertheless retain a-model-owned decision opportunity before Watch completes. Health, backup,-connectivity, and learned-anomaly candidates join the existing unmatched signal-evaluation floor after the main agentic pass; ordinary CPU, memory, and disk-threshold crossings stay with Pulse alerting and do not trigger a duplicate-Patrol decision pass. Candidates already covered by a model-authored finding-are skipped, while at most twenty remaining candidates, prioritized with direct-lifecycle failures before learned anomalies, receive one bounded evidence-only-model pass. Pulse must not translate a flag directly into a finding or choose-remediation; this floor exists only so unrelated existing-finding lifecycle-work or a provider's sequential tool calls cannot silently consume the sole-decision opportunity for a confirmed scoped symptom.+model-owned decision opportunity before Watch completes. Health, reliability+(including provider-confirmed repeated restarts), backup, connectivity, and+learned-anomaly candidates join the existing unmatched signal evaluation floor+after the main agentic pass; ordinary CPU, memory, and disk threshold crossings+stay with Pulse alerting and do not trigger a duplicate Patrol decision pass.+Candidates already covered by a model-authored finding are skipped, while at+most twenty remaining candidates, prioritized with direct lifecycle failures+before learned anomalies, receive one bounded evidence-only model pass. Pulse+must not translate a flag directly into a finding or choose remediation; this+floor exists only so unrelated existing-finding lifecycle work, a provider's+sequential tool calls, or a tool-free conclusion cannot silently consume the+sole decision opportunity for a confirmed scoped symptom.Model-authored structured findings remain concise for continuous operation:description uses at most three short sentences, impact one sentence, evidencethree concrete facts, and recommendation two short sentences, withoutdiff --git a/internal/ai/patrol_ai.go b/internal/ai/patrol_ai.goindex bd5d92fac1..9d3a165459 100644--- a/internal/ai/patrol_ai.go+++ b/internal/ai/patrol_ai.go@@ -1022,7 +1022,7 @@ func triageFlagsForDecisionFloor(flags []TriageFlag) []TriageFlag {}}}- for _, category := range []string{"health", "backup", "connectivity", "anomaly"} {+ for _, category := range []string{"health", "reliability", "backup", "connectivity", "anomaly"} {appendCategory(category)}return selected@@ -1043,7 +1043,7 @@ func triageFlagsToDetectedSignals(flags []TriageFlag) []DetectedSignal {category := strings.ToLower(strings.TrimSpace(flag.Category))switch category {- case "performance", "capacity", "backup":+ case "performance", "capacity", "reliability", "backup":// Already canonical finding categories.case "health", "connectivity":category = string(FindingCategoryReliability)diff --git a/internal/ai/patrol_ai_eval_additional_test.go b/internal/ai/patrol_ai_eval_additional_test.goindex 038ccc10cd..d012b722ae 100644--- a/internal/ai/patrol_ai_eval_additional_test.go+++ b/internal/ai/patrol_ai_eval_additional_test.go@@ -58,6 +58,7 @@ func TestEvalPromptBuilders(t *testing.T) {func TestTriageFlagsToDetectedSignalsPreservesModelOwnedCandidates(t *testing.T) {flags := []TriageFlag{{ResourceID: "app-1", ResourceName: "api", ResourceType: "app-container", Category: "health", Severity: "warning", Reason: "health check is unhealthy"},+ {ResourceID: "app-2", ResourceName: "worker", ResourceType: "app-container", Category: "reliability", Severity: "warning", Reason: "provider reported five restarts"},{ResourceID: "node-1", ResourceName: "node", ResourceType: "node", Category: "connectivity", Severity: "critical", Reason: "node is unreachable"},{ResourceID: "vm-1", ResourceName: "db", ResourceType: "vm", Category: "anomaly", Metric: "memory", Severity: "watch", Reason: "memory differs from baseline"},{ResourceID: "storage-1", ResourceName: "pool", ResourceType: "storage", Category: "anomaly", Metric: "usage", Severity: "warning", Reason: "usage growth differs from baseline"},@@ -66,10 +67,10 @@ func TestTriageFlagsToDetectedSignalsPreservesModelOwnedCandidates(t *testing.T)}signals := triageFlagsToDetectedSignals(flags)- if len(signals) != 5 {- t.Fatalf("signal count = %d, want 5: %+v", len(signals), signals)+ if len(signals) != 6 {+ t.Fatalf("signal count = %d, want 6: %+v", len(signals), signals)}- wantCategories := []string{"reliability", "reliability", "performance", "capacity", "general"}+ wantCategories := []string{"reliability", "reliability", "reliability", "performance", "capacity", "general"}for i, wantCategory := range wantCategories {if signals[i].Category != wantCategory {t.Fatalf("signal %d category = %q, want %q", i, signals[i].Category, wantCategory)@@ -88,15 +89,16 @@ func TestTriageFlagsForDecisionFloorPrioritizesLifecycleEvidence(t *testing.T) {{ResourceID: "metric", Category: "performance", Reason: "ordinary threshold crossing"},{ResourceID: "anomaly", Category: "anomaly", Reason: "learned anomaly"},{ResourceID: "health", Category: "health", Reason: "failed health check"},+ {ResourceID: "restart", Category: "reliability", Reason: "provider reported five restarts"},{ResourceID: "backup", Category: "backup", Reason: "backup failed"},{ResourceID: "network", Category: "connectivity", Reason: "endpoint unreachable"},}selected := triageFlagsForDecisionFloor(flags)- if len(selected) != 4 {- t.Fatalf("selected = %+v, want four lifecycle/anomaly candidates", selected)+ if len(selected) != 5 {+ t.Fatalf("selected = %+v, want five lifecycle/anomaly candidates", selected)}- wantIDs := []string{"health", "backup", "network", "anomaly"}+ wantIDs := []string{"health", "restart", "backup", "network", "anomaly"}for i, wantID := range wantIDs {if selected[i].ResourceID != wantID {t.Fatalf("selected[%d] = %q, want %q", i, selected[i].ResourceID, wantID)