mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-30 01:32:00 +01:00
**Enforce truthful availability lifecycle on pause, cancel, and delete** Drop cancelled local availability probes (context.Canceled) instead of recording spurious unreachable failures, history rows, or connection health transitions. Serialize local probe publication (pollAvailabilityTarget) and remote probe ingestion (applyProbeAvailabilityResultsAt) with refreshAvailabilityRuntime under availabilityRefreshMu, re-validating the saved target so in-flight results cannot resurrect deleted, paused (Enabled: false), edited (ConfigRevision changed), or remote-only reassigned checks. Skip staleness derivation for paused targets and clear pre-pause observations and external-probe grace trackers on pause so resuming a check starts a fresh first-report grace window instead of immediately triggering ExternalProbeUnavailable. Prune availability-scoped entries from pollStatusMap, failureCounts, lastOutcome, circuitBreakers, instanceInfoCache, dlqInsightMap, deadLetterQueue, and stalenessTracker when an availability target is deleted, without affecting unrelated provider instances sharing the same name. **Fix instanceInfo and dlqInsight types in availability lifecycle test** Match Monitor.instanceInfoCache (*instanceInfo) and dlqInsight field names in TestRefreshAvailabilityTargetsPrunesDeletedSchedulerAndStalenessState. Contract-Neutral: Test-only fixture type fix; no runtime or subsystem contract change. --- Fleet candidate `20261126T220401Z-core-runtime` from the `core-runtime` lane. Reviewed tip `5567f942df00160776573f9885005169aa034240` on `main`. [How Pulse handles triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)