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.

Clarify governed restart proposal policy

rcourtman64db84a7e3f1
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index 6b48c07f2f..f8600c394d 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -62,6 +62,12 @@ prose. Unknown root cause does not by itself prohibit a reversible, bounded
initial proposal when evidence confirms the operational symptom; capability
validation, approval floors, tenant mode, emergency stop, dispatch, and
verification remain core-owned and fail closed.
+For a running but currently unhealthy app container, exact current-state
+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.
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 23944768ab..18828be55f 100644
--- a/internal/ai/chat/agentic_prompt.go
+++ b/internal/ai/chat/agentic_prompt.go
@@ -38,7 +38,11 @@ function names of their own. If your diagnosis concludes that an advertised reme
and supported by the evidence, call patrol_propose_action before the final summary; that governed proposal is not
execution or approval. An unknown root cause does not by itself rule out a reversible, advertised
initial remediation when the evidence confirms the operational symptom and supports a bounded
-reason for trying it. If your Recommendation or Conclusion tells the operator to try, consider,
+reason for trying it. In particular, a running but currently unhealthy app container supports a
+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,
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 a0d4830725..3781f45bcd 100644
--- a/internal/ai/chat/service_tooling_test.go
+++ b/internal/ai/chat/service_tooling_test.go
@@ -1024,6 +1024,9 @@ func TestExecutionProfilePromptModes(t *testing.T) {
!strings.Contains(prompt, "you must call patrol_propose_action for that exact action") ||
!strings.Contains(prompt, "Core policy independently decides whether it may execute") ||
!strings.Contains(prompt, "unknown root cause does not by itself rule out") ||
+ !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, "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)