mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-24 04:33:17 +00:00
0910542f0a
The physical-disk SMART merge let a linked host agent raise a disk's remaining life above the Proxmox inventory value. An intermittent NVMe PercentageUsed 0 reading therefore resolved a genuine low-life disk-wearout alert, which re-fired on the next physical-disk poll and emitted a fresh resolved notification every poll interval (#2112). The merge now takes the agent value only when the Proxmox value is unreported or more pessimistic, never raising a reported remaining-life value, while still recording the agent SMART attributes. This does not change agent admission, token binding or removal-block behaviour. Regression: TestMergeHostAgentSMARTIntoDisks_AgentWearoutDoesNotHideLowPVELife and TestMergeHostAgentSMARTIntoDisks_AgentWearoutFillsUnreportedPVELife in internal/monitoring/monitor_integration_test.go. The monitoring contract is updated in this commit. Change-source: pulse-maintainer Contract-Neutral: Behavioral bug fix in the physical-disk SMART merge; no public API or external contract delta. The monitoring contract is updated in this commit and the dependent agent-lifecycle contract and accepted proof file follow in the next commit.