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
Drop monitored system legacy signal aliases
rcourtmancc2f0d2fcfd9
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 814abe38db..a9dc2460d7 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -239,15 +239,12 @@ must preserve the canonical reason list from the ledger read so operators cansee which grouped source or surface degraded and when it last reported,instead of only seeing a generic warning/offline paragraph.That same ledger read also treats the canonical `latest_included_signal`-object as the freshest included grouped observation, with-`latest_included_signal_at`, `latest_included_signal_source`, and `last_seen`-left only as rollout compatibility fields rather than promises that every-grouped source is healthy at that moment. Lifecycle-adjacent consumers must-not label it with generic single-source health wording, and should use the-canonical object when they need attribution for which grouped surface reported-most recently. When those flat fields still appear during rollout, they should-be treated only as aliases for `latest_included_signal.at` and-`latest_included_signal.source`, not as an independent lifecycle signal.+object as the freshest included grouped observation. Lifecycle-adjacent+consumers must not label it with generic single-source health wording, and+should use the canonical object when they need attribution for which grouped+surface reported most recently. Older rollout payloads may still carry flat+alias fields, but lifecycle consumers must treat those as legacy input only,+not as an independent lifecycle signal contract.Lifecycle-adjacent workspace copy must also keep the same commercial framing:infrastructure operations may point operators to Pulse Pro for billing, but itmust describe that boundary in monitored-system, plan-limit, and license-statusdiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex fdd8ca3b81..b1d3c3cb3d 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -255,15 +255,11 @@ making warning or offline state look contradictory.That freshest grouped observation is now canonically exposed as the structured`latest_included_signal` object. Its `at`, `source`, `name`, and `type` fieldsidentify exactly which included top-level surface reported most recently.-`latest_included_signal_at`, `latest_included_signal_source`, and `last_seen`-remain rollout compatibility fields only on the raw wire shape; normalized-frontend clients should treat the object as the primary contract and must not-re-export those flat aliases in their public response model.-When those flat fields are still emitted for rollout compatibility, the backend-must derive them directly from the canonical object rather than from a parallel-timestamp/source path, so `latest_included_signal_at` and `last_seen` mirror-`latest_included_signal.at` and `latest_included_signal_source` mirrors-`latest_included_signal.source`.+The backend payload contract now emits only that structured object. Frontend+clients may keep temporary raw-payload fallback support for older server+rollouts, but the canonical wire contract no longer serializes+`latest_included_signal_at`, `latest_included_signal_source`, or `last_seen`,+and normalized client models must not re-export those retired aliases.That client contract must also fail closed when older or partial payloads omitthe nested explanation object: the frontend may normalize missing explanationfields to empty reasons/surfaces plus a safe default summary, but it must notdiff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex b447940021..2b92c60854 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -378,15 +378,13 @@ must preserve the backend-provided reason list for stale or offline groupedsources instead of reducing those mixed fresh/stale system states back to ageneric label.That same ledger dependency also treats the canonical `latest_included_signal`-object as the freshest grouped observation, with-`latest_included_signal_at`, `latest_included_signal_source`, and `last_seen`-left only as rollout compatibility fields rather than universal health-timestamps. Storage- or recovery-adjacent consumers must not present that data-with bare single-source `Last Seen` wording that hides grouped stale/offline-conditions, and should use the canonical object when they need attribution for-which grouped surface most recently reported. When those flat fields still-appear during rollout, they should be interpreted only as aliases for the-canonical object rather than as separate storage-facing freshness signals.+object as the freshest grouped observation. Storage- or recovery-adjacent+consumers must not present that data with bare single-source `Last Seen`+wording that hides grouped stale/offline conditions, and should use the+canonical object when they need attribution for which grouped surface most+recently reported. Older rollout payloads may still carry flat alias fields,+but storage-facing consumers must interpret them only as legacy input for the+canonical object rather than as separate freshness signals.That same shared `internal/api/` dependency now also assumes self-hostedcommercial counting is canonical at the top-level monitored-system boundary:shared setup, deploy, entitlement, and API-backed monitoring helpers may notdiff --git a/internal/api/contract_test.go b/internal/api/contract_test.goindex 97405cdad4..2f009460d5 100644--- a/internal/api/contract_test.go+++ b/internal/api/contract_test.go@@ -600,10 +600,7 @@ func TestContract_MonitoredSystemLedgerJSONSnapshot(t *testing.T) {Source: "agent",At: "2026-03-18T17:30:00Z",},- LatestIncludedSignalAt: "2026-03-18T17:30:00Z",- LatestIncludedSignalSource: "agent",- LastSeen: "2026-03-18T17:30:00Z",- Source: "agent",+ Source: "agent",Explanation: MonitoredSystemLedgerExplanation{Summary: "Counts as one monitored system because Pulse sees one top-level host view from agent.",Reasons: []MonitoredSystemLedgerExplanationReason{@@ -658,9 +655,6 @@ func TestContract_MonitoredSystemLedgerJSONSnapshot(t *testing.T) {"source":"agent","at":"2026-03-18T17:30:00Z"},- "latest_included_signal_at":"2026-03-18T17:30:00Z",- "latest_included_signal_source":"agent",- "last_seen":"2026-03-18T17:30:00Z","source":"agent","explanation":{"summary":"Counts as one monitored system because Pulse sees one top-level host view from agent.",@@ -688,7 +682,7 @@ func TestContract_MonitoredSystemLedgerJSONSnapshot(t *testing.T) {assertJSONSnapshot(t, got, want)}-func TestContract_MonitoredSystemLedgerCompatibilityAliasesFollowLatestSignal(t *testing.T) {+func TestContract_MonitoredSystemLedgerDoesNotEmitCompatibilityAliases(t *testing.T) {entry := monitoredSystemLedgerEntry(unifiedresources.MonitoredSystemRecord{Name: "Tower",Type: "host",@@ -739,9 +733,6 @@ func TestContract_MonitoredSystemLedgerCompatibilityAliasesFollowLatestSignal(t"source":"docker","at":"2026-03-18T17:30:00Z"},- "latest_included_signal_at":"2026-03-18T17:30:00Z",- "latest_included_signal_source":"docker",- "last_seen":"2026-03-18T17:30:00Z","source":"multiple","explanation":{"summary":"Counts as one monitored system because Pulse merged 2 top-level views into one canonical system using shared machine identity.",diff --git a/internal/api/monitored_system_ledger.go b/internal/api/monitored_system_ledger.goindex b7f97eebf5..40961ee06d 100644--- a/internal/api/monitored_system_ledger.go+++ b/internal/api/monitored_system_ledger.go@@ -13,16 +13,13 @@ import (// MonitoredSystemLedgerEntry represents a single counted top-level monitored// system.type MonitoredSystemLedgerEntry struct {- Name string `json:"name"`- Type string `json:"type"`- Status string `json:"status"` // "online", "warning", "offline", "unknown"- StatusExplanation MonitoredSystemLedgerStatusExplanation `json:"status_explanation"`- LatestIncludedSignal MonitoredSystemLedgerLatestSignal `json:"latest_included_signal"`- LatestIncludedSignalAt string `json:"latest_included_signal_at"` // freshest included observation, RFC3339 or empty- LatestIncludedSignalSource string `json:"latest_included_signal_source,omitempty"`- LastSeen string `json:"last_seen,omitempty"` // deprecated compatibility alias for latest_included_signal_at- Source string `json:"source"`- Explanation MonitoredSystemLedgerExplanation `json:"explanation"`+ Name string `json:"name"`+ Type string `json:"type"`+ Status string `json:"status"` // "online", "warning", "offline", "unknown"+ StatusExplanation MonitoredSystemLedgerStatusExplanation `json:"status_explanation"`+ LatestIncludedSignal MonitoredSystemLedgerLatestSignal `json:"latest_included_signal"`+ Source string `json:"source"`+ Explanation MonitoredSystemLedgerExplanation `json:"explanation"`}type MonitoredSystemLedgerLatestSignal struct {@@ -150,16 +147,13 @@ func monitoredSystemLedgerEntry(system unifiedresources.MonitoredSystemRecord) Mstatus := normalizeStatus(string(system.Status))latestIncludedSignal := monitoredSystemLedgerLatestSignal(system.LatestIncludedSignal)return MonitoredSystemLedgerEntry{- Name: system.Name,- Type: system.Type,- Status: status,- StatusExplanation: monitoredSystemLedgerStatusExplanation(system.StatusExplanation, status),- LatestIncludedSignal: latestIncludedSignal,- LatestIncludedSignalAt: latestIncludedSignal.At,- LatestIncludedSignalSource: latestIncludedSignal.Source,- LastSeen: latestIncludedSignal.At,- Source: system.Source,- Explanation: monitoredSystemLedgerExplanation(system.Explanation),+ Name: system.Name,+ Type: system.Type,+ Status: status,+ StatusExplanation: monitoredSystemLedgerStatusExplanation(system.StatusExplanation, status),+ LatestIncludedSignal: latestIncludedSignal,+ Source: system.Source,+ Explanation: monitoredSystemLedgerExplanation(system.Explanation),}}diff --git a/internal/api/monitored_system_ledger_test.go b/internal/api/monitored_system_ledger_test.goindex 415b0a5f85..a3c1de0712 100644--- a/internal/api/monitored_system_ledger_test.go+++ b/internal/api/monitored_system_ledger_test.go@@ -25,10 +25,7 @@ func TestMonitoredSystemLedgerEntryTypes(t *testing.T) {Source: "agent",At: "2025-01-01T00:00:00Z",},- LatestIncludedSignalAt: "2025-01-01T00:00:00Z",- LatestIncludedSignalSource: "agent",- LastSeen: "2025-01-01T00:00:00Z",- Source: "agent",+ Source: "agent",Explanation: MonitoredSystemLedgerExplanation{Summary: "Counts as one monitored system because Pulse sees one top-level host view from agent.",Reasons: []MonitoredSystemLedgerExplanationReason{@@ -56,15 +53,9 @@ func TestMonitoredSystemLedgerEntryTypes(t *testing.T) {if decoded.StatusExplanation.Reasons == nil {t.Errorf("status explanation reasons mismatch: %+v", decoded.StatusExplanation)}- if decoded.LatestIncludedSignalAt != "2025-01-01T00:00:00Z" {- t.Errorf("latest included signal mismatch: %+v", decoded)- }if decoded.LatestIncludedSignal.Name != "server-1" || decoded.LatestIncludedSignal.Type != "host" || decoded.LatestIncludedSignal.At != "2025-01-01T00:00:00Z" {t.Errorf("latest included signal payload mismatch: %+v", decoded.LatestIncludedSignal)}- if decoded.LatestIncludedSignalSource != "agent" {- t.Errorf("latest included signal source mismatch: %+v", decoded)- }if decoded.Source != "agent" {t.Errorf("source mismatch: got %q", decoded.Source)}@@ -136,7 +127,7 @@ func TestMonitoredSystemLedgerStatusExplanation(t *testing.T) {}}-func TestMonitoredSystemLedgerEntryUsesLatestIncludedSignalForCompatibilityAliases(t *testing.T) {+func TestMonitoredSystemLedgerEntryDoesNotEmitCompatibilityAliases(t *testing.T) {got := monitoredSystemLedgerEntry(unifiedresources.MonitoredSystemRecord{Name: "Tower",Type: "host",@@ -163,14 +154,22 @@ func TestMonitoredSystemLedgerEntryUsesLatestIncludedSignalForCompatibilityAliasif got.LatestIncludedSignal.At != "2026-03-23T12:00:00Z" {t.Fatalf("expected canonical latest signal timestamp, got %+v", got.LatestIncludedSignal)}- if got.LatestIncludedSignalAt != got.LatestIncludedSignal.At {- t.Fatalf("expected latest_included_signal_at to mirror latest_included_signal.at, got %+v", got)+ data, err := json.Marshal(got)+ if err != nil {+ t.Fatalf("marshal: %v", err)+ }+ var decoded map[string]any+ if err := json.Unmarshal(data, &decoded); err != nil {+ t.Fatalf("unmarshal: %v", err)+ }+ if _, ok := decoded["latest_included_signal_at"]; ok {+ t.Fatalf("expected latest_included_signal_at to be absent, got %+v", decoded)}- if got.LastSeen != got.LatestIncludedSignal.At {- t.Fatalf("expected last_seen compatibility alias to mirror latest_included_signal.at, got %+v", got)+ if _, ok := decoded["latest_included_signal_source"]; ok {+ t.Fatalf("expected latest_included_signal_source to be absent, got %+v", decoded)}- if got.LatestIncludedSignalSource != got.LatestIncludedSignal.Source {- t.Fatalf("expected latest_included_signal_source to mirror latest_included_signal.source, got %+v", got)+ if _, ok := decoded["last_seen"]; ok {+ t.Fatalf("expected last_seen to be absent, got %+v", decoded)}}@@ -251,10 +250,7 @@ func TestHandleMonitoredSystemLedgerHTTP(t *testing.T) {Source: "agent",At: "2025-01-01T00:00:00Z",},- LatestIncludedSignalAt: "2025-01-01T00:00:00Z",- LatestIncludedSignalSource: "agent",- LastSeen: "2025-01-01T00:00:00Z",- Source: "agent",+ Source: "agent",Explanation: MonitoredSystemLedgerExplanation{Summary: "Counts as one monitored system because Pulse sees one top-level host view from agent.",Reasons: []MonitoredSystemLedgerExplanationReason{@@ -295,15 +291,9 @@ func TestHandleMonitoredSystemLedgerHTTP(t *testing.T) {if decoded.Systems[0].StatusExplanation.Reasons == nil {t.Errorf("expected status explanation reasons, got %+v", decoded.Systems[0].StatusExplanation)}- if decoded.Systems[0].LatestIncludedSignalAt != "2025-01-01T00:00:00Z" {- t.Errorf("expected latest included signal timestamp, got %+v", decoded.Systems[0])- }if decoded.Systems[0].LatestIncludedSignal.Source != "agent" {t.Errorf("expected latest included signal payload, got %+v", decoded.Systems[0].LatestIncludedSignal)}- if decoded.Systems[0].LatestIncludedSignalSource != "agent" {- t.Errorf("expected latest included signal source, got %+v", decoded.Systems[0])- }if decoded.Systems[0].Explanation.Summary == "" {t.Errorf("expected explanation summary, got %+v", decoded.Systems[0].Explanation)}