Commit Graph

8297 Commits

Author SHA1 Message Date
pulse-triage[bot]
caad243699 Keep History reads and writes moving during expiry logging (#5403)
**Keep History reads and writes moving during expiry logging**

Capture cleanup counts under the History mutex and write the diagnostic
after unlocking so an independent sample and chart read can finish while
the sink is blocked.

**Make the History logging regression fail promptly on a held lock**

Use a nonblocking check before exercising actual chart reads and writes
while cleanup logging is gated.

---
Fleet candidate `20261128T134519Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `3c7fb97150785e1ec66368aa5bbeb62132b09316` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-28 15:53:39 +00:00
pulse-triage[bot]
cfe1aceff9 Release poll slots without planning successors for retired work (#5399)
Check the monitor context and queue claim when the admitted poll
returns. Retired work must not start another provider cadence read while
holding a process-wide slot. Preserve the explicit replacement schedule
and the rule that an in-flight poll keeps its slot until it returns.

---
Fleet candidate `20261128T131026Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `d8935cc3f134670d048aee40fb81aed583225bd9` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-28 14:07:33 +00:00
pulse-triage[bot]
c58b5eda32 Keep History reads and writes moving during expiry logging
Capture cleanup counts under the History mutex and write the diagnostic after unlocking so an independent sample and chart read can finish while the sink is blocked.

Change-source: pulse-maintainer
2026-11-28 13:49:40 +00:00
pulse-triage[bot]
5f4ac5c416 Release poll slots without planning successors for retired work
Check the monitor context and queue claim when the admitted poll returns. Retired work must not start another provider cadence read while holding a process-wide slot. Preserve the explicit replacement schedule and the rule that an in-flight poll keeps its slot until it returns.

Change-source: pulse-maintainer
2026-11-28 11:25:32 +00:00
pulse-triage[bot]
84eb1e3f4c Keep peer polling independent of Proxmox offline logs
Read the last-online timestamp under the shared monitor lock and release it before logging. Preserve the grace decision and verify that a separate scheduled poll still publishes node state and History while either offline diagnostic is blocked.

Change-source: pulse-maintainer
2026-11-28 11:03:29 +00:00
pulse-triage[bot]
1b7036107e Skip retired poll claims at worker execution
Fence local and process-limited workers before provider setup so deleting or replacing a claimed target does not start an obsolete poll. Preserve the saved successor deadline and the ownership of polls already running.

Change-source: pulse-maintainer
2026-11-28 08:35:26 +00:00
pulse-triage[bot]
a6889cd1ce Merge reviewed retired poll worker repair from Pulse #5362
Change-source: pulse-maintainer
2026-11-28 07:30:28 +00:00
pulse-triage[bot]
a26cdcc9ce Stop retired poll planners between provider reads (#5358)
Abandon roster and cadence collection when monitor cancellation is
observed, without changing the schedule of active providers or
pretending to cancel a callback already in flight.

---
Fleet candidate `20261128T053537Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `cb5d05eacdafe1a033138d043443c00761b42712` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-28 06:26:52 +00:00
pulse-triage[bot]
96a23df871 Read the Availability health roster from one catalog snapshot (#5357)
Scheduler Health already describes every enabled Availability check,
including remote-only checks. Do not reload and decode the same saved
catalog for the local roster. Preserve the fallback for providers with
partial descriptions.

---
Fleet candidate `20261128T051048Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `16864e0b4f61311ea281ff7e9cac657e0047d31b` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-28 06:08:23 +00:00
pulse-triage[bot]
3dd5fcf574 Release retired poll claims before taking a worker slot
Wake a process-limited dispatcher when a claimed target is removed, without starting provider setup or losing a newly scheduled replacement. Preserve the concurrency ceiling and do not release a running provider early.

Change-source: pulse-maintainer
2026-11-28 06:04:02 +00:00
pulse-triage[bot]
38fba370ad Keep due poll backlogs cheap to inspect (#5353)
Use conservative queue deadline bounds to avoid scanning an all-ready
poll backlog under the worker lock. Preserve exact readiness, age and
queue membership in Scheduler Health and Prometheus, and keep the heap
walk when the bounds cannot prove all queued work is due soon.

---
Fleet candidate `20261128T044943Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `f7c3083c0228c93ae8ea8e5c30bfdcd8bf9f4bef` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-28 05:41:57 +00:00
pulse-triage[bot]
cb5d05eacd Stop retired poll planners between provider reads
Abandon roster and cadence collection when monitor cancellation is observed, without changing the schedule of active providers or pretending to cancel a callback already in flight.

Change-source: pulse-maintainer
2026-11-28 05:41:38 +00:00
pulse-triage[bot]
16864e0b4f Read the Availability health roster from one catalog snapshot
Scheduler Health already describes every enabled Availability check, including remote-only checks. Do not reload and decode the same saved catalog for the local roster. Preserve the fallback for providers with partial descriptions.

Change-source: pulse-maintainer
2026-11-28 05:16:48 +00:00
pulse-triage[bot]
f7c3083c02 Keep due poll backlogs cheap to inspect
Use conservative queue deadline bounds to avoid scanning an all-ready poll backlog under the worker lock. Preserve exact readiness, age and queue membership in Scheduler Health and Prometheus, and keep the heap walk when the bounds cannot prove all queued work is due soon.

Change-source: pulse-maintainer
2026-11-28 04:56:04 +00:00
pulse-triage[bot]
282482a625 Abandon poll plans when their monitor is retired
A roster read can outlive cancellation. Check the monitor context before publishing a returned plan or starting post-plan statistics and alert reconciliation, so the retiring runtime does not treat it as a fresh cycle. Preserve existing cadence and planning diagnostics for active monitors.

Change-source: pulse-maintainer
2026-11-28 04:17:34 +00:00
pulse-triage[bot]
6f3e63e441 Expose time spent in unfinished poll planning (#5348)
Report the oldest active planning pass at scrape time, even when
provider roster reads prevent any task from reaching the queue. Keep the
watchdog heartbeat and existing queue and claim timers independent.

---
Fleet candidate `20261128T030247Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `0108c761bd8e8aea1a2772e87b93d8a6fa046a9f` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-28 04:07:46 +00:00
pulse-triage[bot]
0108c761bd Expose time spent in unfinished poll planning
Report the oldest active planning pass at scrape time, even when provider roster reads prevent any task from reaching the queue. Keep the watchdog heartbeat and existing queue and claim timers independent.

Change-source: pulse-maintainer
2026-11-28 03:09:55 +00:00
pulse-triage[bot]
f362443dac Keep a poll worker visible through panic recovery logging
A synchronous recovery log can block after a poll claim is released. Retain the running-work marker until logging returns so an overdue worker remains visible without keeping its queue claim or changing retries.

Refs: https://github.com/rcourtman/Pulse/issues/5089
Change-source: pulse-maintainer
2026-11-28 02:48:30 +00:00
rcourtman
2cc0ba4744 Add live network and disk IO activity layer to Infrastructure Map
Surface live network and disk throughput directly on the Infrastructure Map with intensity-scaled animated connectors, directional packet motion, a header Live pill, and a unified Live traffic drawer.

Backend and frontend freshness guarantees:
- Track independent per-direction rate observation timestamps (netInObservedAt, netOutObservedAt, diskReadObservedAt, diskWriteObservedAt) across the unified resource registry, presentation coalescing, JSON rehydration, Docker incomplete inventory preservation, Kubernetes linked-host rollups, TrueNAS CORE reporting graphs, REST API, and WebSocket broadcast.
- Gate live map display on per-direction sample freshness at the 120-second boundary with an isolated stale-age refresh timer, and avoid reviving expired RX or disk-read rates when TX or disk-write updates arrive.

Map accuracy and privacy:
- Restrict directional uplink animation strictly to each host's own measured network counters, keep hover relationship arcs static, and avoid double-counting dual-homed workloads across networks.
- Align the header Live pill, Active traffic filter, and Live traffic drawer on combined network and disk throughput.
- Clear active search terms, network filters, hover state, and network drawers when toggling Hide names.
2026-11-27 23:38:18 +00:00
rcourtman
2dae406be3 Wire GPU badges, Docker mounts, and passive peer arcs onto map
Surface host GPU sensor telemetry and Docker/Proxmox workload hardware
accelerator badges (GPU, AMD GPU, iGPU, TPU, NPU, PCIe) across
Infrastructure Map host frames, workload cards, hover tooltips, search,
and inspector drawer rows, anonymizing GPU model names under Hide names.

Automatically wire Docker shared named volumes, shared non-system bind
mounts, container bind-mount-to-pool links, Compose stack and private
network database/broker links, and canonical resource.relationships
(including passive communicates_with TCP peers) into hover arcs and
tooltip sentences. Preserve resource.relationships across REST hydration
and WebSocket snapshot merges in useUnifiedResources and
resourceStateAdapters.
2026-11-27 20:02:25 +00:00
rcourtman
67dc73e487 Add passive internal socket peer discovery and hardware accelerators (#5297)
## Summary
- Passively read established internal TCP peers from Linux
`/proc/net/tcp` and `/proc/net/tcp6` in
`internal/hostmetrics/socket_peers.go` (using `LISTEN` sockets to
separate inbound vs outbound service ports), dropping public internet,
loopback, link-local, multicast, and self-IP addresses on the host
before sending and capping at 128 unique pairs.
- Validate reported peers again on receipt in
`internal/monitoring/host_network_peers.go` and project canonical
`communicates_with` relationships in
`internal/unifiedresources/host_socket_relationships.go` strictly
between monitored resources with unambiguous internal IPs (unknown LAN
IPs and shared ambiguous IPs are skipped).
- Extract hardware accelerator labels (`GPU`, `AMD GPU`, `iGPU`, `TPU`,
`NPU`, `PCIe`) from Docker `HostConfig.DeviceRequests`,
`HostConfig.Devices`, and device mounts, and from existing cached
Proxmox VM `hostpciN` and LXC device configuration reads with zero extra
Proxmox API calls.

## Verification
- `go test` passed for `pkg/agents/host`, `pkg/agents/docker`,
`internal/hostmetrics`, `internal/hostagent`, `internal/dockeragent`,
`internal/models`, `internal/monitoring`, and
`internal/unifiedresources`.
- `go vet` passed across all modified packages.
- `scripts/release_control/canonical_completion_guard.py` passed.
2026-11-27 18:23:40 +00:00
rcourtman
04fc377a2a Add passive internal socket peer discovery and hardware accelerators
Collect established internal TCP peer endpoints passively from Linux
/proc/net/tcp and /proc/net/tcp6 in the host agent, discarding public
internet, loopback, link-local, multicast, and self-IP sockets on the
host before transmission. Server-side registry projection matches
reported peers strictly against unambiguous internal IPs of monitored
resources to emit canonical communicates_with relationships.

Extract attached hardware accelerators (GPU, AMD GPU, iGPU, TPU, NPU,
PCIe) from Docker device requests, device mappings, and existing cached
Proxmox VM/LXC configuration reads with zero additional Proxmox API
requests.
2026-11-27 17:46:24 +00:00
rcourtman
8c9444b739 Add live visual encodings and real-estate layout polish to map
Scale active map connector flow speed smoothly with real throughput (3.4s at 10 KB/s down to 0.45s at 100 MB/s+) with a soft glow underlay above 5 MB/s, add 2px proportional bottom traffic bars and spiking-service highlights on active service cards, add elevated-only 2px top load heat strips (75%+ warning amber, 90%+ or 85C+ critical red, silent when calm) on hosts and workloads, and log-scale storage pool track widths cleanly by total capacity.

Also include the real-estate host diagram polish: increased bus drop clearance for link-speed pills, dashed beside-gateway connectors into the network trunk, bottom-aligned cluster STORAGE and DISKS footers, intact storage capacity labels, suffix-preserving overflowing card titles, macOS version normalization, and workload-aware counts on generic machine hosts.
2026-11-27 17:24:49 +00:00
rcourtman
381c9293e0 Add map preference persistence, networks pill, shortcuts, and pool cues
Persist layout mode, density, and live traffic preferences on /map in localStorage while keeping Hide names and transient filters session-only.

Add a clickable N networks summary pill beside the title, proportional 4px throughput bars and one-click Filter buttons in the All networks drawer, and / plus +/-/0 keyboard shortcuts for search focus and zoom control.

Surface live collected uptime, backup age, pending update counts, and non-healthy ZFS/storage pool cues (REBUILD, DEGRADED, FAULTED, and error counts) across host storage bars, tooltips, and drawer rows, and replace generic host item counts with platform-aware labels (guests, containers, pods, apps) that step down cleanly when priority warning pills need header space.
2026-11-27 15:33:58 +00:00
pulse-triage[bot]
15625d21dc Skip redundant heap repairs when poll order does not change (#5279)
Periodic plans refresh pending polls on every tick. Keep the current
heap position when the effective deadline, priority and name are
unchanged, while preserving explicit schedules and waking workers for
earlier deadlines.

---
Fleet candidate `20261127T135344Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `b01a95ab063c74f176af55bb90651c287d158161` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-27 14:59:11 +00:00
rcourtman
c5dbff54d5 Add hover spotlight, host thermals, physical disks, and traffic bars to Map
Hovering a tile or network pill on a dense Infrastructure Map left every
unrelated tile at full brightness behind curved connection arcs, host
frames truncated platform version labels beside live CPU and memory
meters, sibling host frames inside cluster boxes had uneven bottoms,
medium-width viewports wrapped Save image onto an orphan row, and host
temperatures, physical drive summaries, and visual throughput proportion
bars in the Live traffic drawer were not surfaced.

This change tags live SVG tile nodes with data-map-tile (omitted in
static exports) and adds CSS/DOM spotlight dimming so hovering or
focusing a linked tile or network pill softly dims unrelated tiles while
keeping the active tile, its connected peers, and labelled flow arcs at
full contrast (respecting reduced motion). It also projects host
temperatures and child physical_disk summaries (drive type counts, max
temperature, and unhealthy drive warnings, preserved under Hide names)
onto host frames, tooltips, and drawer rows, widens single-column host
headers and tightens micro-meters so platform versions render whole,
equalizes sibling host frame heights inside cluster rows, tightens
medium-viewport toolbar spacing, and adds proportional throughput bars
to Live traffic drawer rows.
2026-11-27 14:21:09 +00:00
pulse-triage[bot]
b01a95ab06 Skip redundant heap repairs when poll order does not change
Periodic plans refresh pending polls on every tick. Keep the current heap position when the effective deadline, priority and name are unchanged, while preserving explicit schedules and waking workers for earlier deadlines.

Change-source: pulse-maintainer
2026-11-27 13:56:46 +00:00
rcourtman
76358e5371 Add host-framed architectural Map view and Published & routed drawer (#5274)
## Summary
- Add a 100% automatic **By host** architectural layout for the
Infrastructure Map (default on `/map`, alongside a **By host** / **By
role** toolbar toggle and matching **Save image** export).
- Automatically group clusters of 2 or more hosts inside dashed cluster
containers with cluster-shared storage pools in the cluster footer.
- Render each monitored host with a two-row architectural header
carrying hardware specs (CPU cores, RAM, and platform version), live CPU
and memory micro-meters, inline amber **BUSY** NIC saturation and
**DOWN** link badges, live throughput, and a clickable item count pill
opening the host inspector drawer.
- Render guests and services as dense horizontal cards with VLAN colour
stripes, VM/CT IDs, last IPv4 octets, published ports, Compose stack
sub-boxes, automatic category sub-groups on busy hosts, and inline
storage/ZFS pool usage bars.
- Scale drop connectors with reported NIC speed (`10G`, `2.5G`, `1G`,
`100M`), colour single-network host drops by their network colour (or
amber when saturated), add a conditional link-speed width key to the
legend and exported poster, and label up to 6 hover connection arcs
directly at their midpoint with the factual relationship
(`notes.home.arpa`, `via gluetun`, `checks`, `gateway`, `DNS`, `runs
on`).
- Add a clickable `N exposed` summary pill opening the **Published &
routed** drawer with search and `All` / `Proxied` / `Published ports`
filters across Traefik, Caddy, Kubernetes Ingress, Docker, Swarm,
TrueNAS, and Kubernetes Service ports.
- Strip VMIDs and Compose project names under **Hide names** alongside
hostnames, IP addresses, Docker networks, and Ingress hosts.

## Verification
- 289/289 `infrastructureMap` Vitest tests pass (7/7 files).
- `tsc --noEmit`, `vite build`, `check-bundle-size.mjs` (`1571.13 kB <=
1581.25 kB`), `lint:copy`, `lint:theme`, `lint:feature-releases`,
`browser_verification_guard.py`, and `canonical_completion_guard.py` all
pass.
- Playwright browser verification passed on desktop dark (`1440x900`),
desktop light (`1440x900`), labelled hover arcs and network rings,
Published & routed drawer, By role toggle, Hide names redaction, and
mobile dark (`390x844`).
2026-11-27 13:47:10 +00:00
pulse-triage[bot]
f8879311a8 Read current cached slots when planning adaptive polls (#5275)
Let the adaptive planner read its prior slots under the same lock that
writes the next plan. Avoid a shared lock read per target during roster
preparation and don't mask a successor published by a worker during that
preparation.

---
Fleet candidate `20261127T124858Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `2e578b41d4a360d6ea6049c43c5aedfd3a802e75` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-27 13:45:48 +00:00
rcourtman
6e9a28ceea Add host-framed architectural Map view and Published & routed drawer
The Infrastructure Map previously placed all workloads into flat role
shelves above a separate hardware row, so readers could not see cluster
membership, which guests, Compose stacks, or storage pools belonged to
each host, or live host saturation without hovering, and square icon
tiles hid VMIDs, IP octets, hardware specs, and exposed endpoints.

This change adds a 100% automatic By host architectural layout (default
on /map, with a By host / By role toolbar switch and matching PNG/SVG
export). Monitored clusters of two or more hosts automatically frame
together with cluster-shared storage pools in the footer. Each host
frame renders a two-row header with CPU, RAM, version specs, live CPU
and memory micro-meters, inline amber BUSY saturation and DOWN link
warnings, live throughput, and a clickable workload count pill opening
the host drawer. Workloads render as horizontal cards with VLAN colour
stripes, VM/CT IDs, last IPv4 octets, published ports, Compose stack
sub-boxes, automatic category sub-groups on busy hosts, and inline
storage pool usage bars. Connectors scale with NIC speed, adopt the
host's network colour or turn amber when saturated, and hover arcs label
up to six connections with their factual relationship. It also adds a
clickable exposed summary pill opening the Published & routed drawer and
a conditional link-speed width key in the legend and saved poster, while
stripping VMIDs, Compose stack names, hostnames, and addresses under
Hide names.
2026-11-27 13:18:37 +00:00
pulse-triage[bot]
7c186f10d4 Keep Proxmox cluster discovery within the poll lifetime (#5270)
Bind temporary authentication, cluster status reads and discovery retry
delays to the current poll. Keep the existing attempts and endpoint
rules while the parent is live, so a cancelled provider read gives the
worker back instead of consuming a new independent timeout.

---
Fleet candidate `20261127T114239Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `661f7b85a5029dfd3de099d24f6f09c8852c1eec` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-27 13:06:47 +00:00
pulse-triage[bot]
2e578b41d4 Read current cached slots when planning adaptive polls
Let the adaptive planner read its prior slots under the same lock that writes the next plan. Avoid a shared lock read per target during roster preparation and don't mask a successor published by a worker during that preparation.

Change-source: pulse-maintainer
2026-11-27 12:55:36 +00:00
rcourtman
ed89ff50e6 Add network pill hover rings, active traffic filter, and link saturation to Map
Hovering a network pill on the Infrastructure Map previously gave no visual preview of attached tiles on the canvas, the Live traffic drawer had no Filter map toggle to isolate active talkers, reported NIC link speeds did not translate throughput into utilization or bottleneck warnings, curved hover arcs crossed bright app icons without a separating halo, and TrueNAS apps, Docker Swarm services, and Kubernetes Services and Ingresses were omitted from port and route details.

This change highlights every tile attached to a hovered or focused network pill in that network's colour alongside a summary tooltip, adds a Filter map toggle in the Live traffic drawer with a removable Active traffic filter bar chip, computes full-duplex NIC utilization and Link busy warnings at 80 percent or higher, adds a surface-coloured under-stroke halo behind hover connection arcs for sharper readability in both themes, and surfaces published ports for TrueNAS apps, Docker Swarm services, and selector-matched Kubernetes Services plus Kubernetes Ingress hostnames (stripped under Hide names).
2026-11-27 12:14:07 +00:00
pulse-triage[bot]
661f7b85a5 Compose reviewed Proxmox discovery cancellation on current main
Change-source: pulse-maintainer
2026-11-27 11:43:59 +00:00
pulse-triage[bot]
2cd3a1d098 Keep Proxmox cluster discovery within the poll lifetime
Bind temporary authentication, cluster status reads and discovery retry delays to the current poll. Keep the existing attempts and endpoint rules while the parent is live, so a cancelled provider read gives the worker back instead of consuming a new independent timeout.

Change-source: pulse-maintainer
2026-11-27 11:08:51 +00:00
rcourtman
1ff7b93a8e Add hover connection arcs, top talkers drawer, and Caddy routes to Map
Hovering a tile on the Infrastructure Map previously showed only rectangular border rings on linked tiles, gateway and check links were text-only, estate-wide active traffic had no quick overview, and Docker containers exposed neither user-defined networks nor Caddy Docker Proxy routes.

This change adds curved Bezier connection arcs with optional rate-paced flow on hover, keyboard focus, and tap (capped at 16 arcs, never drawn at rest or in exports), wires interactive links for gateways, DNS resolvers, and availability checks linked via linkedResourceId, adds a clickable estate live traffic summary pill that opens a Top Talkers drawer sorted highest throughput first, parses Caddy Docker Proxy container labels alongside Traefik (including REST-normalized online proxy containers), and surfaces user-defined Docker networks (stripped under Hide names), check probe protocols and status codes, and TLS certificate warnings in tooltips and drawer rows.
2026-11-27 11:01:36 +00:00
rcourtman
06bc6b8217 Add live network telemetry and traffic view to Infrastructure Map
The Infrastructure Map previously rendered a static categorized layout with CPU and memory percentages on hover, leaving live network throughput, check latency, NIC link speed and link-down state, and Proxmox guest NIC firewall flags unseen.

This change extracts already-collected resource network rates, check latencies, interface link speeds, link-down counts, and Proxmox NIC firewall flags into the map model and service diagram, aggregates per-network throughput without double-counting Proxmox hosts and guests, attaches planned network membership to network gear and check tiles so drawer counts match pill counts, and adds a Live traffic toolbar toggle that drives subtle activity halos and rate-tiered connector flow strictly where real traffic is active. Stated connection captions (via a container or a Traefik hostname) stay visible at rest while retaining their traffic halo. Idle branches, unmonitored Internet connectors, reduced-motion sessions, and exported images stay static. Hover tooltips and the slide-over drawer now surface these network facts and allow sorting resources by live traffic.
2026-11-27 10:20:53 +00:00
pulse-triage[bot]
0bf0695417 Keep Prometheus poll freshness tied to the latest completion
Emit last-success time and age from one scrape snapshot. Count late results without letting an older successful completion overwrite a newer observation for the same series.

Change-source: pulse-maintainer
2026-11-27 05:54:53 +00:00
pulse-triage[bot]
789456f202 Expire retired scheduler dead-letter series (#5240)
Preserve recent zeroes and active peer failures without carrying
connection labels for the life of Pulse. Verify ordinary recovery, exact
expiry, and a longer scrape gap.

---
Fleet candidate `20261127T043254Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `ad2f12a17c7084a722be2cec593cf7f27d699c99` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-27 05:17:41 +00:00
pulse-triage[bot]
c66dc8aaf5 Cancel TrueNAS RPC work when retiring a connection (#5239)
Retire poller ownership before closing the old transport. Cancel
outstanding RPC work, including a socket blocked in negotiation, rather
than holding monitoring reads behind an appliance timeout. Preserve
typed handshake diagnostics and the ownership fence for legacy reads
already on the wire. Never replay an interrupted action.

---
Fleet candidate `20261127T035446Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `079e66c236a02a1d12244982d45cba70011dfd7d` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-27 04:53:39 +00:00
pulse-triage[bot]
ad2f12a17c Expire retired scheduler dead-letter series
Preserve recent zeroes and active peer failures without carrying connection labels for the life of Pulse. Verify ordinary recovery, exact expiry, and a longer scrape gap.

Change-source: pulse-maintainer
2026-11-27 04:37:03 +00:00
pulse-triage[bot]
079e66c236 Cancel TrueNAS RPC work when retiring a connection
Retire poller ownership before closing the old transport. Cancel outstanding RPC work, including a socket blocked in negotiation, rather than holding monitoring reads behind an appliance timeout. Preserve typed handshake diagnostics and the ownership fence for legacy reads already on the wire. Never replay an interrupted action.

Change-source: pulse-maintainer
2026-11-27 04:13:35 +00:00
pulse-triage[bot]
69a33d45dc Recompose scheduler scrape cancellation fix on current main
Change-source: pulse-maintainer
2026-11-27 03:22:00 +00:00
pulse-triage[bot]
587d99eac4 Keep adaptive poll freshness local to its monitor
Compute scheduler priority and health scores from the owning monitor's recorded success, not from the process-wide Prometheus series. Score each health row from the same timestamp it reports so a same-named connection cannot mask a stale poll.

Change-source: pulse-maintainer
2026-11-27 01:18:16 +00:00
pulse-triage[bot]
397ab0f718 Exclude stopped scheduler backlogs from Prometheus scrapes
Tie live queue samples to scheduler cancellation as well as worker lifetime. A cancelled scheduler cannot service queued work, but its stuck claim must remain visible until the worker returns. Keep other schedulers in the process-wide totals.

Change-source: pulse-maintainer
2026-11-27 00:10:55 +00:00
pulse-triage[bot]
c1d5a69985 Enforce truthful availability lifecycle on pause, cancel, and delete (#5217)
**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)
2026-11-26 22:56:53 +00:00
pulse-triage[bot]
7799f4d76f Enforce truthful PBS/PMG poll accounting on pause, timeout, and empty (#5215)
**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)
2026-11-26 22:22:44 +00:00
pulse-triage[bot]
c079528ccd 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.

Change-source: pulse-maintainer
2026-11-26 22:14:02 +00:00
pulse-triage[bot]
a0258e083f Bound TrueNAS refresh deadlines and fail closed on platform config edits (#5214)
**Bound TrueNAS refresh deadlines and fail closed on platform config
edits**

Close and remove the previous TrueNAS provider and cached records when a
config edit fails client initialization instead of keeping the old
endpoint active and overwriting the failure. Bound whole TrueNAS
inventory refreshes with PULSE_TRUENAS_POLL_TIMEOUT (45s default), stop
FetchSnapshot from returning truncated optional reads as healthy after
context expiry, fix the Stop() timer leak, and prune failed-init configs
and statuses in both TrueNAS and VMware pollers when disabled or
deleted.

**Preserve TrueNAS cached records across valid config edits**

Move cachedRecordsByOrg deletion inside the client initialization error
branch in TrueNASPoller.syncConnections so config edits that build a new
client (such as changing OutboundPolicy) retain last-accepted cached
records if the new provider's first refresh fails, while invalid edits
that fail client construction still fail closed and clear stale records.
Skip nil snapshots in rebuildCachedRecordsForOrg so sibling refreshes
cannot clobber preserved records before the rebuilt provider completes
its first refresh.

---
Fleet candidate `20261126T205146Z-core-runtime` from the `core-runtime`
lane. Reviewed tip `5f3d44eac1fbb475012c0acf63069760fecad596` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
2026-11-26 22:07:09 +00:00
pulse-triage[bot]
de33563412 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.

Change-source: pulse-maintainer
2026-11-26 21:30:59 +00:00