Containing CI correctly rejected stale string assertions that required the removed full-fleet copy and repeated summary work. Exercise list and stats HTTP responses and generation-summary reuse in the existing native cache test instead; retain page/live-health/concurrency and PMG ownership coverage. Lower only the retired source-read baseline entry.
Contract-Neutral: Test-only replacement of obsolete implementation-shape pins with executable endpoint/cache assertions; runtime source, wire contracts, rendered state and performance budgets are unchanged.
Change-source: pulse-maintainer
Read cold and warm list/stats paths from 24 readers with distinct allowed/refused contexts, preserving page-local health and complete generation-owned counts.
Change-source: pulse-maintainer
Reuse structural aggregations only within the existing tenant presentation generation, stream facet counts through the shared filter predicate, and evaluate live health and action readiness on request-owned returned rows. Keep query, freshness, identity, history and authorization semantics intact.
Contract-Neutral: Unchanged REST fields, query semantics, tenant isolation, canonical identities, policy summaries and live per-request readiness; only transient computation and generation-owned structural aggregates are reused.
Change-source: pulse-maintainer
A Docker page open while a host's agent disconnected kept Stop and Restart
enabled, and the click then failed at plan time. After the agent came back,
the old refusal stayed until the page remounted. Only a REST read carried
refusals, and a mounted Docker page reads REST once. The websocket merge
kept that REST answer, so nothing overwrote it; it just never changed.
Every broadcast now runs the same availability check, and a refused row
carries a ref into a new actionReadinessCatalog. A row with no ref refuses
nothing, so the store and the merge take the row's own answer and a refusal
ends with the frame that ends it. A first paint from the websocket is right
too, which closes the moment after in-app navigation when refused actions
looked enabled.
Broadcast rows keep capabilities whole. The drawer's operator policy form
needs what a disconnected host offers, and a stable set means a disconnect
moves one ref per row.
A check runs per capability per resource, host and token lookups scan every
session, and each session check takes config.Mu, so one pass now answers each
lookup once. Planning and dispatch still read live. Refusals leave Detail off
the wire: it names one host's identity and would give every host its own
catalog entry.
When two Proxmox connections reuse VMIDs and guest names, Patrol and the
PBS rollups each decided for themselves which guest owned a snapshot, so
they disagreed with the guest badge and the Backups table.
On a colliding estate a failing datastore's row said "Puts backups for 3
protected workloads" where the rule and the badges name 7, and a host
backup counted as the VM with its ID. A Patrol run scoped to a guest
whose last backup was 10 days old called it recent, using the backup of
another connection's guest with the same VMID. Two guests with one name
merged, which hid the stale one.
Both now read models.AttributePBSBackups. A StateSnapshot holds the PVE
storage evidence State holds, so it gives the same answer, and Patrol
takes that answer before a scope narrows the guests. A snapshot the rule
leaves unsettled counts for nobody. Patrol also stops crediting partial
archives, incomplete snapshots and archives of the other guest kind,
which the badge never counted.
A registry seeded from resources, which is how /api/resources reads a
running monitor, has no backups to count and zeroed every PBS rollup, so
REST disagreed with websocket rows. It now keeps what its seed carries.
After an operator links two guests, REST shows the old rollup until the
monitor's next publication.
Attribution now runs on every snapshot ingest, so estates without a
collision skip the source learner and the registry stops copying snapshot
rows. At 1000 guests and 50k snapshots ingest stays near 41 ms with fewer
allocations. If every VMID collides it costs about 120 ms more, the same
work SyncGuestBackupTimes already does there.
Refs #2681
Restore the existing reporting_query REST schema repair and generation-bound History targets for issues #2077 and #2964. Keep current SCALE parsing, polling freshness, trust, access and zero/unknown semantics. Restore the registered client, resource and authenticated chart regressions; keep browser-only proof rigs out of shipped source.
Contract-Neutral: Restore the existing CORE reporting and canonical History-target contracts without a new API schema, route, access or freshness contract. Current-source regressions and monitoring contract notes cover the repair.
Change-source: pulse-maintainer
AI Discovery ran a separate model-backed service scanner beside Patrol
and the Assistant: its own store, scheduler, model route, API, tool and
drawer UI. No telemetry counter ever measured its use (the telemetry
discovery_enabled flag OR'd it with network subnet discovery), the
maintainer judged it a flop, and the context it produced is already
available to the models through pulse_query, pulse_read and the
unified-resource context sections.
This deletes internal/servicediscovery, internal/ai/infradiscovery, the
pulse_discovery tool, the /api/discovery routes, the mock Discovery
fixtures, the Discovery tabs in the resource, guest, node and Docker host
drawers, the identified-service cards, readiness badges, provenance
markers, suggested web-interface URLs, the Workloads AI Context column,
the chat "Discovery is off" hint and the AI Service Context settings page.
The old settings route redirects to Assistant settings. The model-bound
sanitizer allow-list existed only to pass Discovery context through, so it
goes too, along with the CopyableCodeRow primitive that only the
Discovery tab used.
Network subnet discovery (/api/discover, the Infrastructure discovery
settings) and the discoveryTarget agent coordinates are separate features
and stay. Stored discovery_enabled, discovery_interval_hours and
discovery_model AI settings are ignored on load; the settings API decoder
is lenient, so older frontends saving those fields still succeed.
A source-filtered report-merge chose the links to undo by the sources
each fold's folded side took in, which spans that side's whole subtree.
Naming the source of a leaf in a chain (a Docker host linked into an
agent linked into a VM) also split the leaf's holder from the VM, and
where recorded links form a cycle a reported member stayed joined
through the link whose fold did not name it.
Folds now record what each side is on its own (HolderOwn, FoldedOwn),
read before the other side's sources are merged in, and
ReportedManualLinkFolds undoes the links that join a member carrying a
reported source to the part that stays or to another reported member.
A member hanging below a reported one goes with it and its link stays.
A report naming every source or none still undoes every link, so the
drawer's Split is unchanged; only API callers with a real sources
filter see a difference.
The resources API rebuilds its registry from the monitor's unified
seed, but built it with NewRegistry and plain ingests, so its stale
pass used the registry defaults while the monitor judges each source
by its configured polling cadence. A Proxmox node polled every two
minutes read stale, with warning status, in /api/resources ninety
seconds after its poll while the websocket called it online.
Presentation coalescing had the same gap in both views. When it merges
an agent row the registry kept apart into its Proxmox node by hostname,
it picked each reading's source by the default thresholds, so the row
showed a silent agent's readings over a poll the registry calls
current.
The seed now carries the thresholds its registry generation was judged
by. The monitor adapter records them per generation: thresholds set
since the last rebuild wait for the rebuild that applies them, and the
read-state overlays and live supplemental refreshes of a generation are
judged by its thresholds, since re-judging a listing cannot clear a
stale verdict it already carries. The monitor lists a generation with
its thresholds from one registry pointer, and a view built from mock
fixtures or a bare snapshot reports none (the defaults it was judged
by). The monitor hands seed, freshness and thresholds over from one
view, per tenant too. The resources API builds
its registry with them (NewRegistryWithStaleThresholds: ingests and
stale passes that pass none use them) and keys its cache on its own
copy. The coalesce judges metric freshness with metricSourceStale, the
rule the stale pass and the merge already share, and both the
broadcast and ListForPresentation pass their view's thresholds. The
broadcast coalesce also honours the operator's merge exclusions, so the
adapter's CoalesceForPresentation takes the listing's thresholds next
to them.
Patrol's scoped runtime state still rebuilds registries with the
defaults.
PR 2739 added Resource.linkFolds, a record of every link folded into a
resource that rides in-memory clones, which is the same fold set this
branch carried as Resource.linkFoldedIDs. Keep one record: drop
linkFoldedIDs and index folded IDs from linkFolds when a link applies
and when resource seeding copies the record in.
Main's unlink test treated a lookup by the folded agent's ID as proof
that the agent was still listed. That lookup now answers with the VM
holding it, as lookups by source IDs and canonical aliases already do,
so the test checks which row answered and pins the VM answer.
POST /api/resources/{id}/report-merge excluded only candidate IDs that
SourceTargets derives from the merged resource's type. For a source an
operator link folded in, that candidate names neither side of the link:
an agent linked into a VM got a vm- ID, and an agent linked with a node
or Docker host keyed by its machine ID got a source-specific one. No
link row matched, so the pair stayed merged while the API answered
"Merge reported" and the drawer toasted "Resource split applied". Two
linked agents share their only source and were refused outright as
"Resource is not merged".
applyManualLinks now records each link it applies on the merged
resource: the link row's own pair and the sources the folded side
brought, once per pair, carrying earlier folds so a chain keeps every
pair. The record rides in-memory clones, so the resources API's
registry, seeded from the monitor's already-linked listing, has it
although it never holds the folded row. Report-merge excludes those
pairs for the reported sources, and the store's one-decision-per-pair
rule deletes the link, as unlink does.
A link also joins only the pair its row names now. Canonical-ID
succession moves primary_id even when the endpoint re-key collides
with the successor's own row, and honouring that primary merged the
successor through a row that no unlink or report-merge of the merged
pair removes.
POST /api/resources/{id}/unlink recorded only an exclusion. The link row
stayed, and applyManualLinks never consults exclusions, so the monitor's
rebuilds, the resources API and the websocket kept the pair folded while
the API answered "Resources unlinked".
A pair now carries one operator decision. AddExclusion deletes the pair's
links and AddLink its exclusions, in one transaction and in either ID
order. Reads keep each pair's latest decision, so rows written before
this change, or rewritten onto one pair by canonical-ID succession,
resolve by their later write, and a registry resolves its two reads
together so an unlink landing between them cannot load both.
While a Proxmox node was linked to an agent, the merged resource's
identity pin could take the agent's machine key. After unlink the node
completed that key, minted the agent's ID and folded into it by ID, where
no exclusion check runs. A pin no longer completes a record the operator
split from the pinned resource.
The broadcast coalesced host views without exclusions while REST's
ListForPresentation honoured them, so a split host pair was one websocket
row and two REST rows. The broadcast now coalesces through the read state
that listed the rows, with the same exclusion filter.
The shared release preflight worker exports GITHUB_ACTIONS=true so isolated single-repository checkouts take their private-sibling skip. That flag also made the load/SLO latency guards hard-fail on a contended shared host, where the tests' own documented local-contention skip is the intended behaviour. Distinguish a real GitHub Actions run by GITHUB_RUN_ID, which only a hosted runner sets, so the worker keeps the cross-repo skip while latency overruns skip instead of failing. Hosted CI enforcement is unchanged.
Change-source: pulse-maintainer
Headerless HTTP 200 error pages were hashed into unrelated latest image digests and cached as updates. Require a schema-2 manifest envelope before trusting fallback body metadata, preserving valid indexes, platform comparison and existing error backoff. Retain before/after collector, ingest and resource endpoint qualification; this reproduces a mechanism, not the exact reporter cause in #2048.
Change-source: pulse-maintainer
Cold resource store construction held the shared cache mutex and delayed unrelated tenants, including cache hits. A bounded API measurement found 480ms p95 cache-hit mutex wait, while a synthetic blocked constructor reproduced the coordination defect independently of storage internals.
Deduplicate construction per tenant outside the cache mutex, and coordinate eviction with in-flight opens. Add synthetic regressions for unrelated tenants, same-tenant deduplication, retry after failure and close ordering. The resource API race suite passes. This does not establish the cause of the historical release stress failure or qualify a release.
Change-source: pulse-maintainer
Contract-Neutral: Internal tenant-store lock scheduling repair only; routes, payloads, authorization, tenant keys, storage format and eviction semantics are unchanged. Existing race-tested API coordination regressions establish deduplication, retry and close ordering; no frontend surface changes.
Keep canonical disk risk, source freshness and retained history intact when
Assistant and Patrol gather evidence. Proposal acceptance validates an action
contract and must not rewrite uncertain conclusions as established root cause.
Preserve complete subscription tool batches without exposing routing envelopes
as answers. Keep wide answer tables readable and keyboard-scrollable on mobile.
Optimize retained tier reconciliation without discarding gaps or newer samples.
Record failed real-model diagnoses and outstanding autonomous qualification
separately from passing data-path and interface checks.