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 monitored system latest-signal labeling

rcourtman03e66a7b0445
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index f39d58d4c1..591dd41a64 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -238,6 +238,10 @@ Those status details are now structured as well: lifecycle-adjacent consumers
must preserve the canonical reason list from the ledger read so operators can
see 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 `last_seen` as the freshest included grouped
+observation rather than a promise that every grouped source is healthy at that
+moment, so lifecycle-adjacent consumers must not label it with generic
+single-source health wording.
Lifecycle-adjacent workspace copy must also keep the same commercial framing:
infrastructure operations may point operators to Pulse Pro for billing, but it
must describe that boundary in monitored-system, plan-limit, and license-status
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 72711746f0..df399e9b10 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -252,6 +252,9 @@ That canonical summary must also carry the mixed-source freshness explanation
when the freshest grouped observation came from a different source than the
degraded one, so API consumers can show a fresh `Last Seen` value without
making warning or offline state look contradictory.
+That same `last_seen` field is the freshest included grouped observation, not a
+claim that every grouped source reported successfully at that time. API
+consumers must preserve that meaning in their labeling and presentation.
That client contract must also fail closed when older or partial payloads omit
the nested explanation object: the frontend may normalize missing explanation
fields to empty reasons/surfaces plus a safe default summary, but it must not
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 1e66138351..fd35b7f36d 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -219,6 +219,11 @@ That same cloud-paid surface must now also render the canonical status reason
list when present, so customers can see exactly which grouped source or
top-level surface degraded and when it last reported rather than only reading
generic status copy beside a fresh aggregate `Last Seen` value.
+That same settings surface must also label the aggregate `last_seen` field by
+its real meaning. In the monitored-system ledger it is the freshest included
+grouped observation, not a guarantee that every grouped source is healthy, so
+the UI must not present it with a bare `Last Seen` heading that implies a
+single-source health timestamp.
Frontend billing/admin surfaces must not synthesize `plan_version` from
subscription lifecycle state. When a hosted billing record lacks a plan label,
the UI must preserve that absence instead of fabricating values like `active`
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 5ccf77df67..afbf6466ce 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -376,6 +376,10 @@ adjacent consumers may read the ledger’s nested status explanation, but they
must preserve the backend-provided reason list for stale or offline grouped
sources instead of reducing those mixed fresh/stale system states back to a
generic label.
+That same ledger dependency also treats `last_seen` as the freshest grouped
+observation rather than a universal health timestamp, so storage- or recovery-
+adjacent consumers must not present that field with bare single-source `Last
+Seen` wording that hides grouped stale/offline conditions.
That same shared `internal/api/` dependency now also assumes self-hosted
commercial counting is canonical at the top-level monitored-system boundary:
shared setup, deploy, entitlement, and API-backed monitoring helpers may not
diff --git a/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts b/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts
index 300d942ac9..6d967be341 100644
--- a/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts
+++ b/frontend-modern/src/api/__tests__/monitoredSystemLedger.test.ts
@@ -113,6 +113,26 @@ describe('MonitoredSystemLedgerAPI', () => {
expect(result.systems[0]?.status).toBe('warning');
});
+ it('preserves the freshest included observation timestamp from the API contract', async () => {
+ vi.mocked(apiFetchJSON).mockResolvedValueOnce({
+ systems: [
+ {
+ name: 'Tower',
+ type: 'host',
+ status: 'warning',
+ last_seen: '2026-03-23T11:59:50Z',
+ source: 'multiple',
+ },
+ ],
+ total: 1,
+ limit: 5,
+ });
+
+ const result = await MonitoredSystemLedgerAPI.getLedger();
+
+ expect(result.systems[0]?.last_seen).toBe('2026-03-23T11:59:50Z');
+ });
+
it('preserves canonical status explanation reasons from the API contract', async () => {
vi.mocked(apiFetchJSON).mockResolvedValueOnce({
systems: [
diff --git a/frontend-modern/src/api/monitoredSystemLedger.ts b/frontend-modern/src/api/monitoredSystemLedger.ts
index 3c2bbe1fba..5b92aab721 100644
--- a/frontend-modern/src/api/monitoredSystemLedger.ts
+++ b/frontend-modern/src/api/monitoredSystemLedger.ts
@@ -46,7 +46,7 @@ export interface MonitoredSystemLedgerEntry {
type: string;
status: MonitoredSystemLedgerStatus;
status_explanation?: MonitoredSystemLedgerStatusExplanation;
- last_seen: string; // RFC3339 or empty
+ last_seen: string; // freshest included observation, RFC3339 or empty
source: string;
explanation?: MonitoredSystemLedgerExplanation;
}
diff --git a/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx b/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx
index 60591f20fe..9bfdf221f1 100644
--- a/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx
+++ b/frontend-modern/src/components/Settings/MonitoredSystemLedgerPanel.tsx
@@ -144,7 +144,7 @@ export function MonitoredSystemLedgerPanel(props: MonitoredSystemLedgerPanelProp
<TableRow>
<TableHead>Name</TableHead>
<TableHead>Status</TableHead>
- <TableHead>Last Seen</TableHead>
+ <TableHead>Latest Included Signal</TableHead>
</TableRow>
</TableHeader>
<TableBody>
diff --git a/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx b/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx
index 16f1613b97..a32227fb72 100644
--- a/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/MonitoredSystemLedgerPanel.test.tsx
@@ -207,6 +207,7 @@ describe('MonitoredSystemLedgerPanel', () => {
});
expect(screen.getByText('Monitored System Ledger')).toBeInTheDocument();
+ expect(screen.getByText('Latest Included Signal')).toBeInTheDocument();
expect(
screen.getByText(
'Review the monitored systems currently counted against your Pulse Pro plan limit.',
diff --git a/internal/api/monitored_system_ledger.go b/internal/api/monitored_system_ledger.go
index 4145343444..2d133ec572 100644
--- a/internal/api/monitored_system_ledger.go
+++ b/internal/api/monitored_system_ledger.go
@@ -17,7 +17,7 @@ type MonitoredSystemLedgerEntry struct {
Type string `json:"type"`
Status string `json:"status"` // "online", "warning", "offline", "unknown"
StatusExplanation MonitoredSystemLedgerStatusExplanation `json:"status_explanation"`
- LastSeen string `json:"last_seen"` // RFC3339 or empty
+ LastSeen string `json:"last_seen"` // freshest included observation, RFC3339 or empty
Source string `json:"source"`
Explanation MonitoredSystemLedgerExplanation `json:"explanation"`
}