The Proxmox Backups tab reads the rows and the policy of `GET
/api/recovery/postures` and nothing else, but the frontend response type
still declared the endpoint's pagination `meta`, and
`useProtectionPostures` wrote it twice: an empty one in the initial
value, and one it invented after joining its 200-ID batches (`page: 1`,
the batch size as `limit`, the row count as `total`, the request count
as `totalPages`). This removes it, and `RecoveryResponseMeta` with it,
the last response type to carry it now that #2787 dropped the points
response's. The backend and the wire shape are unchanged.
## What changed
- `types/recovery.ts`: `meta` leaves `ProtectionPosturesResponse`;
`RecoveryResponseMeta` is deleted.
- `useProtectionPostures.ts`: the initial value and the joined response
are `data` and `policy` only.
- `ProxmoxBackupsTable.test.tsx`: the four postures fixtures stop
sending `meta` (the `meta` blocks of the unrelated `/api/backups/*`
payloads stay).
- `useProtectionPostures.test.ts`: a type-level pin that the response is
`data | policy`, and a runtime test that joins a 201-ID fleet into two
requests and checks the batch sizes, the rows (in the backend's order,
which the mock deliberately makes non-sorted), the policy and the joined
response's keys. Nothing covered the join or the policy flow before:
dropping `policy` from the joined response passed every existing test.
- `storage-recovery.md`: one paragraph next to the points-decode rule
from #2787.
`frontend-modern/browser-tests/composed-backups.cjs` still has a `meta`
in a route mock of the postures response. Nothing references that script
and the mock mirrors the unchanged wire, so I left it.
## Evidence
- **No readers.** A whole-program scan with the TypeScript checker over
`src` and its tests (object-literal keys resolved through the contextual
type, destructuring, element access, indexed-access types, whole-object
uses) found zero reads of `ProtectionPosturesResponse.meta` and of the
four `RecoveryResponseMeta` members, only the two writers. Controls:
`data` and `policy` show their reads, and a planted file with eight
reader forms (property access, destructuring, chained access,
`['meta']`, a `RecoveryResponseMeta` member read, spread, `Object.keys`,
`T['meta']`) was detected in every form. The whole-object uses are the
declaration and `initialValue`, and `createNonSuspendingQuery` never
inspects the value's shape. Nothing in `tests/integration` reads it
either. After the change the scan finds no declaration to report and
`tsc` is clean.
- **`limit` and `totalPages`.** Nothing reads them; the URL's
`limit=200` comes from `MAX_PROTECTION_POSTURE_BATCH_SIZE`, which stays.
- **Controls on the new tests.** Re-adding `meta` (optional or required)
to the type fails `tsc` on the pin, and with the pin deleted nothing
else fails, so the pin is the guard. Each of these single flaws in the
hook fails the new runtime test: dropping the rows, dropping the policy,
keeping only the first batch, joining batches in reverse, re-sorting the
rows, and spreading a batch's wire `meta` back into the joined response
(type-clean, which is why the test also asserts the joined keys at
runtime). The dropped rows also fail six table tests.
- **Tests.** tsc, eslint, prettier and the canonical platform audit are
clean; 33 files and 706 tests pass over the hook, the Proxmox features,
the recovery transport and the platform-table guardrails. A wide run
(`features`, `hooks`, `utils`, `api`, `types`, `__tests__`,
`components/shared`, `Workloads`, `Storage`) on the #2787 head plus this
change passes 946 of 948 files; the failing file is
`agentInstallCommand.test.ts`, whose pty helper raises a `termios` ioctl
error on this Mac and which imports nothing this change touches.
- **Browser, before/after.** Production builds of this commit's parent
(`4471dcaaba`) and of this change, each behind `vite preview` and a
private mock backend (sized so the tab's postures request really splits
into two batches, 200 and 18 IDs), driven by one headless Chromium
script at 1440x900 and 390x844, two runs per build interleaved. Both
views (`/proxmox/backups/date` and `/coverage`) give the same 221
targets, the same 109/61/38/10/0/3 posture counts and footnote, the same
144 rows (40 at phone width), the same chips and byte-identical
digit-masked page text; the same two postures requests open and poll;
every response body still has `data`, `meta` and `policy`; with the
endpoint stubbed to a 500 both builds show the "Protection posture is
unavailable" notice. 38 measurements, one value each across the four
runs, no failing responses, no console errors.
- **Bundle.** 189 files each side; one differs in code, `Proxmox-*.js`
(276,802 to 276,696 bytes), and only by the removed `meta` statements.
Bundle check passes with `.bundlesize.json` unchanged (Proxmox chunk
77.78 to 77.74 kB gzip, total JS 1365.65 to 1365.57 kB).
Use the assets already built in the Frontend job for a read-only backend compile and server/API vet. Require byte-equal embed copies, retain the existing audit/tests/deadline and fail on compiler errors; source controls do not stand in for a containing hosted build.
Change-source: pulse-maintainer
Preserve reviewed local integrations and published upstream identities; the incomplete fleet broadcast candidate remains unintegrated.
Change-source: pulse-maintainer
Capture both pipeline statuses before logging overwrites them. Keep recovery, signature and prior-service safeguards unchanged; cover installer, collector, simultaneous and successful observations without attributing a past host interruption.
Change-source: pulse-maintainer
Follow-up to #2778. Stacks cleanly on main; the contract prose
cross-references the wiring change in #2796, so land that first if both
are open.
## What was wrong
In mock mode the unified view is keyed on the fixture data version,
which advances on every metric tick, and building it for the default
1,776-resource estate costs about half a second of CPU (many seconds on
a starved process). #2778 moved the metrics-target lookup onto the
fixture structure revision. The other callers that read only what the
estate lists and how it connects still rebuilt the whole view after each
tick: at startup they made 42 view requests, all misses (the
Docker-alert prune 18, the connection snapshots 13, the host-agent
evaluation 8, the chart prewarm 2, the metrics-target lookup 1), and
with no client connected the monitor tick alone rebuilt the estate about
every nine seconds.
## What changes
- Callers that read identity and topology share the view built for the
current structure revision and operator links
(`currentStructureUnifiedStateView`, `GetUnifiedStructureReadState`,
`currentModeStructureReadState`, in
`internal/monitoring/unified_structure_view.go`; `mockMetricsTarget`
uses the same cache reader): the Docker-alert prune, the workload chart
prewarm, the demo Patrol operator-state resolver, and the host-agent
evaluation. `evaluateHostAgents`, which runs on every monitor tick, now
lists nodes only when an offline host names a linked node.
- The connection-degraded alert feed keeps only platform rows
(`snapshotConnectionsForAlerts` drops every agent row, and a PBS row's
reported node name only becomes a host alias that its snapshot does not
carry). It now builds the aggregator inputs with `platformRowsOnly`, so
it no longer reads the hosts, their desired-config fingerprints or the
PBS instances. The connections endpoint, diagnostics and runtime
inventory still read them.
- Deliberately not moved:
- The mock storage chart (`resolveMockStorageTotal`): a linked pool
takes its capacity from whichever source was seen last, which a tick can
move without a structure change. It stays on the data-version view, read
once per request instead of once per uncached pool.
- `linkedHostForNode`, `getHostAgentTemperatureForNode` and
`carriedTemperatureOutlivesAgentLease` (only reachable with
`PULSE_MOCK_KEEP_REAL_POLLING`): they read a host's status, disks,
sensors and report lease, which a tick moves. Hoisting them would need
the read state threaded through the node poller, and they run after
startup, so they stay as they were.
Real mode is unchanged.
## Measured (pulse-dev, probe builds, one pinned core, GOMAXPROCS=1,
host load 30 to 110, single runs)
| | #2796 alone | with this change |
|---|---|---|
| estate view builds before the listener answers | 2 | 1 |
| estate builds, no client connected, 299 s of life | 33 | 2 (both at
startup) |
| process CPU over a 180 s steady window | 12.3 s | 3.3 s |
A separate run of the pre-#2796 build used 9.0 s over that window, so
read 12.3 against 3.3 as the comparison rather than as exact
percentages. The public demo host runs a mock estate, so the
steady-state saving is the one that matters there.
## Verification
- New tests (in registered proof files): no consumer of the structure
view rebuilds the view after a fixture tick (Docker prune, structure
node listing, workload prewarm, host-agent evaluation including an
offline host that names a linked node); the data-version view still
rebuilds; the structure view follows a structural fixture change and an
operator link; lazy correlation lists nodes only for a linked host; a
storage chart reads the estate only when it is not cached; the alert
feed does not rebuild the view, its platform rows equal the full
aggregator's, and configured PVE/PBS/PMG rows survive without the hosts;
the Patrol resolver does not rebuild the view.
- Negative controls (each fails the named test): prune, prewarm, eager
node listing, structure node listing, alert feed and Patrol resolver
each moved back to the data-version view, and a storage chart that reads
the estate before checking its cache.
- `go vet` and the targeted tests on pulse-dev.
## Known limits
- The structure view can be several ticks old, so a caller on it must
not read status, metric values, timestamps, sensors or anything a link
merges by freshness; the contract says so. The fixture sets pod node
names (which feed the platform aliases a Patrol reference can resolve
through) when the estate is built, not on a tick.
- `pbsInstanceFromReadStateView` never copies `NodeName`, so
`pbsReportedNodeNamesByInstance` appears to feed empty host aliases on
the connections endpoint. That is a separate bug, not changed here.
- The batch sharing of the storage chart's read (`sync.OnceValue` in
`GetStorageMetricsForChartBatch`) is not pinned by a test; the
single-chart laziness is.
Not a feature: no demand-ledger entry.
Follow-up to #2783. That change made an operator's remediation lock
follow a resource through manual links and
`ApplyCanonicalIDSuccessions`, and named two canonical-ID changes it did
not cover. Both had been read in code but not reproduced, so each was
reproduced (or not) against `main` before anything changed.
## What was found
**A host or Docker reporter that gains an identity key: reproduced,
fixed here.** A host agent or Docker host with no machine ID, DMI UUID
or cluster slot is keyed by its source-specific ID and holds no identity
pin (a pin needs a strong key). When a later report carries a key the
resource mints a new ID, and `identityPinIndex.successionsFor` has no
predecessor pin to name, so nothing re-keys the operator's rows. The
lock stays on an ID the registry no longer lists, while the dispatch
gates read the listed ID's row. On `main`, the new registry test fails
for all 12 variants (host agent, Docker host and Swarm join; memory and
SQLite stores; never-auto-remediate and retired). Host agents advertise
action capabilities, so this one is a real way past the lock.
**A physical disk re-keyed in place: reproduced as an orphaned row, but
not a way past the lock.** `rekeyPhysicalDiskLocked` moves a disk from
the unscoped serial ID to a machine-scoped one when a second machine
reports the serial, and nothing moves its operator-state row. A probe
confirmed it (the disk's ID changes, the row stays behind, and the stale
row reappears when the other machine's copy goes away). But a dispatch
needs a capability the resource advertises: the planner plans only
`resource.Capabilities`, the Assistant's control candidates exclude
disks, and no producer gives a physical disk a capability (a
registry-built disk had 0 in the probe). So the lock guards nothing on a
disk today, and a carry for it would be dead weight with a half-covered
return path. What is lost on a disk is its other operator settings
(retirement, maintenance, notes), which is a different, smaller question
and is left out of this change.
## What changed
- `ingestRecord` notes the source-specific ID of each host agent and
Docker host reporter that lands on another ID with a key
(`noteReporterEraLocked`); the snapshot and record ingests hand the
batch to the existing `applyRecordSuccessions` (which skips an ID still
observed), exactly as Proxmox guests' retired IDs already go. The stores
then carry the row, or the lock onto an existing row, once per
predecessor.
- Left out on purpose: Proxmox nodes (they borrow their linked agent's
key, which a link or split can move either way), saved-host continuity,
a source-specific ID that holds a pin (pin succession's decision), and
one an operator split names (a succession would rewrite the pair into an
exclusion of the resource from itself the generation the other side is
absent).
- `SQLiteResourceStore.ApplyCanonicalIDSuccessions` now skips a
predecessor that is already recorded to any successor, as `MemoryStore`
does. The table is keyed by the predecessor, so a different successor
could only be refused by the insert, after a write transaction and a
pin-cache invalidation on every rebuild.
- The physical-disk premise is pinned:
`TestPhysicalDiskResourcesAdvertiseNoActionCapability` (Proxmox, agent
SMART, Unraid and record-fed disks) and
`TestProviderDiskRecordsAdvertiseNoActionCapability` (the TrueNAS
provider's own records). A producer that gives a disk a capability fails
them with a pointer to the contract.
- Contract: the two "not covered here" items in the remediation-lock
paragraph are replaced by what is carried, what is left out and why.
## Limits stated in the contract
- The first rebuild after an upgrade declares every keyed reporter's era
and also restores a lock or row an earlier keyless-to-keyed change left
behind, onto the keyed ID's existing row too, even where the operator
has edited it since. A lock the operator wants gone can be cleared on
the keyed ID afterwards and stays cleared.
- The row moves while the previous generation is still being served (as
for every succession), so an action planned against the old ID in that
window finds no row there. A link the succession rewrites takes effect
in the next generation.
- An ID a reporter held under a report ID it no longer sends is not
recomputable. A change from one machine key to another is a different
machine, not an era.
- An operator-split reporter's rows are left alone by this declaration.
Separately, on `main`, a pin-driven succession can already erase such a
split (the split Docker source's own pin holds the shared machine key
and `successionsFor` names it); that is not touched here.
## Verification
Run on pulse-dev:
- `TestReporterGainingAStrongKeyKeepsItsRemediationLock` (host agent and
Docker host gaining a machine ID, a Docker host joining a Swarm) fails
on `main` and passes with the change;
`TestReporterEraIsDeclaredOnlyForAKeyTheReporterGains` (keyless stays
put, continuity moves nothing, record ingest, node borrow, linked
keyless agent, split exclusion, pinned ID) and
`TestCanonicalIDSuccessionRekeysAPredecessorOnce` pass.
- Whole `internal/unifiedresources` and `internal/truenas` packages pass
on the merged tree.
- Mutation controls, one break per rule against the new tests, all
caught: host agent not declared, Docker host not declared, continuity
declares too, Proxmox node declares too, keyless reporter not filtered,
pin guard dropped, exclusion guard dropped, record epilogue not drained,
snapshot epilogue not drained.
- `internal/monitoring` passes on an earlier revision of this change
(the later revisions only add the guards above); `internal/api` did not
finish inside 40 minutes at load ~80 on pulse-dev, so CI is its
authority.
- Two independent review passes before pushing found: the split-erasure
case (now guarded and tested), a contradictory-pin case (guarded and
tested), a TrueNAS tripwire that did not exercise the provider (now
does), a steady-state SQLite cost (fixed), and several contract
sentences that overclaimed (reworded).
No demand-ledger entry: this is a defect, and neither
`FEATURE_REQUESTS.md` nor GitHub issues carry a report of it.
Accept source-bound focused, type, lint, format and desktop/phone browser evidence for the existing editor repair. Preserve exact reviewed commit identity and leave broader notification qualification with its owners.
Change-source: pulse-maintainer
Share pending admission across form saves, bulk changes, toggles and deletion. Stop an unconfirmed batch without rollback or editor retry, retain open drafts, and prevent retired destination owners from changing replacement inventory.
Require explicit deletion acceptance and retain source-bound component, parent-adverse and desktop/narrow browser proof. Update the alerts and dependent frontend interaction contracts.
Change-source: pulse-maintainer
Follow-up to #2779. Kiosk (`?kiosk=1`) is the read-only wall display
from #917, and with the filter bars gone two pieces of chrome still
assumed someone at the keyboard.
## What changes
- `PlatformSectionTabs` stays unmounted in kiosk, on every platform page
and on the Proxmox Backups `By date` / `Coverage` rail. The maintainer's
replies on #917 and #1102 say kiosk hides section navigation, and the v5
Proxmox overview did too. The rail mounts fresh when kiosk ends, so its
phone scroll controls bind to the new element.
- `createPlatformTablePreview` shows every row in kiosk and renders no
Show all button. The expansion state is kept, so leaving kiosk restores
the preview as it was and an open node drawer is not stranded.
- The contract records both rules next to the FilterBar kiosk paragraph,
why the drawer search fields and the `Guests on <node>` reset stay, and
corrects the stale preview row counts (twelve and six, not eight and
four).
## Why
Measured on the 50-node mock estate with only #2779 applied (headless
Chromium at 1280x400, the rack LCD from #917, plus 1440x900 and a
phone):
- the section rail still cost the 400px display 53px of height (106px on
Backups, which carries two rails);
- the 12-row cap kept 38 nodes off the display, including the offline
node ranked 23rd. The primary navigation and its Alerts count are hidden
in kiosk, so the table rows are where a node going down shows.
## Decisions on the other kiosk gaps
- Drawer search fields: kept. They exist only inside a drawer someone
opened with a click, and type-to-search registers only while it is open.
A stray key on an overview reaches no field (checked live), so
`useTypeToSearch` is unchanged.
- The `Guests on <node>` heading with its Show all nodes reset, and the
Backups and Alert History chart selections: kept. A click, or a URL
someone chose, can narrow the page, and these are the way back from it.
- vSphere VM table title: deferred, see below.
## Not in this PR
The vSphere overview's VM table has no title (Docker and Proxmox title
theirs), so in kiosk it follows the Hosts table with no heading.
`VmwarePageSurface.tsx` is held by an in-flight WorkloadsSurface
refactor, so it is left alone here.
## Verification
- Browser: 16 route and mode pairs at 1440x900, 1280x400 and 390x844,
live kiosk toggling by button and Escape, an expansion with a node
drawer opened past the cap surviving a kiosk round trip, the Kubernetes
drawer search fields, and the node-scoped heading reset. The receipt is
in the diff.
- Tests: new `sharedPlatformPage.kiosk.test.tsx` (all four original
cases fail on main, and two mutations of the helper fail only the
intended tests), guardrail pins in
`SharedPrimitives.guardrails.test.ts`, and the platform feature suites.
Preserve all reviewed local integrations and the additive installer-test correction. Upstream advanced during the single publication attempt; compose its exact available commit without replaying the refused publication.
Change-source: pulse-maintainer
The Proxmox Backups tab reads the rows and the policy of
GET /api/recovery/postures through useProtectionPostures and nothing
else. The response type still declared the endpoint's pagination meta,
and the hook wrote it twice: an empty one in the initial value, and one
it invented after joining its 200-ID batches (page 1, the batch size as
limit, the row count as total, the request count as totalPages). Nothing
in src or its tests reads any of it, so those fields described a
pagination the client does not have.
Remove the meta from ProtectionPosturesResponse, both writers, the test
fixtures that sent it, and RecoveryResponseMeta, whose last user this was
once the points response dropped its own. The backend and the wire shape
are unchanged. A type-level pin keeps the response to data and policy,
and a new hook test joins a 201-ID fleet into two batches and checks the
rows, their order, the policy and the response keys at runtime: nothing
covered the join or the policy flow before. The storage-recovery contract
records the rule next to the points decode.
A PBS machine that was configured by IP or DNS alias still showed in
connected systems as an API row plus a separate host-agent row, even
though the PBS node and the agent report the same hostname.
## Why
The PBS poll records the hostname the node reports about itself
(`PBSInstance.NodeName`) so `/api/connections` can alias the PBS
connection by it and group the agent running on that machine into the
PBS row. The name reaches the unified PBS resource (`PBSData.NodeName`),
but `Monitor.PBSInstancesSnapshot()` rebuilds each instance from the
read-state view, and the view had no accessor for it. The snapshot
therefore always carried an empty `NodeName`, the ledger's reported-name
map was always empty, and the alias never reached `HostAliases`.
The node name was added on 2026-08-01 (397cad802c), after
`pbsInstanceFromReadStateView` already existed, so it has never worked
on this path. The existing tests missed it because they hand the
aggregator its inputs instead of going through the monitor.
## Change
- `PBSInstanceView.NodeName()` exposes `PBSData.NodeName`, distinct from
`Hostname()` (the host of the configured endpoint).
- `pbsInstanceFromReadStateView` copies it. This is the only place a
`models.PBSInstance` is rebuilt from the view.
## Proof
- `TestMonitorPBSInstancesSnapshotCarriesReportedNodeName`: the unified
resource keeps the name (control assertion) and the snapshot must too.
- `TestConnectionsLedger_GroupsHostAgentWithPBSByReportedNodeName`: a
real monitor through `buildAggregatorInputsWithRuntimeSources`,
`buildConnections` and `buildConnectionSystems`. The PBS connection's
`HostAliases` include the reported name and a host agent whose hostname
equals it attaches to the PBS system.
- `TestView_PBSAndPMGInstanceViewAccessors` pins the accessor.
- Negative control: with the one-line conversion change reverted, the
snapshot test fails (`NodeName = ""`) and the ledger test fails (`pbs
host aliases = [backup 192.0.2.40]`). With it, all pass, alongside the
existing alias and grouping tests.
## Limits
- Only direct `root@pam` sessions can read the node name (API-token and
non-superuser connections get none, see the monitoring contract), so
this restores grouping for password-auth PBS connections only.
Token-auth connections still match on what they were configured with.
- The PBS resource's identity hostnames are deliberately unchanged; this
does not alter registry linking.
- The pre-push frontend lint and type-check did not run in the private
clone used for this change (no `node_modules`); the diff touches no
frontend files.
WorkloadsSurface built its own workloads state when no `state` prop
arrived, and its props type extended every useWorkloadsState option.
Both production mounts, the Proxmox and vSphere overviews, already
build that state themselves (it also drives their one WorkloadsFilter)
and pass it in, so the fallback only ran in tests. The mounts still
passed vms, containers, nodes and useWorkloads, and Proxmox passed its
app-container exclusion, all of which the surface ignored once it had
a state.
The surface now requires `state` and accepts only presentation props:
forcedPlatform, forcedViewMode, the empty-state copy and tableTitle.
The hook's options type is renamed WorkloadsStateOptions so it no
longer shares a name with the surface's props. The pages drop the
ignored props. Tests that leaned on the fallback build state through a
page-owned harness, as the pages do.
The Proxmox page contract test pins the exact props its mount passes.
The overview guardrails check that each surface repeats the platform
and view scope its page gave the state, and that the surface imports
only the state's type, so it cannot call the hook again.
Because the surface no longer imports the hook at runtime, Rollup now
names the chunk the Proxmox and vSphere pages share after its last
module, useWorkloadsState, and the bundle check reported the old
WorkloadsSurface key as missing. The chunk is the same code at the
same size, so the budget key follows it with its baseline and limit
unchanged.
Accept known-timer containment and preservation of evidence, masks and prior schedule states with retained copied-command and connected documentation controls.
Change-source: pulse-maintainer
Accept exact updater state and rollback guards with retained final-byte component, discovery and smoke evidence; full installtests and installed recovery remain separate follow-through.
Change-source: pulse-maintainer
A host agent or Docker host that reported no machine ID, DMI UUID or
cluster slot is keyed by its source-specific ID and holds no identity pin,
because a pin needs a strong key. When a later report carried one the
resource minted a new ID, no pin named the old one, and pin-driven
succession declared nothing. The operator's rows, a remediation lock
included, stayed on an ID the registry no longer lists, while the dispatch
gates read the row of the listed ID. Pulse could then act on a host the
operator had told it never to touch.
The retired ID is recomputable from the report itself, as a Proxmox
guest's retired IDs are. ingestRecord now notes the source-specific ID of
each host agent and Docker host reporter that lands on another ID with a
key, and the snapshot and record ingests hand the batch to
applyRecordSuccessions, which skips an ID still observed. The stores
already carry the row, or its lock onto an existing row, once per
predecessor. Proxmox nodes are left out on purpose: they borrow their
linked agent's key, and a link or split can move that borrow either way.
The other uncovered change named in the contract, a physical disk re-keyed
in place to a machine-scoped ID, is not a way around the lock today: the
planner plans only capabilities a resource advertises and no producer gives
a physical disk one. TestPhysicalDiskResourcesAdvertiseNoActionCapability
pins that for the Proxmox, agent, Unraid and TrueNAS producers, and the
contract now says so, including that the disk's other operator settings are
not carried.
In mock mode the unified view is keyed on the fixture data version, which
advances on every metric tick, and building it for the default
1,776-resource estate costs about half a second of CPU (many seconds on a
starved process). #2778 moved the metrics-target lookup onto the fixture
structure revision; the other callers that read only what the estate
lists and how it connects still rebuilt the whole view after each tick.
At startup they made 42 view requests, all misses, and with no client
connected the monitor tick alone rebuilt the estate about every nine
seconds.
Callers that read identity and topology now share the view built for the
current structure revision and operator links (currentStructureUnifiedStateView,
GetUnifiedStructureReadState): the Docker-alert prune, the workload chart
prewarm, the demo Patrol resolver, and the host-agent evaluation, which
also lists nodes only when an offline host names a linked node. The
connection-degraded alert feed keeps only platform rows, so it no longer
reads the hosts, their desired-config fingerprints or the PBS instances
that only feed agent rows and a host alias its snapshot drops.
The mock storage chart is not one of them: a linked pool takes its
capacity from whichever source was seen last, which a tick can move
without a structure change. It keeps the data-version view, read once per
request instead of once per uncached pool. The per-node polling lookups
of a monitor that keeps real polling in mock mode (linkedHostForNode,
getHostAgentTemperatureForNode, carriedTemperatureOutlivesAgentLease)
read a host's status, disks and sensors, which a tick moves, so they stay
on the data-version view.
On pulse-dev (one pinned core, host load 30 to 110, probe builds): a
start built the estate view twice before the listener answered with the
wiring change alone and once with this; with no client connected the
process built the estate 33 times in 299 s and used 12.3 s of CPU over a
180 s window, against twice and 3.3 s with this change.
The monitor's rebuild holds the operator-link pass back until the
snapshot and every record source except availability are ingested, then
judges each chain once, so a fold cannot be locked in before a later
source brings a member that outranks it. The mock-mode fixture build
still ran a pass per ingest call, so a chain whose answer depends on the
order its members' sources arrive in (a Proxmox storage, a TrueNAS VM
and a vSphere VM linked in a cycle) could settle on a different row than
the live rebuild: mock mode kept the vSphere VM where the rebuild keeps
the TrueNAS VM.
Export the registry's deferral as DeferManualLinks and
ApplyDeferredManualLinks (the latter takes the stale thresholds the
ingests were given, as the Ingest* calls do) and have the fixture build
use them: defer, ingest the snapshot and the TrueNAS and vSphere
records, run the held-back pass once, then ingest availability so a check linked
to a folded resource still projects onto its primary. A registry with no
links defers nothing, so the shared memoized snapshot is built exactly as
before; a linked build pays one extra refresh round (about 3 ms of 52 ms
on the default estate), the same round the rebuild runs.
TestFixtureGraphAppliesManualLinksAtTheRebuildsBoundary replaces the
per-ingest-stage test: it keeps the availability projection and pins the
cycle against a real MonitorAdapter rebuild, with a per-call control so a
fixture change cannot silently stop separating the two. The unifiedresources
tests pin the exported pair, including that the deferred pass judges
freshness by the thresholds it is given.
The contract also drops a stale line: a check that names a folded
resource by canonical ID follows the fold to the primary, as
TestAvailabilityLinkToALinkFoldedResourceFollowsItsPrimary pins.
Operator links that share a member form a chain, and `applyManualLinks`
used to apply them one at a time in store order, looking each member up
only among listed rows. Once an earlier link folded a member into
another row, a later link naming that member skipped. So a chain
depended on the order its links were stored in:
- Agent A linked into VM V, and V linked into storage W. A-V first folds
A into V and V into W. V-W first folds V into W, and A-V then finds V
gone, so A stays its own row.
- A saved host (continuity-only row) whose partner the published
registry had already folded into a third row answered for itself instead
of being held under that row.
Standing the row that holds a folded member in for it (an earlier
attempt) fixed neither: that row then outranked the link's own primary,
and the agent-into-guest direction was lost once the guest was folded.
## What changes
Links now apply as chains
(`internal/unifiedresources/manual_link_chains.go`).
- A link member resolves to its own row or the row a link folded it
into, and is judged by its own recorded shape (agent, hypervisor-managed
guest), not the shape of the row holding it. Shapes ride on the fold
records.
- Every connected set of observed members folds into one root.
Candidates are the members no link folds (every member on a direction
cycle; the chain's guests when every candidate is an agent). Candidate
rows compete by their own identity: guest, then non-agent over agent,
then the earliest-created link, then canonical ID. A single link and an
agreeing chain keep their last primary, as before.
- The spanning tree follows the fold records rows already carry before
any other link, so a refresh that recreates folded members folds them
back along their records. A row folding into another orients its records
away from an anchor (the surviving row's ID when its records name it,
else the linking member), so the surviving row is never recorded as
folded and every folded ID keeps resolving.
- Every link of the chain is recorded on the root (cycle-closing links
included, with each side's own sources), so report-merge can cut a
reported member from every path.
- Saved members never join a chain; they are held under the row their
partner survives in, found after the folds, by the same precedence.
- A joined Proxmox node+agent row records the fold of the node's own ID
before links resolve, so a second link naming it joins the chain in
either store order. A link a newer operator split separates is dropped
before the chain forms (both behaviours were already in the loop and are
kept).
- The monitor's rebuild holds the link pass back until the snapshot and
every record source except availability are ingested, then folds each
chain once over the assembled estate. Availability still comes last.
Live supplemental refresh and the read-state overlay still run a pass
per call.
## Evidence
New proofs rebuild each estate in every link order and compare the
monitor, its read-state overlay and a registry seeded from that read
state, then refresh each record source. Negative controls on pulse-dev
(each reverted):
- On main, 10 of 12 chain cases, the refresh case, the joined-node case,
the changed-link seed cases, the surviving-row hold case, the rebuild
case and the report-merge cycle case all fail; the other two chain cases
guard behaviour that already worked.
- A plain breadth-first tree, a path-only rehang, ranking a pre-fold row
for holds, no shapes on the joined-pair fold, recording the joined-pair
fold during link discovery, forcing the rebuild back to per-source
passes, dropping cycle-link records, and not carrying own sources each
fail the specific test written for them.
- Full `internal/unifiedresources` passes on the final tree (326s under
load); `internal/monitoring`, `internal/api/resourceapi`, `internal/api`
link/continuity/report tests, `internal/mock`, `internal/vmware` and a
full build passed on the tree before the last rebase. Two single
failures under machine load (`TestRetentionLoop_RunsInitialPrune`,
`TestJSONRPCSnapshotContinuesAfterTelemetryTimeout`) passed 6/6 and 8/8
in isolation, with main's link files as well.
## Not in this change
- The mock-mode fixture build (`internal/mock`) and the resources API's
snapshot-seeded fallback still run a pass per source, so a chain whose
answer depends on the order its members' sources arrive in can settle
differently there than in the monitor's rebuild. The contract says so; a
follow-up aligns the mock build.
- Production reaches the resources API's snapshot fallback only when the
monitor has published no unified listing.
Keep unattended update containment separate from cancellation, host-stop diagnosis and rollback. Preserve known timer ownership, masks, consent, prior enabled and active states, and the original failure evidence; exercise copied commands with an isolated unit-manager double and a real timeout.
Contract-Neutral: Documentation and confined recipe controls only; no installer, updater, service or recovery runtime behaviour changed.
Change-source: pulse-maintainer
The browser re-joined same-hostname agent and platform rows from the
realtime payload without knowing the operator's merge exclusions, so a
node and agent that "Split merged resource" (report-merge) or unlink had
split on the server still rendered as one row. Every realtime path (the
websocket snapshot, its deltas and `/api/state`) already carries the
server's presentation coalesce, which honours the exclusions and
provider scope, so the browser now merges each row only with the
previous row of its ID. This replaces the "browser's realtime coalesce"
limit sentence that #2741 added to the unified-resources contract.
Showing the split exposed three ways the surviving row kept the departed
source's data, which the Machines page reads as provider ownership (it
answered "No Pulse Agent machines"):
- A row whose own `sources` list lost a source is rebuilt from the
incoming row, keeping the REST-only scopes, source status and readiness
of the sources that remain. A previous row claims every source either of
its two lists names, so a half-updated row is rebuilt as well.
- Source status entries follow the sources the merged row lists.
- The resources hook's full merge handed the websocket store's rows to
the merge, so cache rows shared a nested `sources` array with rows the
store reconciles in place and flipped to the split value while keeping
their joined-era enrichment. It now clones the store's rows on that
path.
Verification:
- Private stack (the server from #2741, a fake Proxmox API, a test
agent): the split is delivered live with no reload and the node stays on
the Proxmox page while the agent appears on Machines with a clean
drawer, at 390 and 1280 wide. On main's frontend the agent was drawn as
a second Proxmox node and Machines showed "No Pulse Agent machines".
Before the second and third fixes the agent was missing from Machines in
2 to 4 of 4 phone-width runs. The browser receipt states which revision
each pass ran on.
- New and changed tests pin a split pair through full snapshots and
deltas in the adapter, the websocket store and the resources hook, and
each rule above has a test that fails without it.
- Reviewed by Sol over seven rounds. The last rounds' remaining findings
concern which REST-only scope and readiness data survive a rebuild when
the realtime payload carries no provenance; the contract states those as
known limits (the next REST refresh restores the data), alongside two
others: a hook's own store is still created from its cache's rows, and
the fast merge path is content-equivalent to the full path only for a
display row whose own source lists agree.
Open PR #2699 edits the same adapter and already conflicts with main.
Preserve exact candidate commits and their own-parent browser receipts. Retained type checks, 24 targeted controls, static audits and browser comparisons cover the changed save and load ownership paths; ordinary protected CI remains required for publication.
Change-source: pulse-maintainer
Accept exact candidate 6809ca2b23. Keep attempted upgrades, failing runtimes and later recovery distinct while preserving passive, private evidence collection. No runtime or release outcome is asserted.
Change-source: pulse-maintainer
The PBS poll records the hostname the node reports about itself on
PBSInstance.NodeName so /api/connections can alias the PBS connection by
it and group the host agent running on that machine into the PBS row.
The name reaches the unified PBS resource (PBSData.NodeName), but
Monitor.PBSInstancesSnapshot() rebuilds each instance from the read-state
view, and the view had no accessor for it, so the snapshot always carried
an empty NodeName. The ledger's reported-name map was therefore always
empty and a PBS machine configured by IP or DNS alias still showed as an
API row plus a separate agent row. The unit tests missed it because they
hand the aggregator its inputs instead of going through the monitor.
Add PBSInstanceView.NodeName() and copy it in pbsInstanceFromReadStateView.
The new ledger test drives a real monitor through the input builder, the
connection aliases and the system grouping: with the conversion line
removed it fails on the missing alias, with it the agent attaches to the
PBS system.
Only direct root@pam sessions can read the node name (API-token
connections get none), so this restores grouping for password-auth PBS
connections; token-auth ones still match only on what they were
configured with.
Read bounded, complete unit state before mutation and confirm inactive state before rollback replacement. Keep the verified backup and stop automatic recovery when service state cannot be reconciled; preserve prior-active restoration, masks, signatures and configuration.
Exercise failed/partial reads, deadlines, no-op stops and restoration through confined production-shell fixtures and the existing signed transaction controls. Fix fixture path and manager observations so registered Go controls execute the actual source.
Refs: #2785
Change-source: pulse-maintainer
The browser re-joined same-hostname agent and platform rows from the
realtime payload without knowing the operator's merge exclusions, so a
node and agent that report-merge or unlink had split on the server still
rendered as one row. Every realtime path (the websocket snapshot, its
deltas and /api/state) already carries the server's presentation
coalesce, which honours the exclusions and provider scope, so the
browser now merges each row only with the previous row of its ID.
Showing the split exposed three ways the surviving row kept the departed
source's data, which the Machines page reads as provider ownership and
answers with "No Pulse Agent machines":
- A row whose own sources list lost a source is rebuilt from the
incoming row, keeping the REST-only scopes, source status and
readiness of the sources that remain. A previous row claims every
source either of its two lists names, so a half-updated row is
rebuilt too.
- Source status entries follow the sources the merged row lists.
- The resources hook's full merge handed the websocket store's rows to
the merge, so cache rows shared a nested sources array with rows the
store reconciles in place and flipped to the split value while keeping
their joined-era enrichment. It clones the store's rows on that path.
On a private stack (server with the split override, a fake Proxmox API
and a test agent) the agent stayed on the Machines page in every final
transition at 390 and 1280 wide; before the last fixes it went missing
in up to half of them. The browser's realtime coalesce limit in the
unified-resources contract is replaced by the new rule and its known
limits.
Compose the exact prior candidate unchanged for final matching qualification; retain each original own-parent browser receipt and current polling/install repairs.
Change-source: pulse-maintainer
applyManualLinks applied operator links one at a time in stored order and
looked each member up only among listed rows. Once an earlier link folded a
member away, a later link naming it skipped, so a chain depended on store
order: an agent linked into a VM that a second link folds into storage
joined the chain in one order and stayed its own row in the other. A saved
host whose partner the published registry had already folded answered for
itself instead of being held under that row.
Links now apply as chains. A link member resolves to its own row or the row
a link folded it into, judged by its own recorded shape (agent,
hypervisor-managed guest), so the agent-into-guest direction survives a
folded guest. Every connected set of observed members folds into one root:
members no link folds are the candidates (all members on a direction
cycle, the chain's guests when every candidate is an agent), ranked by the
row each would leave: guest, then non-agent, then earliest-created link,
then canonical ID. A single link and an agreeing chain keep their last
primary. The spanning tree follows the fold records the rows already carry
before any other link, so a refresh that recreates folded members folds them
back along their records and keeps every folded ID resolving; every link of
the chain is recorded, so a report-merge can undo a cycle. Saved members
never join a chain and are held under the row their partner survives in,
by the same precedence.
The monitor's rebuild now holds the link pass back until the snapshot and
every record source except availability are in, so a chain is judged over
the whole estate rather than folded as its members' sources arrive.
The proofs rebuild each chain in every link order and compare the monitor,
its read-state overlay and a registry seeded from that read state, then
refresh each record source. The mock-mode fixture build and the resources
API's snapshot-seeded fallback still run a pass per source, which the
contract states.
A registry whose store read for manual links or exclusions failed loaded
none of them, and the monitor adapter published that registry anyway. For
that generation a pair the operator had split listed as one machine again,
manual links unfolded, and the node/agent split decider answered
"undecided", so monitoring relinked a split pair until the next rebuild
that could read the store.
A rebuild now takes the links and exclusions of the generation it replaces
when either read failed, and so does the host-continuity overlay. The
resources still come from the new snapshot: stale resource data is worse
than stale decisions. The next readable rebuild loads the store's current
decisions, so a split recorded or lifted during the outage still lands.
The resources API rebuilds its own registry from the store and is not
covered here.
Keep the failing runtime, intended release, original updater result, host stop and later recovery separate. Accept unknowns and existing redacted evidence without a repeat update, reboot, restore or loss of rollback backups. Guard both forms and preserve version classification when attempted and recovered versions differ.
Change-source: pulse-maintainer
Contract-Neutral: Community intake guidance and regression tests only; installer, updater, runtime and triage automation contracts are unchanged.
Retain exact Delivery commits 3c9a102e83 and 4e79e047f4. Review confirms both inventory producers and their installer/update consumers propagate uncertainty before service mutation; retained production-shell and parent controls cover the changed behavior. No claim is made about the unexplained LXC stop or installed recovery. Whole-suite proof remains unavailable after pre-execution capacity refusal, and ordinary required CI remains enforced.
Refs: #2785
Change-source: pulse-maintainer
## What changed and why
- Count a guest volume once at its highest accepted usage, independent
of alias mount order, while retaining each mount's readings. Reject
case-variant filesystem identity fields that could overwrite a real
mount/type and hide it from an apparently complete inventory. Extend
both collectors' assertions through serialized totals and mount rows.
- Show only email settings the server persists. Remove unsupported
Reply-to and retry controls, explain server-managed retries, and
preserve supported SMTP/TLS/rate settings and editing while email is
off.
- Explain destructive agent removal, separate action-runner revocation,
retained recovery material and partial failures. Add safe containment
guidance after an accidental public upload: issuer revocation and
attachment removal are separate, deletion cannot guarantee erasure, and
monitoring coverage must be preserved.
- Discover closed pull-request CI in requested, waiting and pending
states as well as queued/running work, retaining exact-PR,
fresh-closure, branch-reuse and refusal checks.
These are repairs to existing source behavior and guidance omissions,
not new features or claims of installed recovery.
## Included reviewed source
Complete unpublished range:
`e4da1b037000e4eb4b6ea7089704993c74708db8..dd46bf916f46c63accdee3aa6b26d68fdb2edf50`.
Candidates:
- `6075dec7f00cfcbbbb59eee23f01f42a90b97bf8`, composition
`3747c98e718afe90e8ff6186e90b88fee9dfc885`: alias usage.
- `cce0cfd5a72b628e3b9219bd26993aaaf42b3f66`: serialized collector
assertions.
- `e7d8092c633a5ed3379ef52d0194b3706d20219e`: canonical identity fields.
- `2526d7dff21f79525e955e019d470c7dbd4f251f`: persisted email settings.
- `e5f27d25f61aa81c84d0409790851c0fa0e132c9`,
`da269aeaf272a048cdbb66afddb0172ac3f54467`: removal guidance and recipe
inventory.
- `6409a38480992a6dacb09df8f4d40515887998e1`: disclosure containment
guidance.
- `50b5345be8f5e9a583d939784ce64118099d3c7c`: closed-PR held-run
cleanup.
All previously reviewed commit identities and ancestry are retained.
Final additive merge `dd46bf916f46c63accdee3aa6b26d68fdb2edf50`
incorporates current published upstream
`e4da1b037000e4eb4b6ea7089704993c74708db8`, including its
scheduler-cadence freshness repair; no accepted commit was rewritten.
Later, separately unqualified notification-draft work is not included.
## Validation and remaining limits
- Final-source provenance, whitespace, per-commit canonical-history
checks and range browser-evidence guard pass. The existing SMTP browser
receipt covers the final four changed runtime files, its original
parent, desktop/phone layouts and supported save/reload behavior; it was
not rebound or repeated.
- Final lightweight fixture checks pass: closed-PR cleanup controls,
twelve removal/containment tests, public documentation (243 Markdown
files) and shipped mirrors (62 documents).
- Retained candidate evidence includes normal/race canonical-metadata
decoder checks (94 identities/six roots), 24 parent failures with
compatibility controls, connected alias/serialized-row collector,
served-state, History and breach/zero-recovery checks, focused
SMTP/browser proof, and 52 held-run cleanup controls with ten parent
failures. These remain candidate evidence, not a new full-source pass.
- The final committed-source frontend command requested offline install,
types, lint, full tests, build and bundle budgets. VM admission returned
`proof-capacity-low`, client exit 2, before execution: no executed stage
or passing receipt. It was not retried through another executor.
- Earlier failed SMTP full-suite/Docker-test evidence and incomplete
wider/build/removal-proof observations remain adverse or unknown. An
older passing frontend run on differing SMTP source does not clear them.
Exact-head hosted frontend, backend, documentation and governance checks
must resolve containing-source acceptance before landing; no check is
waived by this proposal.
No native notification delivery, guest thaw, ordinary installed
polling/recovery, credential revocation, live CI cancellation,
deployment or release readiness is established here.
[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
A rejected policy read left editable defaults that a scheduling change could write over saved overrides and unloaded destinations. Require current-context read success, expose loading and explicit reload, and preserve the retained draft/acknowledgement repair. Four-variant parent/current browser controls discriminate the overwrite and recovery, with an own-parent receipt. Add failed-read, loaded-context and ownership regression controls; source-suite qualification remains pending after pre-execution proof-capacity-low.
Change-source: pulse-maintainer
Preserve reviewed local commits and the existing upstream commit identities. No specialist candidate is included in this upstream-only reconciliation.
Change-source: pulse-maintainer
## What
A merged physical disk that the operator splits ("Split merged
resource", `POST /api/resources/{id}/report-merge`) now stays split for
the PVE disk poller too. #2748 made the registry honour the exclusions
and listed the poller as the part of the split it did not reach:
`mergeHostAgentSMARTIntoDisks` paired the linked agent's SMART row with
the Proxmox disk by WWN, serial or path before the registry saw either,
and read no exclusions. The split Proxmox row kept the agent's
attributes, I/O, health, any serial, WWN, type or temperature it filled,
and `AgentSMARTReported`, which hands the disk's temperature alert to
the agent's `CheckHost`.
## How
- `mergeHostAgentSMARTIntoDisks` asks the resource store
(`MonitorAdapter.ProxmoxDiskAgentSMARTSplit`, new
`internal/unifiedresources/physical_disk_agent_split.go`) once per
matched row, on the full poll and on the skipped polls between. The
answer is `physicalDiskSplitLocked`'s, applied to the agent's disk as
the registry generation holds it and to the Proxmox observation under
its own ID, so the exclusions that keep the registry's rows apart keep
the poller's pair apart, in the same forms:
- an exclusion naming only the agent's candidate splits nothing;
- a replacement disk in the slot inherits no split recorded against the
disk it replaced;
- a manual link that leaves the generation holding both observations as
one disk is the operator's later decision, so the poller pairs them
again.
- A split disk takes nothing from the row: no attributes, I/O, health,
identity, type or temperature, and no `AgentSMARTReported`. It also
takes no agent-supplied node-sensor temperature: the node poll takes the
node's SMART list from the linked agent while the agent is reporting and
its report carries a usable temperature, so `mergeNVMeTempsIntoDisks`
would otherwise hand the agent's row of the other disk to the split one
and the PVE check would alert beside the agent's own alert. An
SSH-supplied reading stays, and the PVE disk check judges it.
- The record is marked `AgentSMARTSplit` (internal poll evidence, never
serialized), so the poll's evidence retention restores nothing into it.
- The Proxmox-query-failure fallback (`physicalDisksFromHostAgentSMART`)
gives a split row no stand-in.
## Limits (named in the unified-resources contract)
- The split applies on the first full disk poll that collects the node
from Proxmox and matches the agent's row; a record already merged keeps
the agent's data until then (five minutes by default).
- A split disk retains no last-known serial or ZFS pool through a poll
that cannot collect them: nothing records which retained value Proxmox
collected and which the agent filled.
- While the Proxmox query fails, a split disk's Proxmox record is not
listed (its stand-in would be the agent's disk again).
- The query-failure fallback judges its stand-in row by the row's own
identity, so it does not apply a split that names identity only the
Proxmox disk carries (an agent disk in standby).
- A split recorded under one key of a controller member (the stand-in's
target-qualified key against a Proxmox poll's device-only key) names an
observation the other key's rows do not carry, as for the registry.
## Verification
- `TestOperatorSplitKeepsAgentSMARTOffTheProxmoxDisk` drives the poller
through four report-merge shapes (both candidates, the Proxmox candidate
alone, the agent's candidate alone, an unrelated exclusion) for three
disks (SAS paired by path, NVMe paired by serial, NVMe whose node
reading is SSH-supplied), on full and skipped polls, with an open PVE
temperature alert that the pairing closes and the split does not bring
back, the health alert the agent's failure raised, and a failing Proxmox
disk query.
- Unit tests pin the merge (including Proxmox's own health and wearout,
fields the agent must not copy, and the own-ID rule for controller
members), the fallback, the node-sensor drop and the source labels it
relies on. `TestOperatorSplitSeparatesDisksJoinedInsideALinkedHost` also
asks the decider at each step (relink, standby, replacement, a
generation that has not ingested the agent's disk).
- Negative controls, one mutation per rule (18), each turned a named
test red; the full `internal/models`, `internal/unifiedresources` and
`internal/monitoring` suites ran on pulse-dev against the merged tree.
`TestGuestWindowsMeminfoPollingContract` failed once in a loaded full
run and also fails on pristine `main` under the same load (it passes
alone on this branch), so it is not part of this change.
The helper selects and passes an explicit service name, bypassing installer discovery. Apply the same bounded exact-unit admission there and preserve its error before any prior-active query, backup, installer call or restart trap. Execute both producers and the real helper handoff in the registered unattended updater proof artifact.
Refs: #2785
Change-source: pulse-maintainer
Preserve the complete accepted local maintenance range and add the current published scheduler-cadence repair. Final containing validation and exact-head protected checks remain required.
Change-source: pulse-maintainer
Preserve the original repair commits and own-parent browser receipts while obtaining terminal frontend qualification on the assigned containing source.
Change-source: pulse-maintainer
Preserve locally reviewed commits and import the upstream frontier observed for this bounded coordination turn. The unqualified alert-draft candidate remains outside canonical source.
Change-source: pulse-maintainer
Consume one bounded inventory of exact historical unit names without early pipe closure. Preserve legacy and explicit-instance selection, and stop replacement, unit creation, reset and removal after unknown inventory even when Bash errexit is disabled. Distinguish this source defect from the unconfirmed cause of the reported LXC stop.
Refs: #2785
Change-source: pulse-maintainer
Preserve original commits and their own-parent browser receipts while qualifying the unchanged alert runtime against the assigned current source.
Change-source: pulse-maintainer
Splitting a merged physical disk (the drawer's "Split merged resource",
POST /api/resources/{id}/report-merge) recorded its exclusions and the
registry kept two rows, but the PVE disk poller had already paired the
linked agent's SMART row with the Proxmox disk by WWN, serial or path
before the registry saw either, and read no exclusions. The split Proxmox
row still carried the agent's attributes, I/O, health, any serial, WWN,
type or temperature it filled, and AgentSMARTReported, which hands the
disk's temperature alert to the agent's CheckHost. #2748 listed this as
the part of the split it did not reach.
mergeHostAgentSMARTIntoDisks now asks the resource store
(MonitorAdapter.ProxmoxDiskAgentSMARTSplit) once per matched row. The
answer is physicalDiskSplitLocked's, applied to the agent's disk as the
registry generation holds it and to the Proxmox observation under its own
ID, so the exclusions that keep the registry's rows apart keep the
poller's pair apart: an exclusion naming only the agent's candidate
splits nothing, a replacement in the slot inherits no split recorded
against the disk it replaced, and a manual link that leaves the
generation holding both observations as one disk pairs them again.
A split disk takes nothing from the row. That includes the node-sensor
temperature the agent supplied: the node poll takes its SMART list from a
reporting agent whose report carries a usable reading, so that reading is
the agent's row of the other disk; an SSH-supplied reading stays and the
PVE disk check judges it. The record is marked AgentSMARTSplit, so the
poll's evidence retention restores nothing into it, and the
Proxmox-query-failure fallback gives it no stand-in row.
The split applies on the first full disk poll that collects the node from
Proxmox and matches the agent's row; the unified-resources contract names
that lag and the other limits.
When adaptive polling is enabled (ADAPTIVE_POLLING_ENABLED or system.json;
off by default, no UI), the scheduler picks PVE, PBS and PMG intervals
itself and never reads the per-platform ones. A healthy instance's
staleness score is near zero after every success, so its cadence stretches
toward AdaptivePollingMaxInterval (5 minutes by default). Resource
freshness was still derived from the per-platform intervals, with floors of
60s for Proxmox and 120s for PBS and PMG, so healthy rows read stale for
much of every cycle. A live stack with a fake PMG polled 3.5 to 4.3
minutes apart and the row sat degraded with telemetry_stale from two
minutes after each poll until the next one. The PVE node offline grace and
the node temperature carry window derive from the same cadence and lapsed
between polls too.
Monitor.resourcePollIntervals now judges all three sources by the
scheduler's own maximum interval, which bounds every interval it selects.
ResourceStaleThresholdsForConfig reads the same normalized bounds through
a normalizedSchedulerConfig shared with NewAdaptiveScheduler, so callers
without a monitor agree with the one that has it. The same live stack
stayed online for 14 minutes. Fixed-cadence behaviour is unchanged.
Per-instance planned intervals were not used: they are jittered and shrink
as a poll runs late, so a per-source threshold built on them would flap.
The contract note this replaces said freshness keeps deriving from the
per-platform intervals; the user doc now says what adaptive polling does to
freshness and offline detection. The cost is a longer node hold in
adaptive mode (10 minutes with the defaults). A valid /cluster/status
report that a member is offline still applies immediately.