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
Instruct the Assistant to attribute facts and caveat staleness
rcourtman55dfdcb1d30a
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex ffa7c2757d..18ec1f4f4a 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -1810,6 +1810,11 @@ deriving an older display status from `workflowStatusHistory`.caveat staleness rather than presenting cached operational detail as current.The handoff path must not withhold operational context that the `@`-mentionpath delivers.+ The base Assistant system prompt must instruct the model to use this+ provenance: briefly attribute facts drawn from Pulse context to their source+ (a discovered fact's source, a metric/event timestamp), caveat stale or cached+ context instead of presenting it as current, and keep attribution concise and+ inline rather than citing every sentence.Patrol deterministic triage signals are prioritized evidence seeds for theconfigured model; they must not be described as a Pulse-authored finaldiagnosis, proof that unflagged resources are healthy, or a reason todiff --git a/internal/ai/chat/service.go b/internal/ai/chat/service.goindex 04f0baa9bb..a7501a324c 100644--- a/internal/ai/chat/service.go+++ b/internal/ai/chat/service.go@@ -3794,6 +3794,12 @@ You are like a colleague doing pair programming on infrastructure tasks. Tool ca6. KEEP FORMATTING CLEAN: Use concise headings, bullets, and tables where they help. Do not use emoji, warning icons, or decorative symbols in normal operational answers unless the user explicitly asks for that tone.+## GROUNDING & PROVENANCE+Pulse context carries provenance: discovered facts include the source that produced them and a confidence, discovery context states when it was last gathered ("Last discovered: 2 days ago"), and metrics and events carry timestamps.+- When you state a fact drawn from this context, attribute it briefly so the user can trust and verify it — name the source for a discovered fact ("Debian 12, per /etc/os-release") and note recency for time-sensitive claims ("as of the last poll", "the discovery is 2 days old").+- Do not present stale or cached context as current. If the discovery is old or the underlying state may have changed since, say so and offer to re-check live.+- Keep attribution concise and inline; do not append a citation to every sentence or clutter the answer.+## TASK COMPLETION- After successful control actions, respond once you have enough evidence to explain the result.- If a tool call is blocked, treat the result as a policy boundary, not a tool-routing instruction.diff --git a/internal/ai/chat/service_tooling_test.go b/internal/ai/chat/service_tooling_test.goindex cd6fd94055..dc5c7ecc90 100644--- a/internal/ai/chat/service_tooling_test.go+++ b/internal/ai/chat/service_tooling_test.go@@ -365,6 +365,23 @@ func TestBuildSystemPrompt_DoesNotClaimGenericVMControl(t *testing.T) {}}+func TestBuildSystemPrompt_IncludesProvenanceGuidance(t *testing.T) {+ svc := &Service{}++ prompt := svc.buildSystemPrompt()++ for _, expected := range []string{+ "## GROUNDING & PROVENANCE",+ "attribute it briefly so the user can trust and verify it",+ "Do not present stale or cached context as current",+ "Keep attribution concise and inline",+ } {+ if !strings.Contains(prompt, expected) {+ t.Fatalf("expected provenance guidance %q in system prompt, got %q", expected, prompt)+ }+ }+}+func TestBuildSystemPrompt_CurrentResourceRequiresResourceHandoff(t *testing.T) {svc := &Service{}