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.

Document the report-narrator detection-boundary invariant

rcourtmanac0f361372c0
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index 0a3d241246..8b99304133 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -1813,3 +1813,20 @@ deliberately not propagated through the multi-report path; a
50-resource fleet report performs exactly one AI call (the fleet
narrator) rather than 51 (one per resource plus a fleet-level
summary).
+
+Both the single-resource and fleet narrator system prompts also
+encode an explicit detection-boundary invariant: Pulse Patrol is the
+canonical detection layer, and the report narrators must function as
+summarizers of Patrol's classified state rather than parallel
+detectors. The narrator may classify an observation at "warning" or
+"critical" severity only when it is backed by a Patrol finding, an
+alert, or a hard-threshold breach in the structured input (cpu max
+above 90, memory avg above 85, disk avg above 85, failed or
+high-wear disks, storage pools at 90 percent or more). Patterns it
+notices in the metric data without that backing may be mentioned at
+"info" severity but must not be promoted. Recommendations follow
+the same rule: no remediation for inferred issues that lack a
+finding, alert, or threshold breach. This keeps the report
+narrative honestly retrospective on Patrol's work and prevents
+silent shadow-classification competing with Patrol's detection
+rules.
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 5aa9884067..3038494ab0 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -4411,3 +4411,16 @@ summary table (resource, type, status, avg CPU/memory/disk, alert
count) remains rendered from the same per-resource aggregates
above the narrative section, so every named outlier is verifiable
against the table immediately below it.
+Both narrators (single-resource and fleet) carry a detection-
+boundary invariant in their system prompts: a "warning" or
+"critical" classification on any observation, outlier, or pattern
+must be backed by a Patrol finding, an alert, or a hard-threshold
+breach visible in the structured input (cpu max above 90, memory
+avg above 85, disk avg above 85, failed or high-wear disks, or
+storage pools at 90 percent or more). Trends the narrator infers
+from metric data without that backing are constrained to "info"
+severity. The same constraint applies to recommendations.
+Detection and severity classification are owned by Patrol; the
+report narrators summarize Patrol's work and must not function as
+parallel classifiers, so the report PDF cannot become a back-door
+detection surface that diverges from Patrol's findings store.