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
Reserve Patrol reporting turn for confirmed symptoms
rcourtmanee9d4b10714e
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 23331d0034..de010ea817 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -88,8 +88,12 @@ not fabricate one. Scopedtriage seed context contains both deterministic flags and the explicitly scopedresource inventory, including exact app-container health, rather than reducingthe model's evidence to whichever resources the deterministic pass happened to-flag. Quick scoped checks have a strict three-turn model budget: active-finding-inspection, report or assessment, and final summary. A capability-unavailable+flag. A direct provider-state triage flag is a Watch detection stop condition:+the model checks active findings and records the confirmed symptom from seed+evidence before any query, discovery, log, or broad inventory call; root-cause+investigation is a separate follow-up. Quick scoped checks have a strict+four-turn model budget: active-finding inspection, report or assessment, one+bounded fallback turn, and a tool-free final summary. A capability-unavailableread result is terminal for that capability within the run and must not triggerretries or broad inventory scans.Patrol finding storage must consolidate equivalent active storage-capacitydiff --git a/internal/ai/patrol_ai.go b/internal/ai/patrol_ai.goindex 4771500091..d9d5726be5 100644--- a/internal/ai/patrol_ai.go+++ b/internal/ai/patrol_ai.go@@ -958,12 +958,13 @@ func computePatrolMaxTurns(resourceCount int, scope *PatrolScope) int {func computeTriageMaxTurns(flagCount int, scope *PatrolScope) int {// A quick Patrol run is an intentionally narrow check of already-scoped// resources. The seed contains the current resource evidence, leaving one- // turn to inspect active findings, one to report/assess, and one to finish.+ // turn to inspect active findings, one to report/assess, one bounded fallback+ // turn, and one tool-free final response.// Giving quick runs the full adaptive budget encourages broad rediscovery// and can multiply the same large tool schema across otherwise redundant// provider calls.if scope != nil && scope.Depth == PatrolDepthQuick {- return 3+ return 4}const (@@ -1285,6 +1286,10 @@ Pulse has assembled deterministic evidence before this turn. The flagged items aYour job is to assess the provided evidence and decide which items, if any, require attention. Available evidence sources include historical metrics, logs, backup/replication/RAID details, and resource configuration.+## Direct Provider-State Flags++The deterministic triage table and exact scoped inventory are current evidence collected through Pulse's normal provider paths. When they show a direct failed health check, failed backup, or broken replication state, treat detection as complete: call patrol_get_findings, then report or assess the confirmed symptom from the seed evidence. Do not call pulse_query, pulse_discovery, pulse_read, or broad inventory tools before recording that symptom. Root-cause investigation is a separate follow-up; unavailable logs must not consume the reporting turn.+After investigation, report new confirmed issues via patrol_report_finding and explicitly assess every active finding with patrol_assess_finding.Use the triage context to avoid broad routine inventory scans, but do not treat the absence of a flag as conclusive. If surrounding evidence or an active finding makes another resource relevant, choose the governed tools you need and explain the model-owned conclusion.`diff --git a/internal/ai/patrol_triage_integration_test.go b/internal/ai/patrol_triage_integration_test.goindex 678e7d5865..8e85794581 100644--- a/internal/ai/patrol_triage_integration_test.go+++ b/internal/ai/patrol_triage_integration_test.go@@ -156,8 +156,8 @@ func TestComputeTriageMaxTurns(t *testing.T) {quickScope := &PatrolScope{Depth: PatrolDepthQuick}for _, flagCount := range []int{0, 1, 15, 100} {- if got := computeTriageMaxTurns(flagCount, quickScope); got != 3 {- t.Fatalf("quick scope with %d flags: expected strict 3-turn budget, got %d", flagCount, got)+ if got := computeTriageMaxTurns(flagCount, quickScope); got != 4 {+ t.Fatalf("quick scope with %d flags: expected strict 4-turn budget, got %d", flagCount, got)}}}@@ -188,6 +188,8 @@ func TestGetPatrolSystemPromptForTriage(t *testing.T) {"Report that symptom even when logs or command execution are unavailable","root cause is unknown","do not retry that capability",+ "treat detection as complete",+ "Do not call pulse_query, pulse_discovery, pulse_read",} {if !strings.Contains(prompt, required) {t.Fatalf("expected confirmed-symptom evidence contract %q in prompt, got:\n%s", required, prompt)