Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Preserve causal evidence before Patrol proposals

rcourtman17ccb8240dbe
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index f8600c394d..40ffa7dfeb 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -67,7 +67,11 @@ evidence plus an advertised restart is sufficient to submit that governed
proposal unless evidence identifies a restart-specific hazard. Empty logs,
approval-blocked deeper inspection, or an unknown root cause do not substitute
for such a hazard and must not cause Patrol to pre-empt the policy/operator
-decision by withholding the proposal.
+decision by withholding the proposal. This permission does not relax causal
+evidence ordering: when a cross-resource cause remains plausible, Patrol must
+test at least one plausible peer or dependency through canonical query,
+discovery, or topology evidence before proposing against the symptom resource
+or concluding that root cause is unknown.
An investigation cannot complete or submit a typed action proposal before the
model has received at least one successful structured result from an advertised
evidence tool. Until then, core withholds proposal authority while leaving
diff --git a/internal/ai/chat/agentic_prompt.go b/internal/ai/chat/agentic_prompt.go
index 18828be55f..21a1db9d0a 100644
--- a/internal/ai/chat/agentic_prompt.go
+++ b/internal/ai/chat/agentic_prompt.go
@@ -42,7 +42,11 @@ reason for trying it. In particular, a running but currently unhealthy app conta
governed restart proposal when restart is advertised and the evidence reveals no restart-specific
hazard; empty logs, approval-blocked deeper inspection, or unknown root cause are not by themselves
reasons to withhold that proposal. The proposal hands the exact decision to core policy or the
-operator. If your Recommendation or Conclusion tells the operator to try, consider,
+operator. This does not permit an early symptom-only proposal: before proposing on the symptom
+resource or concluding that root cause is unknown, use available canonical query, discovery, or
+topology evidence to test at least one plausible causal peer or dependency whenever a cross-resource
+cause remains plausible. Only after that test may empty logs or blocked deeper inspection support a
+bounded symptom-resource proposal. If your Recommendation or Conclusion tells the operator to try, consider,
or perform an advertised remediation, you must call patrol_propose_action for that exact action;
never leave it only as prose. Core policy independently decides whether it may execute. If the
evidence does not support any advertised remediation, state the uncertainty and conclude without
diff --git a/internal/ai/chat/service_tooling_test.go b/internal/ai/chat/service_tooling_test.go
index 3781f45bcd..c91eff7cdf 100644
--- a/internal/ai/chat/service_tooling_test.go
+++ b/internal/ai/chat/service_tooling_test.go
@@ -1027,6 +1027,8 @@ func TestExecutionProfilePromptModes(t *testing.T) {
!strings.Contains(prompt, "running but currently unhealthy app container") ||
!strings.Contains(prompt, "approval-blocked deeper inspection") ||
!strings.Contains(prompt, "hands the exact decision to core policy") ||
+ !strings.Contains(prompt, "does not permit an early symptom-only proposal") ||
+ !strings.Contains(prompt, "plausible causal peer or dependency") ||
!strings.Contains(prompt, "Tool function names are exact") ||
!strings.Contains(prompt, "action or operation schema are arguments") {
t.Fatalf("investigation prompt must turn supported remediation into a governed proposal, got %q", prompt)