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
Preserve reviewed maintenance with current monitoring and alert history
pulse-triage[bot]42d045fd8142
diff --cc docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 4a2e830261,99e975cbfa..3320e80151--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@@ -15,32 -15,14 +15,40 @@@## Purpose+### Shared origin and webhook edit boundaries++The referenced `internal/api/` settings boundary treats explicit empty+`allowedOrigins` as a durable clear and omitted values as unchanged. Effective+GET values and deployment-owned overrides remain consistent; failed/rejected+saves cannot change live trust. This does not change agent identity, enrolment,+credential scope, execution permission, installer transport or TLS policy.+Notification Create/Update/Test consistently reject unresolved saved masks and+conflicting HTTP header identities before mutation or sending; literal edits,+masked responses and persist-before-publish remain intact. Source verification+uses `TestAllowedOrigins*` and `TestWebhookPlaceholderBoundaryAgreement` plus+the existing settings/notification authority and ordinary-delivery controls.++### Cluster installation keyboard continuity++`ClusterAgentDeployDialog` keeps one mounted dismissal button while loading,+selection, checking, installation and final results change its label. A focused+Install action hands focus to that button before it disappears, without moving+scroll; asynchronous completion never steals focus. Close/Cancel and the scoped+installer hand-off remain available without starting another install, and+closing an accepted run still does not cancel it. This is keyboard continuity,+not a change to job admission, token scope or native installation acceptance.+`frontend-modern/src/components/Settings/__tests__/ClusterAgentDeployDialog.test.tsx`+pins delayed candidate responses, safe fallbacks and both successful and failed+terminal projections alongside the live-connection confirmation flow.++ ### Alert projections carry a volatile metric status — issue #2068++ `models.Alert` gains an optional `metricStatus` (`models.MetricAlertStatus`)+ beside the alert-engine metadata. It is a live evaluation snapshot owned by+ the alerts subsystem. Agent report admission, host continuity and+ re-enrollment never read or write it, and it is not persisted with agent or+ state records.+### Source-record lookup preserves report admissionHost and Docker report admission still performs canonical host-view matchingdiff --cc docs/release-control/v6/internal/subsystems/alerts.mdindex c2229a562f,c80daddd90..d824e2d08c--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@@ -15,61 -15,23 +15,78 @@@## Purpose+### Connection confirmations cannot span unknown or disabled observations++The existing PVE/PBS/PMG/vSphere/TrueNAS connection-degraded detector requires+three consecutive degraded observations to activate and three consecutive+healthy observations to recover. Pending or unknown connection state is neither+degradation nor recovery: it drops pending activation and intent grace, restarts+recovery confirmation, and retains an active occurrence's identity, severity,+acknowledgement, trusted metadata and observation time without fire/resolve+callbacks. Paused connections, disabled connections and owning-resource offline+policy disablement clear active alerts immediately and reset pending activation+even when no active alert exists. Healthy evidence also ends pending intent grace.++Resets address exactly the connection's canonical discrete-state key, not another+connection, condition or metric. Core and optional shadow reducer observe the same+reset. Intent bookkeeping and its persisted checkpoint lose the interrupted run;+re-enabled detection must establish fresh confirmations and any explicit grace.+No new alert family, threshold, grace policy, route or external probe is added.++`connection_confirmation_gap_test.go` covers all five platforms, six interruption+paths, exact-connection isolation, fresh activation/grace, acknowledged recovery+and exactly-once callbacks with shadow parity. `TestInterruptDiscreteRun` in+`reducer/discrete_test.go` pins exact-key isolation, retained firing state,+acknowledgement, no fabricated resolution and idempotent interruption. These+synthetic source checks do not establish native outage or destination delivery.++### Metric timing requires continuous observed evidence++Unknown metric evidence interrupts timing, not the occurrence. Missing or+rejected unified values, non-finite current readings, and unavailable,+incomplete or invalid rolling windows drop a pending activation run and reset+an open incident's recovery run. Explicit metric-intent grace and its durable+pending checkpoint are reset as well. Fresh evidence must complete a new full+configured delay; unknown time cannot fulfil a sustained-for or recovery rule.+Existing alert values, identity, start time, acknowledgement, notification and+lifecycle records are not refreshed or resolved by that interruption.++Guest backup/QGA deferrals apply this boundary to retained memory and aggregate+and per-filesystem disk readings. Failed or expired empty disk inventory+interrupts tracked filesystem runs, including a guest's former node-scoped+identities, without implying filesystem removal. Different guests, instances,+metrics and independently current CPU/I/O remain independent. Host memory also+interrupts timing when its usage is unknown; explicit rule disablement still+uses its normal clearing path independently of telemetry. Node temperature's+existing interruption rule is unchanged. Typed metric dispatchers must exclude+metrics they evaluate separately from their own missing-value checks: node+usage dispatch does not infer a temperature gap before the node's independent+temperature evaluator observes its actual reading.++`metric_observation_continuity_test.go` verifies actual legacy/canonical,+unified, host and VM entry points, full-delay fresh activation/recovery,+explicit grace, empty/migrated filesystem inventory and rejected-value/source+isolation. `guest_observation_test.go` no longer treats a retained-reading gap+as elapsed breach evidence. These controls establish source lifecycle+truthfulness, not native freeze/thaw safety or external notification delivery.++ ### Open threshold alerts carry a volatile live status — issue #2068++ `evaluateCanonicalMetricAlert` builds `MetricStatus` from the evaluator's own+ inputs on every evaluation, including the hysteresis hold and the recovery+ run, where `Value`, `Message` and `LastSeen` stay at the last breach and no+ branch may notify. The phase comes from the trigger, the clear level handed to+ the reducer (a value at or below it counts toward recovery) and the reducer's+ recovery run; progress uses that run's monotonic elapsed time. The status is+ stripped from the active-state checkpoint, the recovery mirror and the+ degraded recovery projection, so a held alert adds no durable writes, and+ after a restart it is absent until the next evaluation. Resolved records carry+ no live status. Stale-alert cleanup and the retention TTLs use the latest+ observation (`lastObservedAt`), so an alert held below its trigger for over a+ day is not auto-resolved as unmonitored. Frontend surfaces format the status+ through `features/alerts/metricAlertPresentation.ts` and never re-derive the+ phase or recovery timing.+### Retained guest observations are not alert evidenceGuest memory marked `last-known`, `unavailable` or an unknown observation statediff --cc docs/release-control/v6/internal/subsystems/api-contracts.mdindex a6f412455b,ae4efc4a57..a4e7b27e76--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@@ -20,77 -20,18 +20,89 @@@## Purpose+### Origin-trust reversal and consistent webhook placeholders++`POST /api/system/settings/update` treats the presence of a string+`allowedOrigins` as a patch: an explicit empty string removes saved and runtime+CORS trust, while omission changes neither. Null is not an empty-string clear.+Persist first; a failed save changes no runtime policy or settings cache.+`GET /api/system/settings` reports the effective value. Deployment-owned origins+remain authoritative: changing them returns `409 env_locked` before any save;+the form's unchanged locked value does not replace the underlying saved value+or prevent other settings edits. Authentication, settings scopes, CSRF, TLS,+comma-separated exact-origin matching and embedding policy stay independent.+`TestAllowedOriginsPatchBoundaries`, `TestAllowedOriginsSavedEffectiveLifecycle`,+`TestAllowedOriginsSaveFailurePreservesPolicy` and+`TestAllowedOriginsGetUsesDeploymentPolicy` bind these boundaries to the real+handlers, middleware, persisted settings, settings reload and production config+loader. This is source acceptance, not an installed deployment observation.++Webhook Create, Update and saved-form Test use one masked-value resolver.+`***REDACTED***` means keep the corresponding saved value, not omit the field:+missing, masked or conflicting saved identities return `400` before saving,+live publication or a Test send. HTTP header names share case-insensitive+identity, including aliases alongside an exact match; custom-field keys remain+case-sensitive. Conflicting submitted header aliases are also rejected.+A masked signing secret needs a non-empty, non-placeholder saved secret.+Explicit additions/changes, omitted-map replacement/removals and blank-header+normalization retain the existing semantics; list/create/update responses stay+masked. Unsaved forms must supply literal values rather than saved masks.+`TestWebhookPlaceholderBoundaryAgreement` and+`TestWebhookSavedFormTestMatchesEncryptedEdit` exercise every entry point and a+real Test request plus encrypted edit/readback. Existing ordinary-delivery+integration retains grouped/ungrouped firing, resolution and restart controls;+these do not establish native Telegram acceptance or alter old queued jobs.++### Existing disk History keeps native thermal fallback reachable++The authenticated disk History endpoint supplements a missing or shallow+`smart_temp` series even when independent I/O metrics already exist in the+persistent store. Single-metric and the drawer's all-metric requests use the+same monitor-owned native/local selection. Only a broader series (or more+actual samples at equal span) replaces the thermal series; unrelated stored+values and min/max bounds stay unchanged. Samples stay within the issued+window and use the existing aggregation and fallback-source wire contract.+Complete local coverage makes no native history call. Store errors remain+HTTP 500 rather than being concealed by native fallback.++`TestTrueNASDiskHistoryAuthenticatedRoute` traverses the real authenticated TLS+client, provider, tenant poller, monitor and router using declared appliance+responses and ordinary store writes. It covers nil store, I/O-only store, a+single thermal row, complete local coverage, store errors, token scope, tenant+binding and revocation. It preserves original Celsius samples/timestamps and+independent I/O, not synthetic temperature padding or CPU substitution. This+is connected source proof, not an installed appliance or containing release.++### Confirmed Patrol rule operations preserve tenant context — issue #2528++The manual-rule confirmation presents the returned exact ID and scope before a+keyboard-scrollable reason; the readable header and Cancel/Remove footer remain+separate from long data. This does not truncate the stored reason or change+authorised pre-read, one DELETE, readback or uncertainty handling.++The frontend consumes the existing GET/DELETE suppression endpoints without a+wire or permission change. The optional client expectedOrgID pins the request+header and checks context before and after CSRF preparation; retry:false+disables auth, invalid-organisation, CSRF and rate-limit retries for this flow.+Other callers retain their defaults. Current auth, scope and CSRF checks remain+authoritative; an abort or mismatched context stops dispatch. The suppression+client rejects malformed or duplicate rows, accepts the existing empty nil+slice, and only deletes a rule_ identity with explicit manual origin and no+finding/dismissal attribution. Transport success alone is not removal: the UI+must read the same collection back and establish exact-ID absence.++ ### Open threshold alerts expose their live evaluation — issue #2068++ `Alert.metricStatus` (`/api/alerts/active`, the websocket state and+ `/api/state`) is optional and additive. It carries `phase` (`breaching`,+ `latched` or `recovering`), `value` (the value compared with the rule, the+ average for a rolling-average rule) with `rawValue` and+ `evaluationWindowSeconds` when windowed, `unit`, `observedAt`, `trigger`,+ `recovery` (the alert clears at or below it), `recoveryDelaySeconds`, and,+ while recovering, `recoveryStartedAt` and `recoveryElapsedSeconds`. Legacy+ `value`, `message` and `lastSeen` keep meaning the last reading that met the+ trigger. The field is absent for non-threshold alerts and until the first+ evaluation after a restart, and clients then fall back to `message`.### Organisation deletion retains data after incomplete monitoring shutdowndiff --cc docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 9cc1e0db9c,85c281c011..ee63387850--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@@ -20,98 -20,16 +20,106 @@@## Purpose+### Systemd backup-pause help separates shutdown from remote completion++The existing systemd precaution reads the stop result as well as the inactive+service state. A newly stopped server requires a normal zero process exit;+timeout, signal, non-zero or unknown results do not permit a planned backup.+Previously inactive servers stay inactive, and failures must not be cleared+to make the check pass. Even a successful shutdown does not cancel or prove+completion of an already-issued guest-agent request. Existing guest/backup+operations must finish normally, without new probes; unknown state, a disk+dash, a cooldown or a waiting period is not completion evidence.++`backupSafetyHelp.test.ts` verifies the rendered bounded state command, failure+and in-flight gates, prior-state restoration and shipped mirror. This changes+existing help, not service configuration, native shutdown/QGA recovery or+release availability. The independent post-backup thaw/write/liveness and+only-prior-active restoration boundary remains unchanged.++### Container backup-pause help preserves identity and prior state++The existing VM Disk Monitoring guide also covers a standalone Docker or plain+Compose Pulse server, linked from the Docker guide and the systemd precaution.+It identifies the original server container(s), discloses the monitoring/alert+outage, requires suspended external restart controls and same-ID stopped-state+readback before a planned backup. Stopped state never proves an earlier guest+request completed. Incident recovery and controller-managed replacement are+outside this manual sequence.++Restoration requires independent post-backup thaw, fresh successful workload+writes on every covered filesystem and liveness. Only previously running,+existing container IDs and previously active automatic jobs may be restored;+unknown state, missing IDs, failed startup or unknown restart behaviour keep+automation paused. No image, restart-policy, mounted data, guest operation or+diagnostic permission changes. Bounded state templates omit environment/config+secrets. `dockerBackupSafetyHelp.test.ts` exercises rendered commands, gates,+cross-links and shipped mirrors; this is help validation, not a Docker daemon,+installed guest recovery, native acceptance or release proof.++### Narrow Workloads identity during guest locks++In narrow and phone layouts, the guest name and status occupy the first line;+the unchanged backup evidence control moves below the name, retaining its+44 px touch target. The guest lock occupies a separate, wrapping line below+that identity. It must not consume the name's+horizontal space or spill into the adjacent metrics. The full lock remains+visible; a long name keeps its full title and existing truncation. Wider layouts+keep the inline lock. Disclosure, first-touch row activation and memory+observation source/time are unchanged. This is presentation only: a backup lock+or successful backup never proves guest recovery.++`GuestRow.test.tsx` checks layout structure, lock updates and existing action+ownership. `browser-tests/build-guest-row-lock-fixture.mjs` compiles the real row,+stylesheet and drawer before bounded static browser execution. Use+`node browser-tests/build-guest-row-lock-fixture.mjs --with-parent --parent <full-parent-SHA>`+to read the exact parent row from Git; no manually supplied control is accepted.+`browser-tests/guest-row-lock-identity.cjs` measures the rendered name/lock at 320 and 390 px in bars and sparklines, and exercises keyboard/first+touch through the existing drawer, checks long-name bounds, and rejects the current+parent with the same static fixture. No dev compiler or old terminated preview+is replayed. Native recovery remains separate.++### Confirmed operations opt out of silent transport fallback++The shared API client accepts expectedOrgID and retry:false for confirmed+Patrol manual-rule removal. It pins and rechecks the selected organisation at+dispatch, respects cancellation after asynchronous CSRF preparation and makes+no automatic auth/tenant/CSRF/rate-limit replay. Existing caller defaults are+unchanged. Tests exercise these safeguards with real request options.++Patrol manual-rule confirmation keeps its title and safe Cancel/Remove controls outside a keyboard-focusable scrolling scope/reason region. Long multiline reasons cannot clip identifiers or the action footer on a narrow viewport. The region permits both keyboard and pointer review without changing confirmation state or sending a mutation.++All drawer History fallbacks must distinguish current observations from retained, unavailable or freshness-unknown guest readings, using original memory evidence and filesystem read reasons.+**Workloads rows preserve memory observation provenance.**++Workloads rows use the same selected-memory qualification as both drawers.+Retained and freshness-unknown values keep a visible cue in bars, sparklines,+the hover History lens and host-capacity mode; compact layouts shorten only the+visible label, not the accessible original source/time explanation. Sparkline+accessible values never call retained, unknown or unavailable memory current.+Unavailable numeric carriers remain N/A while recorded History stays intact.+An independent qualified memory reading is not paused by a disk deferral.+Neither Last seen, backup completion nor running power state renews memory.+Unannotated unrelated platforms and actual zero readings retain their meaning.++`GuestRow.test.tsx`, `MetricMiniSparkline.test.tsx` and+`memoryObservation.test.ts` pin these boundaries, with existing drawer, adapter+and History suites. `browser-tests/guest-row-memory-provenance.cjs` checks real+production rows and drawers, visible/accessible labels, pointer/touch/keyboard,+light/dark and narrow/desktop layouts using synthetic observations only.+Presentation acceptance does not establish native thaw, covered-filesystem+writes, guest liveness, service restoration or reporter recovery.++ ### Drawer attention detail line and temperature alert floor — issue #2068++ `DrawerAttentionSection` items accept an optional `detail` (a muted second+ line) and `title` (hover text). `TemperatureGauge` accepts `alertSeverity`+ and `title`, and `getTemperatureTextClass` treats an open alert's severity as+ a floor: a reading that has dipped under an open alert's trigger keeps the+ alert's tone, while the reading still wins when it is worse.+### Canonical drawer History preserves guest read provenanceThe shared resource drawer passes selected memory observation state/source/timediff --cc docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 64f3589f14,87517e7399..6a8f77388f--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@@ -15,47 -15,15 +15,54 @@@## Purpose+### Narrow Workloads identity during guest locks++In narrow and phone layouts, the guest name and status occupy the first line;+the unchanged backup evidence control moves below the name, retaining its+44 px touch target. The guest lock occupies a separate, wrapping line below+that identity. It must not consume the name's+horizontal space or spill into the adjacent metrics. The full lock remains+visible; a long name keeps its full title and existing truncation. Wider layouts+keep the inline lock. Disclosure, first-touch row activation and memory+observation source/time are unchanged. This is presentation only: a backup lock+or successful backup never proves guest recovery.++`GuestRow.test.tsx` checks layout structure, lock updates and existing action+ownership. `browser-tests/build-guest-row-lock-fixture.mjs` compiles the real row,+stylesheet and drawer before bounded static browser execution. Use+`node browser-tests/build-guest-row-lock-fixture.mjs --with-parent --parent <full-parent-SHA>`+to read the exact parent row from Git; no manually supplied control is accepted.+`browser-tests/guest-row-lock-identity.cjs` measures the rendered name/lock at 320 and 390 px in bars and sparklines, and exercises keyboard/first+touch through the existing drawer, checks long-name bounds, and rejects the current+parent with the same static fixture. No dev compiler or old terminated preview+is replayed. Native recovery remains separate.++**Memory freshness is preserved at the Workloads row boundary.**++`GuestRow.tsx` qualifies selected memory once per reactive reading using the+shared drawer policy. Non-current rows keep a visible/accessibility cue through+bars, sparklines, the History lens and host-capacity mode. An unavailable+numeric carrier is not a current value; retained History paths stay unchanged.+Source-time qualification never uses Last seen or a filesystem deferral,+and same-guest observation updates do not remount the row or request History.+No collection, chart sampling, sorting, retention or alert threshold changes.++`GuestRow.test.tsx` (memory observation provenance),+`MetricMiniSparkline.test.tsx`, `memoryObservation.test.ts` and the existing+drawer/History suites pin this boundary. The production browser fixture+`browser-tests/guest-row-memory-provenance.cjs` checks touch/pointer/keyboard+and narrow/desktop layouts with synthetic observations, not native recovery.++Drawer observation labels derive locally from the selected snapshot without renewing timestamps, adding reads, remounting charts or changing stored metric coordinates.+ ### Guest drawer alert copy formats backend status only++ Guest drawer attention rows format `alert.metricStatus` through+ `getGuestDrawerAlertAttention` and the shared `getAlertAttentionCopy`. No+ threshold comparison, recovery timing or resource-metric lookup runs in the+ drawer, and the host-capacity memory comparison stays a suffix on that copy.+### Drawer provenance stays local to snapshot presentationGuest and canonical resource drawer memory presentation share the same purediff --cc docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 13ea9f7f4a,cd2ec5bf9e..0ee7174bc6--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@@ -21,22 -21,14 +21,30 @@@## Purpose+### Persisted trust edits and restart consistency++The shared `internal/api/` settings path durably saves an explicit empty+`allowedOrigins` before clearing live CORS policy. An omitted field does not+replace a different effective value; a failed or deployment-locked patch does+not partially change disk/runtime/cache state. Production config reload retains+the saved clear while existing deployment overrides stay authoritative.+Webhook edits resolve every saved placeholder before persistence or live+publication, and saved-form Test uses the same resolution without changing+configuration. Unknown/ambiguous placeholders fail rather than silently lose a+credential. `TestAllowedOriginsSavedEffectiveLifecycle`,+`TestAllowedOriginsSaveFailurePreservesPolicy` and+`TestWebhookSavedFormTestMatchesEncryptedEdit` cover these shared boundaries.+No database/driver/schema, backup recovery, retention or old queue snapshot+policy changes are part of this repair.++ ### Storage usage headline follows the alert phase — issue #2068++ `describeStorageAlertHeadline` says "Over N% usage limit" only while a usage+ alert is breaching. When `metricStatus.phase` is `latched` or `recovering`,+ the row says usage is under the limit and names the clear level, so the+ headline never contradicts the usage bar beside it. Fill-forecast headlines+ are unchanged.+### Guest-memory read state stays independent of backup disk stateThe existing guest drawer retains Core's selected memory provenance throughdiff --cc docs/release-control/v6/internal/subsystems/unified-resources.mdindex f26079ae48,79650fb3d1..717dc90ee5--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@@ -23,22 -23,14 +23,30 @@@ and sort the complete canonical change## Purpose+### Native guest admission replaces the previous canonical facet++A complete native Proxmox guest observation (non-zero VMID) owns its filesystem+read reason, guest-agent state and expectation in both directions. Repeated+ingestion must publish a new cooldown even when the retained disk number is+unchanged, and clear the reason/expectation when the native guest recovers or is+disabled. Non-guest partial Proxmox facets do not own these fields. Numeric+source selection, original memory observation times and identity stay unchanged.++`TestProxmoxGuestReadAdmissionReplacesPreviousFacet` covers available, paused,+recovered, offline and disabled transitions through repeated registry ingestion,+typed/detached reads and JSON. Monitoring's connected optional-command proof+also consumes that same live registry and production broadcast JSON while+checking History withholding. Source clearance is not independent guest thaw,+covered-filesystem writes or native monitoring recovery.++ ### Proxmox node temperature cell follows its own open alert — issue #2068++ `ProxmoxNodesTable` finds the node's own temperature alert through+ `hostOverrideIdCandidates` and passes its severity (unless acknowledged) and+ the shared live-status copy to `TemperatureGauge`. Other node alerts never+ recolour the cell. The Mail Gateway drawer formats its attention rows through+ `getAlertAttentionCopy`.+### Canonical Discovery honours VM guest-read deferralsThe canonical resource drawer uses the same fixed PVE VM lock, backup anddiff --cc frontend-modern/src/components/Workloads/GuestRow.tsxindex 7b09f1bcee,ef0d60564d..21c731a9dd--- a/frontend-modern/src/components/Workloads/GuestRow.tsx+++ b/frontend-modern/src/components/Workloads/GuestRow.tsx@@@ -257,6 -234,56 +268,57 @@@ export function GuestRow(props: GuestRoshowTooltip={true}/>);+ const renderCpuSparkline = () =>+ renderMetricSparkline('cpu', {+ valueLabel: () => formatMetricPercent(cpuPercent()),+ title: () => `${props.guest.name} CPU history`,+ formatValue: formatMetricPercent,+ });+ const renderMemorySparkline = () =>+ renderMetricSparkline('memory', {+ valueLabel: () =>+ memoryDisplayUnavailable()+ ? 'N/A'+ : formatMetricPercent(+ usagePercent(+ props.guest.memory?.used,+ memoryDisplayTotal(),+ isHostMemoryBasis() ? undefined : props.guest.memory?.usage,+ ),+ ),+ title: () =>+ isHostMemoryBasis()+ ? `${props.guest.name} host memory share history`+ : `${props.guest.name} memory history`,+ formatValue: formatMetricPercent,+ seriesOptions: () => ({+ memoryDisplayBasis: props.memoryDisplayBasis,+ parentMemoryTotal: props.parentMemoryTotal,+ }),++ valueLabelContext: () => memoryValueLabelContext(),+ });+ const renderDiskSparkline = () =>+ renderMetricSparkline('disk', {+ valueLabel: () => (hasDiskUsage() ? formatMetricPercent(props.guest.disk?.usage) : '—'),+ title: () => `${props.guest.name} disk usage history`,+ formatValue: formatMetricPercent,+ valueLabelContext: () => diskValueLabelContext(),+ });+ const renderRateSparkline = (metric: WorkloadRateMetric) => {+ const isNetwork = metric === 'netIo';+ const live = () => isRunning() && telemetryAvailable(isNetwork ? 'networkIO' : 'diskIO');+ const values = (): [number, number] =>+ isNetwork ? [networkIn(), networkOut()] : [diskRead(), diskWrite()];+ return renderMetricSparkline(metric, {+ valueLabel: () =>+ live() ? `${formatSpeed(values()[0])} / ${formatSpeed(values()[1])}` : '—',+ title: () => `${props.guest.name} ${isNetwork ? 'network' : 'disk'} I/O history`,+ unit: 'B/s',+ formatValue: formatSpeed,+ valueContent: () =>+ live() ? <MetricMiniSparklineRatePair metric={metric} values={values()} /> : undefined,+ });+ };const getDiskStatusTooltip = () => {if (!isVM(props.guest)) return 'Disk stats unavailable';@@@ -620,42 -598,8 +646,20 @@@</div>}>- {renderMetricSparkline(- 'memory',- memoryDisplayUnavailable()- ? 'N/A'- : formatMetricPercent(- usagePercent(- props.guest.memory?.used,- memoryDisplayTotal(),- isHostMemoryBasis() ? undefined : props.guest.memory?.usage,- ),- ),- isHostMemoryBasis()- ? `${props.guest.name} host memory share history`- : `${props.guest.name} memory history`,- '%',- 'inline',- formatMetricPercent,- {- memoryDisplayBasis: props.memoryDisplayBasis,- parentMemoryTotal: props.parentMemoryTotal,- },- memoryValueLabelContext(),- )}+ {renderMemorySparkline()}</Show>+ <Show when={memoryReadStatus()}>+ {(status) => (+ <p+ data-workload-memory-read-status+ class="mt-0.5 text-center text-[10px] leading-none text-muted"+ title={status().message}+ >+ <span aria-hidden="true">{status().label}</span>+ <span class="sr-only">{status().message}</span>+ </p>+ )}+ </Show></td></Show>diff --cc internal/alerts/unified_eval_test.goindex f918a87796,e5c732cee1..2b7b556ae5--- a/internal/alerts/unified_eval_test.go+++ b/internal/alerts/unified_eval_test.go@@@ -1595,36 -1595,186 +1595,220 @@@ func TestUnifiedMetricNoisyWarningWaits}}+func TestNodeUsageDispatchPreservesSeparatelyEvaluatedTemperature(t *testing.T) {+ m, elapsed := continuityManager(t, false)+ m.mu.Lock()+ m.config.NodeDefaults.Temperature = &HysteresisThreshold{Trigger: 80, Clear: 70}+ m.mu.Unlock()+ node, _ := testNodeWithHostAgent()+ node.Temperature = &models.Temperature{Available: true, CPUPackage: 85}+ m.CheckNode(node)+ elapsed.Store(int64(40 * time.Second))+ m.CheckNode(node)+ incident, ok := continuityIncident(m, node.ID, "temperature")+ if !ok || incident.State != reducer.StatePending {+ t.Fatal("temperature control did not remain pending")+ }+ originalStart := incident.PendingSince+ elapsed.Store(int64(59 * time.Second))+ m.CheckNode(node)+ incident, _ = continuityIncident(m, node.ID, "temperature")+ if !incident.PendingSince.Equal(originalStart) {+ t.Fatal("usage dispatch interrupted a separately observed temperature")+ }+ elapsed.Store(int64(time.Minute))+ m.CheckNode(node)+ if !testHasActiveAlert(t, m, canonicalMetricStateID(node.ID, "temperature")) {+ t.Fatal("continuous node temperature did not complete its delay")+ }+ node.Temperature = nil+ elapsed.Store(int64(2 * time.Minute))+ m.CheckNode(node)+ if !testHasActiveAlert(t, m, canonicalMetricStateID(node.ID, "temperature")) {+ t.Fatal("actual missing temperature became recovery")+ }+}+++ // metricStatusClock drives a manager's wall and monotonic clocks together so+ // recovery runs measure exactly the time the test advances.+ type metricStatusClock struct {+ now time.Time+ tick time.Duration+ }++ func (c *metricStatusClock) advance(d time.Duration) {+ c.now = c.now.Add(d)+ c.tick += d+ }++ func newMetricStatusTestManager(t *testing.T) (*Manager, *metricStatusClock) {+ t.Helper()+ m := newTestManager(t)+ // Recently-resolved retention prunes against the real clock, so start there.+ clock := &metricStatusClock{now: time.Now().UTC()}+ m.now = func() time.Time { return clock.now }+ m.intentClock = func() time.Duration { return clock.tick }+ m.mu.Lock()+ m.config.NodeDefaults.Temperature = &HysteresisThreshold{Trigger: 80, Clear: 75}+ m.mu.Unlock()+ return m, clock+ }++ // fireNodeTemperatureAlert holds a breaching reading until the factory+ // stability delay lets the alert open, as a real poll loop would.+ func fireNodeTemperatureAlert(t *testing.T, m *Manager, clock *metricStatusClock, celsius float64) *Alert {+ t.Helper()+ for attempt := 0; attempt < 40; attempt++ {+ checkMetricStatusNode(m, celsius)+ if alert := activeNodeTemperatureAlert(t, m); alert != nil {+ return alert+ }+ clock.advance(30 * time.Second)+ }+ t.Fatalf("%v°C never opened the temperature alert", celsius)+ return nil+ }++ func checkMetricStatusNode(m *Manager, celsius float64) {+ m.CheckNode(models.Node{+ ID: "homelab-minipc",+ Name: "minipc",+ Instance: "homelab",+ Status: "online",+ CPU: 0.2,+ Memory: models.Memory{Usage: 40},+ Disk: models.Disk{Usage: 40},+ Temperature: &models.Temperature{+ Available: true,+ CPUPackage: celsius,+ },+ })+ }++ func activeNodeTemperatureAlert(t *testing.T, m *Manager) *Alert {+ t.Helper()+ m.mu.RLock()+ defer m.mu.RUnlock()+ alert, ok := m.getActiveAlertNoLock(canonicalMetricStateID("homelab-minipc", "temperature"))+ if !ok {+ return nil+ }+ return alert.Clone()+ }++ func TestOpenTemperatureAlertReportsLiveReadingWhileItHolds(t *testing.T) {+ m, clock := newMetricStatusTestManager(t)+ // Buffered so a dispatch never blocks the evaluator; len() counts sends.+ notified := make(chan struct{}, 64)+ m.SetAlertCallback(func(*Alert) { notified <- struct{}{} })++ fired := fireNodeTemperatureAlert(t, m, clock, 85)+ status := fired.MetricStatus+ if status == nil || status.Phase != models.MetricAlertPhaseBreaching || status.Value != 85 ||+ status.Trigger != 80 || status.Recovery != 75 || status.Unit != "°C" {+ t.Fatalf("breaching status = %+v", status)+ }+ if status.RecoveryDelaySeconds <= 0 {+ t.Fatalf("temperature alerts carry a recovery delay, got %+v", status)+ }+ delay := time.Duration(status.RecoveryDelaySeconds) * time.Second+ firedMessage, firedLastSeen, notifications := fired.Message, fired.LastSeen, len(notified)++ // Between the clear and trigger levels the alert holds. The legacy+ // snapshot keeps the breach; only the live status moves.+ clock.advance(30 * time.Second)+ checkMetricStatusNode(m, 78)+ held := activeNodeTemperatureAlert(t, m)+ if held == nil {+ t.Fatal("78°C cleared an alert that should hold until 75°C")+ }+ if held.Value != 85 || held.Message != firedMessage || !held.LastSeen.Equal(firedLastSeen) {+ t.Fatalf("hold rewrote the breach snapshot: value=%v message=%q lastSeen=%v", held.Value, held.Message, held.LastSeen)+ }+ if got := held.MetricStatus; got == nil || got.Phase != models.MetricAlertPhaseLatched || got.Value != 78 ||+ !got.ObservedAt.Equal(clock.now) || got.RecoveryStartedAt != nil {+ t.Fatalf("latched status = %+v", got)+ }++ // At or below the recovery level the recovery run starts.+ clock.advance(30 * time.Second)+ recoveryStart := clock.now+ checkMetricStatusNode(m, 72)+ if got := activeNodeTemperatureAlert(t, m).MetricStatus; got == nil ||+ got.Phase != models.MetricAlertPhaseRecovering || got.Value != 72 ||+ got.RecoveryStartedAt == nil || !got.RecoveryStartedAt.Equal(recoveryStart) || got.RecoveryElapsedSeconds != 0 {+ t.Fatalf("recovery start status = %+v", got)+ }+ clock.advance(delay / 2)+ checkMetricStatusNode(m, 75)+ if got := activeNodeTemperatureAlert(t, m).MetricStatus; got == nil ||+ got.Phase != models.MetricAlertPhaseRecovering || got.RecoveryElapsedSeconds != int(delay/2/time.Second) {+ t.Fatalf("recovery progress status = %+v", got)+ }++ // A reading back above the recovery level resets the run.+ clock.advance(30 * time.Second)+ checkMetricStatusNode(m, 77)+ if got := activeNodeTemperatureAlert(t, m).MetricStatus; got == nil ||+ got.Phase != models.MetricAlertPhaseLatched || got.RecoveryStartedAt != nil || got.RecoveryElapsedSeconds != 0 {+ t.Fatalf("status after recovery reset = %+v", got)+ }+ if got := len(notified); got != notifications {+ t.Fatalf("holding and recovering sent %d notifications", got-notifications)+ }++ // A full recovery delay at or below 75°C resolves the alert.+ checkMetricStatusNode(m, 72)+ clock.advance(delay)+ checkMetricStatusNode(m, 72)+ if alert := activeNodeTemperatureAlert(t, m); alert != nil {+ t.Fatalf("alert still open after a full recovery delay: %+v", alert.MetricStatus)+ }+ m.resolvedMutex.RLock()+ defer m.resolvedMutex.RUnlock()+ resolved := 0+ for _, entry := range m.recentlyResolved {+ if entry == nil || entry.Type != "temperature" {+ continue+ }+ resolved+++ if entry.MetricStatus != nil {+ t.Fatalf("resolved record kept the live status of an open alert: %+v", entry.MetricStatus)+ }+ }+ if resolved != 1 {+ t.Fatalf("resolved temperature records = %d, want 1", resolved)+ }+ }++ func TestBuildMetricAlertStatusCarriesWindowAndMonotonicRecovery(t *testing.T) {+ observedAt := time.Date(2026, 10, 6, 10, 49, 0, 0, time.UTC)+ status := buildMetricAlertStatus(metricStatusInput{+ value: 74,+ trigger: 80,+ clear: 75,+ recoveryDelaySeconds: 300,+ unit: "%",+ window: metricWindowObservation{Value: 74, CurrentValue: 91, WindowSeconds: 600, Ready: true},+ incident: reducer.Incident{+ RecoverySince: observedAt.Add(-10 * time.Minute),+ RecoveryElapsed: 90 * time.Second,+ RecoveryTicksSupplied: true,+ },+ observedAt: observedAt,+ })+ if status.Phase != models.MetricAlertPhaseRecovering || status.Value != 74 ||+ status.RawValue == nil || *status.RawValue != 91 || status.EvaluationWindowSeconds != 600 {+ t.Fatalf("windowed status = %+v", status)+ }+ // Elapsed time comes from the monotonic run, not wall-clock arithmetic.+ if status.RecoveryElapsedSeconds != 90 {+ t.Fatalf("recovery elapsed = %d, want 90", status.RecoveryElapsedSeconds)+ }++ // The reducer clears at the trigger when no clear level is configured.+ noClear := buildMetricAlertStatus(metricStatusInput{value: 85, triggered: true, trigger: 80, observedAt: observedAt})+ if noClear.Recovery != 80 || noClear.RawValue != nil {+ t.Fatalf("status without clear level = %+v", noClear)+ }+ }