mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
**Enforce truthful PBS/PMG poll accounting on pause, timeout, and empty** Prevent paused (Disabled: true) PBS and PMG instances from fabricating poll successes in pollStatusMap, stalenessTracker, and pollMetrics, and catch PMG panics inside the same deferred boundary so they record failures rather than nil-error successes. In pollPBSInstance, read m.config.PBSInstances under config.Mu.RLock() (and in carryPBSJobFailuresForInstance), guard against nil config, reuse fallback datastores without a duplicate /admin/datastore fetch, fail the poll cleanly when ctx expires after GetVersion succeeds so truncated datastore slices are never published as healthy, and always reconcile unified state.Storage on authoritative empty or fully excluded datastore discovery so removed datastores do not remain stuck. **Initialize stalenessTracker in PMG pause and panic tests** pmgScopeMonitor leaves stalenessTracker nil, which caused a nil dereference when asserting staleness behavior in the new PMG pause truthfulness test. Initialize stalenessTracker in the test setup. Contract-Neutral: Test-only harness initialization fix; no runtime or subsystem contract change. --- Fleet candidate `20261126T212043Z-core-runtime` from the `core-runtime` lane. Reviewed tip `24d04bdc8e5294ac776e844e031480b78749c063` on `main`. [How Pulse handles triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)