Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Unified Resources Contract
Canonical cross-resource history reads must have an index on observation time. Incident reconstruction requests recent changes across the estate, so indexes whose first column is a resource ID, kind or source do not satisfy that access path. Existing databases acquire the global chronological index on open. Qualification checks the query plan and chronological limits after reopening a database that predates the index. A bounded recent-history request must not scan and sort the complete canonical change table while startup and ingestion wait.
Contract Metadata
{
"subsystem_id": "unified-resources",
"lane": "L13",
"contract_file": "docs/release-control/v6/internal/subsystems/unified-resources.md",
"status_file": "docs/release-control/v6/internal/status.json",
"registry_file": "docs/release-control/v6/internal/subsystems/registry.json",
"dependency_subsystem_ids": []
}
Purpose
Backups names PBS restore points as backups (3 November 2026)
The Backups source presentation reads PBS items from the same PBS resource
and backup inventory as before, and now labels them "PBS backup(s)" rather
than "PBS snapshot(s)", so "snapshot" on that page means only a Proxmox VE
guest snapshot. Source kinds (pbs, archive, snapshot), filter values,
URLs, resource identity and what counts as protection are unchanged.
Resource memory and disk percentages validate their byte pair (2 November 2026)
getMemoryPercent and getDiskPercent in frontend-modern/src/types/resource.ts
use the used/total byte pair only when it is valid: finite non-negative used,
positive total, used no more than total. A valid pair wins, including a
measured zero; used: 0 used to read as absent, so a stale 99% selection
showed instead. Otherwise a finite 0-100 current stands in, and anything else
returns undefined rather than NaN or a made-up 0, so the drawer shows no
reading. Drawer callers already pass the value through finiteMetric; the
unused topByMemory sort ranks no reading as 0. resource.test.ts and
ResourceDetailDrawer.history.test.tsx cover measured zero, invalid pairs and
percentage-only readings.
Phone Coverage names namesakes from every row (3 November 2026)
The compact Coverage table now judges which workloads share a name across
every Coverage row before search and filters (identityRows), using the same
workload identity it already reads, and keeps the VM id and PVE connection
beside the name only for those. Workload identity, connection data and the
disclosure label are unchanged.
Compact Proxmox node Disk cells show the fullest disk (2 November 2026)
A compact Proxmox node row (phone width or compact metrics) has no room for
the per-disk vertical-bars micro-bars, so a node with more than one
agent-reported disk draws the StackedDiskBar aggregate bar. It used the
average across disks, which hid a nearly full disk behind a half-empty one;
it now passes summaryStrategy="max" and is sized and coloured by the
fullest measured disk, and the max summary holds while any reported disk is
unmeasured. Wide rows keep one micro-bar per disk, and Machines and Docker
host tables are unchanged. The Proxmox node row's alert accent reads the
node's own alerts through getUnifiedResourceAlertStyles, like the other
host tables, and no longer tints for a guest's alert. StackedDiskBar.test.tsx
covers the compact summary and ProxmoxNodesTable.test.tsx the accent. No
resource identity, projection or metric change.
Backup views share bounded owned-focus restoration
Coverage posture sorting and By date regrouping use the same existing backups presentation helper for focus lost during a retained native DOM move. It restores only the same connected target still inside its table and cancels after any intervening focus choice, even if that choice is later blurred. By date's earlier restoration did not cancel that latter choice; its normal-suite date-group regression now covers it. Genuine retirement still uses the existing surface fallback. No sorting, date validity, collection, protection or access rule changes. The consolidation reduces overlapping handling. Its exact build still exceeds the August Proxmox reference budget by 0.07 KiB; the final candidate declares a bounded 256-byte Proxmox reference allowance (80,595 → 80,851), not a measured baseline reset. The 15% threshold, every other chunk and total limits remain unchanged. Normal Proxmox/shared suites and exact production checks verify it. Desktop/narrow actual Backups proof includes both views and source-bound pixels.
Coverage retains owned focus when live posture sorting moves a row
An accepted posture or inventory frame can reorder the same logical workload. Keyed row/component retention alone does not retain native focus when DOM nodes move. Coverage captures a focus target owned by its table before reconciliation and restores that same element without scrolling only if the completed move leaves BODY focused and the element and table remain connected. An intervening focus choice cancels restoration, even if that choice is subsequently blurred. External search/header focus is not reclaimed; removed or departed elements are not resurrected. Existing retirement fallbacks still own genuinely removed inspection content. Sorting, window budgets, row identity, drawer state, posture meanings, read cadence, policy and mutation permissions do not change.
Normal-suite ProxmoxCoverageTable.test.tsx covers reordered VM/LXC disclosures
at wide/narrow widths, retained detail links, external/intervening focus and
retired/departed targets. Production Backups desktop Chromium and 320px WebKit
proof binds actual poll-driven quality changes to unchanged same-node controls,
contrasts the parent native focus loss and checks keyboard/touch use, sorting,
filter retirement and no focus theft. This is inspection usability, not evidence
of original workload recovery or a guest/provider operation.
Coverage provider outcomes are not backup job results
Provider evidence identifies the source of each scoped assessment: PBS/PVE
backup inventories have explicit names; legacy restore-point evidence is named
as such, and unrecognised sources remain literal text (or Unknown when absent).
The rollup's jobState is displayed as Reported outcome, never Job or Collection:
an inventory observation can supply it, but a newer retained point can also
supply the outcome beside an older observation's source. Visible wrapping copy
keeps this evidence distinct from actual task and restore-point states. History,
access, reported values, protection, dates and policy do not change. The shipped
PBS/PVE comparison guides name the same Source/Reported outcome fields and
keep successful inventory reads separate from backup-task completion. Rendered
help tests preserve this distinction and every original-recovery safety limit.
Normal-suite ProxmoxCoverageTable.test.tsx covers known/unknown/literal sources,
all reported outcomes and narrow/wide rendering. ProxmoxBackupsTable.test.tsx
passes parsed inventory and posture reads through the consuming surface,
retaining a Running/unprotected point and a real OK task independently of
successful or failed inventory evidence, including polling and owned focus.
Desktop/narrow browser proof must inspect the production Backups consumer with
source-bound collector frames, its separate task/evidence meanings and readable
source/outcome/qualifier. This is safer inspection, not backup-job execution,
original guest recovery, a tested restore or published availability.
Coverage dates are inspectable without hover
Open Coverage evidence retains each point’s exact reported date as wrapping literal text beside its identifier and metadata, including seconds, fractions and timezone offsets. Missing dates say “Not reported”. Invalid and future raw dates remain inspectable without becoming valid ages or ordered evidence. The existing Unknown age and uncertainty notices still apply. This works in both the Details column and its folded phone projection; it adds no read or recovery operation and does not change completion, posture, chronology or preview rules.
Normal-suite coverageRestorePointIdentity.test.tsx exercises parsed PVE/PBS
inventory for all three point kinds, valid/invalid/future/missing/literal dates,
responsive projections, same-row polling and namesake isolation. Desktop and
narrow browser proof inspects the real Backups consumer and its updated dates.
The canonical bytes formatter supplies the existing Unknown size fallback in
both projections; no byte admission or sorting rule changes.
Coverage restore points retain their identifiers without hover
The existing open Coverage evidence rows show each point's full identifier and metadata, including an archive's full volume identifier rather than only its format/hover title. When the Details column is hidden, those same facts fold beside the source. Literal text wraps at every width; it is not interpreted as markup. Same-time points remain distinguishable without changing inventory identity, preview selection/order/limits, requests, counts, posture or state. Ordinary polling updates the same open rows and preserves disclosure focus.
Normal-suite coverageRestorePointIdentity.test.tsx consumes parsed PBS/PVE
inventory with tied dates for all three source kinds, literal markup, long
volume identifiers, an incomplete point and namesake guests. It covers responsive
projections and same-panel polling. Desktop/narrow browser proof exercises the
real Backups consumer with readable, inspected identifier and metadata pixels.
This is safer evidence inspection, not a restored guest or installed recovery.
Restore-point size is evidence, not identity or protection
The Backups consumer retains the same point/workload identity, provider state
and completed-point count when reported size becomes unavailable or is later
restored. Zero placeholders do not become measured zero-byte points or sort as
known sizes. Open By date/Coverage details expose unknown size without hiding
the record or changing its restore/protection meaning. Existing inline shells,
owner links, filters, polling and raw API evidence are unchanged. The registered
ProxmoxBackupsTable.test.tsx and normal backupSizeEvidence.test.tsx verify the
parsed consumer, count/state independence and stable open-point focus; browser
proof covers desktop/phone interactions and pixels.
Selected PBS datastore remains inspectable without hover
The existing PBS row disclosure is named by backup reader and datastore, rather than giving every store on one server the same control label. Single-line scan cells and responsive widths are unchanged. Its open detail presents the full, wrapping reader/store identities and admitted capacity bytes/percentage and inventory count, including when those columns are hidden or truncated. The shared platform detail row accepts optional row context inside the same native inline shell; this does not replace the canonical resource or its History target.
Loading and unavailable inventory remain nonnumeric; accepted empty inventory is zero. Unavailable/unknown capacity never becomes zero, even with a Healthy connection. A server without datastore data has neither a made-up store nor a count. Counts describe loaded entries, including in-progress/unverified entries, not backup protection. These independent evidence meanings, correlation, read cadence, retry, API, auth and protection policy are unchanged.
Normal-suite backupServerDatastoreAccess.test.tsx exercises long namesakes,
responsive projections, parsed inventory loading/failure/retry/polling, capacity
admission, no-store data, live reordering and retained detail/focus. The registered
ProxmoxBackupsTable.test.tsx verifies the selected consumer; shared detail-row
and platform-layout tests preserve the separate context/host owners. Browser
proof exercises actual keyboard/touch disclosure, open-record refresh and
complete wrapping identifiers at desktop/narrow widths with pixel inspection.
This is safer evidence inspection, not original guest or installed recovery.
Backup-server read states remain legible at intermediate widths
The existing PBS server table reserves enough count-column width for the full Loading and Unavailable labels, not only numeric counts, at basic, operational and expanded container widths. The shared 30% basic identity anchor, visible columns, 32px scan rhythm, independent connection/capacity evidence and full layout remain unchanged. Datastore names keep their existing truncation, title and detail access; no identity, count, polling, read/retry or protection rule changes. An unread inventory still never establishes a real zero.
Normal-suite proxmoxBackupsTablePresentation.test.ts verifies width allocation
and complete column totals; the registered ProxmoxBackupsTable.test.tsx
exercises actual loading/failure/accepted-empty cells with independent healthy
capacity. Browser proof must inspect the consuming table at desktop, phone and
intermediate container boundaries, including loading, failure, retry, real zero,
ordinary polling and native detail interactions. This is readable inspection,
not installed or original guest recovery.
PBS server counts belong to the exact backup reader and datastore
The existing Backups server count matches PBSBackup.instance to the resource's
configured connection name and matches the exact datastore name. Service IDs
(pbs- plus the connection name), hostnames and display labels are not backup
reader aliases; an empty tuple must not borrow another connection's inventory.
Both identities retain their positions, punctuation and case without a joined
separator key. Counts still include all admitted inventory entries and namespaces,
not only completed or verified points. Loading/unavailable inventory remains
non-numeric; independently observed capacity and reachability remain unchanged.
Normal-suite backupServerCountEvidence.test.tsx consumes parsed inventory and
checks prefix-alias and delimiter collisions, case, namespaces, valid zero and
existing all-entry semantics. Its real table consumer checks ordinary polling,
failed reads, retry and detail continuity without extra requests. Desktop and
narrow browser proof exercises the same producer through the inventory consumer
with native interactions and inspected pixels. No API, provider, guest, polling,
auth, resource identity or protection-policy change, nor installed recovery claim.
PBS datastores carry failed jobs as incidents (3 November 2026)
resourceFromPBSDatastore appends one pbs_job_failed incident per sync,
verify, prune or GC job whose newest run failed on that datastore
(pbsDatastoreJobIncidents). Severity is warning, the category is
recoverability, the native id is pbs-datastore:<store>:job:<family>:<job id>
(PBS job ids are unique only within a family), and the
summary names the job and a sync's remote without times, because incidents
merge on their summary. The existing unified-incident pipeline raises a
backup-storage-incident alert on the datastore and clears it after two
polls that see the job's newest run succeed (RecoveryConfirmationsRequired
2). A PBS outage drops the datastore from a poll, which with confirmed
recovery reads as unknown, so the alert neither clears nor notifies again
when PBS returns. The storage disable switch and per-resource overrides
apply. Storeless task history, disabled jobs, backup-family jobs and warning,
late or unknown runs raise nothing. So the alert neither flaps nor clears
early, the PBS poller carries a job's last completed failure
(carryPBSJobFailures) through polls that report no newer outcome: a run in
progress (PBS drops the previous result meanwhile), an overdue or unreadable
job, or a failed read. It clears on an observed success or warning, or when a
complete read drops or disables the job. A failed last run now outranks
overdue in pbsJobHealthPosture. Mock PBS instances now report job results,
with one failed sync on the secondary server.
Storeless PBS task history is not an unread job family (2 November 2026)
The Backups Jobs column reads PBSJobHealthEvidence.evidenceScope: a
storeless entry that is not OK marks a job family unknown across the datastores
of a PBS resource only when it is a failed read (partial-read or carrying an
error) or a failed or warned run. A storeless observed-task run whose
status is merely unclear no longer does.
Backup servers group datastore rows by PBS resource (2 November 2026)
ProxmoxBackupServersTable still renders one row per datastore of a pbs
resource, keyed by resource and datastore, with unchanged drawers. A header row
per resource now carries the resource's name, web-interface link, connection
status and datastore count, so datastore rows no longer repeat the resource
name or link. Connection status renders only on the header; datastore rows
carry no connection cell, and the compact State cell reads the datastore's job
summary or fill forecast, or "Unreachable" when the resource is not reachable.
Backup servers rows name the datastore, then its PBS resource (2 November 2026)
ProxmoxBackupServersTable still renders one row per datastore of a pbs
resource, keyed by resource and datastore. Each row now leads with the
datastore name and shows the resource's name and web-interface link beside it,
and every row's State cell reads the resource's connection status (or, on
phones, a job problem or fill forecast that takes its place). The rows, their keys and
their drawers are unchanged; BackupServerRow.continuesServer is removed.
Backup empty states name only filters that exist (2 November 2026)
With the per-day restore point chart removed from Backups By date, no control selects a day. The restore point and Coverage empty states now say "Adjust the search or filters to see more artifacts / workloads." instead of naming a selected day; Coverage had carried the stale day wording since its own day filter was dropped. Which rows match is unchanged.
Backup-server rows read host figures through the drawer resource (2 November 2026)
Backup servers rows no longer copy the PBS host's CPU, memory or uptime out of
the unified resource; the server's drawer reads them from the row's resource
snapshot, which keeps the agent-merged presentation (cpu, memory, uptime
from the uniquely correlated host agent when one exists). Correlation,
retention and History targets are unchanged. ProxmoxBackupServersTable.test.ts
pins that the row resource still carries the host readings.
Backups default route is Coverage (3 November 2026)
PROXMOX_BACKUPS_DEFAULT_VIEW in routing/resourceLinks.ts is now
coverage, so buildProxmoxBackupsPath() and the Proxmox section link point
at /proxmox/backups/coverage. A bare /proxmox/backups redirects there at
once instead of waiting for the first protection assessment to choose a view.
Explicit date paths and legacy ?view= links are unchanged.
PBS datastore alerts join by instance id, not display name (2 November 2026)
The Backup servers table finds a datastore's capacity alert from the unified
PBS resource's pbs.instanceId ("pbs-"), which the poller also uses
for that datastore's storage id (<instance id>-<store>) and alias
(<instance id>/<store>). The resource name can be the PBS hostname rather
than the connection name, so it is never part of the join. Because the dashed
storage id is ambiguous across connections, an alert counts for a row only when
its policy aliases contain that exact alias, or, without aliases, its instance
and store name match. The forecast adds no identity: it decorates the existing
datastore row and never creates, merges or retires one.
proxmoxBackupServerForecast.test.ts covers the hostname-named resource and
the cross-connection collision.
Coverage duration requires observed task timing
The existing Coverage task disclosure derives a duration only from positive, strict RFC3339 endpoints at or before the inventory observation time, with the end after the start and no reported running status. Future/invalid/nonpositive or reversed endpoints, or a running task carrying an end time, show Unknown and an explanation, not a numeric completed duration or Not reported. An absent end remains Not reported; a valid positive subsecond interval may round to 0s. Valid offsets are compared as instants. Task-reported status, errors, identity, latest-task ordering, protection and restore evidence remain independent and unchanged. Ordinary polling can withdraw and restore duration within the same inspected task without replacing the panel or taking focus.
Normal-suite taskDurationEvidence.test.ts consumes parsed raw inventory and
covers adverse endpoints/status plus valid, missing, offset and zero controls.
backupTaskEvidence.test.tsx exercises those states through the actual inventory
consumer and ordinary polling. Desktop/narrow browser interactions and inspected
pixels cover the changed producer-to-disclosure path. No new requests, provider
operation, collection policy or native guest recovery is implied.
Withdrawn backup evidence retains keyboard position
When polling removes a focused restore-point disclosure/detail, filtered Coverage
row, activity chart or the whole inventory body, focus moves to an existing
inventory retry if a source failed, otherwise the active Backups view. Kiosk mode
falls back to the named inspection region. The fallback only takes focus owned by
the retiring content, after removal, while the inspection is still connected and
no other control has acquired focus; it never scrolls the page. A normal detail
close still returns to that same point's surviving disclosure. Other-source
readable evidence, query/filter state, native controls and the existing retry
cadence remain unchanged; no stale point is retained to preserve focus.
Filtered charts and unmatched-evidence disclosures use their own retiring owners.
InlineDetailTableRow composes its internal native row ref with the consumer's
ref; registering a consumer cleanup must not disable its responsive span or
normal close-focus return. Its normal unit suite verifies both with a consumer
ref present. No new shared component or inspection wrapper is introduced.
Normal-suite backupInventoryFocus.test.tsx consumes parsed raw PVE/PBS responses
and covers both sources, summary/detail retirement, Coverage lookup, chart and
whole-body removal, accepted-empty polls, normal close, moved focus, kiosk and
unmounting. ProxmoxBackupsTable.test.tsx also covers a later polling-failure
notice after a fulfilled read, through pending retry and complete recovery.
Actual production-App desktop/narrow browser proof exercises native
keyboard focus and read-failure/retry through the real consumer, with inspected
pixels. This is accessible inspection, not guest thaw, restore or installed
recovery. No provider operation, route, auth or policy changes.
Existing backup search finds the native record in either view
By date text search includes each admitted restore point's native Identifier. Coverage search includes those same identifiers and full archive file metadata, not just a shortened format label. Matching remains a case-insensitive literal substring after trimming the query; punctuation in provider IDs and file paths is not a filter expression or a new identity. Switching views retains the query and finds the scoped owner without filtering its evidence preview or inventing completion, protection or attribution. Existing node/location/type facets and failed-read withdrawal still apply; search performs no provider reads.
proxmoxBackupRecoveryModel.test.ts covers all three source kinds, complete file
metadata, negative matches and undated incomplete evidence. The normal
ProxmoxBackupsTable.test.tsx consumes raw inventory and exercises input, selected
point, cross-view query retention, namesake isolation and clearing without extra
reads. Actual-App desktop/narrow proof checks lookup, native disclosure, scoped
filtering and ordinary read-failure/recovery with inspected pixels. No shared
search grammar, routes, API, source IDs, matching, policy or collection changes.
A dated backup disclosure identifies the restore point, not only its owner
The By date table keeps its existing native disclosure visible at phone widths, with a reserved 36px target beside the wrapping identity. A disclosure names the workload/PVE connection, source kind, precise creation time (or Unknown), backup reader, location and native identifier. Repeated workloads, tied dates and unavailable dates do not collapse into indistinguishable controls; sorting does not supply identity. Visible Created detail uses the same year/second/time-zone precision. Its Identifier is the native record ID, not a file count or format; the previous file/path metadata remains separately labelled. State-only polls do not rename the point; revised reader/location facts update the existing disclosure without dropping focus or changing owners.
Normal-suite ProxmoxRecoverableTable.test.tsx and
recoverableIdentityAccess.test.tsx cover names, unknown/tied dates, raw inventory
consumption, visible controls, single native activation and scoped refresh.
Actual-App desktop/narrow browser proof exercises point selection by accessible
identity, keyboard/phone activation, close-focus return and same-ID polling,
with inspected pixels. No shared primitive, source identity, provider read,
classification, count, policy or guest/backup/restore operation changes. This
makes existing inspection usable; it does not establish a tested restore,
original guest recovery or release availability.
Explicit Proxmox update verdicts carry their complete wire observation
internal/unifiedresources/proxmox_update_evidence_json.go serializes a PVE
node's explicit pending-update status with its count, successful origin and
fixed reason together. It includes a measured zero, an empty cleared reason
and a null absent origin. Generic canonical facet merges otherwise retain
omitted keys: after a stale seven-package observation, a successful empty
response must show checked zero without inherited access-denial help. Losing
the successful origin must likewise clear it, not retain an older date.
The canonical API resource and realtime/broadcast projection use the same
Proxmox metadata serializer. Guests and legacy sources without an explicit
update verdict retain their previous payload exactly, including omitted zero
fields; no new observation, permission, identity, polling or UI policy is added.
proxmox_update_evidence_test.go covers checked/stale zero, unavailable/offline
clears, generic merge behaviour, API/realtime parity and unchanged guest/legacy/
nil payloads. Consuming browser proof must exercise the actual producer frames
through the existing canonical merger and open node drawer at desktop/narrow
widths, not replace an omitted zero with a fixture-supplied value.
Restore-point inspection states what its evidence cannot confirm
The existing By date record detail places a visible, wrapping evidence-limits note beside State. A guest snapshot shares the guest's storage and is not a separate backup; it does not count towards backup protection. Provider-reported verification is not a tested restore, and prune retention establishes neither verification nor workload protection. A running or failed point explicitly remains incomplete. Guest records do not establish thaw or filesystem writes; host backup records must not invent a guest. The note follows the current same-ID point during refresh without retaining an obsolete assurance.
Normal-suite ProxmoxBackupsTable.test.tsx consumes raw PBS/PVE inventory for
snapshot, verified/unverified/missing verification, PBS-backed file, running,
failed, prune-retained and host cases, plus open-record refresh continuity.
Actual-App browser proof must inspect desktop and 320px pixels and native
keyboard/touch disclosure, including same-point activity and verification
changes. No route, provider operation, auth, policy, count, classification,
identity, collection or polling behaviour changes. This is truthful recovery
inspection, not proof of a restore, guest recovery or published availability.
Guest SMART inspection withdraws a failed scoped read
A failed guest physical-disk resource read must not leave cached health words, temperatures or open SMART/history panels presented as current below an error. The guest consumer withholds that entire disk list until a successful scoped read. Its opt-in retained read error survives a quick drawer remount; cached rows cannot clear it. Other parents, organisations and default consumers do not inherit it. The shared hook reports background failure for this opt-in consumer as well; a successful scoped read clears the retained failure. It renders no response text, no zero-disk inference and no recovery action against the guest. An explicit retry uses the same parent-scoped resource query; pending retries stay focusable, announce their busy state and reject duplicate activation. Failed retries keep the same control. Recovery shows only the newly admitted records, with closed disk disclosures. A valid empty response says that no records were returned, not that the guest has no disks. Uninstrumented guests still get no empty card on first inspection.
When read failure or recovery removes focused content, focus returns to the
surviving inspection heading, including empty recovery. It must not steal focus
moved elsewhere, focus a hidden Overview or restore focus after leaving the guest.
useUnifiedResources.test.ts covers retained read errors, remount, successful
empty retry and scope/default isolation. GuestPhysicalDisks.test.tsx covers
retained/open evidence, failure/pending/retry,
recovery/empty, literal-response suppression and focus ownership. Desktop/narrow
browser proof must exercise the actual resource reader through the guest drawer,
scoped failure, keyboard/touch retry, recovery and inspected pixels. Resource and
disk identity, auth, collection, thresholds, History targets and refresh cadence
are unchanged; this is truthful inspection, not native disk or guest recovery.
TrueNAS protection consumers do not repair malformed instants
The Protection row, completion sorts and inline Started/Completed fields use the
shared explicit-zone, calendar-valid backup instant rule. Invalid reported values
remain Unknown, with the literal evidence retained in details rather than a
browser-repaired date. Unknowns have no chronological rank; outcome priority,
absent/active completion handling, identity and policy remain unchanged.
TrueNASProtectionTable.test.tsx drives the query/transport normalizer into these
consumers with malformed and valid-offset controls; desktop/narrow browser pixels
and interactions remain required. This is not native protection or guest recovery.
Native rate instants survive canonical cloning
MetricValue.ObservedAt is an optional internal-only sample instant copied with
the selected scalar, never part of public JSON. TrueNAS CORE per-disk rate writers
use it instead of registry rebuild time. Rehydrated scalars without it are not
new observations. TestCloneNativeRateObservation checks independent cloning,
zero preservation and unchanged wire shape; the physical-disk pipeline verifies
resolved targets. Identity, source precedence and cumulative counters do not change.
Coverage evidence expansion preserves workload ownership
An uncertain backup date remains inspectable beside the newest dated evidence
in the same workload's bounded Coverage preview. Explicit expansion reveals
retained entries without another read, changing ownership, or replacing the
server's protection rating. Unmatched and namesake guests must not borrow those
entries. Expansion and focus survive polling; closing or changing the workload
resets the preview. coverageEvidenceInspection.test.tsx and
ProxmoxCoverageTable.test.tsx check scoped inventory/model/consumer behaviour,
literal origins, bounded expansion, reset and live recovery/recurrence. Actual
desktop/narrow browser consumers must be inspected. No canonical resource ID,
association, owner link, API, storage or guest operation changes.
Latest backup task evidence stays separate from recovery
Coverage’s existing expanded detail shows the scoped latest PVE task’s reported status, start, duration, full literal error and task ID. Long/multiline provider text wraps without markup interpretation. An unreadable start says Unknown, a missing duration says Not reported, and a failed task without error text says Not reported. No task means no task section. Ordinary polling updates and removes stale task details in the same keyed panel without losing focus. The detail explicitly does not verify a restore or guest responsiveness. That qualification wraps at narrow widths instead of inheriting cell nowrap.
backupTaskEvidence.test.tsx exercises the HTTP inventory parser, recovery
model and production Coverage consumer at desktop/narrow layouts, namesake
connection isolation, literal text, missing/invalid evidence, running/OK tasks
and same-panel polling/removal. Desktop keyboard and narrow touch browser
proof must inspect these existing details. No new read, route, task action,
matching rule, protection policy, backup/restore or guest operation is added.
Backup workload scope stays visible independently of its reader
Coverage retains the guest's PVE connection in its identity cell at every container width. When Target ID is hidden, type and VMID remain beside the name. Native disclosure names include the workload label and PVE connection; the existing Coverage and By date Workload details show the full wrapped connection, separate from the restore point's backup-reader Connection. A missing VM/LXC connection stays Not reported, including unmatched PBS evidence; PBS readers, namespaces and nodes never supply it. Host backups imply no PVE connection. Displayed scope does not change identity matching, resource/artifact keys, owner-link IDs, search/filter behaviour, completion, protection policy, verification, access or guest/recovery operations.
The normal-suite backupWorkloadIdentity.test.tsx exercises inventory parser,
recovery model and both table consumers, five layouts, duplicate names/IDs/nodes,
unknown/unmatched/host scope, distinct PBS origins, exact owner links, literal
text and same-key live updates with disclosure focus. Existing windowed-table
proof remains applicable; the Coverage row-height estimate accounts for its
second identity line. Browser proof must inspect real desktop/narrow consumers,
full long/unknown details and keyboard/touch interactions. This does not
establish original multi-surface identity, collector, guest or restore recovery.
Backup evidence keeps the reader connection separate from its owner
Existing By date and Coverage consumers show each restore point's backup
connection, independently of the workload name, node and owner link. The full
connection remains readable in the existing point detail and wrapped Coverage
evidence; a missing origin stays unknown rather than borrowing owner placement.
The frontend location scope carries this display fact without changing exact
source keys, resource/point IDs, namespace, routing, association or canonical
protection assessment. The existing text searches include that visible backup
connection and its explicit unknown state, not a guessed owner connection.
ProxmoxBackupsTable.test.tsx and the normal-suite
backupSourceConnection.test.tsx exercise inventory-to-consumer attribution,
unknowns and polling; desktop/narrow browser proof checks source readability.
This is not original multi-surface identity recovery or restore acceptance.
REST snapshots retain canonical source provenance
useUnifiedResources preserves the validated source list on the canonical
resource as well as its platform metadata. Owning-snapshot consumers such as
Workloads derive their provider context from resource.sources; a REST refresh
must not erase vCenter placement, host grouping or source-specific behavior
that the websocket projection supplies. The REST mapping regression and the
authoritative VMware drawer browser fixture cover that consuming boundary.
Host disk usage retains explicit presence
HostDiskUsagePercent shares the existing canonical first-filesystem admission
with host metric projection, history recording and legacy live fallback.
HostView.DiskUsagePercent returns the presence of the canonical disk metric,
not the zero default of a missing scalar accessor. Provider aggregate readings
need no agent filesystem inventory. Neither helper establishes freshness or
changes selection/identity. TestHostDiskUsagePercentMatchesCanonicalPresence
pins absent/invalid/zero/low readings, unchanged first-filesystem selection and
provider aggregate zero.
Drawer history follows current source authority
Resource drawers withdraw current chart fallbacks and cached live-only replies when a standalone agent is offline or awaiting its first accepted report. The delivery transition refreshes the shared history query; actual stored observations retain their original timestamps and remain readable while that read settles. The browser does not infer a new lease or reporting verdict, and guest power state does not override the provider's metric admission rules.
Websocket-first routes always obtain their REST snapshot (21 October 2026)
Action readiness, scoped facets and other REST-only enrichment arrive only
from the REST resource endpoints. A prefer-ws-then-rest route that mounted on
a cache seeded from the websocket-fed all-resources cache (in-app navigation
from another platform page) read that cache as fresh, and websocket ticks kept
it fresh, so neither the mount fetch nor the delayed revalidation ever reached
REST. The Docker table then offered container updates that the server had
already refused. Each cache entry now records canonicalAt, set only by a REST
fetch; such a route revalidates in the background at mount when its REST
snapshot is absent or older than the cache window, and the delayed revalidation
forces the network. revalidates a prefer-ws-then-rest screen seeded from a websocket-only cache on mount covers the navigation path.
Docker object aliases do not identify their reporting host
Containers and other Docker child objects own their native IDs, names and subject-typed discovery/metrics targets. Reporting-agent IDs, Docker host IDs, hostnames and task placement nodes remain routing metadata, not child aliases. Canonical hostname/platform presentation must not reintroduce those parent identities. Missing child targets cannot promote the parent to primary identity. Host aliases and same-entity host facets retain their existing semantics.
TestDockerChildIdentityDoesNotClaimItsCommandHost covers all nine child kinds,
owned aliases and missing-target boundaries. The registered Docker log-read
control in internal/ai/tools/internal_routing_identity_test.go consumes actual
registry ingestion with collected containers, images and networks. Genuine
duplicate names must still fail closed. Source controls alone do not establish
installed command transport or autonomous recovery.
Workload aggregate disk presence survives projection (14 October 2026)
useWorkloads does not default an absent aggregate disk usage/used byte field
to zero merely because capacity was supplied. Both REST and owning snapshots
preserve the difference between capacity-only inventory and finite measured
usage. Explicit zero percentages, percentage-only metrics and valid byte-only
metrics remain available. This aggregate metric contract is distinct from
DiskInfo filesystem records whose zero byte fields may be omitted. Identity,
producer selection, collection, retention and History transport are unchanged.
Raw byte metrics always serialize a generic value, even its default zero.
That scalar cannot confer a current percentage: an explicit percent or a
valid used/total byte pair is required when unit names bytes. Legacy untyped
value-only percentages and explicit percent-unit values remain usable.
Verification: useWorkloads.test.ts exercises mounted REST and owning-snapshot
refreshes and workloadDiskUsage.test.ts covers numeric admission. The
workload-disk-metrics browser fixture consumes the REST mapper into production
rows/drawer with synthetic evidence; browser proof is retained separately and
establishes no installed/native recovery.
Workloads preserve platform guest interfaces — issue #2757
Both the /api/resources and owning canonical-snapshot Workloads projections
retain proxmox.networkInterfaces when the linked agent reports no interface
list. A present agent list still wins, including an explicit empty list;
lists from different producers are not merged. Names, addresses, MACs and
reported traffic retain their association. The selected identity/IP order,
canonical row and History coordinates do not change.
networkInterfacesFromAgent is internal frontend provenance. Only the selected
agent list inherits agentStale in the drawer's Network section. A silent linked
agent still marks its other readings last known, but cannot mark independently
supplied Proxmox interfaces as its last report. Legacy drawer callers keep their
existing agent-freshness semantics. This adds no wire field, guest query,
collection command, permission or native freshness/recovery guarantee.
useWorkloads.test.ts checks REST/snapshot VM and LXC source transitions,
agent precedence, empty/absent lists, IP order and stable canonical identity;
GuestDrawer.test.tsx checks reactive source-specific last-known presentation
without clearing agent RAID/filesystem warnings. Desktop and narrow browser
proof must consume producing JSON, not manually populated WorkloadGuest rows.
The row's existing Network tooltip uses semantic foreground/muted tokens for
names, addresses, MACs, traffic and the address-only fallback. Fixed dark-palette
text must not make the newly retained names unreadable on a light surface.
Independently known PBS remains available in Backups (13 October 2026)
The resource-owned PBS table is outside backup-inventory loading/error gates.
Its canonical identity, datastore health/capacity and details remain usable
when either or both inventory endpoints fail. Error/loading counts are not zero
backup evidence. The inventory-only surface retains incomplete notices and
ordinary retries. ProxmoxBackupsTable.test.tsx checks stable server-table
ownership through loading, single/both failures and valid response recovery.
This consumes existing resources; it adds no producer or native recovery claim.
Shared interpretation of selected guest memory
GuestMemoryEvidenceForResource and the VM/container MemoryEvidence accessors
qualify only the selected numeric metric through QualifyGuestMemory. Presence
and finite 0–100 values distinguish a measured zero from absence. Only current,
dated cache-aware Proxmox/QGA/agent origins establish pressure; fallback/cache-
inclusive, unknown and retained origins keep their limitations. Consumers cannot
borrow raw-facet provenance or resource LastSeen. Collection owns current/last-
known state and its lease; local observers additionally enforce their configured
age on the original memory observation, without creating a new collection TTL.
Source names are allowlisted before entering AI context; unknown names remain
unknown. Other-platform readings without this Proxmox observation contract keep
existing semantics. TestGuestMemoryEvidenceQualification covers these boundaries
and TestGuestMemoryEvidenceUsesSelectedMetricOnly covers selected/raw disagreement,
absence and refreshed rows in both views. This shared interpretation changes
no registry wire format, metric selection, guest collection, History, correlation,
identity or permission. AI query projections own their additional evidence fields.
QualifyGuestMemoryForKind takes the Proxmox guest kind because one source name
covers two accountings: an LXC's cluster-resources reading already excludes page
cache and establishes pressure when current, while a QEMU guest's does not.
GuestMemoryEvidenceForResource derives the kind from the resource type
(system-container versus VM). QualifyGuestMemory keeps the conservative QEMU
reading for callers that do not know the type. TestGuestMemoryClusterResourcesIsTypeAware
covers both kinds, retained readings and the other cache-inclusive sources.
Selected guest memory observation in typed read state
VM and system-container views expose a value-copy of the selected memory
metric's observation and an explicit presence bit. A selected measured zero
has presence; a missing selected metric does not. Empty metadata remains
unknown and cannot be supplied by a conflicting raw platform memory facet or
resource LastSeen. No wire, metric-priority, identity, history or correlation
contract changes. TestGuestViewMemoryObservationKeepsSelectedOrigin in
views_test.go covers selected-agent versus raw-Proxmox disagreement, absent
metrics, legacy zero and value-copy isolation. Patrol owns interpretation of
this evidence; the accessor does not establish pressure, recovery or permission
to run a guest command.
Internal QGA query-eligibility evidence
The native Proxmox guest facet carries GuestAgentEvidence internally. A full
guest observation replaces this value, including explicit absence; a partial
non-guest facet does not own it. Cloning and the VM view preserve the original
time for the monitor's previous-state input. Resource/VM JSON, identity,
correlation and linked Pulse-agent precedence do not change.
TestGuestAgentEvidenceDoesNotChangeWireOrIdentity and
TestGuestAgentEvidenceMergeAndCloneKeepsOriginalAge check wire equality,
identity equality, clone isolation and loss/recovery replacement. The full-wire
comparison fixes the independent construction clock for otherwise identical
inputs; it does not omit a changed public field.
Internal guest disk observation provenance
A Proxmox VM facet preserves the successful filesystem read's original source
and time through adapter, clone, typed view and previous-guest projection.
Complete guest facets replace this evidence in both directions, including a
missing/expired origin; partial non-guest facets cannot renew or clear it.
Linked agent selection remains independent and cannot become QGA fallback
proof. DiskObservation is internal only (json:"-"): no JSON, identity,
History key, source-priority or agent report contract changes.
TestGuestDiskObservationDoesNotChangeWireOrIdentity,
TestGuestDiskObservationViewUsesOnlyItsOwnSource and
TestGuestDiskObservationMergeReplacesMissingAndDifferentSource verify exact
public facet equality, internal cloning, missing-source access and authoritative
replacement. Monitoring's disk observation contract covers the ordinary poll
and served-reason boundary. These checks do not establish installed recovery.
Guest views retain exact governance identity for configuration reads
VM and system-container views expose cloned canonical policy/AI-safe metadata
for their own resource. This lets guest-config reads retain the chosen identity
when names repeat across installations without a second name-based resolution.
The accessor exposes no raw resource or mutation; classification/redaction rules
are unchanged. TestGuestViewGovernanceIdentity checks distinct same-name guests,
policy cloning and nil-view handling. Tool controls check its use at the provider
boundary; these are not native installation recovery.
Native guest admission replaces the previous canonical facet
A complete native Proxmox guest observation (non-zero VMID) owns its filesystem read reason, guest-agent state and expectation in both directions. Repeated ingestion must publish a new cooldown even when the retained disk number is unchanged, and clear the reason/expectation when the native guest recovers or is disabled. Non-guest partial Proxmox facets do not own these fields. Numeric source selection, original memory observation times and identity stay unchanged.
TestProxmoxGuestReadAdmissionReplacesPreviousFacet covers available, paused,
recovered, offline and disabled transitions through repeated registry ingestion,
typed/detached reads and JSON. Monitoring's connected optional-command proof
also consumes that same live registry and production broadcast JSON while
checking History withholding. Source clearance is not independent guest thaw,
covered-filesystem writes or native monitoring recovery.
Collected alert subjects share current canonical ownership
AlertResourceReferenceResolver exposes the current-inventory identity owner
used by history correlation to runtime consumers. Supported producer child
references bind through durable source identities only. Resolution reads the
owner, canonical type and source targets under one registry read lock. It never
uses display names or retained history aliases to resurrect a removed owner.
An agent's disk, temperature, RAID and custom observations remain owned when an
operator link folds the agent into a VM, container or node. The presence of the
agent facet is required for that cross-type ownership. Patrol can therefore
select the canonical owner without interpreting alert strings independently.
alert_scope_test.go verifies the registry and both read adapters, rejected
references and absent current owners. Scoped Patrol tests cover linked owners
and conflicting unqualified source IDs.
A Docker container alert (docker:<host ID>/<container ID>, built by
alerts.DockerContainerResourceID) binds the container collected under exactly
that host and complete 64-character ID, through the registry's own Docker
source key (<host ID>/container/<container ID>), the key RecordChange
already joins that alert's history to. A shortened ID, a container reported
without an ID (docker:<host ID>/name:<name>), a hostname or another host
binds nothing. Before 24 October 2026 only Docker host and Swarm service
references resolved here, so the Patrol inbox named container alerts by the
raw reference and never matched the unified container Patrol findings carry.
History recording is unchanged: RecordChange resolves complete container IDs
before this resolver and the journal backfill skips container references.
Proof: TestAlertResourceReferenceBindsCollectedDockerContainer in
history_identity_test.go, from a snapshot and from unified rows.
A binding reached through a component's owner (an agent's filesystem, disk
temperature, RAID device or custom sensor; a storage's ZFS pool or device)
carries Component: its owner is shared by sibling components, so consumers
that match one alert to one finding must not treat the owner as the alert's
subject. The Unraid array reference names the array's storage itself and is
not a component. Source targets come from the registry's view cache, which the
first resolution of a generation builds, instead of a scan of every source
mapping per reference, so resolving a page of alerts stays linear
(TestAlertResourceReferenceMarksComponentOwners).
Resource CPU temperature uses the one primary rule
proxmox.temperature, agent.temperature and a Kubernetes node's
linked-host temperature come from models.PrimaryCPUTemperatureCelsius and
models.HostSensorPrimaryCPUTemperatureCelsius, the rule node and agent
history record under (see the monitoring contract). The adapter-local
maxNodeTemp/maxCPUTemp copies are gone. nodeFromResource carries the
resource's top-level temperature (the agent's reading first, then the
node's: the same source as the drawer's history target) as
Node.cpuTemperature; the node drawer shows that value and never rebuilds a
headline from temperatureDetails. Proof: adapters_test.go
(TestResourceTemperatureUsesPrimaryCPURuleForNodeAndAgent) and
resourceStateAdapters.test.ts.
Proxmox node temperature cell follows its own open alert — issue #2068
ProxmoxNodesTable finds the node's own temperature alert through
hostOverrideIdCandidates and passes its severity (unless acknowledged) and
the shared live-status copy to TemperatureGauge. Other node alerts never
recolour the cell. The Mail Gateway drawer formats its attention rows through
getAlertAttentionCopy.
Proxmox node drawer charts follow the node's own alerts
ProxmoxNodesTable passes NodeDrawer two lists. alerts keeps the
node-name match, so Needs attention also lists the node's guests. ownAlerts
is the same hostOverrideIdCandidates identity match without the name, and
only it draws dashed alert triggers on the drawer's Overview charts and tones
their readings. Node alerts are keyed on the cluster-qualified id (for
example homelab-delly2), which the drawer's own node record does not carry,
so the drawer must not rebuild this match itself. NodeDrawer.test.tsx covers
a guest alert that draws no line and a table-supplied node alert that draws
one.
Canonical Discovery honours VM guest-read deferrals
The canonical resource drawer uses the same fixed PVE VM lock, backup and read-deferral signals as the Workloads drawer. Typed and legacy PVE facets are checked independently: an available flag in one cannot cancel a pause in the other. Only the VM's own provider evidence is used; parent-node locks, an agent version and a Discovery target are not guest-liveness evidence. Containers, ordinary agents and unrelated provider facets retain their existing behaviour.
Both embedded Analysis and the dedicated Discovery entry pass this pause to the existing manual-run guard. Saved results remain readable; same-ID updates block or release the existing control without an automatic scan, invented timestamp or cancellation claim for already-dispatched work. The wrapping precaution and existing safety-guide link remain visible across drawer tabs. Clearance is not independent thaw, covered-filesystem writes or safe monitoring resumption.
ResourceDetailDrawer.discovery.test.ts covers both facets, every fixed reason,
precedence and platform isolation. ResourceDetailDrawer.guest-safety.test.tsx
mounts the real Discovery client/control, checks same-ID updates and no dispatch
while paused, and preserves normal agent actions. The production browser fixture
browser-tests/resource-guest-safety.cjs checks desktop keyboard and narrow touch
with synthetic local responses. No backend, permission, collector or native
recovery guarantee is added.
Broadcast bulk reads capture resources and history coordinates together
ListWithMetricsTargets and the monitor adapter's matching optional read return
detached resources and a detached target map from one locked registry generation.
The existing source-mapping inversion runs once for this read when typed views
are dirty; it does not build all typed views or add a retained generation cache.
Clean typed views may supply their already-current inverse mapping. Legacy List,
GetAll and individual target reads preserve their shapes and semantics.
The target map stays separate from resources until presentation host coalescing selects the row identity. Missing coordinates remain missing in that capture; they never fall through to a later live registry. Mapping changes with unchanged LastSeen take effect on the next read. Returned resources, policy/identity blocks and target values remain caller-owned across mutations and adapter replacement. Projection cannot pair an earlier resource row with a later history identity.
registry_test.go, registry_projection_test.go and
monitor_adapter_read_state_test.go exercise full resource/point-target parity,
same-time edits, concurrent mapping writes, detachments, empty/nil reads and
tenant separation. Connected monitoring proof covers all nine demo providers,
continuity overlays and complete served JSON. Paired cold/clean/dirty benchmarks
measure whole materialization, not a new point-lookup envelope or native relief.
Canonical resource History honours selected memory observation provenance and Proxmox VM filesystem deferrals instead of treating numeric carriers as fresh measurements.
Canonical resource History cannot promote retained guest readings
ResourceMetric.current is a selected numeric carrier, not a freshness
assertion. Canonical drawer History consumes its existing memory observation
and Proxmox VM filesystem read reason as independent evidence, just as the
dedicated guest drawer does. Current memory requires a usable original time
when annotated; last-known/unknown/unavailable evidence has explicit labels.
A VM read deferral withdraws current disk fallback, retaining a number only
for the existing prev- reason vocabulary. LXC disk usage is not a QEMU
filesystem read. Other platform/catalog metrics and capacity aliases stay
unchanged. Same-ID replacement updates this presentation without remounting
History or requesting another read. Clearing deferral is not native recovery.
The full drawer regression in ResourceDetailDrawer.history.test.tsx covers
retention, unavailable carriers, original timestamps, measured zero and recovery
without invented chart points; model and browser controls retain source/access
isolation. No wire schema, collector, alert, request identity or authority changes.
Bulk registry copies reuse mutation-bound canonical metadata
ResourceRegistry.List and typed-view rebuilding share canonical identity,
platform-scope and policy materialization under the registry write lock. Clean
bulk readers take the shared lock and detach the derived blocks rather than
re-derive them for every copied resource. A List-only consumer does not build
all typed views. Arbitrary cloneResource callers and point reads still refresh
metadata from their own current input; no caller-supplied metadata is trusted.
Record/mapping changes invalidate at the locked mutation, not just the batch epilogue. Resource seeding, superseded-ID retention, Docker network relationship refresh, PBS host association and final parent/rollup assembly invalidate too. A real stale-source/status transition invalidates metadata and typed views; an unchanged stale pass does not. A reader rechecks dirtiness after lock upgrade, so an intervening mutation cannot leak a previous generation. Returned canonical aliases, superseded IDs, policy redaction hints and platform scopes are detached from the stored entries and retained views. This does not cache health, alerts, broadcast conversion, observation times or telemetry, and prunes no inventory.
Verification: registry_materialization_test.go compares complete resources
and wire content against the original always-refresh List implementation,
including mid-batch changes, policy edits, supersession, staleness, ownership,
lazy views, races and allocation cost. The external connected demo test includes
all nine providers and its metadata-heavy estate. These are source invariants,
not native fleet CPU/RSS relief, backup recovery or release availability.
Container CPU presentation explains its existing scale
The existing Docker/Podman container table and drawer visibly explain that CPU is a percentage of total host capacity: 100% means all host CPUs. Runtime stats may use a per-core scale; the client never guesses core count or renormalises readings to match a screenshot. The explanation remains visible in Overview and History, including narrow screens, without relying on hover-only help.
Small positive CPU labels stay distinct from true zero in the real responsive row and stored History inspection. Numeric sorting, metric identity, requests, collector/ingest units, stored values and alert thresholds remain unchanged. Connected container row/drawer controls establish presentation, not accurate native collection, every-container continuity, alert delivery or reporter relief.
Guest drawers consume selected memory provenance
Existing guest drawers consume optional server-owned memory.observation and
selected canonical/API metric annotations without renewing their original
observation time from resource LastSeen, disk-read deferral or another platform
facet. useWorkloads, useUnifiedResources and the legacy resource adapter
preserve the selected annotation. A selected unannotated metric cannot borrow a
conflicting raw platform annotation. Raw-memory fallback retains its own
annotation only when its numeric reading is actually selected.
Proxmox VM/LXC Overview states current, last known, unavailable or freshness unknown with the original known UTC time and an allowlisted source label. Missing, unrecognised or unusable provenance is not current. Unavailable usage keeps known capacity but never invents zero used/free/swap measurements. History keeps retained/unknown numeric context separate from current legends and stored points, dated inspection and denied source access. Same-guest source changes update without resetting the drawer or refetching History. Independent valid PVE/Pulse Agent readings remain current even while QGA disk reads are deferred; unannotated unrelated platforms keep existing presentation.
Connected original-source/normalizer/adapter and mounted History controls plus
browser-tests/guest-memory-provenance.cjs exercise these boundaries. They do
not establish native thaw, covered-filesystem writes, liveness, reporter relief,
publication or an installed containing release. No route, collection, numeric
selection, retention, alert policy or diagnostic permission is added.
Guest memory provenance follows metric selection
Raw Proxmox memory.observation preserves the guest builder's state, source
and original known observation time. Canonical memory metrics carry their own
optional observation through clones, merges and served frontend conversion.
A retained platform facet cannot supply provenance for a different selected
agent metric. Agent memory annotations are authored from server-owned source
receipt/freshness, never agent-supplied annotation or merged guest LastSeen.
Linked-agent views retain that source time after host/guest correlation.
Absent annotations are unknown/legacy; absent observation times stay absent.
Numeric preference, unavailable same-source withdrawal, cross-source fallback, identity and freshness policy remain unchanged. Guest memory and disk-read provenance are independent. Adapter/source-selection and linked-view controls exercise these boundaries, with the connected monitoring contract pinning the actual served projection; this does not prove native recovery or publication.
PBS capacity consumers preserve explicit read failure
ResourcePBSDatastore.error describes existing provider read-failure evidence,
not a new collection or command. PBS resource facets retain that evidence
through canonical presentation. The Backups capacity consumer must not treat
the provider's zero-valued unavailable datastore as a successful empty-store
observation, nor show retained numbers as current when the connection is
unavailable. It keeps row/source identity and independent inventory counts;
fixed unavailable/unknown notices never disclose the error body. Valid capacity
including measured zero restores the same mounted row. Verification uses
ProxmoxBackupServersTable.test.ts plus the direct/canonical mounted capacity
controls; native read, backup and published acceptance remain separate.
History consumers do not accept a mismatched or malformed success body
The common metrics History client validates the issued selection and response shape before a drawer, shared chart or opportunistic row-history cache can accept it. An invalid first HTTP200 is unavailable, not an observed empty series or a current-value substitute. A rejected same-target refresh may retain only that target's previously validated result with the existing refresh-failure notice; rejected values never populate remount or row caches. A valid subsequent read, including measured zero or observed empty history, restores normal presentation. HTTP401/403 still withdraws cached evidence rather than becoming format failure.
The mounted HistoryResponse.contract.test.tsx uses the actual client admission
boundary, not a mocked ChartsAPI result. browser-tests/history-response.cjs
drives the production PBS-service and disk History fixture with wrong-target,
wrong-type/range/metric, malformed, denied, valid-zero and empty bodies, keyboard
retry/inspection and remounts. These synthetic controls do not diagnose #1723,
establish native panels/identity or prove #2439 thaw or workload liveness.
Native VM read outcomes survive browser projection and recovery
The existing Proxmox guest read-state facet remains intact at the WorkloadGuest
boundary: diskStatusReason, guestAgentStatus, guestAgentExpected and lock are
forwarded from the resource API or the platform's owned canonical snapshot.
A retained numeric disk reading does not become current merely by passing
through that adapter, and an operation lock is not silently discarded.
Rows withdraw numeric bars/sparkline labels for a non-retained deferral or
explicitly unavailable canonical telemetry, even if the merged resource still
carries old numeric values. Valid prev- and measured-zero readings remain.
GuestRow.test.tsx verifies this with numeric stale props, not only sentinel data.
Optional native VM fields are omitted on the wire when empty/false. When a new facet identifies a positive VMID and explicitly reports runtime state and a guest-agent outcome, omitted diskStatusReason/lock/guestAgentExpected replace the previous values rather than keeping an obsolete deferral or backup lock. This applies to the canonical and compatibility provider facets and the validated fast-delta path. Partial or legacy facets without that combination retain previous evidence; no generic omission-based clearing is introduced. Other richer metadata, source withdrawal, canonical identity, History samples and permissions remain unchanged. A guest-agent state or cleared lock proves neither filesystem thaw nor workload liveness.
The owning hook and adapter regressions cover REST/snapshot forwarding,
retained/unavailable/fresh transitions with unchanged numbers, explicit false,
measured zero, partial omissions and full/delta/fast recovery. The connected
browser-tests/workload-read-evidence.cjs checks actual production row, Overview
and History presentation in desktop Chromium and phone WebKit. Synthetic
source proof does not establish native backup safety or shipped availability.
Backup server counts retain their inventory availability
The existing PBS server/datastore row takes backup-inventory read availability
separately from the current canonical resource's health, capacity and identity.
A pending or failed PBS read renders loading/unavailable count text, not zero
backups on an otherwise healthy server. Only a fulfilled inventory establishes
its observed count. Independently readable resources and the existing correlated
drawer target are unchanged. ProxmoxBackupsTable.test.tsx covers the combined
count lifecycle; browser-tests/backup-inventory.cjs verifies production rows
and source notices on desktop/phone. This changes no resource identity, native
provider assessment or permission policy.
The backup inventory count also remains unavailable when an HTTP200 response
fails the client backup-envelope/row validation; transport success is not an
observed zero. A malformed source cannot remove independently readable canonical
server health or the other source's artifacts. Fixed diagnostics expose no
response body. The inventory parser, mounted table and
browser-tests/backup-inventory-format.cjs exercise that combined boundary.
Every BackupServerRow carries the server's host readings and resource
snapshot, and the model test pins the readings on every row. (The former
continuesServer presentation flag was removed on 2 November 2026, when rows
began naming their datastore first.)
BackupServerRow.jobs reads the PBS resource's existing jobHealthEvidence
(the backend's per-job posture and reason) and binds each job to a datastore
row only by its store field. It adds no resource field, identity or
correlation: an Agent-merged server keeps the PBS service's evidence, and a
store-less read failure marks the family unknown on every datastore rather
than borrowing another row's result. backupServerJobResults.test.tsx and
proxmoxBackupServerJobs.test.ts cover the mounted column and the model.
Guest disk freshness presentation
Existing workload disk evidence retains its source reason through the row,
breakdown and Overview. prev- values are explicitly last-known, while a
deferral with no previous disks explains the missing observation without a
measured percentage. Lock/uncertain-completion deferrals must not become an
install/restart recommendation. Human-readable Overview status remains visible
without filesystem rows and is cleared by a same-identity fresh observation.
The shared presentation and mounted regressions plus the production-component
browser-tests/guest-disk-deferral.cjs fixture verify this client behaviour;
they do not prove native QGA coordination, History freshness or delivery.
Narrow controller and backup summaries retain their source facts
Kubernetes controller row expansions expose supplied kind-specific targets, counts, absolute timestamps, valid elapsed durations and namespace/cluster when responsive rows hide those columns. Missing facts are omitted and the ordinary pluralisation model handles singular targets. Job/CronJob timestamp regressions and the production composed-table browser fixture verify this existing summary.
Proxmox Coverage uses latestBackup for completed independent backup evidence, with guest-local snapshots retained separately. Responsive backup-server, host and guest rows allocate space through existing canonical weighted-width helpers; archive format is presentation only, with the provider identifier retained in hover and search. The recovery-model, table and guest regressions plus desktop/ phone browser rendering verify attribution, visible facts and source composition. These frontend improvements change no collector, API authority or native status.
Resource evidence fallback access boundaries
When the existing resource-facet reader receives a final HTTP 401/403, its drawer must not substitute embedded snapshot events, counts, capabilities or relationships for the withdrawn response. A denied filtered read must not substitute the unfiltered bundle. Denial remains visible during that request's retry, and fresh success restores its evidence. Independently successful unfiltered reads retain their own ownership; this is not a global revocation broadcast. Transient failures still retain applicable snapshots, and compact snapshot-only rows still make no remote history reads.
Failed change/action reads are unavailable, not “loaded” or empty. The Manage tab keeps a failed action read's retry visible even without retained rows, without changing the action client's existing unavailable-plan responses. The hook access tests and mounted ResourceDetailDrawer.history tests protect these boundaries; browser-tests/resource-evidence-access.cjs exercises the production drawer/client/CSS on desktop Chromium and dark touch WebKit. Its synthetic HTTP responses do not establish native authorisation, a reporter's cause, installed recovery or release availability.
Detail snapshot and selection ownership
ResourceDetailDrawer reads the current resource through a reactive getter in its state, derived identity/telemetry and Overview consumers. Replacing a same-ID object must update the header, availability evidence and metrics target without remounting the drawer or discarding its selected History range. This also preserves the reconciled-store clients used by platform table rows. Transient loss of a same-resource metrics target withdraws its History panel and shows the existing unavailable notice; returning the target restores the selected tab. No target or alias is inferred to fill the gap.
A different canonical ID disposes per-resource tabs, disclosures and outstanding reads before rendering the new resource. Late completions cannot become the new resource's facets or intelligence. Discovery source-key replacement does not retain a former target's identification while the next read is pending. Availability fleet selection stores an ID, not a clicked snapshot: the open drawer resolves that ID in the current fleet. Removing the selected check closes and clears its selection, including when the ID subsequently reappears.
ResourceDetailDrawer.snapshot.test.tsx covers immutable and reconciled-store updates, target withdrawal/restoration, current availability and late facet completion. The existing History consumer guard and AvailabilityFleetView regressions protect composition. The production-components/browser client fixture browser-tests/drawer-snapshot.cjs exercises PBS History requests and availability selection on desktop Chromium and phone WebKit with synthetic snapshots. It proves no native appliance, release or installed recovery result. Resource identity, policy, permissions, collectors and persistence are unchanged.
Canonical RAID configured-member evidence — issue #2369
Host RAID metadata and read views retain optional requiredDevices (configured
members excluding spares) without rewriting source-native totalDevices.
Clones preserve both values and isolate caller mutation. The shared storage
health assessment owns per-array risk and aggregate protection posture: a full
member set with a hot spare must not become critical, while a configured member
deficit remains critical even if active plus spares equals the attached count.
Adapter, clone and monitoring readback tests pin these boundaries. Count
evidence does not establish backup coverage, native array recovery or any
storage mutation authority; the field adds no resource or action identity.
Bounded confidence/priority work in broadcast grouping — issue #2199
The general identity matcher retains every confidence, reason, ordering and review flag. Top-level grouping requests only its existing high-confidence floor (0.90), so hostname-only and IP-only peer sets are not built when no eligible composite signal exists. High-confidence results are identical to filtering the full general matcher; machine ID, UUID and hostname+MAC still keep their existing precedence. Host/IP fallback still requires exactly one strictly better-priority owner. Equal/worse-priority peers are discarded before allocating/sorting fallback candidates, and a best-priority group has no possible attachment target. No identity, ambiguity, count, group ID or explanation rule changes, and no cached output hides live transitions.
Independent pre-repair matching/grouping oracles, candidate-floor differential cases/fuzzing, a discarded-peer allocation bound, mixed grouping records and the complete existing identity/topology suites protect these constraints. The residual synthetic broadcast profile identified discarded matching/grouping as the dominant cost; it is not a profile of the reporter's installed agent fleet.
Allocation-bounded snapshot and clone metadata — issue #2199
WebSocket snapshot extraction decodes every entry's ID from the encoded array in one batched pass, preserving standard JSON identity semantics rather than trusting source-ID hints after checking only the first entry. Missing/duplicate IDs still reject resource keying; infrastructure and alert arrays retain the existing whole-field fallback. The decoder-owned raw entry buffers are retained without a redundant copy, and must remain isolated from the original encoding and from each other. Per-entry reference decoding, malformed/escaped/duplicate identity fuzz cases and encoded tail-change deltas pin these boundaries.
Resource clones still refresh canonical metadata on every read, including after source, facet or tag edits. Platform membership uses a deduplicated small slice with the existing canonical order; sensitivity scans normalized tags once, preserving explicit public, restricted, sensitive and resource-type precedence. The exhaustive source-combination test and clone scope/policy refresh test protect page admission, policy routing and clone isolation. Component benchmarks measure allocation/time changes, not installed fleet CPU or write-rate acceptance.
Bounded generation change comparison — issue #2199
Accepted snapshot rebuilds compare the previous and replacement registry
generations by resource ID without deep-cloning and sorting both complete
resource lists solely for change emission. Classification reads both generations
under registry read locks, materialises change records, and releases those locks
before the backing store persists them. Discovery, removal, state, relationship
and configuration classifications retain the existing journal semantics;
unchanged telemetry and volatile relationship timestamps produce no new
journal row. TestRecordRegistryChangesBetweenGenerationsMatchesListComparison
compares the old and new paths, while
TestRegistryGenerationComparisonIgnoresUnchangedTelemetry pins the no-op
boundary. The 1,000-resource benchmark is component evidence, not installed
fleet CPU attribution or a release acceptance claim.
A restart is not a discovery. The first diff after Pulse starts compares
against an empty generation, so before it the monitor adapter reads each
resource's last recorded state (LastResourceStates, an optional store read:
the to-state of its newest state transition). A known resource's first
appearance in the run then records nothing when that state still holds, a
transition from it marked "resource state changed while Pulse was stopped"
(no occurredAt) when it differs, and an ordinary discovery when it was last
recorded as removed. After that appearance its changes record normally, and a
resource first seen while Pulse was down records its discovery. The
while-stopped transition keeps availability reports' boundary for a resource
that recovered or failed during the gap, and carries changedFields: status
so the agent event stream announces it like any status change. The newest
state is chosen on parsed observation times (stored text mixes formats), with
the greater change ID winning a tie in both stores. Before this, each restart or update
re-recorded the whole fleet as new (1,776 rows on the mock fleet; now only real
differences), burying the night's changes in list_recent_changes. Removals
during the gap are still not recorded, and a resource whose rows have all aged
out of retention, or whose canonical ID changed across the restart (for example
an identity succession on upgrade), is discovered once more.
TestMonitorAdapterRestartDoesNotRediscoverKnownResources covers memory and
SQLite stores; TestLastResourceStatesReadsNewestTransitionAcrossStores pins
the read.
Node-indexed guest parent resolution during ingest — issue #2199
Guest ingest resolves each Proxmox guest's parent node, and that lookup can
fall back to scanning for agent candidates by node name. Walking every resource
for every guest made each snapshot rebuild quadratic in the estate. Every
agent-producing source is ingested before the VM and container loops, so the
registry buckets agents by lowercased node name for those loops, reusing
agentNodeScanIndex from buildChildCounts. ingestRecord rebuilds a live
index whenever an ingest yields an agent, and the indexed walk skips entries
that are no longer the registry's current object for their ID, so resolution
matches the full scan exactly. TestGuestIngestParentsMatchFullAgentScan
compares every guest's ingest-time parent with the full scan, including a
cluster whose guests are reachable only through the scan, and
TestAgentNodeScanIndexTracksAgentsIngestedWhileLive pins the rebuild. On a
synthetic estate of 8-node clusters the rebuild moved from 74 to 42 ms at 2,080
resources and now grows linearly; that is component evidence, not installed
fleet CPU attribution.
Host continuity overlays reuse one build per registry generation
ReadStateWithHostContinuity overlays standalone agents awaiting a report or
offline across a restart onto the live read state by building a registry clone. The
monitor requests that overlay on every canonical read-state lookup, which
alert evaluation makes once per resource per poll, so a single offline agent
made every poll rebuild the registry once per resource for up to 72 hours. The
adapter now keeps the last overlay keyed by registry pointer, LastRebuiltAt,
and a fingerprint of the requested records (excluding the build-time
UpdatedAt stamp), and reuses it for at most overlayReadStateMaxAge (2
seconds), since the overlay evaluates source staleness when built. The live
adapter is never mutated.
TestHostContinuityOverlayReusedWithinRegistryGeneration pins reuse, rebuilds
on a new generation or different records, and the age bound.
Bounded incident-history selection
Canonical frontend memory withdrawal is explicit: when a resource snapshot omits the canonical memory metric and its Proxmox memory facet marks usageUnavailable, the display merge must clear any previous metric. Plain partial omission remains compatible with richer REST state, and an incoming canonical metric (including measured zero) takes precedence over unavailable raw evidence. The adapter transition tests pin withdrawal and recovery; the hybrid-memory Chromium fixture exercises the rendered table and drawer at 1280px and 390px. Workload details remain canonical-only: withdrawal shows N/A in the table and removes the Memory section rather than manufacturing a raw-facet total; measured-zero recovery restores Total and Free, with screenshot positioning above fixed navigation. This does not change agent-only or arbitrary field-deletion semantics.
VM-linked agent memory read — issue #1962 (7 September 2026)
VMView.LinkedAgentMemory exposes a value-copy of the agent's own memory sample
for the poller's existing fallback. It must not read merged platform-priority
metrics or use aggregate VM liveness as agent freshness. Missing/non-online agent
source status, explicit agent staleness, unavailable usage and invalid capacity
or counters are rejected. Trusted zero usage remains valid. Registry freshness
policy remains authoritative; this accessor introduces no second timeout.
TestVMViewLinkedAgentMemory pins those boundaries; monitoring's
TestCorrelatedGuestMemoryNextPoll verifies the manually merged row through the
next-poll consumers. Existing host-list membership and metric priority are unchanged.
System-container linked agent memory read — issue #2148 (22 September 2026)
ContainerView.LinkedAgentMemory exposes the same value-copy of the linked
agent's own memory sample for system containers, sharing the validity and
freshness rules with VMView.LinkedAgentMemory: missing/non-online agent source
status, explicit agent staleness, unavailable usage and invalid capacity or
counters are rejected, and trusted zero usage remains valid. The monitoring
layer consumes it only as a fallback replacement for Proxmox LXC memory, so
platform metric priority for a healthy agent is unchanged.
TestContainerViewLinkedAgentMemory pins those boundaries.
Host-row agent source freshness (6 October 2026)
HostView.SourceStatus(source) exposes the per-source delivery freshness the
registry already records, matching the VM, container, and physical-disk views.
A host agent linked to a Proxmox node merges into one row whose LastSeen
follows the freshest source, so consumers of agent-owned samples (monitoring's
linked-agent node temperature lookup) must read the agent source's own sighting
here instead of the row's LastSeen. The accessor returns a copy of the recorded
status and adds no freshness policy of its own.
TestView_HostViewSourceStatusSeparatesAgentFromMergedRow pins the merged-row
split.
NodeView.SourceStatus(source) and DockerHostView.SourceStatus(source) do
the same for node and Docker host rows. A merged node row takes its linked
agent's status when the sources merge, and once any sighting goes stale the
stale pass recomputes the status from the sightings: online while one is
current, warning when every one is stale. warning is also a status a row
that still reports can carry (a degraded Docker host, a node whose linked agent
reports storage risk). The metrics-history live
fallback therefore reads these sightings alongside the row's offline and
unknown status to decide whether a row's readings are current. The accessors
return a copy of the recorded status and add no freshness policy.
TestView_NodeViewSourceStatusSeparatesMergedSources and
TestView_DockerHostViewSourceStatusSeparatesSilentFromDegraded pin them.
Bounded incident-history selection
Canonical history queries filter exact alert identifiers and observation windows
before applying limits. The observation window is inclusive at since and
exclusive at ObservedBefore. All aggregate counts use the same filter
predicate. Both stores order by observation time descending, then event ID
descending, including late-arriving records. SQLite indexes the same guarded
alert-identity expression used by the query. Invalid legacy JSON and non-string
metadata cannot establish an alert identity.
ResourceHistoryIDs exposes the existing alias/succession expansion for
read-only incident memory association. It does not rewrite event resource IDs,
resource operator state, approvals, action request identity or execution
capabilities. An unavailable canonical read remains an error.
Bounded SQLite page cache
The resource store takes its SQLite page cache from pdb.PageCachePragma in
pkg/db/pagecache.go, 2000 KiB per connection, not a private 64 MB
cache_size. The modernc driver holds that cache outside the Go heap at about twice its size, where neither the garbage collector nor GOMEMLIMIT reaches it (#1803). Pages outside the cache are re-read from the
kernel file cache, which the kernel can reclaim under memory pressure.
TestSQLiteResourceStoreUsesSharedPageCacheBound pins the effective value.
Canonical Patrol and Assistant continuation, 2026-09-07
Persisted action request identity is scoped to the trusted actor and exact normalized intent. Store insertion enforces it atomically, with duplicate or unprovable historical identities rejected rather than guessed equal. Replays retain the original plan and expiry even if the live resource or registry changes.
Unavailable or inconsistent disk observations remain absent across node, host,
Docker host and guest metric projections. They cannot become -100 percent or a
fabricated measured zero. Shared resource-policy text redaction preserves content
whitespace, including standalone stream separators. Qualification and population
limits are in docs/qualification/PATROL_ASSISTANT_CUSTOMER_JOURNEY.md.
Action evidence preserves observer and receiver timestamps as separate clock facts, normalized to UTC and bound into the canonical digest. The shared normalizer requires both timestamps but cannot infer their ordering across machines. Capability-owned freshness, request binding and same-clock mutation chronology remain prerequisites for claiming verification. Positive clock skew must not discard a completed execution or rewrite its observed timestamp. Cross-clock normalization and Proxmox/Docker/host result regressions cover this boundary, including stale and excessive-skew negative cases.
The shared action evidence disclosure preserves the named observer independently
of the executor. Its observation timestamp uses the neutral label Observed,
followed by the separate Pulse receipt time. Independent Proxmox API evidence
must not be labelled as an agent observation. Browser qualification expands
this disclosure in completed action reviews at desktop and narrow widths.
Canonical Docker resource metadata carries the shared filesystem observation contract unchanged. Adapters, retained resource clones and typed views own their nested usage values. Per-mount filesystem capacity never populates a container-wide disk percentage or quota, and unavailable observations never retain earlier numeric usage. The source-specific Docker facet remains the owner of these observations. Shared model queries project the same observation objects for both Patrol and Assistant. Ingestion and model-query filesystem regressions cover measured zero, unavailable reads and replacement of old data.
Action review distinguishes the recorded plan from live or executed facts. The shared decision packet labels its state and expiry as planning-time evidence, including when opened from a resolved Patrol finding. Potential blast radius does not claim every related resource was affected. Actual execution and verification remain in the recorded outcome section. The review header uses the shared action-state presentation, so rejected actions remain identifiable even without an execution receipt. The rejected-state regression and live completed/rejected deep-link browser proof cover these historical journeys.
Docker container writable/root layer bytes describe image composition, not
used/total filesystem capacity, and cannot populate ResourceMetrics.Disk.
Optional valid block-I/O rate pointers preserve measured zero. Missing, negative
and non-finite rates remain unavailable. Raw layer metadata remains available.
TestMetricsFromDockerContainerDistinguishesAbsentAndIdleIO and the container
I/O projection proof in internal/unifiedresources/metrics_test.go pin this
boundary.
The frontend resource contract likewise makes read and write rates independently
optional, preserving this distinction through current-history labels.
Physical disk source freshness preserves the collector-authored
expectedUpdateIntervalSeconds alongside the actual last observation. Registry
ingest, merge, cloning and typed disk views preserve it. Staleness uses the
longer of the configured source threshold and two collector intervals. A new
observation from the highest-priority represented source may refresh canonical
status, including Proxmox-only resources. Lower-priority platform data cannot
overwrite a linked Agent status. Freshness changes never change resource identity.
Proof: disk cadence/recovery tests in internal/unifiedresources/registry_test.go
and source-status clone coverage in internal/unifiedresources/clone_test.go.
Canonical resource identity and metrics storage coordinates are distinct.
API-only Proxmox hosts remain agent resources but their metrics target is
node with the Proxmox source ID, matching the collector's writes. A real
linked Agent source retains priority and its agent store ID. Consumers must
use that target rather than reconstructing storage coordinates from display
identity or discovery routing. The node view carries the canonical target into
its Overview charts. Discovery can route by a host name without an installed Agent,
so it does not establish a linkedAgentId or Agent-only disk-throughput coverage.
The explicit Agent facet/link owns that evidence.
ResourceIncident carries optional nativeSeverity JSON evidence independently of canonical Severity and identity. Missing nativeSeverity remains compatible with older payloads. TrueNAS INFO and NOTICE may share canonical monitor risk without becoming indistinguishable to alert consumers; native severity does not change resource or incident identity.
Unraid adapters preserve optional numDisks in both host and storage metadata, including explicit zero in JSON and absence for unknown counts. Disk count is topology evidence only: changing it must not change canonical host/storage identity. The storage projection uses the monitoring-owned assessment so an explicit pool-only array does not acquire a no-parity warning.
Own canonical resource identity, type normalization, typed views, and
cross-source deduplication.
Storage metadata may expose source-authored alias IDs as compatibility evidence
for one-time consumers such as the alerts identity migration. Adapters and
clones must preserve that bounded alias set without promoting it to primary
identity: Resource.ID, canonical identity, and the storage metrics target
remain authoritative, and ambiguous alias claims must fail closed.
One machine may belong to more than one typed view without becoming more than
one canonical resource. A matching Pulse host report and Docker report merge
into one agent resource with Agent and Docker facets, and the Hosts and
Docker-host views must return that same canonical ID. A Docker-only resource
keeps its docker-host contract type and is not admitted to the Hosts view.
For Docker and Podman container resources, the canonical CPU metric represents
host-capacity-normalized utilization. Runtime-native per-core CPU percent is
kept on Docker metadata as raw evidence and must not replace the canonical
metric or threshold surface. After that capacity normalization, app-container
CPU and memory metrics are already 0..100 percentages and must be clamped
directly rather than treated as 0..1 ratios.
Host-agent and Docker-host CPU, memory, and disk usage fields are already
reported as 0..100 percentages. Unified-resource host metric payloads and
host-derived storage adapters must clamp those reported percentages directly
rather than passing them through ratio-to-percent normalization, which is
reserved for providers that report 0..1 usage ratios.
Proxmox VM and LXC CPU is a semantic-authority exception to ordinary
freshness-based metric selection. The Proxmox guest observation is normalized
from its capacity ratio to canonical 0..100 percent exactly once, without
dividing by configured cores, and remains the guest CPU value whenever that
observation exists—even if the Proxmox source is stale. Source freshness stays
visible through SourceStatus; an in-guest host agent cannot supply a
comparable fallback because LXC observes the shared kernel and QEMU accounting
is independently scoped. Agent CPU may fill the field only when the platform
has no CPU observation. Agent-only fields that the platform does not provide
remain eligible per metric.
Proxmox guest power state is likewise source-authored semantic state, separate
from aggregate resource health. ProxmoxData.RuntimeStatus retains the last
coherent running/stopped observation while Resource.Status and
SourceStatus continue to report stale, warning, offline, availability, and
error evidence honestly. Availability checks may add facets and influence
aggregate health after Proxmox becomes stale, but they must not overwrite or
erase the Proxmox runtime state used by workload power filters. Full monitor
registry generations and incremental agent/availability mutations serialize
at the adapter boundary; a mutation that arrives during a rebuild must apply to
the newly published registry rather than a superseded pointer. Authoritative
snapshot omissions still remove resources and emit the normal canonical
history change.
Proxmox guest I/O projection preserves the monitoring-owned rate validity
contract. A valid idle interval publishes an explicit zero-valued bytes/s
metric; an unknown first, missing, partial, or out-of-order observation leaves
that metric absent. MetricValue.value is always a numeric JSON field when a
metric object exists, so /api/resources, /api/state, websocket resources,
history, alerts, and UI adapters never need to interpret null as either idle
or unknown. Unified resources must not infer validity from the numeric guest
compatibility field alone.
Resource and workload drawer consumers preserve the same evidence boundary:
current CPU, memory, disk, network, and disk-I/O observations may be shown as
current values, but only samples returned by the canonical history endpoint may
form a historical series. Drawer adapters must not manufacture prior samples
from a current snapshot, and must retain explicit metric absence independently
from a valid reported zero.
Saved host enrollment continuity is fallback evidence, not a current source
observation. ReadStateWithHostContinuity uses the registry's normal canonical
matching but only admits absent resources. Exact source identities, explicit
links, strong machine matches, and canonical-ID collisions must preserve the
existing resource, including its agent ID, source status, metrics, credentials,
and linked Proxmox state. Even a future-dated saved enrollment cannot overwrite
live truth. Skipped records cannot attach superseded IDs or migrate operator
state. Distinct machines sharing a hostname remain distinct, and absent hosts
retain their historical identity without manufacturing a live sighting.
During the monitoring-owned reporting lease, an absent saved agent has unknown
resource status and pending agent delivery. Registry ingestion, stale marking,
cloning and serialized read-state seeding preserve that pending delivery rather
than treating its historical timestamp as a current sighting. Continuity carries
no metrics. Its lease and transition to offline are owned by monitoring.
Realtime rows carry source delivery alongside resource status. A pending
enrollment explicitly withdraws an earlier browser observation rather than
retaining cached metrics or an older agent facet as current evidence.
TestHostContinuityCannotOverwriteCurrentResource,
TestHostContinuityRetainsDistinctMachinesWithSameHostname, and the monitoring
TestHostContinuityPreservesLiveAgentAfterReenrollment pin this boundary (#1913).
Proxmox node inventory continuity is monitoring-authored and
unified-resource-consumed. A powered-off or temporarily unreachable cluster
member must remain one canonical agent resource while monitoring still
publishes it, preserving canonical ID, alerts, navigation, history target, and
monitored-system membership with explicit non-fresh source status. Registry
replacement must not emit resource_removed merely because live telemetry is
missing; it emits removal only after monitoring's authoritative repeated-
absence reconciliation removes the node from the snapshot. Confirmed removal
then leaves the top-level monitored-system projection exactly once so usage and
licensing do not count a decommissioned member. Proxmox platform consumers must
scope equal cluster labels and node names by provider instance when grouping,
searching, and assigning guests or storage.
That provider scope also governs node-to-agent link inference and host
presentation coalescing. A repeated cluster label is operator-authored
grouping metadata, not same-machine evidence; cross-instance equality requires
the same node identity, the exact configured endpoint, or independently
corroborated host evidence.
Frontend REST and realtime resource mirrors must retain the canonical
hostnames, machineId, and dmiUuid evidence. The browser never re-joins
host rows, so when independent Proxmox connections expose the same native node
hostname the server-authored provider split reaches the UI as delivered; in an
ambiguous hostname bucket the server joins a separate agent row to a provider
node only through its explicit linked-agent identity rather than hostname
alone.
The same boundary carries cluster-node presentation without weakening
canonical identity. ProxmoxData preserves the immutable connection-scoped
node identity, current native node name, prior native-name aliases, and
optional display override as distinct fields. The resource Name,
ParentName, and agent-linked cluster-node presentation may use the override,
but registry IDs, merge keys, parent links, metrics targets, source-native
guest IDs, external URLs, discovery targets, and actions must not. Children
such as VMs, containers, and storage inherit the parent's presentation and
native aliases so Overview, search, API/websocket/mobile, storage, backups,
and filters agree. That inheritance stays in the child's ProxmoxData: only
the node itself lists its node identity, native name, and native-name aliases
as canonical aliases, because a child carrying them would answer to the node's
alert resource ID and every guest would show each node alert as its own.
A linked agent may enrich the canonical node but cannot
replace a configured override with its hostname; same-name cluster identity
remains provider scoped even after a native rename.
Physical-disk resources own cross-source disk identity. When Proxmox inventory
and host-agent SMART telemetry describe the same device, the merged resource
must retain Proxmox node/instance source payloads while carrying SMART
temperature, capacity, health, and identity enrichment.
Agent-only physical disks under a canonically merged Proxmox node inherit a
minimal owning-node Proxmox facet and proxmox-pve platform membership even
when the PVE disk API has no corresponding controller-member row. Their
Sources and SMART facts remain agent-authored; platform ownership must not be
misrepresented as Proxmox disk telemetry.
Physical-disk matching is parent-scoped and topology-aware: persisted source
mappings survive registry rebuilds, controller members sharing a block path
remain distinct, placeholder serials/WWNs never become canonical or metrics
identity, and ambiguous matches fail closed. Serial and WWN are alternate
representations of the same durable hardware identity across reporters, so a
value in either field may match a value in either field after case folding and
removing only reporter framing (naa., eui., wwn-, and 0x). Matching
must never truncate an identifier or accept a placeholder: a shortened WWN
shared by sibling RAID volumes is not proof that either full identifier is the
same device. SMART counter metadata preserves
presence through pointer-valued JSON fields, so reported zero is distinct from
missing. The canonical disk payload also carries provider vendor metadata and
uses explicit SMART health, temperature, and wearout ahead of coarser
contradictory inventory values without manufacturing facts when telemetry is
absent.
NVMe percentage-used conversion is shared with storage risk: negative values
remain unknown, while values above 100 clamp to exhausted before remaining
life is derived.
WearoutUnreported is the canonical absent-value sentinel for
PhysicalDiskMeta.Wearout and is pinned to -1. Views and adapters must return
it whenever a resource carries no physical-disk facet; returning the Go zero
value publishes "no endurance remaining" for a disk that reported nothing, and
downstream risk, presentation, and alert consumers cannot recover the
distinction afterwards. The unified risk projection gates wearout on
storagehealth.WearoutReported so its verdict and the server-side alert verdict
about the same disk cannot diverge.
Coverage rows preserve unknown backup chronology
The existing Proxmox backup Coverage projection carries unknown-date flags separately for PBS, PVE files, guest snapshots and independent backups. A completed point with an unavailable or future date remains evidence, but cannot elect a latest point or be displayed as absence. Full and location- scoped projections share this selection rule, refresh the inventory observation clock and clear uncertainty on valid replacement. Provider-owned protection and verification remain untouched; guest-local snapshots are never independent backups. This is a local view model, not new wire or identity/correlation policy.
Verification: recovery-model and connected backup-table backup-date-evidence
cases plus the production browser fixture cover mixed chronology, source-scoped
uncertainty, independent posture and valid replacement. Native guest/backup
acceptance and containing release delivery remain with their existing owners.
Coverage owns independent scalar copies of each latest-artifact pointer. In-place stable-row reconciliation must not let an older source pointer mutate the last-backup value after a newer point arrives from another source. Connected replacement controls and inspected renders cover that boundary.
The compact By date layout reserves enough age space for the full cautionary Unknown word rather than the former numeric-age-only allocation, while keeping independent task/state labels legible and the canonical identity anchor. Both 390px and 320px browser checks measure age text and state clipping, supplemented by inspected renders.
Compact Coverage age cells use the existing metadata-size text and reclaim numeric-age gutters so the full Unknown word stays visible even beside a Job column at 320px; text-range checks account for cell padding, not only the outer box.
Agent updater evidence remains canonical through fleet reads
The agent facet carries the shared typed models.AgentUpdateStatus value from
host ingestion through resource storage, cloning and HostView.AgentUpdate().
Adapters and views own that value and its three optional timestamps. Neither
source model mutation nor a snapshot reader may mutate retained evidence.
Monitoring reconstructs host updater status from that canonical facet, so fleet
connections and Agent Doctor retain real errors and last-success evidence
instead of silently dropping it. An absent status remains unknown. This read
projection creates no new update, enrollment or command authority.
TestHostUpdateEvidenceSurvivesCanonicalAdapterViewAndClone and
TestHostsSnapshotPreservesCanonicalUpdaterEvidence cover retention, mutation
isolation and replacement of a failed outcome by a newly accepted success.
Canonical Files
internal/unifiedresources/types.gointernal/unifiedresources/views.gointernal/unifiedresources/read_state.gointernal/unifiedresources/adapters.gointernal/unifiedresources/monitor_adapter.gointernal/unifiedresources/canonical_identity.gointernal/unifiedresources/policy_metadata.gointernal/unifiedresources/metrics.gointernal/unifiedresources/metrics_targets.gointernal/unifiedresources/registry.go10a.internal/unifiedresources/xcpng.gointernal/unifiedresources/resolve.gointernal/unifiedresources/resolve_context.gointernal/unifiedresources/resolved_host_set.gointernal/unifiedresources/snapshot_source_filter.gointernal/unifiedresources/store.gointernal/unifiedresources/kubernetes_capabilities.gointernal/unifiedresources/pbs_rollups.gointernal/unifiedresources/monitored_systems.gointernal/unifiedresources/top_level_systems.gointernal/unifiedresources/monitored_system_projection.gointernal/unifiedresources/hostname_equivalence.gointernal/unifiedresources/capabilities.gointernal/unifiedresources/changes.gointernal/unifiedresources/relationships.gointernal/unifiedresources/privacy.gointernal/unifiedresources/actions.go26a.internal/unifiedresources/action_dispatch.go26b.internal/unifiedresources/action_dispatch_store.gointernal/unifiedresources/audit_redaction.gofrontend-modern/src/components/Infrastructure/ResourceDetailDrawer.tsxfrontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsxfrontend-modern/src/components/Infrastructure/ResourceDetailDrawerDebugTab.tsxfrontend-modern/src/components/Infrastructure/ResourceDetailDrawerSupportDisclosure.tsxfrontend-modern/src/features/docker/DockerConfigsTable.tsxfrontend-modern/src/features/docker/DockerContainersTable.tsx34a.frontend-modern/src/features/docker/DockerContainerLifecycleControls.tsx34b.frontend-modern/src/features/docker/dockerContainerLifecycleActions.ts34c.frontend-modern/src/features/docker/dockerContainerTableModel.ts34d.frontend-modern/src/features/docker/dockerContainerStatePresentation.tsfrontend-modern/src/features/docker/DockerImagesTable.tsxfrontend-modern/src/features/docker/DockerNativeTableShared.tsxfrontend-modern/src/features/docker/DockerNetworksTable.tsxfrontend-modern/src/features/docker/DockerPageSurface.tsxfrontend-modern/src/features/docker/DockerSecretsTable.tsxfrontend-modern/src/features/docker/DockerSwarmNodesTable.tsxfrontend-modern/src/features/docker/DockerTasksTable.tsxfrontend-modern/src/features/docker/DockerVolumesTable.tsxfrontend-modern/src/features/docker/dockerPageModel.tsfrontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsxfrontend-modern/src/components/Infrastructure/ResourceActionHistory.tsxfrontend-modern/src/components/Infrastructure/ResourceFacetSummary.tsxfrontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsxfrontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsxfrontend-modern/src/components/Infrastructure/ResourceOperatorStateSection.tsxfrontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.tsfrontend-modern/src/components/Infrastructure/resourceDetailDrawerServiceModel.tsfrontend-modern/src/components/Infrastructure/resourceDetailDrawerVmwareModel.tsfrontend-modern/src/components/Infrastructure/resourceDetailDiscoveryModel.ts60a.frontend-modern/src/utils/workloads.tsfrontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.tsfrontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.tsfrontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.tsfrontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.tsfrontend-modern/src/utils/agentResources.tsfrontend-modern/src/utils/canonicalResourceTypes.tsfrontend-modern/src/utils/resourceBadgePresentation.tsfrontend-modern/src/utils/resourceChangePresentation.tsfrontend-modern/src/utils/actionAuditPresentation.tsfrontend-modern/src/utils/resourceCorrelationPresentation.tsfrontend-modern/src/utils/resourcePlatformData.tsfrontend-modern/src/utils/resourcePolicyPresentation.tsfrontend-modern/src/utils/resourceStateAdapters.tsfrontend-modern/src/utils/resourceTypeCompat.tsfrontend-modern/src/utils/resourceTypePresentation.tsfrontend-modern/src/utils/serviceHealthPresentation.tsfrontend-modern/src/utils/sourceTypePresentation.tsfrontend-modern/src/utils/workloadTypePresentation.tsfrontend-modern/src/utils/resourceIdentity.tsfrontend-modern/src/components/Infrastructure/resourceDetailDrawerIdentityModel.tsfrontend-modern/src/hooks/useUnifiedResources.tsfrontend-modern/src/types/resource.tsfrontend-modern/src/utils/sourcePlatforms.tsfrontend-modern/src/utils/platformSupportManifest.generated.tsinternal/unifiedresources/kubernetes_metric_ids.gointernal/unifiedresources/policy_posture.gofrontend-modern/src/features/platformNavigation/platformNavigationModel.tsinternal/unifiedresources/clone.gofrontend-modern/src/components/Infrastructure/resourceDetailDrawerPresentation.tsinternal/unifiedresources/storage_consumers.gofrontend-modern/src/features/standalone/standalonePageModel.tsfrontend-modern/src/features/standalone/StandalonePageSurface.tsxfrontend-modern/src/features/standalone/AgentsMachinesTable.tsxfrontend-modern/src/features/standalone/AvailabilityChecksTable.tsxinternal/platformsupport/manifest_generated.gofrontend-modern/src/features/kubernetes/KubernetesControllersTable.tsxfrontend-modern/src/features/kubernetes/KubernetesPageSurface.tsxfrontend-modern/src/features/kubernetes/kubernetesPageModel.tsfrontend-modern/src/features/kubernetes/KubernetesClustersTable.tsxfrontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsxfrontend-modern/src/features/kubernetes/KubernetesNodesTable.tsxfrontend-modern/src/features/kubernetes/KubernetesPodsTable.tsxfrontend-modern/src/features/kubernetes/KubernetesStorageTable.tsxfrontend-modern/src/features/kubernetes/KubernetesNetworkingTable.tsxfrontend-modern/src/features/kubernetes/KubernetesServicesTable.tsxfrontend-modern/src/features/kubernetes/KubernetesConfigTable.tsxfrontend-modern/src/features/kubernetes/KubernetesPolicyTable.tsxfrontend-modern/src/features/kubernetes/KubernetesAutoscalingTable.tsxfrontend-modern/src/features/kubernetes/KubernetesEventsTable.tsxfrontend-modern/src/features/docker/DockerAlertsTable.tsxfrontend-modern/src/features/docker/DockerServicesTable.tsxfrontend-modern/src/features/docker/DockerStorageUsageTable.tsxfrontend-modern/src/features/actions/ActionDecisionPacket.tsxfrontend-modern/src/features/actions/ActionReviewDialog.tsxfrontend-modern/src/features/actions/actionPresentation.ts118a.frontend-modern/src/features/actions/actionRouting.tsfrontend-modern/src/pages/Actions.tsxfrontend-modern/src/routing/navigation.tsfrontend-modern/src/routing/routePreload.tsfrontend-modern/src/features/kubernetes/KubernetesAlertsTable.tsxfrontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsxfrontend-modern/src/features/proxmox/ProxmoxCephTable.tsxfrontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsx127a.frontend-modern/src/features/proxmox/ProxmoxMailGatewayDrawer.tsxfrontend-modern/src/features/proxmox/ProxmoxMailGatewayTable.tsxfrontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsxfrontend-modern/src/features/proxmox/ProxmoxReplicationTable.tsx122a.frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts122b.frontend-modern/src/features/proxmox/proxmoxPageModel.tsfrontend-modern/src/features/truenas/TrueNASAlertsTable.tsxfrontend-modern/src/features/truenas/TrueNASAppsTable.tsxfrontend-modern/src/features/truenas/TrueNASNetworkSharesTable.tsxfrontend-modern/src/features/truenas/TrueNASProtectionTable.tsxfrontend-modern/src/features/truenas/TrueNASServicesTable.tsxfrontend-modern/src/features/truenas/TrueNASStorageTopologyTable.tsxfrontend-modern/src/features/truenas/TrueNASSystemsTable.tsxfrontend-modern/src/features/truenas/TrueNASVirtualMachinesTable.tsxfrontend-modern/src/features/vmware/VsphereActivityTable.tsxfrontend-modern/src/features/vmware/VsphereAlertsTable.tsxfrontend-modern/src/features/vmware/VsphereDatastoresTable.tsxfrontend-modern/src/features/vmware/VsphereNetworksTable.tsxfrontend-modern/src/features/truenas/TrueNASPageSurface.tsxfrontend-modern/src/features/vmware/VmwarePageSurface.tsx
Shared Boundaries
REST facets and container table projection
The unified-resource REST mapper carries PMG metadata, per-source status,
server action-readiness refusals and technology at the same top-level paths
used by canonical websocket rows. Existing platformData compatibility paths
remain; transport order must not decide whether mail counters or lifecycle
refusal explanations are present. A replaced REST snapshot clears removed
facets instead of retaining old counters or refusal reasons. Mapping does not
invent capabilities or bypass planning, review, server authorisation or execution.
useUnifiedResources.test.ts checks actual lifecycle refusal consumers for stale,
failed and server-denied observations alongside a no-invented-grant control.
The Docker phone container projection keeps identity, state when applicable,
CPU, memory and update; restart counts remain in the existing detail expansion
and return at mobile width. Images retain image, size and update verdict on
phones; host and consumers stay reachable in detail. The update verdict reads
in full at every width: the Update check column keeps the ~122px its longest
badge ("Update available", "Managed by Pulse") needs with cell padding, through
a 23 percent tablet-band width taken from Size and a 19 percent md width taken
from Host, Used by and Size. An equal band share and the old 16 percent md width cut
the badge off between 600 and 800px. The container Updates column likewise keeps
the 74px update states (Update, Current, Pinned, Failed) whole in every layout
mode and optional-column set at the mode's narrowest table; the 100px states
(Check failed, Updating..., Completed) fit in most layouts but can still clip at
a layout's narrow end when several optional columns show. Its room comes only
from the CPU bar, which never shows a sublabel, and the collapsed actions menu,
so every other column, including the memory bar's used/total sublabel, keeps
its width. That menu's 28px button overhangs the row by 2px each way, so a
container row is 33px at desktop like every other platform table rather than
the 37px the button had set. Hidden header/body columns
are symmetric. Swarm rollout tokens render as words with raw state retained in
the title; task starts use the shared relative-time primitive with their exact
timestamp retained. Native table/model/guardrail tests and the production
browser-tests/proxmox-docker-rows.cjs exercise these surfaces without executing
a container action or claiming native appliance or release acceptance.
Image references (the Images name, the Containers Image column and the Services
Image column) render through DockerImageReferenceText, which splits before
the repository name (splitDockerImageReference), because references that
share a registry and namespace differ only at the end: a narrow cell truncates
the head and keeps name:tag (ghcr.io/pul…backup-coordinator:2026.04), with
the full reference on the title. End truncation left rows that all read
ghcr.io/pulse-demo…. A selection inside one reference copies without the
line break the two flex items would add. Sorting and the stored value are
unchanged.
PBS host history correlation
PBS presentation correlation accepts standalone agents and VM/system-container resources with an agent facet. Preserve unique identity matching and canonical metricsTarget type and ID. Guests without telemetry and mixed ambiguous agent/guest matches must not replace the PBS target.
When the registry uniquely corroborates a PBS connection to a host agent by PBS-reported node name, configured endpoint hostname or reported interface IP, the PBS service may expose that source-native agent ID as pbs.linkedAgentId. The user-editable connection name alone is not host identity: it must not attach an unrelated Agent or preempt a corroborated VM-IP/Agent link. This is a presentation link, not a replacement for the PBS service's canonical ID or metrics target. Token-auth connections may lack nodeName; consumers must use the explicit link in preference to display-name matching and must not infer one from an IP or name themselves. PVE-only nodes without an actual Agent facet are not host-history candidates, even if their name matches the PBS connection. A changed link invalidates any remembered correlation to an old host.
Direct corroboration also requires a source-native Agent ID and non-zero PBS/Agent observations within five minutes. A current PBS endpoint must not keep a stale Agent's link or disk membership when the address is reused. Interface evidence uses the shared provider-link address filter: loopback, link-local, non-unicast and recognisable Docker-local interfaces cannot prove machine identity; ordinary private management interfaces, custom management bridges and explicit global-unicast report-IP hints remain eligible. URL hostname extraction preserves bracketed IPv6 literals instead of truncating at their first colon. TestPBSDirectHostLinkRejectsUnsafeObservations, TestPBSDirectHostLinkPreservesManagementEvidence and TestPBSDirectHostLinkWithdrawsAndReplacesStaleAgent pin these boundaries. TestPBSHostHistoryThreeServerTopology proves source-native host targets and Agent disk/network/I/O telemetry remain distinct for two PVE guests and one independently IP-corroborated non-PVE PBS among nine Agents; it is synthetic, not the reporter's installed VirtualBox evidence.
For a PBS inside a PVE VM whose in-guest Agent omits interface IPs, the registry may also corroborate a unique Agent-to-VM state link with a unique running VM reporting the PBS endpoint's exact IP. All three observations must be within five minutes, and reused/non-unique IPs, stopped guests or competing Agent links decline to associate. This is an alternate backend evidence chain, not frontend hostname inference; it cannot identify a VirtualBox guest without equivalent observed topology.
A single agent surfaced as both a VM/system-container guest and a standalone agent row is one identity, not an ambiguous pair. Collapse candidates that share an agent identity before deciding, and prefer the guest's canonical metricsTarget because it names the persisted host series; the PBS service target names the service key and now records only PBS API node-status CPU/memory history, not host-agent disk, network, or I/O. Only distinct agent identities, or candidates whose identity cannot be proven equal, decline to choose. Never use input order or a fallback that discards the PBS row id.
A realtime refresh can briefly omit the correlated host row while the PBS server row remains. Retain the last resolved correlation per PBS server across that omission rather than substituting the PBS service target, so the drawer's identity rows and history target stay stable. Reuse the remembered host only while it is still fresh relative to the server and drop it once stale, so a removed or replaced host is not advertised indefinitely; a present but ambiguous host still declines.
Verification: ProxmoxBackupServersTable.drawer.test.tsx covers standalone and merged guest targets, missing disks, duplicate guest/host representations of one agent, genuinely ambiguous identities, and retaining the resolved host target across a transient host-row omission; ProxmoxBackupServersTable.test.ts covers retention, staleness and pruning; ProxmoxPageSurface.contract.test.tsx covers hydration and deduplication.
Platform estate orientation consumes the same canonical resource projection as
the platform's tables. Pages must not issue a second summary fetch or create a
parallel metric-card projection. Unified resources owns identity, type,
platform membership, and status; frontend primitives owns how the unfiltered
workload inventory becomes option counts in the shared filter controls. The
storage/recovery-owned Proxmox surface additionally passes its already-loaded
resource set through platformEstateOverviewModel.ts for cluster and
standalone-node topology in the existing Nodes table header.
Kubernetes workload presentation is API-native, not generic inventory. Pods,
Deployments, controllers, and autoscalers render under the /kubernetes/workloads
workflow tab; legacy object routes such as /kubernetes/pods,
/kubernetes/deployments, /kubernetes/controllers, and
/kubernetes/autoscaling are compatibility aliases for that workflow. Pods
render through frontend-modern/src/features/kubernetes/KubernetesPodsTable.tsx
with Pod phase, container readiness, restart, owner, node, image, and age fields
from the Kubernetes API projection. Each Kubernetes row's status words read in
its dot's colour through getPlatformStatusTextToneClass: a Pod's Status
("CrashLoopBackOff" red, "Pending" amber, Running plain), a Deployment's Ready
count while replicas are short, a controller's Exceptions. The Pods Status
column takes 12 percent so a failure reason such as CrashLoopBackOff reads
whole, and a phone, which hides that column, puts the same words on the Pod
name's line. The TrueNAS, vSphere and Docker container tables follow the same
rule: a TrueNAS app, which has no State column, gives its state the name's
line at every width ("Crashed" amber); a share's State ("Disabled" red,
"Attention" amber) and a vSphere activity's State ("Error" red) take the dot's
tone; and where a phone hides a State column (shares, services, VMs, vSphere
activity, Docker containers) the state, with any note such as "should be
running", joins the name on its line. Rows stay one line tall: only a state
that needs attention (red or amber, through isPlatformAttentionVariant)
shows its words, and name and words shrink together to ellipses only when
the cell runs out of room;
healthy and stopped states read in the dot alone and stay available to
screen readers (getPlatformInlineStateClass). Stacking the state under the
name put two lines of text in every such phone row. StatefulSet, DaemonSet, Job, and CronJob rows
render through
frontend-modern/src/features/kubernetes/KubernetesControllersTable.tsx and must
preserve the Kubernetes API status semantics for desired replica/node/job
targets, current or active counts, ready/succeeded counts, availability,
misscheduled/unavailable/failed/suspended exceptions, service names, schedules,
and controller timing fields instead of falling back to infrastructure columns.
Deployment rows render through
frontend-modern/src/features/kubernetes/KubernetesDeploymentsTable.tsx with
Deployment status replica counts, status.observedGeneration, and metadata
creation age carried by the canonical Kubernetes resource facet rather than
page-local derivation or generic host columns. HorizontalPodAutoscaler rows in
the same workflow preserve scale target, min/max replica bounds, current and
desired replicas, and metric source types instead of routing HPA rows through the
generic controller/event inventory table.
Container runtime navigation is a unified-resource consumer boundary: the
/docker route is the Docker / Podman runtime lens, not an exclusive owning
platform. Overview is the primary Docker / Podman landing surface and carries
runtime host rows plus primary app-container workload rows so small and
medium estates preserve the proven Pulse host-then-workloads interaction. The
legacy /docker/containers route is a compatibility alias for that Overview
surface, not a separate visible tab. Supporting subtabs such as Images,
Storage, Networks, and Swarm may be shown only from canonical resource
evidence, and inactive standalone Swarm metadata must not be interpreted as
host-role or service-surface proof. The unified-resource adapter is the backend
fail-closed layer for that rule, so persisted or older-agent inactive Swarm
payloads cannot reintroduce false Swarm capability surfaces.
Docker container grouping is a persistent presentation preference rather than
a frequently changed resource filter. Multi-host Overview therefore exposes
Grouped versus List inside the frontend-primitives-owned shared View
preferences popover, matching the Proxmox workload surface, and must not leave
that segmented control permanently inline beside Status, Add filter, and Saved.
Docker supplies only the layout preference content to PlatformTableToolbar;
the shared toolbar owns the View trigger and popover so this consumer cannot
drift back to a page-local presentation control. Single-host inventory has no
alternative grouping layout, so Docker must omit viewOptions entirely in
that state rather than exposing a View trigger whose popover has no choices.
The empty state for this route must preserve that runtime-lens contract:
standalone Docker / Podman hosts use a local runtime agent, while Docker inside
Proxmox LXCs is represented as the explicitly opted-in Proxmox host-side guest
Docker inventory path rather than a requirement to install an agent in every
guest.
Platform Overview tabs are rollup boundaries, not duplicate inventory dumps.
Docker / Podman Overview owns runtime host rows and primary container workload
rows; image, storage, network, and Swarm object rows belong in their workflow
tabs. Kubernetes Overview owns cluster/control-plane rollup rows followed by
the primary native workload stack: Deployments, Pods, workload controllers,
and autoscaling rows. That deliberate cluster-to-workload composition mirrors
the Docker host-to-container Overview and shares the exact same URL-backed
cluster, namespace, search, and status state as the Workloads workflow; it must
not fork a second projection or filter model. Routine pending or
under-replicated workload attention stays attached to that shared workload
toolbar as a compact count and review action; page-wide Kubernetes attention
is reserved for node availability or critical health signals. Zero-valued
attention facets must not occupy the summary. Both lead the Overview, above the
cluster rows: active health signals through the shared Kubernetes alerts table
without its toolbar, then node availability as the canonical nodes table
limited to nodes that are not Ready, cordoned or degraded (titled "Nodes needing
attention"), each rendered only while it has rows. The full node inventory stays
on the Nodes tab. The nodes table names a node's state in a desktop Status
column, as kubectl does, and on phones through a phone-only screen-reader
label instead of a duplicate column. The remaining node inventory and the
service, storage, configuration, policy, and event object rows remain in their
workflow tabs.
Any other future Overview that repeats a detailed table must retire the owning
workflow, reduce the Overview content to aggregate signal, or establish an
equally explicit shared-state contract.
Cross-platform handoffs into the Docker / Podman Overview must preserve runtime
scope when the source surface knows it. A Proxmox LXC drawer that links to the
Docker runtime lens must carry the unambiguous Docker host facet as route state,
and Docker Overview must apply that host scope to both the runtime host summary
and the primary container table so the handoff lands on the same runtime the
operator just inspected.
Platform native tables are unified-resource consumers even when their visual
table frame is frontend-primitives-owned. Docker / Podman, Kubernetes, Proxmox,
Standalone, TrueNAS, and vSphere platform tables own source-specific row fields,
filter semantics, drawer handoffs, and resource projections, while
PlatformTableShell owns the shared table card, header row, and body frame.
The TrueNAS Storage consumer preserves the canonical topology distinction in
those filter semantics: its volumes scope contains pools and datasets, while
its disks scope contains physical-disk resources only. The scope is applied
before text and status filters so metadata from an excluded disk cannot retain
its pool or dataset ancestor. Physical-disk presentation may prioritize the
canonical SMART health, temperature, and endurance evidence; absent wearout or
percentage-used telemetry remains unknown rather than being rendered as zero
remaining life. Storage health is exception-first: getTrueNASStorageIssue
returns nothing for healthy pools, datasets, and disks, so their Health cell
stays empty and the status dot alone says healthy. A non-healthy row carries
the reasons TrueNAS gave, in order: native TrueNAS alert text on that
resource, storage and physical-disk risk summaries, then the dataset state tag
(state:locked, state:unmounted, state:readonly, which is the only place
the provider says why a dataset is impaired). Without any of those it falls
back to the pool state, the disk health value, or an impaired TrueNAS source.
The first reason renders in the desktop Health column on the row's single line,
coloured by bucket, with a count for the rest and the full list in the title
and screen-reader text. Phones keep the status dot and reach the reason through
the row drawer. Health sorts by severity rank, not label text.
Disk risk carries no heat, so the table judges it itself. A disk whose current
reading has reached its type's alert disk temperature trigger is an Attention
row with the reason "Disk temperature is 57°C, at or above its 55°C alert
threshold.". The trigger comes from the alerts store's
getDiskTemperatureThresholds, which the table passes to the row build,
filter, counts, sort and issue. isPhysicalDiskRunningHot in
features/storageBackups/diskTemperaturePresentation.ts makes the same call
for the Physical Disks verdict. The heat reason follows any native TrueNAS
alert text, and a hot disk's status dot turns warning though its source state
stays online, because phones show only the dot.
truenasPageModel.test.ts and TrueNASStorageTopologyTable.test.tsx pin it.
The Temp column reads the same collection state through
getPhysicalDiskTemperaturePresentation. A disk temperature that is not
current, such as a host agent's last reading kept on a merged disk row after
the agent stopped reporting, renders as last known: muted, with its reason as
the title and screen-reader "last known" text. The Temp sort ranks it as no
reading, and the tree sort orders each sibling group, so a retained value
never leads its group hottest first.
The vSphere Datastores and Networks tables follow the same exception-first
Health column. getVmwareDatastoreIssue and getVmwareNetworkIssue return
nothing for a green row; otherwise the reasons are, in order, an impaired
vCenter source, a datastore's inaccessible or maintenance state, the
resource's incident summaries worst first, and, only when no incident explains
the colour, vCenter's overall status or its active alarm count. Inaccessible,
offline, red, or critical rows take the red tone. VMware incident summaries say
only what vCenter flagged, the alarm's own name or vCenter health is <colour>, without the managed object ID or alarm colour: every surface that
shows them (alert cards, notifications, the Overview and Health signal tables,
the drawer, Patrol titles) already names the resource and its severity.
That shell also owns responsive width composition. Source tables may declare
desktop breakpoint floors, but the phone branch must fit its selected columns
inside the available container without a horizontal rail. Each unified-resource
consumer selects the three to five high-value source fields that answer
identity, condition, capacity or activity at a glance, fixes identity at 30
percent of the width, and uses shared compact-label and phone width classes so
the remaining tracks stay readable. A sixth field is permitted only when each
surviving value remains readable in the rendered phone container. Status must
appear once: when the identity indicator already communicates the same state or
severity, the duplicate text/badge column is desktop-only and the expanded row
retains its full value. Consumers apply platform-table-phone-hidden to both
the header and body cell for normal-phone demotions; the shared container rule
owns that symmetric visibility. No global reveal rule may override those
source-specific priorities. Below 360 pixels of content width, consumers use
platform-table-narrow-hidden for any additional lowest-value demotion while
the shared shell promotes identity to 40 percent. Provider tables must keep
summary rows single-line and may
truncate a value only when the row exposes its complete source value through a
touch- and keyboard-operable inline detail disclosure. The frontend-primitives
owner fixes that summary rhythm at 32 pixels for every platform-table path;
provider consumers must not add stacked subtitles or local row-height
exceptions. Lower-priority provider metadata belongs in another operational
column, a supplemental tooltip, or the inline detail drawer.
Future platform tables must keep that split: row data and platform semantics
stay in the unified-resource consumer, and the repeated table shell stays in the
shared frontend primitive.
Platform search completion follows the same ownership split. Unified-resource
consumers must project canonical resource identity, display name, type, scope,
status, and safe aliases through
frontend-modern/src/features/platformPage/platformSearchSuggestions.ts and
pass that projection to the shared platform toolbar. They must not expose raw
platformData, secret payloads, or arbitrary metadata as completion
candidates. The frontend primitive owns ranking, common-prefix completion,
recognized abbreviated terms, removable pills, and inclusive multi-term query
serialization; each platform consumer remains responsible for applying that
query to the same canonical resource collection its table renders.
The Proxmox overview applies that same rule when guest search narrows its node
inventory: operator-visible guest names, VMIDs, node identities, status, and
provider scope may retain a parent node, but opaque unified-resource id
hashes must not create node matches that the normalized workload table cannot
show.
Large platform inventories may bound their initial row projection through the
shared platform-table preview primitive so the next canonical surface remains
in the initial reading flow. Proxmox node consumers retain the page model's
canonical ordering, render up to twelve rows on larger layouts and six rows on
phone layouts by default, and expose all rows only through the reversible
shared continuation footer. Estates at or below the applicable threshold
remain fully visible and must not gain an unnecessary expansion affordance.
The preview must slice the already-sorted unified-resource collection; it must
not fetch, re-rank, omit, or derive a second node truth.
Alert decoration on those platform rows consumes the canonical active-alert
read model and the detector-enabled accessor. External notification activation
is not a resource-health field and must never suppress row alerts, change
resource filtering, or create a parallel platform-local alert truth.
Metric severity coloring on those platform rows is alert-threshold-backed:
platform tables resolve display thresholds through the alerts activation
store using the platform's runtime scope (agent for Docker hosts, docker for
containers, node for Proxmox nodes, kubernetes / truenas / vmware for their
platform rows) and the resource's override identity candidates (host,
docker-container, or unified-platform candidate chains) rather than
platform-local threshold constants, so row bars agree with the alert runtime
about when a resource is in a warning or critical band.
The standalone Machines monitor keeps resource-specific health on the canonical
table row and resource detail surface rather than duplicating row warnings in a
page-wide posture banner. Its row indicator must use the same canonical resource
status and lastSeen fields so an old agent cannot stay visually green.
The Availability monitor may add one compact status summary immediately above
its canonical table. That summary must be derived from the same already-loaded
unified-resource slice, keep failed or degraded checks ahead of healthy checks,
and route management back to the canonical availability settings path. It must
not introduce a page-local fetch, generic Home dashboard, decorative chart,
shadow health model, or proof strip detached from the table it summarizes.
Availability timestamps must preserve absence as absence. Monitoring and mock
adapters must project zero LastChecked or LastSuccess values as nil
canonical facet pointers so REST and WebSocket consumers render Not checked
or Never, never a year-one timestamp expressed as hundreds of thousands of
days ago.
Shared text-cell fallback behavior follows the same boundary:
unified-resource consumers own which source field is displayed, but platform
tables must use the frontend-primitives-owned formatPlatformTableTextValue
helper for trimmed-string empty-cell rendering instead of recreating local
textValue helpers or inline asTrimmedString(...) || '—' fallbacks.
Simple title-case state/status label fallback follows that boundary too:
unified-resource consumers own which TrueNAS state or status value is shown,
but TrueNAS platform tables must use formatPlatformTableTitleCaseValue
instead of recreating local titleCase helpers.
Compact list summaries follow the same boundary: unified-resource consumers
own which source values belong in host, VM, access, client, security, label,
port, selector, policy type, or quota cells, while platform tables must use
summarizePlatformTableValues for trimming, empty-marker labels, +N overflow
labels, full title text, and normalized value lists instead of recreating local
compactList or summarizeValues helpers.
Platform table uptime labels follow the same boundary: unified-resource
consumers own which uptime field is displayed and whether the dense table
needs compact or full precision, but platform tables and platform-owned
drawers, including Standalone machines, Proxmox nodes and backup servers,
Proxmox Mail Gateway node rows, and vSphere ESXi hosts, must use
formatPlatformTableUptimeValue instead of recreating local days/hours/minutes
formatUptime helpers or importing the generic formatter in table files.
Platform byte-size table cells follow that boundary too: unified-resource
consumers own whether a capacity, memory, disk, requested-size, datastore,
pool, or backup-artifact size field is the right source-specific value, while
dense Docker / Podman, Kubernetes, Proxmox, and TrueNAS platform table cells
must use formatPlatformTableBytesValue for positive byte formatting and
unknown / non-positive empty-cell markers instead of carrying table-local
formatBytes wrappers or direct generic byte-formatter imports.
Compact timestamp table cells follow the same boundary: unified-resource
consumers own whether completedAt, startedAt, occurredAt, or observedAt
is the right source-specific value for the row, while dense platform table
rendering must use PlatformTableDateTimeValue /
formatPlatformTableDateTimeValue for parsing, empty markers, compact Intl
formatting, minimum-year filtering when platform adapters emit placeholder
dates, tabular styling, and canonical numeric-value alignment.
Relative timestamp-age cells keep the same split: unified-resource consumers
own whether created, observed, sync, agent lastSeen, or availability
lastChecked time is the meaningful source-specific freshness field, while
dense platform table rendering must use PlatformTableRelativeTimeValue /
formatPlatformTableRelativeTimeValue for relative labels, compact defaults,
invalid/empty markers, and tabular styling instead of importing
formatRelativeTime or declaring local timestamp-age helpers in table files.
Kubernetes controller Detail timestamps (Job completion and start, CronJob
last success and last schedule) are relative-age values under that rule:
KubernetesControllersTable renders them as a labelled age through
formatPlatformTableRelativeTimeValue with the absolute
formatPlatformTableDateTimeValue time as hover title, never as the raw RFC
3339 string the agent reports, and the Detail column carries enough weight
for those labelled ages to fit whole on a full-width desktop table.
The controller row expansion carries those timestamps in full: the
always-visible summary tables of the resource drawer render a Kubernetes
workload-controller section (buildKubernetesControllerSection, in the same
slot as the Docker container section) with the Job start and completion time,
the CronJob schedule and last run and last success time, each as the absolute
formatPlatformTableDateTimeValue time followed by its age in parentheses and
allowed to wrap in a phone-width detail cell, plus the target,
count, service, and scope fields the narrower layouts drop, so a phone or a
half-width pane reaches them in one tap rather than through a collapsed
platform-details disclosure. The KubernetesControllersTable phone projection
keeps controller, kind, ready, and issues and demotes Target with
platform-table-phone-hidden, so kind labels such as DaemonSet and
StatefulSet fit whole instead of clipping in a 15 percent track.
Every relative age a unified-resource consumer derives from a timestamp reads
the frontend-primitives shared relative-time clock (useRelativeTimeNow)
rather than Date.now() at render, because rows and open drawers stay mounted
while a timestamp that has stopped changing must keep aging: the Kubernetes
controller Detail ages and the drawer's controller section, the drawer's Docker
container Created, Started and Finished rows, its Last seen, and its Docker
update-check and Mail Gateway updated ages, the Machines identity subtitle
(seen ... while the Last seen column is hidden) and stale-agent Last report
tooltip, and the Proxmox replication Last sync and Next sync in the row, phone
projection and disclosure. A silent agent or a stalled pvesr scheduler is the
case whose age matters most, so a replication Next sync turns overdue on the
clock without new data. Replication jobs bypass the unified-resource stream,
so ProxmoxPageSurface polls them in the background every 30 seconds,
skipping a tick while the previous poll's read is still in flight unless that
read has stalled past STALLED_QUERY_READ_MS; moving ages over a snapshot read
once at mount would age a job that keeps syncing and count it overdue.
fetchReplicationJobs takes the query's abort signal and passes it to
apiFetch, so a replaced or unmounted replication read stops instead of
running on in the background, and it throws apiErrorFromResponse errors that
keep the HTTP status, so a 401 or 403 withdraws the jobs as an access failure.
The same read validates the complete replication snapshot through
proxmoxReplicationInventory.ts: an explicit array and matching nonnegative
integer meta.total, typed consumed job fields, boolean enabled, nonempty
connection/native/projected identity and no repeated projected ID or native job
within one connection. A malformed envelope, row, count or JSON document fails
the whole read with a fixed safe format error; it is never a successful empty
inventory, a partially filtered list or a truthy health flag. Additional fields
and unfamiliar status strings remain readable. Native job IDs may repeat across
independent connections. The parser changes no status or timestamp semantics.
Replication timestamp presentation separately requires a calendar-valid,
explicit-zone RFC3339 string or a finite, positive, Date-representable numeric
instant. It retains existing Unix-second companion precedence and numeric
seconds/milliseconds compatibility; an invalid nonzero companion is unknown,
not permission to select a more reassuring fallback. A future last sync is
unknown rather than a just-now success. Next sync may legitimately be future
and still turns overdue on the shared clock. Missing/zero values stay distinct
from malformed chronology: the drawer says no last sync was reported, never
that a job has not run. Unknown times remain visible in cells and Schedule
details without removing the job or altering the provider-owned status. Phone
cells use a compact question mark with a full accessible name/title and the
same full drawer explanation. Normal-suite ProxmoxReplicationTable.test.tsx
covers supported formats, calendar/timezone/bounds failures, precedence, future
last-sync rejection and parsed-inventory cell/drawer consumption; its existing
clock-aging controls remain. Desktop/narrow consuming browser proof inspects
these states and ordinary read/retry with pixels. This is truthful chronology,
not original Pending-job, scheduler, guest-thaw or installed recovery.
First-read failure keeps a direct Replication link on the existing error/Refresh;
a failed poll keeps prior presence for navigation but the table displays the
error, not old job health. Only a validated full retry replaces the observation.
Kubernetes name columns hold the chevron, status dot and name inside one
track, so their md widths leave the name room for a typical node or service
name at a 768px viewport: Nodes 20 percent (with Capacity at 16 so its
cores, memory and pods label fits at 1100px and wider, and Status at 10.5,
taken from CPU at 7.5 so the Degraded, NotReady and Unknown badges fit from
768px and Unschedulable from about 900px while the memory sublabel keeps its
room; the tablet band sizes each Nodes header and Degraded at a 34rem table),
Events 24, and
Services, Configuration, Storage, Controllers and Policy 22. Generated names
render through KubernetesNameText, which splits off the trailing segment
(splitKubernetesNameTail) so a narrow cell truncates the head and keeps the
part that tells siblings apart (checkout-api-6d…-x7k2p, prod…-03), with the
full name on the title. Pod names, the Pods table's Node column and controller
names use it. Deployment names are chosen by people, so they keep plain end
truncation. Head and tail are flex items, so a browser copy put a line break
between them and a pasted kubectl logs argument broke; a copy whose selection
sits inside one name now writes the name without the break, and wider
selections such as a whole row copy as the browser builds them.
With one cluster in view, every Kubernetes scope cell repeated the cluster
name and crowded out the namespace that differs between rows, so the tables
show the namespace alone (Cluster for cluster-scoped objects) through
kubernetesScopeDisplayLabel and keep the full cluster/namespace scope on the
title; several clusters keep the combined label. The Deployments table keeps
Desired for wide tables only, because Ready already shows ready over desired,
and sizes the tablet band for a long name beside short counts. The
Configuration tables size their band and md widths for ConfigMap, Secret and
RBAC names first, then the namespace scope, then the short Lifecycle and Data
shape values, then Kind. Kubernetes summary cells truncate through a block span
that fills the cell, so a long value ends in an ellipsis inside its own column
on the row's text line; a fixed-width inline-block cap spilled past narrow
cells without an ellipsis and sat above the row baseline. Docker image, network,
volume, service, task, secret and config cells, Proxmox backup coverage,
restore-evidence and recoverable cells, the Mail Gateway drawer's top domains,
and vSphere host vCenter cells follow the same rule. The Docker service Update
cell truncates inside its column at every width instead of at a 10rem cap or
wrapping onto a second phone line; the full rollout words stay in its title.
Duration and interval cells keep the same split: unified-resource or
source-specific consumers own which elapsed duration, human fallback, or poll
interval field is meaningful, while dense platform table rendering must use
PlatformTableDurationValue / formatPlatformTableDurationValue for
seconds/minutes/hours labels, fallback text, invalid/empty markers, and
tabular styling instead of declaring local seconds/minutes helpers in table
files.
That boundary covers Proxmox replication last-sync duration cells and
Standalone availability-check poll interval cells, and future duration-like
platform table values must join the same shared primitive registry rule before
adding table-local formatting.
Responsive table layout keeps the same split: unified-resource and
source-specific table models own which columns are visible at each breakpoint
and the relative weights for those columns, while dense platform table
rendering must use getPlatformTableWeightedColumnWidthStyle for
visible-column percentage normalization, zero-width fallback, and stable
percentage formatting instead of declaring local width-percent helpers.
Workload, Proxmox host, Docker host, and Docker container consumers must enter the shared
narrow layout below a 360-pixel content width: identity receives 40 percent,
five high-value identity/health columns remain, and lower-priority type, ID,
temperature, restart, or availability context returns at the ordinary phone
stage instead of making the retained values unreadable.
ProxmoxReplicationTable must also compose the frontend-primitives-owned
getPlatformTableRowClass for its text-only job rows so its five-column phone
projection retains the shared platform scanning rhythm instead of collapsing
to the intrinsic text height. That phone projection keeps the
guest identity on one line and makes every row keyboard- and touch-operable so
the complete guest identity and job context are available through an explicit
detail disclosure rather than hover-only title text. Compact status, route,
last-sync, and next-sync values must remain fully visible in the scanning row.
The same disclosure stays available at every container width and leads with
the job's complete error text: the scanning row keeps the error on one
truncated line, and the narrower layouts drop the error, schedule, duration,
and failure columns, so the reason a job failed must never depend on the
column being present or wide enough. Replication search matches that error
text.
ProxmoxCephTable and ProxmoxMailGatewayTable size every visible column
through getPlatformTableWeightedColumnWidthStyle above their phone
projections. A fixed-layout table that sizes only its always-on columns leaves
the optional ones to split the remainder, which clips their headers and values
on a full-width desktop table. The Ceph row keeps the health message ahead of
the daemon tally as width shrinks, keeps one five-value phone projection
(cluster, health, OSDs, pools, capacity) whose values each fit whole, and
leaves quorum membership and the FSID to the cluster disclosure, where the
FSID stays searchable and is shown in full.
The Ceph table's shared health classification treats both native HEALTH_ERR
and the server-normalized ERR as critical. Row status, status-filter counts,
and the drawer header use that same classification, including when no manager
daemons are reported. Missing service rows must not turn explicit critical
provider health into a healthy table verdict.
The Mail Gateway row reflects its open alerts, not only the provider status:
a reachable gateway with an unacknowledged alert (mail queued past its age
threshold, a backlog) renders and filters as needing attention, colours the
number the alert is about (queue, deferred, quarantine, spam or virus) with
the alert message on hover and for screen readers, and its expansion leads
with the shared drawer attention section carrying the exact alert message. The
row stays single-line: an alert with no column of its own, such as offline,
rides on the status dot, a screen-reader summary, and the drawer. Alerts are matched across
the row's identity aliases, because they are keyed by the PMG instance id while
the row carries the unified id. Its phone projection is the five-track
instance, uptime, mail, queue and deferred set with a 40 percent identity, so
gateways that share a name prefix stay distinguishable; node count lives in the
expansion.
The Proxmox host table drops temperature from its phone projection
(container widths under 440px) so the node name, expansion toggle, and
status dot share the same five-column shape as the guest table beneath it,
and the identity cell takes a wider phone anchor than the shared default
because of that leading toggle. ProxmoxBackupServersTable,
ProxmoxCoverageTable, and ProxmoxRecoverableTable keep their phone
projections to values that fit whole: the server row keeps its status word
and used percentage and defers the backup count to the next width, backup
ages use a suffix-free compact form with the timestamp on hover, and the
recoverable row keeps its source and state badges while the repository
location moves to the row title. Header width classes must not compete with
the colgroup those tables size through the shared weighted helper.
The shared guest table's phone name cell carries the same leading toggle,
status dot, and backup badge, so it takes the same wider phone anchor. The
recoverable row's Details cell names the PVE archive format rather than the
volid, which repeats the storage, guest type, VMID, and timestamp the row
already shows in their own columns; the volid stays on hover and in search.
Optional numeric table cells follow the same split: unified-resource consumers
own which count or replica field is meaningful, whether the domain should
zero-default an absent scheduler/service/inventory count, whether a
domain-specific formatter is needed, and which current/total fields belong in a
grouped health ratio, while dense platform table cells must use
PlatformTableNumberValue for scalar count validation, tabular styling, and
unknown empty-cell markers, and PlatformTableCountRatioValue for
healthy/total or ready/total count-ratio skeletons. String-only table summaries
and titles use formatPlatformTableCountRatioValue for the same zero-default
and suffix behavior. Tables must not carry local
numberValue, numericValue, replicaCount, countCell, childCountCell,
diskCountLabel, or cell-level tabular-nums variants for grouped
child/share/service/storage counts, or local ready/total template strings for
endpoint summaries.
Locale-formatted integer count labels keep that same split:
unified-resource consumers own which domain count is meaningful and whether an
absent count should read as zero, while dense platform table and drawer
rendering must use formatPlatformTableIntegerValue, normally through
PlatformTableNumberValue, for rounded integer formatting, locale grouping,
and unknown empty-cell markers instead of local formatInteger,
formatLocaleCount, formatNumber, or direct toLocaleString() helpers.
Percent and temperature table cells follow the same split: unified-resource
consumers own which usage percentage or temperature source is meaningful for
the row, while dense platform table rendering must use
PlatformTablePercentValue, formatPlatformTablePercentValue, and
PlatformTableTemperatureValue for one-decimal percent formatting, ratio
normalization/clamping when the source metric requires it, positive Celsius
validation, tabular styling, and empty markers instead of local
formatPercent, formatPercentLabel, toFixed(1)%, formatTemperature, or
temperature label helpers.
Thermal pressure state is a separate host sensor facet, not a Celsius
temperature source. Unified-resource adapters must carry
agent.sensors.thermalState alongside temperatureCelsius; table consumers
may render that pressure as compact status text only when no numeric
temperature exists, and must not convert pressure into a Celsius metric or
history target.
Typed GPU host telemetry follows the same canonical sensor route.
HostSensorMeta.gpu may carry GPU id, name, temperature, utilization, and VRAM
readings through clone, merge, transport, and frontend decode paths, but those
readings remain descriptive host context. Standalone machine consumers may
present the maximum valid utilization as a sortable shared metric-bar column,
include per-device utilization, VRAM, and temperature in inspection text, and
add gpu, gpu_memory, and gpu_temperature series to the existing agent
drawer history target. Those projections must stay on the host resource;
consumers must not promote GPU sensors into separate hardware resources,
lifecycle state, workload identity, or GPU-specific history identities.
Host-agent wattage follows that same canonical sensor route.
HostSensorMeta.powerWatts may carry named power readings through clone,
merge, transport, and frontend decode paths, but those readings remain
descriptive host context. Unified-resource consumers must not promote power
sensors into separate hardware resources, lifecycle state, workload identity,
storage health, alert metrics, or history targets without a separate governed
metric contract.
The native lm-sensors inventory follows that same route.
HostSensorMeta.native carries each temperature and fan input's host-scoped
<chip>/<channel> source key (not a physical-device identity), chip, adapter,
channel, original label, kind, unit,
value and ok/invalid status through resourceFromHost, clone and the
read-state projection back to models.HostSensorSummary, with a private slice
and value pointers. It stays descriptive host context on the agent facet: a
sensor is not a separate resource, child alert target, operator-posture
target or history identity until a later governed contract defines its owner
resolution, Thresholds projection and migration.
TestResourceFromHostPreservesNativeSensorInventory and
TestCloneHostSensorMetaIsolatesNativeInventory cover the adapter and clone
isolation.
Metric bar fallbacks follow that split as well: unified-resource consumers own
which CPU or memory value is selected, plus any source-specific fallback reason
such as outdated standalone agent telemetry, while platform tables must use
PlatformTableMetricFallback and getPlatformTableFiniteMetric for CPU,
memory, disk, and capacity metric cells instead of recreating local fallback
markup or Number.isFinite wrappers.
Platform filter option semantics follow that split too: unified-resource
consumers own the source-specific status buckets and labels, while the repeated
FilterBar chip leading-dot presentation must use the frontend-primitives-owned
filterChipStatusDot helper instead of page-local span factories.
Platform resource status ranking follows the same split. Docker / Podman and
Kubernetes page models own their source-specific attention ordering, but any
rank table over shared StatusIndicatorVariant values must include the full
shared variant vocabulary, including informational states, instead of assuming
only success/warning/danger/muted status classes.
Platform table empty states use that same split. Unified-resource consumers own
the source-specific empty-state vocabulary, action choice, and evidence rule
that decides why a table is empty, but the table-card empty-state shell itself
must compose the frontend-primitives-owned PlatformTableEmptyState primitive
instead of importing EmptyState directly or wrapping it in a page-local card.
Platform loading and load-failure states follow the same boundary.
Unified-resource consumers such as ProxmoxReplicationTable own the API query,
resource-specific copy, retry callback, and evidence rule that decides which
state applies, but repeated loading rows and retry shells must compose the
frontend-primitives-owned PlatformTableLoadingState and PlatformErrorState
primitives instead of recreating page-local table-card status rows or local
Refresh-button error empty states.
The same split applies to inline detail row shells on platform, native-resource,
workload, and infrastructure tables. Unified-resource consumers own row
identity, source-specific drawer content, expansion state, and resource
semantics, but the repeated surface-alt table row, single-cell colspan wrapper,
detail padding, and row-click containment must compose the
frontend-primitives-owned InlineDetailTableRow primitive instead of
rebuilding a local TableRow / TableCell detail shell.
That same split applies to platform row-detail disclosure controls. Platform
tables own which row opens, which resource label is exposed, and which
source-specific detail payload or drawer is rendered, but the disclosure
affordance itself must compose
PlatformResourceDetailToggleButton from the frontend-primitives-owned
PlatformResourceDetailTableRow.tsx contract. When whole-row activation selects workload scope instead of opening details,
the shared toggle stays visible on phones and continues to own disclosure
semantics and event containment. Proxmox guest selection derives its node
scope through nodeFromResource and workloadNodeScopeId, including empty
nodes, rather than inferring identity from the visible guest collection.
Future platform tables must not
add page-local chevron buttons, bespoke aria-expanded handling, or local
event-propagation variants for row detail expansion.
Inline detail section content follows the same ownership split.
Unified-resource consumers own the source-specific section rows, labels,
resource identities, and severity/status semantics, but repeated section-row
compaction, table rendering, value-tone classes, and inline close-action chrome
must compose the frontend-primitives-owned DetailSectionTable,
InlineDetailPanel, and detailSectionModel.ts primitives instead of
recreating local DetailField grids or provider-named neutral detail tables.
Provider detail drawer models also own which byte, count, and integer fields
are meaningful, but the formatting and pluralization of those repeated numeric
detail values must use the shared detailSectionModel.ts helpers rather than
provider-local byte scaling, integer, or count helpers.
The same split applies to VMware vSphere detail sections: unified-resource
VMware metadata owns the vCenter-specific row selection, but the section/row
shape and renderer must be the shared frontend-primitives detail-section
contract instead of a VMware-local row model or custom vSphere detail shell.
Resource tags carry two distinct contracts that must not be collapsed into
one another. The flat Resource.Tags string set is the searchable keyword
union: it is what resourceSearchMatch.ts, the ?tags= resources filter, and
saved report-schedule tag filters read, and an adapter may put provenance
keywords in it that repeat across every resource it emits — the vSphere
adapter does exactly that. VMware.Tags (VMwareTagData, cloned through
cloneVMwareData) is the narrower facet: operator-authored vCenter tags only,
each carrying the vCenter category alongside the name because tag names are
unique only inside their category, plus the flat category:name label so
consumers do not each re-derive it. Any surface that renders a per-row tag
list must read the facet, not the keyword union, and must treat a present-but-
empty facet as "this resource has no operator tags" rather than falling back
to the union. An adapter that needs provenance keywords in Resource.Tags
owes the same facet split rather than asking presentation to pattern-match
the union.
The split also applies to web-interface launch affordances. Unified-resource
tables own whether a row has a saved, inferred, or source-native web-interface
URL and how that URL is derived, but the visible launch affordance belongs on
an adjacent control through the shared WebInterfaceLink primitive. Resource
names remain inert identity text, while the separate accessible launch target
owns new-tab behavior and event containment. Proxmox host table columns are
governed by proxmoxHostTableModel.ts; that model must not reintroduce a
separate Web column, a linked row name, or a page-local launch implementation.
When every node shares one cluster and none is standalone, the model drops
the cluster column (it would repeat one value on every row) and
ProxmoxNodesTable names that cluster in the table header instead, visible
during search and independent of the inventory-count preference, so the
cluster identity is never lost. Its Trends sparklines read node history
through useWorkloadTableMetricHistory with series: 'nodes'; guest history
stays with the embedded workloads table below it, so the nodes table adds no
guest-history poll to the page. Workload status buckets read the canonical
health too: a running workload whose unified health names an open
warning_alert or critical_alert reason counts under Attention, while
backup_stale and other non-alert reasons do not.
The same presentation contract applies to Docker/Podman hosts and containers,
standalone agents, PBS/PMG instances, Kubernetes clusters/nodes/workloads, and
card or mobile variants. An absent URL is honestly absent, while an invalid or
unsafe saved value remains visible as a non-interactive warning.
Docker host URL metadata is keyed by the stable Docker.HostSourceID, with the
registered host resource id as a compatibility fallback when source identity
is unavailable. The Docker hosts table and drawer consume the same canonical
customUrl: launch activation must not toggle or navigate the row, and a
drawer save must update the current table projection immediately while the
backend metadata projection remains authoritative on refresh.
Persisted workload URLs must also use the same stable identity in the workload
and infrastructure drawers. Docker app containers use
app-container:<host>:name:<normalized-name>; Kubernetes pods, Deployments,
and Services use
k8s-workload:<cluster>:<kind>:<namespace>:<name>. Runtime container IDs,
pod UIDs, and generated registry IDs remain fallback migration, action,
discovery, or metrics coordinates and must not be the primary metadata write
key. Missing cluster/host, namespace, kind, or name scope must fail closed to
the legacy resource key rather than constructing a broadened stable key.
The Docker containers table's bulk web-link editor is a third writer of these
records. It keys every row through toDiscoveryConfig, the container drawer's
own metadata target, and lists only rows whose target is guest metadata, so
bulk and drawer saves for a container read and write the same
app-container:<host>:name:<normalized-name> record and the editor never
falls back to a runtime-ID key.
Product-originated resource references may arrive as registered unified
resource IDs, source-specific IDs, or canonical identity aliases. The
unified-resource registry owns resolving those references through
GetByReference, returning the registered resource ID for downstream store,
action, finding, and context-pack lookups. Resource drawer and workload drawer
Assistant handoffs may pass stable source IDs such as Proxmox
instance:node:vmid, but they must not expose generated registry IDs as the
browser-side contract or rebuild alias matching in frontend code.
Proxmox VM and system-container action/discovery ownership is derived from the
canonical parent node resource, not from guest-local heuristics. When the
registry or presentation coalescer merges a Proxmox-only node row with an
agent-backed node row, Proxmox children must be reparented to the displayed
agent-backed resource and their ProxmoxData.LinkedAgentID must inherit the
parent Pulse agent ID. That linked agent ID is the only source for Proxmox
workload discoveryTarget.agentId; node names and VMIDs alone are not enough
to authorize browser action targets.
Proxmox VM guest-agent outage projection is also a unified-resource boundary.
When monitoring marks a running VM's expected QEMU guest agent as unreachable,
the resource adapter must surface a Proxmox-authored availability_unreachable
resource-incident with source qemu-guest-agent; it must leave VM power
status online/warning rather than rewriting the VM to stopped/offline.
Source freshness is a separate unified-resource status input, not a fixed
global health timer. Snapshot rebuilds, resource seeding, supplemental record
overlays, and cloned read-state overlays must preserve the monitoring-provided
stale thresholds for Proxmox, PBS, and PMG sources so resources do not flap to
warning/degraded between successful configured poll cycles. A source merge
into an existing row judges metric freshness by the ingest's thresholds and
the stale pass's own threshold rule, so the merge's freshness gate never
calls a source current that the stale pass marks stale, or the reverse. The
gate decides only where no stronger rule does: a hypervisor-managed guest
keeps its platform CPU even while that source is stale.
The resources API's registry rebuild is resource seeding too, and the seed
carries the thresholds its own registry generation judged it by. The monitor
adapter records them per generation (MonitorAdapter.StaleThresholds):
thresholds set since a rebuild wait for the next one, and the read-state
overlays and live supplemental refreshes of a generation are judged by that
generation's thresholds, since a listing already marked stale cannot be
cleared by re-judging it. A monitor view lists the store's current
generation together with those thresholds
(GetAllWithMetricsTargetsAndStaleThresholds reads both from one registry
pointer); a view the monitor builds from mock fixtures or a bare state
snapshot was judged by the defaults and carries none. UnifiedResourceSnapshotWithStaleThresholds
(per tenant, UnifiedResourceSnapshotWithStaleThresholdsForTenant) hands the
view's listing, freshness marker and thresholds to the resources API, which
builds its registry with NewRegistryWithStaleThresholds: every ingest or
stale pass on that registry that passes no thresholds of its own uses them,
and a cached registry built with other thresholds is rebuilt even at the same
freshness marker. Presentation coalescing picks the source of a merged host
row's readings with the metric merge's own rule (metricSourceStale):
ListForPresentation passes the thresholds its registry was constructed
with, and the websocket broadcast passes its view's, so on mock and snapshot
views both follow the defaults and still agree. Before this the resources API judged by
the defaults everywhere, so a Proxmox node polled every two minutes read
stale, with warning status, in /api/resources ninety seconds after its poll
while the broadcast called it online, and both views showed a silent agent's
readings on a node whose agent keeps its own registry row. Patrol's scoped
runtime state still rebuilds registries with the defaults. Regression
coverage: TestRegistrySeededFromMonitorJudgesFreshnessByItsThresholds and
TestRegistryIngestThresholdsOverrideConstructionThresholds in
registry_merge_policy_test.go,
TestMonitorAdapterReportsTheThresholdsItsGenerationWasJudgedBy in
monitor_adapter_read_state_test.go,
TestUnifiedViewCarriesItsGenerationsStaleThresholds in
internal/monitoring/monitor_host_agents_test.go,
TestResourceAPIRebuildsWithTheSeedingMonitorStaleThresholds in
code_standards_test.go,
TestResourceListRebuildsWhenSeedStaleThresholdsChange in
internal/api/resourceapi/resources_test.go, and
TestContract_ResourceListJudgesFreshnessLikeTheMonitorBroadcast in
internal/api/contract_test.go.
Across platform/runtime pages, workflow tabs are evidence-gated from the
canonical model that owns their rows. Overview is the stable landing tab;
supporting tabs appear only when their native inventory or signal exists, and
legacy/direct object routes fall back to Overview when the requested workflow
has no rows for the current setup. Signals outside unified-resource inventory,
such as TrueNAS recovery protection points or vSphere activity timeline rows,
must be treated as explicit tab evidence rather than permanent navigation.
A vSphere event activity row reads as vCenter's own sentence. The VMware
client asks QueryEvents for each event's fullFormattedMessage explicitly,
since vCenter leaves it out when disableFullMessage is unset. The provider
titles the event change with that message and falls back to the event class
(HostConnectedEvent) only when vCenter sends none. The class stays in
vmwareEventType metadata, where activity search and the row drawer's Event
type row read it. Rows stored before that titling still carry the class as
their title, so the page model prefers an event's vmwareEventMessage when it
has one.
The vSphere hosts, health-signal and activity tables show a vCenter column only
when the page's vSphere inventory spans more than one vCenter connection.
isSingleVmwareVcenter decides that from the page's whole vSphere resource set
(on Overview, its hosts and VMs plus the datastores and networks its health
signals cover), never from the rows a search or filter leaves, so narrowing a
table does not drop the column. It counts connections by connection ID, and
matches a resource without one to a known connection by name or vCenter host,
so one vCenter is never counted twice. With
one connection the name would repeat on every row; each row drawer still names
it. The column reads the connection name, as the other vSphere tables do, with
the vCenter host on hover.
Primary platform navigation is also resource-evidence gated: runtime lenses such
as Docker / Podman must be admitted from explicit Docker source scopes, Docker
host or service resource types, or concrete runtime identity/inventory evidence
such as a runtime/version or a positive object count. Generic host metadata,
zero-count compatibility projections, and empty facets such as docker: {} on a
plain machine agent are not Docker inventory and must not create a transient or
empty Docker tab during hydration. Navigation admission and the corresponding
platform page model must consume the same evidence contract. A direct route to
an absent platform may show its setup action, but the primary navigation must
stay limited to platform pages that can render admitted inventory.
Kubernetes configuration and policy inventory are unified-resource consumer
boundaries: the /kubernetes/configuration workflow tab must render Namespace,
ConfigMap, Secret, ServiceAccount, Role, ClusterRole, RoleBinding,
ClusterRoleBinding, NetworkPolicy, PodDisruptionBudget, ResourceQuota, and
LimitRange rows through API-native config and policy tables. Legacy
/kubernetes/config and /kubernetes/policy routes resolve to that workflow
tab. Config rows preserve cluster/namespace scope, Namespace lifecycle phase,
ConfigMap/Secret immutable and type metadata, ServiceAccount
token/image-pull/secret references, RBAC summary counts (rule counts, role
kind / role name, subject count, subject Kinds, ClusterRole aggregation
labels), and metadata-only collection wording without rendering ConfigMap or
Secret payload values, individual RBAC subject names, or full PolicyRule
contents. Policy rows preserve API-specific policy types, ingress/egress rule
counts, disruption-budget health and allowed disruptions, quota hard/used
maps, and LimitRange item types instead of collapsing those resources into
generic detail text.
Kubernetes events inventory is a unified-resource consumer boundary: the
/kubernetes/events route must render Event rows through an event-native table
that preserves event type, reason, involved object, occurrence count, observed
time, and message instead of routing event rows through the generic controller
inventory table.
Docker / Podman runtime inventory is a unified-resource consumer boundary: the
container runtime page must render Engine container, image, volume, network,
Swarm node, task, secret, and config resources through API-object-native tables
that preserve the fields documented by the Docker Engine API instead of routing
those rows through a variant-switched generic inventory table. Swarm service
rows must preserve the service update status emitted by the Docker adapter, and
engine storage rows must stay host-scoped with table proof hooks so browser
proof can distinguish a populated disk-usage tab from an empty fixture.
Runtime container detail payloads must preserve the agent-reported lifecycle
timestamps, Podman pod/compose/auto-update/user-namespace metadata, and
cumulative block I/O totals on DockerData. They must also preserve nullable,
runtime-authored OOMKilled evidence without converting absent state or exit
code 137 into a positive classification; typed Docker views must return an
independent copy of that value. Frontend detail summaries and
Docker page search consume those backend-authored fields before falling back to
legacy labels.
DockerData.HealthcheckTargets is the canonical secret-free dependency hint
for container health checks. The adapter, clone, and typed Docker container
view must preserve independent copies, while consumers treat each hostname as
untrusted observational topology evidence rather than command, discovery, or
action authority. Raw health-check command text never belongs in the unified
resource contract.
Docker host duplicate-identity evidence is monitoring-authored and rides
DockerData.IdentityConflict unchanged: the adapter, resource clone, and
typed DockerHostView accessor must each hand out an independent copy so
concurrent snapshot replacement cannot alias the conflict's hostname and
machine-ID lists, and read-state reconstruction back to models.DockerHost
must preserve the field rather than dropping it. Consumers render the
conflict as a warning about cloned machines sharing /etc/machine-id; they
must not reinterpret it as staleness, or synthesize a second host row from
the flapping values.
Docker network rows must consume canonical runtime attachment relationships,
not page-local topology inference, when the unified-resource snapshot provides
them. Runtime container-to-network membership is represented as active
attached_to relationships from the app-container resource to the
docker-network resource, scoped to the reporting Docker host and discoverer,
with the same edge visible on both resources so network workflow tables and
resource drawers can explain the relationship from either endpoint. The
Docker Networks table may keep a host-scoped legacy docker.networks[]
fallback only for older snapshots that have not yet published the relationship
edge; that fallback must not match containers across Docker hosts. When a
single network has many attached containers, relationship consumers must keep
the attached container fields searchable and attention-filterable from the
network detail disclosure instead of forcing operators to inspect a full
container inventory table. Its Attention filter is the rows' verdict (the
mapDockerContainerStatus dot), while Running and Other are Docker's run
state, so an unhealthy or crash-looping container that still runs matches
Running and Attention both; the sections stay one per row, Attention first.
The network's State counts every Attention row ("3 need attention"). A
network has no health of its own (the adapter reports it online unless its
host is lost), so its row carries one dot, in the name cell: the network's
own status when that is worse, otherwise amber while anything attached needs
attention (degraded, not down; each container keeps its own severity in the
expansion), otherwise green. The State words take that tone without a second
dot, and the table's Healthy / Degraded / Offline chips filter by the same
verdict. Inside the expansion each attached-container card's state words read
in its own dot's colour ("Unhealthy" red, "12 restarts" amber), as the
containers table's State words do. A phone row leaves Subnets and Driver, header and cell together, to
the expansion's Network details.
frontend-modern/src/components/Infrastructure/resourceDetailMappers.tsshared withperformance-and-scalability: resource detail mappers are both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsxshared withstorage-recovery: Proxmox backup server table rows are both a storage/recovery backup-health surface and a unified-resource platform-table consumer boundary. The table is composed on the Proxmox Backups tab and must not be duplicated on Overview. The Backups placement keeps the canonical PBS row and drawer contract below while owning the domain-specific artifact request. Each row carries the canonical PBSResourceinto the shared platform resource-detail row. When coalescence has attached an agent facet, or when the route projection contains exactly one agent-bearing host or guest resource with a matching normalized host identity, that same drawer must expose host system, hardware, network, disks, thermals, history, and management context without recreating a PBS-local host model or returning the provider-owned resource to the standalone Machines list. Presentation-only correlation retains the canonical PBS row id and service facet, uses the canonical host/guest metrics target and telemetry facets, and fails closed when no host matches or more than one candidate matches. A registry-corroboratedpbs.linkedAgentIdselects the matching Agent facet even when token-auth PBS has no node name or a same-host PVE API node has a different label; a PVE-only row cannot supply host History. It must not alter registry identity or treat input order as correlation evidence.frontend-modern/src/features/proxmox/ProxmoxCoverageTable.tsxshared withstorage-recovery: Proxmox workload coverage rows are both a storage/recovery protection-posture surface and a unified-resource identity consumer boundary.frontend-modern/src/features/proxmox/ProxmoxRecoverableTable.tsxshared withstorage-recovery: Proxmox recoverable workload table rows are both a storage/recovery coverage surface and a unified-resource platform-table consumer boundary.frontend-modern/src/routing/routePreload.tsshared withfrontend-primitives,performance-and-scalability: the app-shell route preload registry is a canonical frontend shell boundary, an authenticated hot-path performance boundary, and the entry point for the unified-resource Actions workspace.frontend-modern/src/stores/websocket-global.tsshared withalerts,performance-and-scalability: the process-wide realtime store owns alert acknowledgement request lifetime, unified-resource state and fleet-scale connection and reconciliation. Alert request ownership follows this store's scope across route remounts. A scope switch ends request ownership and confirmation guards before accepting that scope's alerts. Same-scope reconnects retain them. The real store and global no-op lifetime tests pin this shared boundary throughwebsocket.alertAcknowledgementRequests.test.tsandwebsocket-global.noopLifetime.test.ts.frontend-modern/src/utils/platformSupportManifest.generated.tsshared withfrontend-primitives: the generated platform support projection is both a canonical unified-resource platform union boundary and a shared frontend source/platform vocabulary boundary. It must carry the manifestsurface_kinddistinction sodockerremains machine-readable as aruntime-lenswhile owning infrastructure sources remainplatformentries.frontend-modern/src/utils/resourceStateAdapters.tsshared withperformance-and-scalability: canonical resource compatibility and realtime row merging are both a unified-resource contract and a fleet-scale reconciliation hot path.frontend-modern/src/utils/sourcePlatforms.tsshared withfrontend-primitives: the source platform normalizer is both a canonical unified-resource source adapter boundary and a shared frontend source/platform vocabulary boundary. That shared vocabulary boundary owns the genericdockerplatform label: selectors, badges, and filter options render it as "Docker / Podman" so v5 Docker users can still find the runtime surface while Podman-backed rows are not mislabeled as Docker-only. That same boundary also ownsresolveResourcePlatformType(resource), the canonical reader for "what platform family does a unified resource belong to". Consumers that bucket unified resources by family (platform pages, filter resolvers, presentation pickers) must call it instead of inspectingresource.platformTypedirectly: the legacy backend resource projection leavesplatformTypeempty on several canonical resource types, and the helper falls back through the existing source-platform normalization so client-side grouping behaves identically against mock fixtures and live backends.Resource.PlatformScopesis the backend-owned platform page membership contract for unified resources. It is derived by unified resources throughRefreshPlatformScopes, transported throughuseUnifiedResources,useWorkloads, andsourcePlatforms.ts, and consumed by workload filters without page-local reinterpretation.platformTyperemains the primary display/source family;platformScopesis the overlap set used when a runtime workload belongs to both Docker and an owning infrastructure platform.frontend-modern/src/utils/workloads.tsshared withperformance-and-scalability: the stable workload metadata identity helper is both a unified-resource persistence boundary and a workloads hot-path lookup boundary.internal/api/resourceapi/resources.goshared withapi-contracts: the unified resource endpoint is both a backend payload contract surface and a unified-resource runtime boundary./api/resourcestype filters must accept URL-encoded comma-separated lists from browser query builders exactly like literal comma separators, so Docker / Podman runtime pages do not losedocker-hostinventory while requesting canonical resource types. App-container Discovery targets are part of that shared payload contract. Backend resources must expose frontend-facingresourceType=app-containerwith the reporting Docker/Podman agent id and the stable container name as the target resource id; browser Discovery clients are responsible for translating that frontend resource type to the Discovery API'sdockerroute type. Docker host resources must likewise prefer the reported agent id over host labels when building host-level Discovery targets, so detail drawers, websocket hydration, and API lookups use the same identity. The global resource timeline is also owned at this boundary.GET /api/resources/timelinemay expose provider-wideResourceChangerecords for platform pages before a single resource drawer is selected, but those records must still come from the canonical resource-change store and use the same filter parser as per-resource timelines. Relationship-aware expansion remains a per-resource timeline behavior; unscoped provider activity must not infer related resources in the frontend.
Extension Points
The global Product Trust projection is owned at
frontend-modern/src/features/actions/ with the stable /actions route shell
in frontend-modern/src/pages/Actions.tsx, presented to users as Actions.
The ledger is a peer top-level utility destination with its own selected state
and durable pending-approval count. Patrol remains the primary detection and
investigation home and may expose a compact handoff into this route, but it must
not duplicate ledger rows, action controls, or the Actions approval badge. The
route must consume durable
ActionAuditRecord.plan.policyDecision and result.actionResultV2 without
deriving policy authority or collapsing execution, verification, and recovery
into one outcome. Docker lifecycle controls may create a canonical plan and
open this shared review, but may not auto-approve, auto-execute, or use a
second-click local confirmation. Proof is owned by the colocated action tests,
the routing and app-shell tests, DockerNativeTables.test.tsx, and desktop
journeys 81 and 83.
Patrol findings may retain bounded action status and safety context, but exact
typed action ids hand off to the route-backed Actions review through
frontend-modern/src/features/actions/actionRouting.ts. The action query
parameter is the canonical shareable review identity: opening it fetches the
durable action directly, selects Open or History from the returned lifecycle
state, and clearing the dialog removes the query without discarding the inbox.
Open and History are routes (/actions and /actions/history) built and
parsed by the same module, so either view can be bookmarked or shared and
back/forward moves between them; a review switched to the other view by its
lifecycle state replaces rather than pushes history and keeps the action
query.
Patrol must not create a parallel decision or execution client around that
handoff.
The shared review may offer decision or execution controls only when the
current record carries a non-empty planHash; every mutation passes that exact
displayed identity through the canonical resource-action client. Legacy or
mixed-version records without it remain reviewable but require replanning and
cannot create a browser mutation.
- Add new resource types and identity fields in
internal/unifiedresources/types.goAgentless availability endpoints enter the model asResourceTypeNetworkEndpointwithSourceAvailabilityandAvailabilityData. Canonical identity must prefer the saved target id asavailability:<target-id>, keep the probe address as hostname/platform identity when no stronger identity exists, and preserve availability payloads through clone, merge, API transport, and frontend decode paths. Governed action execution freshness is part of the same resource-extension contract: API execution consumers must re-plan against current resource capabilities and policy before executor dispatch, treat action id,resourceVersion,policyVersion, orplanHashdrift asaction_plan_drift, and record/publish a failed audit instead of leaving executor adapters to make stale-approval decisions. Docker/Podmanapp-containerlifecycle actions are part of that same governed resource contract:resourceFromDockerContainermay advertisestart,stop, andrestartonly for fresh, supported, agent-backed Docker/Podman reports whose daemon posture does not block mutating commands. Anupdatecapability rides the same gate with two extra preconditions: the report must carry a detected image update (updateStatus.updateAvailable) and a current image digest, because the plan binds the typed update dispatch to that digest and a container whose digest cannot be stated cannot be safely updated. The API action executor must consume those capabilities through/api/actions/*and the agent command server; platform rows or drawers must not wire direct shell, SSH, provider, or runtime calls around this capability contract. API resource responses must project only currently executable lifecycle capabilities: when the command agent that owns the Docker / Podman runtime is not connected,resources.gofilters those capabilities from list and detail payloads before frontend controls render. Planning still rechecks the same readiness boundary and fails closed withaction_execution_unavailablebefore audit creation if the live command path disappears after the resource response was read. When filtering an otherwise known lifecycle capability, the same resource response must preserve a typedactionReadinessentry with the action name,available=false, a stable reason code such ascommand_agent_disconnected, and operator-safe copy. Frontend consumers may use that field to explain disabled controls, whilecapabilitiesremains the executable action set. The same readiness entry may carry an optionaldetailnaming which command-session lookup the refusal was judged against (the immutable enrollment token binding versus the agent-id / hostname session lookups); it is diagnostic copy for server logs and support threads,reasonremains the stable user-facing text, and consumers must not branch ondetailcontent. Proxmox VM and LXC lifecycle actions are also part of that governed resource contract.resourceFromVMandresourceFromContainermay advertisestartonly for stopped guests andshutdown,reboot, andstoponly for running guests, and must fail closed for templates, locked guests, and unknown transition states. The API action executor consumes those capabilities through/api/actions/*, resolves the Proxmox node command agent from the unified resource's linked node context, and recordsactionReadinesswhen that command path is not currently connected. Unified-resource consumers must not infer Proxmox lifecycle affordances from table row status alone or issue directqm/pct, SSH, provider API, or guest-agent calls outside the governed action contract. The lifecycle executor must project terminal truth throughActionResultV2without coupling execution success to verification. Same-agent status reads remainagent_attested; only a fresh, identity-matched read through the tenant's server-side Proxmox API client may beindependent. Reboot confirmation additionally requires an uptime reset relative to the direct pre-action observation, not merely a post-actionrunningstatus. Agent-managed Linux hosts may advertiseinstall_os_updatesonly when the report carries supported APT package posture and typed command operations are enabled. The capability is admin-floor,elevatedauto-authorization eligible, parameter-free, and routed throughhost.package_updates. Package names and versions are observed evidence, never caller-selected mutation input. The agent-authored inventory fingerprint binds execution to the observed set without turning that set into caller authority. API readiness must filter the capability when inventory is stale, erroneous, empty, unsupported, or its owning agent is disconnected; reboot-required state remains descriptive and does not imply a reboot capability. Agent-managed hosts may advertiseclean_package_cacheonly when typed commands are enabled, the agent reports a fresh error-freeapt-package-cachefingerprint with at least 64 MiB reclaimable, and the actual longest-prefix filesystem containing the fixed cache target is at least 90% used. A healthy separate/varmount must override pressure on/; sibling-prefix mounts must never match. The capability is admin-floor,low_riskauto-authorization eligible, parameter-free, and routed throughhost.storage_cleanup. API consumers must reuse the canonical target-disk resolver and may not infer cleanup authority from generic disk usage. TrueNAS app inventory enters the model as nativeTrueNASData.Appmetadata on canonicalapp-containerresources. The facet is sourced from the TrueNAS API app inventory (app.queryplus active workload/stat details where available), preserves app id/name/state/version/update signals, containers, ports, images, volumes, networks, and app stat collection metadata, and is cloned and merged by unified resources before transport. Docker metadata may still ride beside the app as compatibility runtime evidence, but the TrueNAS platform overview and other TrueNAS-native consumers must read the native facet first instead of treating TrueNAS apps as generic Docker rows. TrueNAS VM and network-share inventory use the same native-facet rule. TrueNAS API VMs publishTrueNASData.VMon canonicalvmresources, and SMB/NFS shares publishTrueNASData.Shareon canonicalnetwork-shareresources. Share records must preserve protocol, path, dataset, enabled/read-only/access metadata, clone and merge through unified resources, redact filesystem paths through policy metadata, and derive storage-parent relationships without being flattened into generic Docker or storage rows. TrueNAS service inventory remains a system-owned native facet rather than a new generic resource type.service.queryoutput must project intoTrueNASData.Serviceson the canonical top-levelagentresource, preserving service name, boot enablement, runtime state, and process IDs through clone, merge, transport, and frontend decode paths. The TrueNAS Services and VMs tables lead with condition rather than configuration. Process IDs, bootloader, and device counts stay in the row drawer instead of taking table columns. A service stopped while set to start at boot, and a stopped VM set to autostart, sayshould be runningin the State cell beside the raw state, with the full sentence in the title and a drawer Condition row (the VM drawer summary says it too) because State is hidden on phones. A stopped VM without autostart carries no note: it was stopped on purpose. Rows stay single-line, per the shared platform-table rhythm. Docker / Podman inventory extends that same canonical type contract beyond generic workload rows and Swarm services. Runtime containers must preserve Docker Engine container identity, owning host/runtime context, image, state/health/restart/update status, ports, networks, and mounts throughDockerDataso Docker Overview and its/docker/containerscompatibility route can use the nativeDockerContainersTablerather thanWorkloadsSurface. Runtime image, volume, network, task, Swarm node, Swarm secret, Swarm config, and storage-usage evidence must enter throughDockerDataand the typed Docker resource records (docker-image,docker-volume,docker-network,docker-task,docker-swarm-node,docker-secret,docker-config) rather than being inferred inside the container page. Swarm node records must preserve node id, hostname, role, availability, state, manager reachability, manager address, leader state, engine version, platform, resource capacity, labels, and engine labels under the owning Docker host or Swarm cluster identity. Docker container network membership also extends the relationship contract:internal/unifiedresources/registry.gomust emit host-scopedattached_toedges from runtime containers to reported Docker networks, preserving network name and reported IPv4/IPv6 attachment metadata on the relationship instead of requiring frontend consumers to reconstruct topology from raw container facets. Swarm secret and config records are metadata projections only. They may preserve id, name, labels, driver/template metadata, and timestamps, but Docker secret/config payload bytes are outside the unified-resource contract. Docker secrets are restricted/local-only resource metadata; Docker configs are sensitive/local-first resource metadata. Host/system/dfbuckets remain Docker host facet data, not generic storage resources. Podman libpod pod records must not be projected until a libpod-native source can populate a native contract instead of deriving pods from Docker-compatible container labels. Kubernetes inventory likewise projects native API objects as first-class unified resources: Nodes, namespaces, Services, ReplicaSets, StatefulSets, DaemonSets, Jobs, CronJobs, Ingresses, EndpointSlices, NetworkPolicies, PersistentVolumes, PersistentVolumeClaims, StorageClasses, ConfigMaps, Secrets, ServiceAccounts, Roles, ClusterRoles, RoleBindings, ClusterRoleBindings, ResourceQuotas, LimitRanges, PodDisruptionBudgets, HorizontalPodAutoscalers, and Events must preserve their API identity and source metadata through clone, merge, REST, websocket, and frontend decode paths. RBAC resources carry summary counts only — rule count, role kind / role name (for bindings), subject count, subject Kinds, and ClusterRole aggregation labels — and never expose full PolicyRule contents or individual subject names (User / Group / ServiceAccount).k8s-configmapandk8s-secretresources must preserve themetadataOnlyflag when the agent used the Kubernetes metadata-only API path; current agents must not fetch ConfigMap or Secret payload values merely to build inventory rows. Older reports may carry key names, but Secret values are outside the unified resource contract. Because Secret names and key names can disclose intent,k8s-secretpolicy metadata must classify them asrestrictedwithlocal-onlyrouting. Resource sensitivity classification (classifyResourceSensitivityininternal/unifiedresources/policy_metadata.go) is calibrated for Pulse's homelab/SMB audience: an ordinary compute workload's name and private LAN IP are not secrets, so VMs, system/app containers, pods, Kubernetes workload objects (Deployments, ReplicaSets, StatefulSets, DaemonSets, Services, Jobs, CronJobs, Ingresses, Namespaces, ...), Docker services, and Swarm nodes classify asinternal(cloud-summary, no redaction) and are visible to cloud models. Redacting them by default reduced the cloud Assistant to "redacted by policy" noise. Escalation tosensitive/restrictedis by tag (database,backup,customer-data,secret,pii, ...) or by genuinely sensitive TYPE: data-at-rest and storage (storage,pbs,ceph,physical-disk,network-share,network, k8spv/pvc/storage-class), configuration (docker-config,k8s-configmap), and security (k8s RBAC roles/bindings and service accounts, k8s/docker secrets, PMG). The rule of thumb: a workload's identity is not sensitive by default; data, configuration, and security resources are. Kubernetes Node inventory is an API-native resource surface, not merely overview chrome:/kubernetes/nodesmust expose the bespoke node table while the overview may still include the same rows for cluster orientation. Kubernetes Service inventory is likewise API-native:/kubernetes/servicesmust render Service rows through a service-specific table that preserves cluster/namespace scope, Service type, ClusterIP, external IP metadata, ServicePort/targetPort/nodePort publication, and selectors instead of routing those API objects through the generic Kubernetes inventory table. Kubernetes storage inventory is likewise API-native:/kubernetes/storagemust render StorageClass, PersistentVolume, and PersistentVolumeClaim rows through a storage-specific table that preserves cluster scope, binding mode or phase, class, size/request, access/reclaim policy, provisioner, and PV/PVC binding targets instead of routing those API objects through the generic Kubernetes inventory table. Kubernetes services inventory follows the same native-table rule:/kubernetes/servicesmust render Service, Ingress, and EndpointSlice rows through service and networking-specific tables that preserve cluster/namespace scope, Service type, ClusterIP/external IPs, service ports, selectors, Ingress class, hosts and addresses, EndpointSlice address type, ready endpoint counts, endpoint ports, and service targets instead of routing those API objects through the generic Kubernetes inventory table. Legacy/kubernetes/networkingresolves to that Services workflow tab. Kubernetes configuration inventory is likewise API-native and trust-sensitive:/kubernetes/configurationmust render Namespace, ConfigMap, Secret, ServiceAccount, Role, ClusterRole, RoleBinding, ClusterRoleBinding, and policy rows through config and policy-specific tables that preserve cluster/namespace scope, Namespace lifecycle phase, ConfigMap/Secret immutable and type metadata, ServiceAccount token/image-pull/secret references, RBAC summary fields (rule counts, role kind / role name, subject count, subject Kinds, aggregation labels), metadata-only collection wording, and policy-specific health/count fields. Legacy/kubernetes/configand/kubernetes/policyresolve to that Configuration workflow tab. Config tables must not render ConfigMap or Secret payload values, and metadata-only rows must not expose key names as if payload fields had been read. - Add typed accessors and views in
internal/unifiedresources/views.goResource detail mappers now reuse the sharedfrontend-modern/src/utils/textPresentation.tstitle-case helper for sensor labels so the canonical unified-resource presentation layer owns the wording.
The canonical AI-safe summary builder now owns the sensitivity-specific suffix
phrases for sensitive and restricted resources, so the backend policy
contract controls those strings instead of duplicating them inside the summary
assembly branch.
Canonical policy presentation and exact-value redaction helpers are owned in
internal/unifiedresources/policy_presentation.go. AI, Patrol, alert, export,
and prompt consumers must use those helpers for governed resource names,
hostnames, IP addresses, platform IDs, aliases, and paths instead of inventing
consumer-local scrubbers. When a consumer has product-originated resource
references that are not guaranteed to be present on the canonical resource
record, it must pass them through the shared redaction-reference helper rather
than recomputing local policy checks.
Canonical policy posture aggregation is owned here as well. Resource API
payloads may expose a camelCase transport projection, but the counts must be
derived from internal/unifiedresources/policy_posture.go after canonical
policy metadata has been refreshed, not recomputed from frontend labels,
AI-only summary payloads, or page-local heuristics. 4. Add metrics-target normalization, surface-friendly projections of
nested source payloads, or synthetic metrics support through
internal/unifiedresources/metrics_targets.go,
internal/unifiedresources/metrics.go, and the relevant adapter in
internal/unifiedresources/adapters.go. The unified Resource shape
carries top-level Uptime and Temperature projections so frontend
tables that render those columns do not have to dig into per-source
payloads (agent.uptimeSeconds, proxmox.uptime,
agent.temperature, proxmox.temperature); adapters that wrap an
AgentData or ProxmoxData must populate those top-level fields
from the nested source values, and adapters for resource types that
have no native uptime/temperature concept (e.g. k8s-deployment,
k8s-replicaset, k8s-configmap, k8s-secret,
docker-service, k8s-cluster aggregates) must leave them unset so
bespoke platform-page tables can hide the column entirely.
Kubernetes deployment metrics live on the canonical adapter through
metricsFromKubernetesDeployment(cluster, deployment). Upstream
Deployments do not expose CPU / memory natively because they are
scheduling abstractions over their controlled pods, so the helper
returns nil for non-mock runtimes (until the adapter aggregates pod
metrics into the owning deployment) and synthesizes deployment-stable
CPU / memory / disk / network values for mock mode so the
platform-page Deployments table renders meaningful operator values
instead of dashes. The synthetic branch is gated by
mockmode.IsEnabled() and scales with the deployment's
ready/desired/available replica state so degraded deployments read as
elevated pressure on the surviving replicas.
Namespaced Kubernetes adapters share one Resource scaffold: a new
namespaced kind populates its kind-specific K8sData fields (after
baseKubernetesData) and delegates Resource assembly and identity to
namespacedKubernetesResource(cluster, clusterName, namespace, name, resourceType, status, data, labels) in
internal/unifiedresources/adapters.go instead of hand-rolling the
Resource{...} literal plus namespacedKubernetesIdentity return.
The scaffold owns Technology: "kubernetes", LastSeen from the
cluster, UpdatedAt, the Kubernetes facet pointer, and label-derived
tags; only cluster-scoped or non-namespaced kinds (cluster, node, PV,
StorageClass, namespace itself) keep bespoke identity construction. 5. Add platform registry, resolution, host-dedup, or monitored-system
projection behavior through internal/unifiedresources/registry.go,
internal/unifiedresources/resolve.go,
internal/unifiedresources/resolved_host_set.go,
internal/unifiedresources/snapshot_source_filter.go,
internal/unifiedresources/store.go,
internal/unifiedresources/kubernetes_capabilities.go,
internal/unifiedresources/pbs_rollups.go,
internal/unifiedresources/monitored_systems.go,
internal/unifiedresources/monitored_system_projection.go, and
the shared list-order helpers consumed by internal/api/resourceapi/resources.go;
canonical unified-resource lists must preserve one deterministic
name -> type -> id order across registry reads, REST pagination, and
websocket-backed refreshes so equal-name resources do not silently reshuffle
between cold hydrate and later runtime updates
Realtime delta reconciliation must preserve exact display-object identity
for untouched resources and canonicalize changed and newly added rows. Each
server row is one display row: the server coalesced host views for
presentation, and the browser runs no host-merge pass of its own, so a pair
the server keeps apart (an operator split, a provider-scoped Proxmox site)
renders as two rows. Incremental and
full-snapshot paths must therefore produce the same canonical host identity,
labels, and compatibility fields without cloning the entire estate per tick.
The connection store publishes each reconciliation's changed IDs and resource
revision. useUnifiedResources applies that revision to the shared
all-resources cache once and derives type-filtered route projections from the
canonical result. An instance observing a revision the shared cache already
holds must not re-read or deep-unwrap the realtime store, and the merging
instance dereferences raw store subtrees only for rows the delta merge will
clone (flagged ids and ids absent from the shared cache). A sequential
revision with unchanged route membership patches only the changed row
indices.
The connection store retains a bounded per-revision changed-id history; an
instance that resumes several revisions behind the shared cache must catch
up through the unioned changed-id set as an incremental delta merge whenever
the history covers the gap, so tab entry and re-entry do not deep-unwrap or
remerge the full estate. Only initial hydration, uncovered revision gaps,
full-snapshot commits, additions, removals, or reorderings
fall back to keyed full reconciliation.
Each reconciliation also records the per-resource top-level keys its merge
patches touched (platformData expanded one level), published with the
revision and unioned across the history window and the hidden-tab deferral
set with unknown-shape contamination. A changed non-host row whose recorded
keys stay within the pass-through metric fields, the proxmox facet
mirror, and the platformData metric mirror leaves takes a fast merge
path: the previous display row with only the patched subtrees cloned in,
bypassing the full clone-canonicalize-merge, and committing to the
connection store and instance projections as per-key subtree writes rather
than whole-row keyed reconciles. The fast output must stay
content-equivalent to the full path (facet keeps, deletion semantics, and
default-policy synthesis included), must never adopt raw-baseline subtrees
by reference, and any row outside the allow-list must take the full path.
Agent rows still take it: the fast path has not been shown equivalent for
their facet keeps since the browser stopped coalescing host rows. Route-prefetch and route-realtime
activation are separate:
a prefetched hidden surface may retain REST data without subscribing its full
projection to every realtime tick, and activation catches up from the shared
cache. Richer REST-only facets are promoted into that cache before thinner
realtime deltas are applied, so the optimization cannot discard disk I/O,
PBS, policy, or provider metadata.
Broadcast payload slimming is reversed at the connection-store ingestion
boundary, before any canonical merge or consumer read: capabilitiesRef is
expanded into per-row inline capabilities through the state payload's
capabilityCatalog (per-row clones, because store reconciliation mutates
adopted objects in place), and a resource arriving without a policy is given
a synthesized default posture (internal sensitivity, cloud-summary routing,
no redactions) so a posture transition patched as policy: null cannot
leave a stale governed policy behind. Client identity-alias resolution must
consult canonicalIdentity.supersededIds explicitly, because broadcast
aliases no longer duplicate superseded canonical ids.
That same unified-resource owner also defines the canonical transport
projection for operator-facing resources: /api/resources and websocket
state.resources must share ContractResourceType, canonical display
names, and canonical cluster labels instead of publishing separate REST and
broadcast aliases for the same machine.
Fleet command posture that reaches resource-facing rows must remain a
projection of /api/connections fleet.commandPolicy: desired server
policy, applied agent truth, enforcement, and reason stay separate. Unified
resource consumers may show compact remote-control status, but they must not
treat top-level remoteControl as applied agent runtime truth, and they
must preserve desired/applied drift or no-report attention when enriching
resource rows.
Platform-page stale-agent notices may consume canonical agent identity from
merged resources only to scope the Infrastructure settings update-command
route to the affected agents. That scoped lifecycle handoff must not become a
new resource-action authority, a page-local command runner, or a substitute
for the /api/connections fleet command-policy truth described above.
Resource consumers must also use the API-owned agent update target when
comparing resource-carried agent versions; the running app build version is
not a resource freshness contract.
Kubernetes node rows are cluster-agent-backed for this purpose: even when a
canonical k8s-node row is a pure Kubernetes API projection with no merged
agent facet, internal/unifiedresources/adapters.go must carry the
cluster AgentID and cluster-scoped AgentVersion on the row's
Kubernetes facet so platform consumers can scope stale-agent notices and
update-command links from typed resource evidence instead of rebuilding
ownership from the parent cluster row.
internal/unifiedresources/top_level_systems.go
Explicit linked-host correlation is canonical here: when Kubernetes node
ingest has a resolved backing host agent, the registry must merge that node
into the agent resource instead of publishing duplicate top-level
infrastructure rows for the same machine under both agent and k8s-node
identities.
Canonical read-state overlays belong here as well: when monitoring or a
preview path needs to project extra source-native records onto an existing
settled read state, it must do so through
internal/unifiedresources/monitor_adapter.go and
internal/unifiedresources/registry.go so matcher seeding, manual links,
and merge semantics stay unified-resource-owned instead of being rebuilt in
consumers.
Storage consumer projection is unified-resource-owned through
internal/unifiedresources/storage_consumers.go. When a provider publishes
source-native storage consumer metadata that cannot be derived from shared
Proxmox/PBS relationship indexes, refresh must preserve that source-owned
consumer count, consumer type list, and top-consumer summary on the
canonical storage resource unless a stronger shared consumer projection has
already populated those fields in the same refresh.
Operator-facing storage posture wording is part of that same ownership:
when multiple storage-risk reasons exist, shared posture helpers must prefer
the most decision-useful protection loss summary such as lost parity over a
generic disk-count aggregate, so resource drawers and incidents do not hide
the actual protection boundary behind a broader count phrase. 6. Add canonical governed name-resolution or policy-aware resource lookup behavior through internal/unifiedresources/resolve.go and internal/unifiedresources/resolve_context.go
Resource drawer secondary sections, action history, and other compact resource-detail cards may own their resource-specific
labels, rows, filters, and actions, but the repeated bordered compact frame
is a frontend-primitives boundary. ResourceDetailDrawerOverviewTab.tsx,
and ResourceActionHistory.tsx must compose
InfoCardFrame for that shell instead of restoring local card-frame
classes.
The Overview tab's Needs attention list merges open alerts with the health
presenter's reasons (getResourceHealthIssuePresentation), skipping only the
reasons an open alert already states, so one matching alert never hides the
rest. The presenter keeps every incident summary, not only the rollup, adds a
TrueNAS dataset's state (state:readonly, state:locked, state:unmounted)
because a read-only dataset raises no incident, and uses the rollup's category
label (Resource Health Issue, Capacity Pressure) only when no reason is more
specific.
Below the charts, the resource and Docker host Overviews read their
inventory as unified-resource facts: useResourceSummarySections and
getResourceDrawerFacts (ResourceDetailSummary.tsx) take Compose labels,
image, agent CPU count, memory/disk used and total, and the primary
address from the resource itself, state used amounts only for an online or
running resource whose memory observation (if any) is current, and lift an
offline resource's state with its lastSeen. A row an open alert of the
resource's own already states (getAlertStatedRowLabels) stays in Details.
The drawer header's status dot for an app-container uses the container
row's mapper (mapDockerContainerStatus), so its run state and health check
decide the colour and label in both places: a running container failing its
health check is red "Unhealthy" in the row and the header alike. Other
resources keep getAgentStatusIndicator on status.
When a container reports no state of its own (blank counts as none), that
mapper reads its unified status as other resources' dots do: lost contact
(offline, error, failed, down, unreachable, disconnected, timeout) is danger,
degraded/warning/partial/recovering is warning and unknown stays muted; a
reported state, such as exited on a lost host, still wins.
A container's update controls read its docker.hostSourceId, containerId,
updateStatus and the resource's actionReadiness through one helper,
getDockerContainerUpdateAction, shared by the containers table and the
drawer, so an update the server refuses is refused the same way in both.
Those open alerts come from the websocket activeAlerts map through
getAlertsForUnifiedResource in frontend-modern/src/utils/alerts.ts, which
the Docker host drawer (DockerHostDrawerOverview.tsx) uses the same way.
Unified resources carry no embedded alert list: the frontend ResourceAlert
type and the backend ResourceFrontend.alerts / ResourceAlertInput path were
retired because no producer ever filled them, which left both drawers without
their open alerts. The matcher keys a resource on its unified id, canonical
primary and superseded ids, Proxmox source id and metrics target (PBS, PMG,
storage); agent and Docker hosts also answer to agent:<id> and
docker:<host source id> and to the component alerts nested under those keys
(disks, RAID arrays, sensors, containers, services). An app-container answers
to docker:<host source id>/<container id> (or /name:<name>), the key the
alert engine writes for it. Drawer charts take triggers only from
getOwnAlertsForUnifiedResource (exact keys, no nested components). A health reason counts as
stated when it is a whole sentence of an open alert's text, because a unified
incident alert on storage with consumers joins the incident summary and its
impact ("... above threshold. Affects 2 dependent resources: ...") and neither
may repeat beside it. The Docker hosts (DockerHostsTable.tsx) and Machines
(AgentsMachinesTable.tsx) table rows tint from the same set through
getUnifiedResourceAlertStyles, so a collapsed row never looks healthy while
its drawer lists an unacknowledged alert (an expanded row drops the tint while
its drawer shows the alerts); acknowledged alerts stay in the drawer without
tinting the row. Kubernetes node rows (KubernetesNodesTable.tsx) tint the
same way: a node that runs a Pulse agent is an agent row whose alerts are keyed
agent:<id> and carry the hostname, so the earlier id-and-display-name match
left it untinted while its drawer listed a critical alert. The Kubernetes
overview's "Nodes needing attention" and the nodes table's default order rank
a node by the stronger of its readiness state and those unacknowledged alerts
(getKubernetesNodeAttentionRank), so a Ready node at 100% memory is named
beside the NotReady ones. vSphere host and TrueNAS system rows keep
getAlertStyles with the host name: their VMs', pools' and apps' alerts carry
that name as their node, and no producer keys alerts on those rows' agent:
aliases (a Pulse agent on a TrueNAS box stays a separate resource).
Machine and host overview cards that render compact system, hardware, disk,
and temperature facts must also compose the frontend-primitives
InfoCardKeyValueRow. Mobile rows retain their condensed endpoint layout;
desktop rows use the shared fixed label track so labels and values remain
visually adjacent instead of spanning the full drawer width.
A standalone host agent past its reporting lease reaches the Machines table as
offline, as described in "Status follows each source's own verdict". The
offline metric fallback blanks its CPU, memory, disk, network, disk I/O, uptime
and temperature cells. The machine drawer drops a silent agent's uptime and
marks its non-disk Thermals rows "(last known)" with the reason as title,
keyed on agent.stale because those rows are that agent's own sensors.
Its Disks card reads the agent's retained filesystem usage as last known on the
same signal (agentReadingsLastKnownReason): each figure stays, muted and
titled with the reason, without threshold colour or usage bars.
Its RAID card and the Machines RAID column and tooltip read the agent's
retained arrays the same way: every array and member state they show stays, as
evidence of what the array was doing when the agent went quiet, but without
live status colour. Where a retained rebuild percentage is shown, it reads
"Rebuild was at N%" with no speed or progress bar, and a member that was not
healthy names its state in its badge.
A Pulse agent manually linked into a guest carries the same signal there.
AgentData.Stale is always on the wire, because browsers merge agent facets
field by field (resourceStateAdapters.ts) and would keep a resumed agent's
omitted false as true; TestAgentDataAlwaysSendsStale pins it. That always
present stale also marks a native agent facet, so one without disks has
withdrawn them, and a native Proxmox VM facet's new guest-read outcome likewise
drops disks it no longer reports; either way the other source's filesystems
take over without a reload (resourceStateAdapters.test.ts). VMView.DiskFromLinkedAgent names the agent
as the owner of a guest's selected disk metric, which the monitoring poller
reads before it carries a Proxmox disk reading forward.
For SMART disk
temperatures on rows that still render, the provenance travels on
agent.sensors.smart[].collection: the Machines temperature cell
(AgentsMachinesTable.tsx, agentMachineTableModel.ts; its desktop actions
button overhangs the row by 2px each way so Machines rows are 33px, not 37px),
its tooltip and the
drawer's Thermals rows (resourceDetailMappers.ts) read it through
isPhysicalDiskTemperatureCurrent, so a retained disk reading never stands for
the machine while another disk has a current one. A positive direct
temperature or temperatureCelsius reading carries no collection state and
still leads the cell. Without one, and with no current non-standby disk, the
hottest retained non-standby disk reading shows as last known without
threshold colour.
The same boundary applies to availability facts, resource change-history
metadata, Docker/PBS/PMG service facts, nested PMG queue/mail breakdowns, and
Docker container-update management facts. It also covers action-history facts,
Discovery facts, and the specialized ProxmoxMailGatewayDrawer.tsx inbound
statistics. Their headers, actions, and compact status summaries remain
feature-owned, while ordinary label/value rows compose InfoCardKeyValueRow
rather than restoring a drawer-width flex split.
Curated technical inventory follows the shared compact-row contract instead
of the secondary-card contract. Docker-host drawers must project system,
runtime, memory, storage, and telemetry facts through
TechnicalDetailsSection with canonical DetailSection[] data, while the
unified-resource drawer projects runtime, identity, container, tag, alias,
and address facts through the same DetailSectionTable responsive
presentation. Only genuinely large or interactive provider-support content stays
lazy behind TechnicalDetailsDisclosure; technical inventory must not
restore a local card mosaic or add a drawer-open fetch. 9. Keep dashboard and infrastructure freshness on the canonical unified-resource
ownership path. frontend-modern/src/stores/websocket.ts,
frontend-modern/src/utils/resourceStateAdapters.ts, and
frontend-modern/src/hooks/useUnifiedResources.ts together own the frontend
canonicalization boundary: REST may hydrate the initial snapshot and
unsupported filtered queries, but supported snapshot freshness must come
from websocket state.resources instead of layering confirmatory
route-local REST refetch loops over already-owned resource
updates.
Oversized WebSocket recovery is the transport exception: a complete
/api/state response may refresh display state while the connection remains
baseline-free, but resource deltas must not patch that independently built
REST snapshot. The store resumes delta application only after the same
connection delivers a complete WebSocket resource snapshot.
Browser WebSocket liveness tracking is part of that same store boundary:
valid inbound server messages, including heartbeat ping/pong traffic,
must refresh the browser-side activity timestamp so quiet periods between
resource snapshots do not cause avoidable reconnect churn.
The global store's active-alert hydration signal is orthogonal to unified
resource readiness: cold alert recovery may call only /api/alerts/active and
must not trigger, clear, or reinterpret the canonical resource snapshot. The
JSDOM no-op owner initializes that alert-only signal as ready so unified-resource
consumer tests remain transport-free; production resource hydration and its
connection-scoped delta lineage continue to follow the rules above unchanged.
That shared store/adapter/hook path must also preserve canonical row shape
across transport boundaries: thinner realtime state.resources payloads
must merge into the existing canonical resource snapshot instead of
downgrading richer REST-only infrastructure details such as disk I/O, source
metadata, or platform summary fields after first hydrate. For default
Source lists and their source-specific facets are the exception: a current
snapshot with canonical source evidence replaces stale source lists and
removes provider facets that no longer have matching source evidence, so
rows do not keep displaying a previous platform identity after websocket
refreshes. For default
initialHydration: 'immediate' consumers, that same path must not paint the
thinner websocket transport before the first canonical REST snapshot exists;
only explicit websocket-first consumers may render directly from the realtime
transport before canonical hydrate completes. Operator surfaces that must
preserve already-known infrastructure continuity after login, such as the
Infrastructure page, must use websocket-first hydration with stale-cache
REST revalidation after the first-paint settle window so the page can paint
from live state immediately without forcing a second resource-shape
transition while summary and table surfaces are still mounting.
Org-scope and enabled-state transitions in
frontend-modern/src/hooks/useUnifiedResources.ts must invalidate older
in-flight REST refreshes before publishing the new scoped cache entry, so a
stale request cannot set active-scope errors, clear the active request guard,
or replace the currently mounted Infrastructure/Workloads resource snapshot.
Canonical cluster membership in that shared path must come only from
explicit cluster identity such as Kubernetes context or platform cluster
labels; standalone resource names must never be repurposed as synthetic
clusterId values. 13. Keep operator-facing resource analysis vocabulary task-first on unified-resource
surfaces. frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx,
and frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts
may expose
provider identity or governed safe-summary posture when that context helps
an operator, but the rendered labels must stay product-neutral and use
Analysis, Analysis Reasoning, and Safe Summary rather than reviving
generic AI or AI-Safe branding inside the resource drawer. 15. Keep governed policy-posture wording on the unified-resource
presentation owner. frontend-modern/src/utils/resourcePolicyPresentation.ts
owns the canonical sensitivity, routing, and redaction labels and their
orderings. No shared card renders policy-posture counts today; if one
returns, caller-owned framing such as subtitle or resource-count wording must
extend that one card's API rather than spawning page-local policy summary
shells. 16. Keep platform/runtime top-level route paths on the canonical resource-link
helper. frontend-modern/src/routing/resourceLinks.ts owns the
STANDALONE_PATH, DOCKER_PATH, KUBERNETES_PATH, TRUENAS_PATH,
VMWARE_PATH, PATROL_PATH, PATROL_CONTROL_ANCHOR,
PATROL_CONTROL_PATH, and PATROL_CONTROL_STARTER_QUERY_PARAM constants,
the route-backed Patrol control starter helpers, and the buildStandalonePath,
buildDockerPath, buildKubernetesPath, buildTrueNASPath,
buildVmwarePath builders.
Per-platform surfaces and tab specs must
derive every internal link from those builders so the canonical resource
URL vocabulary stays single-sourced; ad hoc string concatenation of
platform routes inside feature directories is not permitted. The canonical Pulse Intelligence external-agent hash /settings/pulse-intelligence/agents#external-agent-setup and legacy
/settings/security/api#external-agent-setup /
/settings/security/api#pulse-mcp-setup compatibility hashes may live in
the shared route helper, but they are adjacent settings route state, not
unified-resource identity, platform scope, or drawer focus state.
The Patrol patrolControlStarter=patrol_control query is an adjacent
first-party Patrol control handoff flag, with legacy
operationsLoopStarter values accepted only as compatibility aliases, not
unified-resource filters or focus keys. Unified-resource consumers must not reuse those values for resource
identity, list filtering, contextual focus, storage state, recovery state,
or platform scoping.
The user-facing Machines surface's default resource route is the machines projection
(/standalone/machines); agentless endpoint rows use the
/standalone/availability projection and must not be collapsed into a
generic overview URL.
The frontend-primitives-owned Machines IA contract consumes the
unified-resource projection for Pulse-managed standalone agent rows and
agentless availability endpoint rows; this subsystem owns only the
membership rules for those projected rows. Agent membership must require
resource.type === "agent", canonical Pulse-agent source evidence from
resource sources or source status, and no stronger provider-owner evidence
from Proxmox, VMware, TrueNAS, or Kubernetes. Source-less legacy snapshots
may fall back to a normalized platformType === "agent", but
provider-owned nodes must not become machine-page members through
hostname, agent platform scope, or agent telemetry alone; those facts
surface as facets on the owning provider page.
AgentsMachinesTable.tsx may own row membership, resource-derived menu
eligibility, evidence-gated column relevance, and remove-agent semantics
for these projected rows. In particular, the GPU metric column and its
View choice are relevant only when at least one projected machine reports
finite GPU utilization; absent telemetry must not produce an empty default
column or a no-op column choice, while persisted visibility remains ready
for the column when evidence later appears. The
compact row action trigger chrome stays under the frontend-primitives
ActionIconButton boundary rather than becoming a unified-resource-local
button shell.
The Machines outdated-agent notice names what an update brings in plain
words, the latest fixes and machine details, and stays maintenance guidance
rather than a membership or health signal.
Machines list search and online-state narrowing are frontend route state,
not new unified-resource membership fields. StandalonePageSurface.tsx
owns the STANDALONE_QUERY_PARAMS query/status projection and one composite
reset, while AgentsMachinesTable.tsx consumes those controlled values so
saved links and bookmarks cannot diverge from the canonical projected row
set. Those query parameters must only narrow the already-owned agent
projection; they must not cause provider nodes or availability endpoints to
enter the Machines membership bucket.
PROXMOX_BACKUPS_QUERY_PARAMS in the same shared route-helper module is
storage/recovery-owned filter and workspace state for the Proxmox Backups
surface. Its query, view, node, type, source, posture, reason, and day keys
may narrow already-correlated backup rows, but they do not add
unified-resource membership, change canonical workload identity, or turn
recovery evidence into a provider-resource projection. reason names one
exception group from the Backup health verdict: a server posture reason, or
the bare posture state for an assessment that carries none.
The Proxmox backup workspace's chronological and coverage views are
canonical route state under /proxmox/backups/date and
/proxmox/backups/coverage. The shared route helper owns those path
builders; the backup surface must use the shared platform section-tab
primitive for navigation and may retain legacy query parsing only as
compatibility input. Those view paths describe backup evidence and must
not be treated as unified-resource membership or workload identity.
The default tab for each platform path must point at a sub-tab whose
canonical unified-resource projection actually populates, and visible
workflow subtabs must stay evidence-gated by the same canonical row or
signal source instead of advertising empty object browsers. The
canonical TrueNAS adapter (internal/truenas/provider.go:: truenasRecordsFromSnapshot) already emits the top-level TrueNAS
appliance as a unified agent row tagged with the truenas
platform, so TrueNAS defaults to /truenas/overview, whose Overview
sub-tab lists those systems in TrueNASSystemsTable. /truenas/storage
renders the TrueNAS-owned TrueNASStorageTopologyTable, not
StorageSurface; only the Proxmox Storage tab embeds StorageSurface.
Any future platform that wants to default to a Systems / Hosts
overview must first have its canonical resource adapter project the
platform's top-level system as a unified resource so the builder
default still resolves to a populated table.
ALERT_BACKUP_THRESHOLDS_PATH (/alerts/thresholds/proxmox#backups) names
the Recovery thresholds whose fresh and stale hours colour every backup
shield; the backup dialog links there and the thresholds page treats
#backups like #pbs and #pmg (resourceLinks.test.ts).
buildAlertThresholdsPath(tab, { query }) builds a thresholds tab address
already searched to one resource through ALERT_THRESHOLDS_QUERY_PARAMS,
the ?q= key the thresholds page owns; callers pass a resource's display
label, never an id, because the thresholds search matches names
(resourceLinks.test.ts).
buildAlertHistoryAlertPath(alertId) builds /alerts/history?alert=<id>
from ALERT_HISTORY_QUERY_PARAMS (q, period, severity, alert), which
now live with the other route keys instead of inside the History hook. The
alert key is a public address: notifications build the same link, so it
must not be renamed (resourceLinks.test.ts).
- Platform table ordering is a two-layer contract. Each platform table's
default order is owned by its page model's status-first compare
(
compareDockerContainers,compareKubernetesPods, and peers), which keeps unhealthy rows surfaced without user configuration. User-selected column sorting layered on top must come from the shared platform-table sort fabric infrontend-modern/src/features/platformPage/sharedPlatformPage.tsx(createPlatformTableSortStateplusPlatformSortableTableHead) as governed by the frontend-primitives contract, must never replace the built-in compare as the default order, and must keep missing metric values at the bottom in both directions so sparse agent data cannot float to the top of an ascending sort. This restores the v5 sortable-table capability (v5.1.36 Docker and Kubernetes tables) that the v6 platform rebuild had dropped.
Platform admission facet
ResourceStats.PlatformAdmission reports which primary platform pages an
estate admits (proxmox, docker, kubernetes, truenas, vmware,
standalone). It is derived in
internal/unifiedresources/platform_admission.go from each resource's
canonical platform scopes, so admission has a single definition rather than
being re-derived by each consumer.
Admission is per-resource evidence and MUST NOT be re-derived from the
byType or bySource tallies. A TrueNAS, Proxmox, Kubernetes or vSphere
host reports through the agent source and carries the agent platform
scope, so a count-based derivation admits the standalone page for an estate
that contains no Pulse agent at all. Only a resource that is agent-typed,
carries Pulse agent source evidence, and carries no provider-owner platform
evidence admits the standalone page; availability checks and network
endpoints also admit it.
Admission MUST be stable across the registry clone path, because readers are
served clones. Proof: TestClonedResourcesPreservePlatformAdmission and
TestRegistryResourcesReportPlatformAdmission.
Forbidden Paths
- New ad hoc resource-type aliases outside unified resource normalization
- New duplicate ID normalization logic outside unified resources
- Reintroducing legacy runtime resource contracts as live truth
- Platform page-local resource membership or attention rules for estate overview metrics and spotlights
Completion Obligations
Replacement workload snapshots must update backup coverage content without remounting surviving logical coverage rows. Preserve the focused expansion control and expanded evidence across those updates. The isolated browser polling regression verifies replacement HTTP fixture snapshots, not the full application resource-provider or WebSocket lifecycle.
Update this contract when canonical resource identity or type rules change
Update contract and guardrail tests when a new resource type is added
Route runtime changes through the explicit unified-resource proof policies in
registry.json; default fallback proof routing is not allowedTighten banned-path tests when a compatibility bridge is removed
Keep the infrastructure landing empty state on canonical first-run routing: when inventory is empty,
frontend-modern/src/components/Settings/InfrastructureWorkspace.tsxandfrontend-modern/src/components/Settings/InfrastructureSourceManager.tsxmust send operators directly to/settings/infrastructure?add=pick, name source strategy selection as the default next step, and present platform API inventory and Pulse Agent telemetry as peer source options instead of regressing to generic settings-root CTAs, an agent-only install jump, the retiredPlatform connectionssplit, provider-specific one-off routes, or the removed top-level/infrastructurepage. Agentless availability endpoints are the separate monitoring source home at/settings/monitoring/availability, and the add flow for MQTT, ping, TCP, and HTTP checks is/settings/monitoring/availability?add=target. Machine add handoffs must includetargetKind=machine; service and device check handoffs must includetargetKind=service. Saved availability targets carry atargetKindso agentless servers, laptops, desktops, and comparable computers can use machine-specific reachability copy in Availability checks without reclassifying service or device checks as machines. Machines inventory membership still requires Pulse Agent resource evidence.Keep infrastructure source visibility on canonical unified-resource truth. Settings infrastructure source filters and summaries must preserve known sources such as
truenasandavailabilitythrough the shared source normalization boundary even when the current unified-resource snapshot has no matching rows, so cross-surface context does not silently fall back to generic host-only wording during hydration or empty-filter states.Keep first-class platform classification on
docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md. New platform work must declare its primary ingestion mode and canonical resource projections there before adding platform-local branches here, and runtime variants such aspodmanmust stay inside the owning platform contract instead of becoming new top-level platforms or resource types.Keep provider-backed signal metadata on shared canonical resource fields. VMware status, alarm, task, and snapshot signals must flow through shared
vmwaremetadata plus sharedresource-incidenttimeline entries on canonicalagent,vm,storage, andnetworkresources instead of creating provider-only resource kinds, identities, or history schemas.Keep summary-surface emphasis on canonical resource IDs. A page that pairs summary charts with resource rows must keep row-hover, chart-hover, and route-focus behavior on the same unified-resource IDs that power the table rows, chart series, and detail-route handoffs instead of introducing page-local summary IDs or provider-local hover aliases when the selected series is highlighted.
Keep row contextual focus page-scoped. Pages whose rows share summary focus through
useSummaryPageInteractionStateinfrontend-modern/src/components/shared/summaryTableFocus.ts(today the Workloads and Storage pages) must let a direct row toggle open its detail in place through that shared runtime and the root app-shell restore path, instead of looking like a page refresh or remount.Keep summary-chart visibility a display preference, not a unified-resource filter. The workload and infrastructure summary chart sections are retired and no platform page exposes a chart show/hide control today. If a governed product decision brings one back, hiding or restoring it must not mutate resource identity, table membership, source scope, or summary-hover state. The retired top-level
/infrastructurepage, its summary chart strip, and its saved-view/route-state machinery must not be reintroduced for this purpose.Keep operator-local resource search on the operator's own names. Resource-policy redaction is a transmission boundary (
docs/PRIVACY.md), so local search over unified resources, such as theResourcePickeranduseResourcessearch filters, matches the raw name fromgetPreferredInfrastructureDisplayName(...)plus the resource ID rather than the governed safe label. Provider-bound labels keep the governedgetPreferredResourceDisplayName(...)path.Preserve provider-backed storage backing-pool identity on canonical storage resources.
internal/unifiedresources/types.go,internal/unifiedresources/adapters.go,internal/unifiedresources/views.go,frontend-modern/src/types/resource.ts, andfrontend-modern/src/hooks/useUnifiedResources.tsmust carry the provider-reported storagepoolmetadata alongside path and ZFS health so storage consumers do not have to recover backing-pool identity from names or path heuristics. ZFS health means the full pool report:StorageMeta.ZFSPoolcarries the provider's pool object (scan activity plus per-device states, error counters, and messages) to consumers alongside the flattenedzfsPoolState/zfs*Errorsscalars, so storage surfaces can show which device failed and whether a scrub/resilver is running instead of reducing pool health to a one-word state (TestCanonicalStorageMetadataCarriesFullZFSPoolReportpins the path).Keep compatible unified-resource consumers on one shared snapshot truth.
frontend-modern/src/hooks/useUnifiedResources.tsmay seed narrower type-filtered consumers from a freshall-resourcessnapshot when the broader cache already reflects canonical resource truth, and fresh empty snapshots must remain cacheable instead of regressing route handoffs back to transient full-page loading shells. That sametoResourcemapping owns canonical-field fallback for the per-resource scalars the frontend reads.Resource.uptimemust fall back to the canonicalv2.uptimefield after the platform-specific carve-outs (agent.uptimeSeconds,proxmox.uptime,pbs.uptimeSeconds,pmg.uptimeSeconds,kubernetes.uptimeSeconds). The vSphere adapter populates only the canonical field on the REST contract, so without landing onv2.uptimeESXi hosts and VMware-backed VMs lose uptime on the unified-resources side even though the API payload carries it. The same mapping must carry every facet the frontend reads at the top level ofResource: the provider facets (pmgincluded) and the per-sourcesourceStatus,actionReadiness, andtechnologyfields the API returns. The REST and websocket transports race on a fresh route load, and a facet present only underplatformDataon the REST row left the Mail Gateway table rendering every PMG column as a dash, and Docker lifecycle refusals and storage freshness reading undefined, whenever the REST snapshot landed last. That same shared cache boundary must normalize route/query type filters through the canonical frontend-to-ResourceTyperesolver before slicing the snapshot, so compatibility values such asdisk/physical_diskstay on one cache truth instead of falling back to ad hoc filter aliases.Keep storage summary target selection on canonical unified-resource truth. Storage-summary consumers may detect storage presence from canonical
isStorage(...)resources and their shared metrics-target IDs, but once storage exists they must reuse the shared/api/storage-chartssummary response throughfrontend-modern/src/utils/storageSummaryCache.tsinstead of rebuilding page-local per-resource storage history fetches or storage-type aliases. The retired/api/charts/storage-summaryroute must not return as a second storage summary transport.Keep infrastructure framing presentation-only on active product surfaces. Platform/runtime pages, shared infrastructure tables, and Settings infrastructure panels may render page or section headers, but canonical source/status/search state, summary scope, and row selection must remain on their owning shared selectors and settings state. The removed top-level
/infrastructurepage must not return as a second state owner, scope banner, or provider-local filter surface.Keep audit-log persistence credential-safe.
internal/unifiedresources/audit_redaction.goprovidesRedactAuditTextandRedactAuditRecord, and everyActionAuditRecordpersistence boundary ininternal/unifiedresources/store.go(RecordActionAudit,RecordActionExecutionStart,RecordActionExecutionResultfor both the SQLite and in-memory store implementations) must callRedactAuditRecordbefore writing. Operators sometimes paste secrets into a natural-languagereason, and command output sometimes echoes tokens; both must be scrubbed to redaction markers ([redacted],[redacted-secret],[redacted-credentials]) before plaintext SQL persistence.Plan,Approvals, and identity fields are produced by Pulse rather than operators or external command output and must be left untouched by redaction (mutating them would break thePlanHash-based drift detection contract). The redactor set is intentionally narrower than the patrol-failure redactor: arbitrary URLs are preserved so operators can reference runbooks, ticket links, and GitHub issues in audit reasons. Verification command output is part of the same persistence and readback boundary:ActionVerificationResult.Command,Output, andNotemust be replaced with stable redaction markers both on top-levelActionAuditRecord.Verificationand nestedExecutionResult.Verification. Migrated legacy rows follow the same contract when rehydrated, so API and frontend readers never surface raw historical verification command, output, or note details. Stable status and error-token prefixes such asplan_drift:remain verbatim where agents depend on them.Ran=falsenormalization remains responsible for clearing verification details rather than persisting redaction markers for unrun checks.Keep post-execution verification outcome on the canonical execution result.
ExecutionResult.VerificationcarriesActionVerificationResultwithRan,Command,Output,Success,RanAt, andNote. When a read-after-write check runs after a successful dispatch, its outcome persists through the existingresult_jsoncolumn; no schema migration is required. Verification is best-effort: classes without a derivable check leaveVerificationnil rather than fabricating a verified=true entry, matching the no-fabrication rule used elsewhere in the trust arc. Frontend audit surfaces must surface verification when present (so operators see "Pulse confirmed the action took") and omit it cleanly when nil rather than inventing placeholder copy.Keep governed-action drift refusal canonical in
internal/unifiedresources/actions.go.ErrActionPlanDriftis the error any broker must return when the payload presented at execute time hashes to anything different than the approval-recordedplanHash. Brokers must refuse rather than silently downgrade drift into a generic execution error or "plan expired" outcome — those are distinct refusal kinds (operator never approved vs operator approved a different action vs approval window passed) and audit review and operator UI surfaces should treat them differently. The drift contract is "the operator approved exactly this (command, target, reason) combination"; the freshly recomputed plan hash and the recordedplanHashare how we enforce that. New broker call sites that introduce additional governed-action paths must reuse the canonical plan hash frominternal/actionplanner/planner.gorather than adding ad-hoc comparison logic.Keep the
ActionVerificationResultfrontend mirror canonical and pin the operator-facing render location.frontend-modern/src/types/actionAudit.tsdefines the TSActionVerificationResultinterface (ran,command,output,success,ranAt,note) that mirrors the Go type field-for- field, andfrontend-modern/src/components/Infrastructure/ResourceActionHistory.tsxis the canonical operator-facing render location: each audit row surfaces verification as a distinct outcome row alongside the dispatch result, with emerald tone for verified and amber for failed (matching the trust palette already used on the findings panel). The render must show the stable redaction markers returned by the action-audit readback API for verification command, output, and note fields, not raw command or historical output details; the operator still sees whether Pulse ran the read-after-write probe and whether it confirmed the intended state. Whenverification.ranis false (no derivable check, or feature disabled for the action class) nothing is rendered — operators must not see fabricated "verified" claims for actions where Pulse cannot read back.Keep resource action-history refusal and verification-outcome presentation shared. Refused action results may preserve stable backend prefixes for agent branching (
plan_drift:,action_plan_expired:,action_dry_run_only:, andresource_remediation_locked:), but the drawer must render operator-safe labels and details throughfrontend-modern/src/utils/actionAuditPresentation.tsrather than prefix-first result copy or route-local parsing. The same helper ownsverificationOutcome.statuspresentation forverified,unverified,failed, andunknownso resource history, future action audit consumers, and tests share one bounded vocabulary.Keep canonical host IDs stable across restarts through durable identity pins. Canonical ID derivation hashes the strongest identity key available at mint time, and merged-source hosts (Proxmox node + pulse-agent) expose different identity subsets depending on which records are present when a registry rebuilds: agent records carry the machine ID, node records only cluster+hostname. The store-backed registry therefore persists identity pins (
canonical_id↔ machine ID / DMI UUID / cluster / hostname) in theresource_identitiestable (ResourceStore.UpsertResourceIdentityPins/ListResourceIdentityPins, written diff-aware after monitor-adapter rebuilds; manual-link sides write throughReplaceResourceIdentityPins) and completes weak incoming identities from those pins before matching and ID derivation (internal/unifiedresources/canonical_id_pins.go). Persisted primary hostnames preserve their normalized dotted form. The pin index resolves that exact primary hostname first and exposes the historical short-name form only as an ambiguity-safe compatibility alias; two dotted hostnames that share a first label must never resolve through that shared alias. Change-journal reads (GetRecentChanges*/CountRecentChanges*) must expand a canonical ID to the era set recomputable from its pinned identity keys (ResourceIdentityPin.EraIDs) so journal rows recorded under an earlier era's ID stay part of the resource's timeline; reads keyed by a stale era ID resolve to the same merged timeline. New ingest paths must not mint host canonical IDs from snapshot-content-dependent identity subsets without consulting the pins, and pin writes stay on the durable store-backed registry (ephemeral per-request registries consult, never write). A pin records the identity a resource derives from its own sources rather than a manual link's merged projection: each side of a link writes the pin captured before the link merged them, keeping its row's other fields unless another resource holds that key, and a pinnable folded side keeps its pin under its own canonical ID, less any strong key a live resource or an earlier folded side holds. Capture follows pin completion, so a key an earlier release borrowed into a side's row can still reach the capture (see "Operator links reach record-ingested resources"). Pinned hostnames preserve the full dotted name (NormalizeFullHostname): distinct machines that share a short hostname (cloud.rnd-lax1vscloud.gce-or1) must keep distinct pins, distinct pin-index buckets, and distinct presentation host rows. Short-hostname normalization (NormalizeHostname) is a matching-only convenience: pin lookups and the presentation host coalescer may pair a short name with its own FQDN (web01vsweb01.lan), but only through an unambiguous bucket whose pinned hostname is short/FQDN-equivalent (HostnamesEquivalent) to the incoming one; they must never rewrite a persisted hostname down to its short form or cross-match two different FQDNs. Pin rows persisted before this rule hold the collapsed short name and heal in place on the host's next pin persist, andResourceIdentityPin.EraIDsderives both full- and short-hostname eras so journal rows recorded under short-hostname IDs stay readable. Canonical ID derivation itself follows the same rule: the hostname-derived arms ofcanonicalIDFromIdentity(cluster:<cluster>:<hostname>andhostname:<hostname>) hash the full dotted hostname, never the short form, so machine-keyless FQDN Swarm members that share a short name (cloud.avscloud.bin one swarm) mint distinct canonical IDs instead of collapsing into one registry entry. Derivation stays a pure function of identity (pins complete identities but never substitute a stored ID) because store-less registries (AI tool executors, projections, mock) must derive the same IDs as the durable registry from the same identity. Hosts minted under the historical short-hostname derivation change canonical ID once: journal continuity rides the era expansion above, and operator-owned rows ride canonical-ID succession: whenPersistIdentityPinscollects a pin that supersedes an earlier era's pin for the same physical host (matching strong key, or a machine-keyless same-cluster pin whose hostname is the new pin's hostname or its collapsed short form), the store re-keysresource_operator_stateandaction_auditsrows to the successor ID and drops the superseded pin row (ApplyCanonicalIDSuccessionsininternal/unifiedresources/canonical_id_succession.go). Successions never fire while the old ID still belongs to a live resource or to one a manual link folded into its primary (see "Operator links reach record-ingested resources"), never follow a contradicting machine key (a reinstalled machine mints fresh, it does not absorb the old host's operator state), and never rewrite change-journal rows. Known limitation: machine-keyless hosts whose history already merged under a collapsed ID cannot be retroactively split; the merged era's journal rows appear in every member's timeline and the merged operator rows succeed to whichever member persists first. Regression coverage:internal/unifiedresources/canonical_id_pins_test.go,internal/unifiedresources/canonical_id_succession_test.go, andTestStandaloneDottedHostnameAgentsStayDistinct/TestSwarmFQDNHostsWithoutMachineIDsStayDistinct/TestCanonicalIDSuccessionMovesOperatorStateininternal/unifiedresources/registry_test.go.Keep action-audit origin metadata broker-owned.
ActionAuditRecordcarries an optionalOrigin *ActionOrigin(surface/findingId/investigationId/proposalId/operationalRecordId/evidenceIds), persisted in theaction_audits.origin_jsoncolumn (added bymigrateActionAuditsSchema) and round-tripped throughscanActionAuditRecord. Origin identifies which internal surface proposed the action (e.g. Patrol) so decisions and terminal outcomes can be reconciled back onto that surface's records. The Actions queue and decision packet render that trusted surface as bounded product copy such asFrom Patrol. A Patrol action carrying the trustedoperationalRecordIdexposes an exact return link through the canonical route-backed attention selection. Older Patrol actions without that identifier may return to the Patrol home but do not claim an exact record link. Internal surface tokens remain hidden. Origin is set only by in-process planning callers through the action lifecycle service's plan options; the publicPOST /api/actions/planbody must never be able to claim a first-party origin.NormalizeActionOrigintrims fields, sorts and deduplicates evidence IDs, and collapses an all-empty origin to nil so absent metadata never persists as an empty object. Origin fields are Pulse-produced identifiers, not operator text, and stay outside the redaction set. Downstream reconciliation of origin-tagged records rides the shared lifecycle service's org-scopedOnActionTransitionhook (wired viaResourceHandlers.SetActionTransitionPublisher): transitions publish only after the corresponding store write succeeds, so a subscriber keyed by org ID never observes a state this store could still lose or apply it to the wrong tenant. Operational Trust attention continuity uses the optional singular and bounded batch operational-record readers. Memory and SQLite return the latest action per record with the same clone semantics. SQLite guards the JSON expression, uses theidx_action_audits_origin_operational_record_updatedindex, and resolves at most 200 requested records in one query so Patrol pagination cannot become a per-row store pattern. Regression coverage:TestSQLiteStoreActionAuditOriginRoundTrip,TestActionAuditOriginReaderReturnsLatestTransition, and the matching memory/batch reader tests ininternal/unifiedresources/store_test.go. Incident next-step fallback follows the same canonical resource boundary: storage guidance is reserved for storage, physical-disk, network-share, PBS, and Ceph resources. Network and every other non-storage type receive neutral resource-health guidance rather than being misclassified as storage merely because they are not a host or VM.Keep API-added TrueNAS systems keyed by the configured connection, never by snapshot-reported identity.
systemSourceIDininternal/truenas/provider.goscopes the system source ID (and every child pool/dataset/app/VM/share/disk scoped under it) to the connection ID the poller passes throughNewLiveProviderForConnection; the hostname arm exists only for fixture snapshots, which carry no connection. The system's ingest identity deliberately carries no machine key: the TrueNAS DMI serial is shared by DR clones and can be vendor placeholder garbage, and the retired client fallback minted machine keys from the reported hostname, fully merging same-hostname systems (#1573, #1575). For the same reasoningestskipscompleteIdentityFromPinsforSourceTrueNAS: a hostname-bucket pin (stale pre-fix TrueNAS pin or a pulse-agent's pin on a same-named host) must not lend the system a machine key and re-merge what connection scoping keeps apart.trueNASSystemMetricResourceIDmust staysystemSourceIDminus itssystem:prefix soAgent.AgentID, native history keys, andcanonicalAgentMetricIDinBuildMetricsTargetresolve one series. Rows minted under the retired hostname-keyed derivation re-key once through record-declared succession: records name their old canonical IDs inIngestRecord.SupersededCanonicalIDsandResourceRegistry.IngestRecordsapplies the sameApplyCanonicalIDSuccessionssemantics as pin-driven successions (operator state and action audits re-key, the superseded pin row drops, never while the old ID belongs to a live resource or one a manual link folded into its primary, journal rows never rewritten). Regression coverage:TestRegistryIngestRecordsKeepsSameHostnameSystemsDistinct/TestIngestRecordsSucceedLegacyHostnameScopedCanonicalIDs/TestIngestRecordsDoNotCompleteTrueNASIdentityFromPinsininternal/truenas/contract_test.go, andTestIngestRecordsRecordDeclaredSuccessions/TestIngestRecordsSkipRecordDeclaredSuccessionForLiveOldIDininternal/unifiedresources/canonical_id_succession_test.go.StorageMeta.Topologyis a closed discriminator vocabulary shared by every storage provider (pool,dataset,array,datastore). Consumers key resource identity off it, so a provider must never publish presentation detail there. ZFS data vdev layout is presentation and belongs inStorageMeta.VDevLayout, which is absent rather than invented when the native report carries no data vdevs. Regression coverage:TestStorageTopologyAndVDevLayoutAreDistinctIdentityFieldsininternal/unifiedresources/canonical_identity_test.go.cloneResourceowns copy isolation for every slice onResource, includingRelationships. A clone that shares the original's relationship backing array lets any in-place compaction write through into the live registry from whatever goroutine holds the clone, which is reachable on the ordinaryGET /api/resourcesrebuild path. Relationship filters additionally build a fresh slice rather than compacting in place, so correctness does not depend on every caller having cloned first. Regression coverage:TestCloneResourceGivesRelationshipsTheirOwnBackingArrayininternal/unifiedresources/clone_test.go.Keep Proxmox guest canonical IDs node-independent. VMIDs are unique within a cluster, so
ResourceTypeVM/ResourceTypeSystemContainerresources ingested fromSourceProxmoxderive their canonical ID fromResourceIdentity.ProxmoxGuestKey(instance:vmid, hashed asproxmox-guest:<instance>:<vmid>incanonicalIDFromIdentity), not from the node-scoped source ID, so a live migration between cluster nodes never re-mints the guest (#1669). Guests without an instance+VMID identity — and VM resources from every other provider (TrueNAS, XCP-ng, libvirt, VMware) — keep the source-specific derivation. Ingest declares the retired node-scoped canonical IDs superseded for every node the instance currently knows (current names plus native aliases,declareGuestSupersededEras), so operator-owned rows orphaned by a pre-upgrade migration still re-key through record-declared succession, alert overrides migrate throughMigrateCanonicalOverrideKeys, and explicit availability links and API reads keyed by a retired ID or a node-scoped guest source ID resolve through the registry's superseded index andParseProxmoxGuestSourceID(persistence keys, never display aliases; ambiguity fails closed). Successions are durably recorded in thecanonical_id_successionstable, which memoizes the re-key (steady-state rebuilds re-declare the same eras every tick and must stay SQL-free) and lets change-journal reads merge retired guest eras without identity pins; pins remain host-only. The succession re-key also covers manual link/exclusion rows. Availability target configuration re-homes retiredLinkedResourceIDvalues throughmigrateAvailabilityLinkedResources(internal/monitoring/availability_link_migration.go), and recovery subjects converge on the same derivation throughCanonicalSubjectResourceIDplus the store's startup backfill. Metrics history and frontend row identity key off the node-scoped source ID and are deliberately unaffected. Regression coverage: theTestProxmoxGuest*cases ininternal/unifiedresources/registry_test.go,internal/unifiedresources/ids_test.go,internal/unifiedresources/adapters_test.go, andinternal/unifiedresources/availability_link_test.go;TestSuccessionMergesGuestChangeJournalErasininternal/unifiedresources/store_test.go; and the recovery-side pins ininternal/recovery/recovery_test.go(TestSubjectKey_CanonicalizesProxmoxLinkedGuestAliases) andinternal/recovery/store/store_test.go(TestStore_OpenBackfillsLegacyUnresolvedProxmoxPBSGuestRows).
Current State
Retained Machines and Debug status (11 October 2026)
The Machines row status, health chip counts and selected filter membership read the same existing classifier and shared clock. A held online agent is Degraded in the toolbar once its row becomes Stale under the unchanged five-minute fallback; clock ticks neither renew its report nor set its canonical stale flag. The row retains identity and metric values, and an actual report or offline status still updates its presentation and membership. Explicit warning/Unknown rows are Degraded, red rows are Offline, and unclassified muted rows remain visible in All without being promoted to Healthy or Offline. Search and the route-owned selected filter survive reclassification; no new posture card is added. Attention sorting classifies each input resource once per call, retains the priority/name order and never caches status across calls or mutates the input inventory.
Debug source status, error and last-seen are reactive by section ID even when source payload sections stay mounted. New status records withdraw obsolete errors; absent/invalid timestamps do not acquire an age. Source payload, disclosure and focus survive status-only updates and quiet age ticks.
Verification: the Machines table, standalone page-model and Debug relative-age
tests cover the retained-row boundary, per-resource classification count,
arriving/withdrawn reports, unknown/offline membership and ordinary source-status
replacement. browser-tests/machines-health-filters.cjs compares chip counts,
Healthy/Degraded clicks and selected results on the composed parent and final
desktop/phone sources; browser-tests/pr2600-monitoring.cjs
compares exact-parent and repaired production surfaces on desktop Chromium and
touch-phone WebKit using synthetic local data. It establishes presentation,
not a probe, guest thaw/writes/liveness/restoration, native collector recovery,
whole-fleet CPU relief, publication or release availability.
AI Discovery removed (2026-10-11)
The AI runtime retirement boundary
owns removed service-identification fields and compatibility behavior. Resource
context retains discoveryTarget coordinates in its Runtime projection.
Interface-associated display addresses
VM and LXC projections retain the collector's interface-associated IP order in
canonical identity and broadcast. Agent-host display address selection also
recognises Podman interface names as secondary, retaining every address and the
explicit --report-ip preference. The shared pkg/netutil name hint does not
drop management bridges, bonds, VLANs or tunnels, prove a default route, or
change the agent's separate MAC-based machine-ID fallback. The existing MAC
metadata sequence keeps its legacy classifier; Podman preference affects only
displayed IPs. No identity key or wire shape changes.
TestIssue2757AgentDisplayPrefersNonContainerInterfaces
and TestIssue2757AgentDisplayKeepsSecondaryOnlyAddresses bind Podman,
management-interface, supplied identity and explicit-override controls to the
production host adapter; monitoring's #2757 fixtures bind guest list/broadcast
order and name/address/traffic association. Native readings and publication
remain separate evidence.
Provider workflows hydrate only their active route inventory
Docker / Podman, Kubernetes, TrueNAS, and VMware surfaces declare an explicit
canonical resource-type query for each workflow route. Only the active route's
query may hydrate or subscribe to realtime inventory; inactive routes use the
source-scoped facets.byType evidence returned with that active query to keep
their navigation visibility truthful. A direct route may remain visible while
its first request is in flight, but a settled facet bundle is authoritative and
must remove workflows for which the provider has no canonical evidence.
The shared useUnifiedResources boundary retains the REST facet bundle in the
same query cache as the rows. When a canonical WebSocket generation arrives,
it recomputes those facets from the complete snapshot after applying the
query's source and exclusion scope but before applying its type selection. A
realtime update therefore cannot undo REST scoping, hide an adjacent workflow,
or force every provider type back into the active route payload. Docker,
Kubernetes, TrueNAS, and VMware surface contract tests pin their route query
maps, and the shared hook test pins facet normalization.
Proxmox node verdicts over disks arrive on the node
The Proxmox page hydrates one query per workflow, and only its Storage tab
loads physical_disk rows, so a node verdict that depends on the node's disks
is derived in the registry and carried on the node, never rebuilt in the page
from disk rows. ProxmoxData.SensorSetupOutdated (proxmox.sensorSetupOutdated
on REST and websocket rows) is that verdict for the outdated sensor setup
notice. refreshProxmoxSensorSetupLocked
(internal/unifiedresources/proxmox_sensor_setup.go) runs after
buildChildCounts on every ingest path and gives every Proxmox node an
explicit true or false (other resources omit it), because browser facet merges
read an omitted field as a partial snapshot and would keep an earlier true. It
is true when the node's temperature payload is available and in the legacy
sensors -j format (models.Temperature.LegacySensorsFormat) and a disk whose
canonical parent is the node has no reading collected now
(diskinventory.TemperatureCollected) and a type whose temperature a PVE node
gets only through SMART: sata, sas, or the hdd and ssd form factors
Proxmox's own inventory reports. Proxmox also types a non-rotational USB device
ssd, so a USB device without SMART counts. A retained reading does not count
as current, including one kept while a host agent reports the disk in standby;
a reading a linked host agent collects now clears the disk. NVMe disks never
set it, because kernel hwmon reports them even on a legacy setup, and a host
agent the registry has not linked to the node contributes no disks. The
verdict reflects the registry's node and disk state at each ingest.
TestProxmoxNodeSensorSetupOutdatedFromItsDisks and
TestProxmoxNodeSensorSetupOutdatedFollowsWhereTheReadingArrives in
internal/unifiedresources/registry_test.go pin the rule, the linked-agent
case, the explicit false on the wire and the presented JSON;
resourceStateAdapters.test.ts pins that a false clears a merged true.
Canonical REST facets preserve realtime workload evidence
The frontend REST projection retains the complete source-authored Proxmox
facet, including runtime status, uptime, last backup, backup-in-progress, and
guest metadata, while applying only the canonical identity and metric
normalizations. It also preserves the provider-neutral virtualMachine facet.
Platform owners may therefore adapt the first REST snapshot into workload rows
without waiting for a later WebSocket merge; REST and WebSocket delivery must
not disagree about already-authoritative fields. The boundary is pinned by
useUnifiedResources.test.ts and useWorkloads.test.ts.
Source-scoped platform owners remain canonical realtime consumers. The shared
frontend hook locally projects supported type plus source filters from the
canonical WebSocket snapshot, including the public vmware-vsphere alias for
the raw vmware source, rather than degrading a source-scoped page to periodic
REST refreshes. VMware Overview passes that same source-scoped snapshot into
the embedded Workloads state, so hosts and VMs share one inventory generation
and one explicit refresh path. It passes no option that adds host metrics to
grouped rows: the shared Workloads group row carries host identity only, with
no drawer, hover preview, or group pin, and per-host stats and details stay in
the page's own hosts table. The Workloads route model no longer parses a
summaryGroup param, because no group focus remains to hydrate.
Its page-owned workload toolbar, the only one on the page because the embedded
WorkloadsSurface renders none, consumes the complete shared
getWorkloadsMetricFilterProps binding, so vSphere VMs expose the same Bars,
Trends, Details, History, range, and first-use discovery contract as the
Proxmox overview, the only other WorkloadsSurface consumer. The page must not select only display and
range props while silently dropping row-hover state from that shared resource
projection. The vSphere surface mount carries only that page-owned state, the
locked platform, the vm view and its empty-state copy; every resource and
workload option stays on the page's useWorkloadsState call, the surface's
only data input. That call carries no vms, containers, nodes or
useWorkloads option; the vSphere snapshot it receives is the state's only
guest inventory.
Docker and Kubernetes page owners use the same source-aware projection for
their complete provider type families. Their linked agent rows remain visible
because canonical merge preserves the provider source beside the agent source;
the pages must not admit every agent merely to recover those merged rows.
Proxmox route queries likewise declare their exact PVE, PBS, PMG, or agent
source boundary. Backups extend the source-scoped Overview guest snapshot with
a PBS-source server/agent snapshot, so a route transition composes canonical resources rather
than repeating the guest enumeration under another cache key.
TrueNAS follows the same rule: a merged agent-backed appliance retains its
truenas source, so the page queries that provider alone instead of admitting
the whole Agent estate. The standalone Machines owner combines the inclusive
Agent and availability sources with canonical provider exclusions; the shared
WebSocket projection applies those exclusions on every snapshot and delta so
REST filtering cannot be undone by a later realtime update.
Agent libvirt domains use a provider-neutral VM facet
The registry projects a host's validated libvirt domains as vm resources
with technology=libvirt, a parent relationship to the reporting host, and a
provider-neutral virtualMachine facet for runtime state, hypervisor, and
vCPU count. The source ID and metrics target are both
<host-id>:libvirt:<domain-id>. CPU and I/O metrics are omitted until the
monitoring layer proves a two-sample rate; memory is emitted only with a
positive maximum. The last successful libvirt collection time, rather than
the host heartbeat, controls guest source freshness. This facet must not
borrow Proxmox or VMware identifiers and carries no mutation capability.
Agent XCP-ng pool inventories coalesce by platform UUID
The registry projects XCP-ng guests through the same provider-neutral
virtualMachine facet with technology=xcp-ng. Pool-wide copies reported by
several agents use one xcpng:<pool-uuid>:vm:<vm-uuid> source identity, so a
VM appears once. The resident XCP host UUID selects a real agent resource as
parent when that node reports, and the pool name supplies host cluster
grouping. Power state, vCPU, and bounded memory facts are observational only;
the adapter advertises no lifecycle capability or nonexistent history target.
Agent custom sensors remain typed, cloned host metadata
resourceFromHost projects models.HostSensorSummary.Custom into
Agent.Sensors.Custom with a private slice and numeric value pointers.
Read-state cloning preserves identity, name, group, subgroup,
numeric/boolean/timestamp kind, unit, status, observation time, optional event
time, bounded error, error-alert preference, and stale state without aliasing
mutable host-model memory. The detail drawer reads this typed collection under
Custom Metrics, orders grouped labels, and renders boolean and event-age
values without folding them into thermal metadata or changing canonical
resource identity. TestResourceFromHostPreservesCustomSensorMeta,
TestCloneResourceIsolatesCustomSensorValues, and
TestHostCustomSensorMetaJSONContract pin adapter, clone, and JSON behavior.
Host views expose the integration-source discriminator
HostView.IntegrationSource() names the platform integration ("vmware",
"truenas", ...) that supplies a host resource's telemetry when the resource
has never ingested under SourceAgent; it returns empty for Pulse-Agent-backed
hosts. The check is deliberately source-set-based: integration providers
(vSphere, TrueNAS) fabricate an Agent payload so machine surfaces can render
host facts, so Resource.Agent != nil is not evidence of a real Pulse Agent —
only Sources containing SourceAgent is. When multiple non-agent sources
contribute, the accessor prefers vmware, then truenas, then the remaining
platform sources in a fixed order, and falls back to the generic marker
"integration" for a sourceless non-agent resource. Downstream fleet
consumers (hostFromReadStateView → models.Host.IntegrationSource → the
connections ledger's integrationSource) use this to keep
integration-monitored machines out of agent-only workflows without changing
fabric membership.
Governed action live-readiness refusal
The unified action model owns ErrActionExecutionUnavailable as a permanent
pre-dispatch refusal with canonical reason code
action_execution_unavailable. The transport-independent lifecycle rebuilds
the current canonical resource before asking the executor-owned readiness
checker; a missing resource remains plan drift, while an explicit unavailable
result records a bounded reason on the failed/no-effect audit and lifecycle
event. Empty readiness or an executor without the optional checker preserves
compatibility, but a checker that names the capability and reports it
unavailable fails closed before either human or automatic policy admission.
This refusal cannot alter the approved plan, select a replacement executor, or
grant mutation authority from resource health alone.
The lifecycle also evaluates these gates before recording a human approval.
The immutable plan remains the reviewed snapshot, while the API projects
current readiness separately and prevents approvals that are already known to
fail before dispatch. Rejections are unaffected. Expired or drifted plans
refresh into a distinct action ID with a fresh resource version, policy
version, hash, expiry, and preflight; the replacement never inherits an
approval from the old action. Patrol replacements preserve their trusted
finding/investigation origin and recompute current tenant/resource authority
factors server-side.
internal/unifiedresources/actions_test.go,
internal/actionlifecycle/service_test.go, internal/api/actions_test.go,
internal/api/contract_test.go, and
internal/agentcapabilities/manifest_test.go prove the domain transition,
both admission paths, HTTP/completion result, and shared manifest declaration.
Resource detail drawer discovery-tab Suspense fallbacks now compose the
frontend-primitives DiscoveryLoadingFallback template. ResourceDetailDrawer
and ResourceDetailDrawerOverviewTab own when the Discovery tab is available,
but they must not recreate the centered loading row, local border spinner, or
discovery loading copy outside that shared primitive.
The resource detail drawer's "Open in Workloads / Storage / Recovery"
related-links injection
(frontend-modern/src/components/Infrastructure/resourceDetailDrawerOperationalModel.ts's
buildRelatedLinks) was retired on 2026-05-16 alongside the platform-first
migration: the function now returns only service-detail links (PMG
thresholds). The supporting
buildResourceSurfaceLinksForResource /
buildWorkloadsHrefForResource / buildStorageHrefForResource /
buildRecoveryHrefForResource helpers were deleted from
frontend-modern/src/routing/resourceLinks.ts. New drawer affordances must
compose against the embedded platform-page sub-tabs rather than rebuilding
cross-jump URLs.
Cross-resource drilldown affordances were retired on 2026-05-16 alongside the
platform-first primary nav. The default buildResourceHref in
frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx
and frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
now returns null instead of building a /infrastructure?resource=... link,
so correlation, change, dependency, dependent, and related-resource labels
render as plain text inside resource drawers
(frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx)
unless the caller supplies a platform-aware override. The host-row workloads
icon
(frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx)
and the PBS "Open Recovery Events" link
(frontend-modern/src/components/Infrastructure/serviceDetailLinks.ts) were
removed because they were drawer-local cross-jump chips into broad aggregate
workspaces rather than platform-aware resource actions; the workloads-href helper module
(frontend-modern/src/components/Infrastructure/workloadsLink.ts) was deleted
in the same pass. The K8s Namespaces and Deployments drawer "Open Pods" /
"View Pods" buttons
(frontend-modern/src/components/Kubernetes/K8sNamespacesDrawer.tsx,
frontend-modern/src/components/Kubernetes/K8sDeploymentsDrawer.tsx) now
route to /kubernetes/workloads rather than building
retired aggregate workload URLs; the legacy context/namespace query filter
does not carry forward because the new Kubernetes Workloads tab does not
consume those parameters. The workloads and storage route-state helpers in
frontend-modern/src/routing/resourceLinks.ts serialize query state only, and
the owning platform/runtime route supplies the pathname; the recovery
serializer was deleted once nothing read it. New drawer or
correlation surfaces must anchor on platform routes (or stay-in-place drawer
expansion) instead of resurrecting the retired top-level paths.
The Proxmox Backups route-state vocabulary includes the opaque location
facet. Its value is owned by the backup recovery model, not by canonical
resource identity: PBS instance and datastore form the repository scope, and
the same value must survive the date/coverage route handoff so both views
apply one repository selection without inventing a top-level recovery route.
A PBS datastore resource takes its status from the storage vocabulary that PVE
storage already uses (available/unavailable alongside online, degraded, and
offline), so a healthy datastore is online and one PBS reports an error for is
offline; the generic string mapper that left every datastore unknown is not a
valid datastore status source.
Unified-resource drawers and Kubernetes drill-down controls may own resource
timeline filter semantics, namespace choices, and destination routes, but their
native select chrome must compose the frontend-primitives-owned FormSelect.
ResourceDetailDrawerOverviewTab.tsx and K8sDeploymentsDrawer.tsx must not
recreate raw labelled <select> controls for those filters locally.
The Proxmox platform page is a route-level consumer of canonical unified
resources, not a new resource source. It filters the existing resource snapshot
to Proxmox VE, Backup Server, Mail Gateway, storage, disk, and workload rows,
then composes the existing Workloads and Storage surfaces, its own Backups
tab tables, and the infrastructure table owners; no Recovery surface exists to
compose. Proxmox host row version, uptime, temperature, CPU, memory, disk,
network I/O, and disk I/O presentation must derive from canonical resource
facets and the shared nodeFromResource adapter; platform pages must not
rebuild resource identity, merge policy, or metric-target inference locally.
The bounded Proxmox node preview must preserve that canonical row ordering and
render its expansion affordance through the shared platform-table continuation
footer after the visible rows. The footer may dim the final row edge and expose
the remaining-row count, but expanding or collapsing it only changes the
client-side visible slice; it must not refetch, reorder, or redefine the
canonical resource collection.
The shared nodeFromResource adapter selects a node's temperature record as
before: the platform temperature record, else the Proxmox temperature record,
else the agent facet. When that selection yields no usable reading, it uses
proxmox.temperatureDetails if that holds a current CPU reading, ahead of the
bare scalar fallback. That field is
the Proxmox poller's full reading for a node without a host agent, including
the CPU low and record values the poller supplies; proxmox.temperature is
only the scalar maximum. The adapter forwards those values; keeping them across
polls is the poller's job (monitor_previous_state.go and the temperature carry
in monitoring). A bare scalar reading carries no history, so the adapter leaves
the CPU low and record unset rather than repeating the current value, and the
node drawer omits those rows. resourceStateAdapters.test.ts pins these cases
with the API's payload shape.
The registry and presentation coalescer also own metric-source freshness. When
two source facets contribute the same metric, source priority decides only if
both sources have equivalent freshness. A stale source must not hold CPU,
memory, disk, network, or disk I/O metrics against a live source, and a stale
incoming source must not clobber a live metric already attached to the
canonical resource. The explicit exception is hypervisor-managed guest CPU:
when a Proxmox or VMware platform CPU observation exists, semantic authority
precedes freshness so an in-guest agent never replaces it. Manual guest-agent
links are direction-independent: the hypervisor guest remains the canonical
resource and metrics target, each selected metric retains its real source, and
agent-only fields are preserved. This selection policy belongs in
internal/unifiedresources/registry.go and
internal/unifiedresources/presentation_coalesce.go, not in platform-page
rendering or frontend fallback code.
resource_operator_state.go owns the operator-set per-resource intent
schema. ResourceOperatorState carries five narrow operator-intent
fields (IntentionallyOffline, NeverAutoRemediate, maintenance
window via one-shot MaintenanceStartAt / MaintenanceEndAt or a mutually
exclusive weekly MaintenanceRecurrence, shared MaintenanceReason, and
explicit MaintenanceScope,
canonical Criticality hint of high|medium|low|"", and an explicit
AutoRemediationPolicy) plus
operator-attribution metadata (Note, SetAt, SetBy). The shape is
intentionally fixed-field rather than a freeform metadata bag so
downstream finding-suppression and severity-weighting logic has a stable
contract to honor. ValidateResourceOperatorState rejects malformed
records with a stable ErrResourceOperatorStateInvalid sentinel
(empty canonical id, partial maintenance window, end ≤ start, unknown
criticality, enabled automatic-action limit without a capability allowlist,
unknown timezone, or invalid recurring-window minute). The automatic-action
policy is an optional per-resource narrowing control: an empty policy inherits
the tenant Patrol mode and capability eligibility, while an enabled policy
names the only capability IDs allowed automatically on that resource and may
add a daily IANA-timezone window that crosses midnight. NeverAutoRemediate
is the explicit per-resource opt-out and always wins. Capability-owned
ResourceCapability.AutoAuthorization independently declares whether a
capability is never eligible, low-risk eligible, or elevated eligible; it does
not lower MinimumApprovalLevel. The first eligible vertical is Docker/Podman
container restart at low_risk; unspecified capabilities normalize to never.
Recurring maintenance names the local weekdays on which occurrences start,
uses inclusive start and exclusive end minutes, may cross midnight, and is
evaluated in its stored IANA timezone so DST and server relocation cannot
silently move operator intent. Weekdays normalize to unique Monday-through-
Sunday order. maintenanceScope defaults to resource; the only inherited
value is resource_and_descendants, resolved against the canonical registry
parent chain with cycle protection. Concrete occurrence start/end boundaries
are derived by the same model for Alerts, Patrol and post-window verification;
consumers read the active occurrence, never the one-shot fields, which a
recurring schedule leaves nil. ActiveMaintenanceCoverageAt is the one
inheritance rule: own window plus ancestor windows scoped
resource_and_descendants, latest active end wins, maintenance only. SQLite
persists recurrence JSON and scope in additive columns while legacy one-shot
rows retain their existing meaning. Scheduling, updating, changing scope, or
clearing either form remains an atomic operator-state plus resource-timeline
lifecycle write.
The operator-state banner projects these authoritative occurrence boundaries as local absolute start and end timestamps, including scheduled future dates. An active maintenance window describes paused attention rather than claiming that rejected observations have been acknowledged. Persisted policy remains keyed by canonical resource identity. Monitoring reconciles restored native alert aliases after registry publication, before evaluation or shared-state publication. Mounted operator-state regressions cover active and scheduled copy, while the monitoring restore regression covers SQLite policy and native aliases before the first observation.
NormalizeResourceOperatorState trims whitespace, de-duplicates capability
names, guarantees a non-nil empty capability list, and lower-cases the
criticality value before persistence. SQLite reads must apply that
normalization even when auto_remediation_policy_json is NULL, so an
operator state containing only intentionally-offline or another independent
override serializes capabilityNames: [] rather than null. The
ResourceStore interface now exposes
GetResourceOperatorState, SetResourceOperatorState, and
ClearResourceOperatorState; both the SQLite (table
resource_operator_state keyed on canonical_id) and Memory stores
implement the same upsert + idempotent-clear contract. The same
store also owns RecordActionPolicyExecutionStart, the automatic-admission
CAS that moves a planned or pending action directly to executing while
persisting the server-owned policy approval and typed
ActionPolicyAuthorizationLease in the same transaction. Memory and SQLite
implement identical semantics. The lease binds org/action/resource/capability,
plan and capability-policy hashes, safety and approval floors, tenant
mode/license/unlock version, optional resource limit/window/Never version, expiry,
and digest. A policy approval without that lease is historical-only and cannot
admit a nonterminal action after restart.
The same
store powers the agent-consumable bundled context endpoint at
/api/agent/resource-context/{id} (handler in
internal/api/agent_resource_context.go) — that endpoint reads
operator state and recent action audits through the canonical
ResourceStore accessors plus active findings via an
AgentFindingsProvider adapter wired from the patrol service, and
projects each shape into agent-stable AgentResource* types so the
wire contract stays decoupled from the storage type's evolution.
The operator-facing surface for this contract is
ResourceOperatorStateSection.tsx on the resource detail drawer
overview tab, which routes through the canonical TS client at
frontend-modern/src/api/resourceOperatorState.ts to
/api/resources/{id}/operator-state. Alongside the existing operator-state
controls, the drawer offers automatic actions only for backend-advertised
eligible capabilities. The operator-state section itself remains available for
every canonical resource id, including stopped containers and resources with
no auto-authorizable capability; only the automatic-actions subsection is
capability-gated. By default the resource follows the tenant Patrol mode.
Enabling the optional limit requires selecting exact capabilities and may add a
recurring daily time/timezone window; copy must state that the control narrows
the tenant mode, while NeverAutoRemediate disables automatic action for the
resource. At phone widths, the collapsed maintenance-window action stacks
below its explanatory copy so the button cannot squeeze policy text into a
narrow side column; desktop retains the compact side-by-side layout.
The UI must never infer eligibility from capability names, severity, or the
human approval floor.
Each control's help says what it does to Alerts, Patrol and automatic fixes in
plain words, never in implementation terms (no "persisted resource policy",
"action broker", "dispatch" or "canonical inventory hierarchy"). The
maintenance-window help says it silences alerts and dismisses new Patrol
findings, because an active window suppresses alert activation and
auto-dismisses new findings while keeping them in history. The descendant-scope
help says descendants' alerts are silenced and their new Patrol findings
dismissed, because Alerts and Patrol resolve maintenance through the one
ActiveMaintenanceCoverageAt rule over the live canonical parent chain. The Never auto-remediate label stays as named, because
help pages and the Assistant's refusal message refer to it; its help and lock
confirmation say it blocks every automated fix, including approved ones, and
that blocked runs are logged as failed actions (an Assistant planning refusal
creates no action record).
The /api/resources/{id}/operator-state API surface (GET / PUT /
DELETE) in internal/api/resources_operator_state.go is the
operator-facing consumer of this contract; the URL canonical_id always wins over the
body, server-side setAt / setBy populate from request time and
authenticated identity, and validation rejections surface a stable
operator_state_invalid error code. The Pulse Actions lifecycle
(validateExecutionPolicy in internal/actionlifecycle/service.go)
consults the same store at the dispatch decision point and refuses with
ErrResourceRemediationLocked when the operator has set
NeverAutoRemediate=true; the API reports it as
resource_remediation_locked so audit-UI filters and alert rules can
branch on the stable token. Finding-suppression integrations consume the same
ResourceOperatorState shape via the
ResourceOperatorStateProvider interface in internal/ai.
A remediation lock follows the resource through the identity changes the
stores can see. The planner, the action broker and the dispatch gate
(validateExecutionPolicy) read the row keyed by the one canonical ID the
registry lists, so a lock left on an ID the registry no longer lists would let
Pulse act on a resource the operator told it never to touch. The members of a
live manual-link component therefore share the block
(shareRemediationLockAcrossLinksSQL, CarryRemediationLock). AddLink writes
a block held by any member of the linked component to every member, in the
link's own transaction, because the store cannot see resource types and so
cannot know which member the registry keeps (a guest outlives an agent running
inside it whichever way the link points); a chain of links is one component.
AddExclusion does the same just before an unlink splits the pair, so each
member the unlink leaves keeps the lock the merged resource carried.
ApplyCanonicalIDSuccessions carries the predecessor's block onto a successor
row that already exists, which would otherwise shadow it. The IDs the
predecessor's and successor's links joined before the re-key stay one group:
once the re-key has run (so a successor with no row still receives the
predecessor's whole row, retirement, maintenance, notes and attribution
included), the group shares the block even where re-keying a link onto the
successor lets a newer exclusion supersede it. Successions apply hop by hop in
the order they are declared; the stores do not reorder a batch, so a chain
declared against its direction in one batch, or into an intermediate ID whose
own succession was recorded earlier, carries one hop per succession. A
succession applies once per predecessor in both stores, so a lock the operator
lifts on the successor, by editing or clearing its row, is not brought back by
a re-declared succession. Opening a store that has not run the one-shot
upgrade carry (migrateRemediationLockCarry, recorded in
resource_store_migrations) restores the locks that earlier links and
already-recorded successions dropped, following a recorded chain to every ID
that still has a row and repeating with the links until nothing changes; it
records itself done only once it has converged, does not run again after that,
so a lock lifted afterwards stays lifted, and a failure is logged and retried
at the next start rather than keeping the store closed. Sharing after a
succession batch waits until every predecessor's row in the batch has moved
and follows each group's members through the re-keys applied after it, in
application order, so a block-only row made
for one predecessor cannot take the place of another's whole row and an ID a
later succession in the batch re-keyed away is not given a row. The link reads
that settle a lock take only the columns that decide a pair and treat a time
the driver cannot read as the zero time, so a malformed link row cannot stop a
succession, a link or an unlink.
What crosses is the block only, as NeverAutoRemediate, and Retired counts
as a block: retirement also silences alerts and Patrol attention, which is
monitoring posture rather than a safety property, so a retired donor does not
retire the survivor. Every other setting an existing survivor row holds is left
untouched, a member with no row gets a row carrying the block alone, and the
carried row is attributed system:identity-change rather than to a person.
The operator lifts the lock on the resource the registry lists, which is where
the operator-state API resolves a folded ID to, and a restart, a rebuild or a
re-declared succession does not put it back. The copies the sharing wrote on
folded members cannot be reached through that API while the pair is linked, so
they share again at the component's next link, unlink or succession. Unlinking
the pair removes no carried lock from either side; once no other link still
joins them, each member can be edited or cleared on its own.
The sharing is bounded by when it runs, and the contract does not claim more. A lock written to a linked ID after the link was recorded reaches the other members at the component's next link, unlink or succession, and reaches the survivor at once only when the ID resolves through the registry, as the operator-state API resolves a folded ID to its holder; a lock written while the registry cannot resolve the ID (a member absent from the current generation) stays on that ID until then. The store cannot see which links the registry declines to fold (availability-owned endpoints, a node and agent pair a newer split separated), so those share too, which can lock a host because a linked probe was retired. Re-recording an existing link shares again.
A rebuild applies the successions it finds to the store before it publishes
the generation that lists the successors, and the generation it replaces keeps
serving in between. The planner, the Patrol broker and the dispatch gates
(validateExecutionPolicy, isResourceRemediationLocked) read the row of the ID
that generation lists, so for the length of the rebuild they ask for an ID whose
row has just moved. GetResourceOperatorState therefore follows the recorded
successions (canonical_id_successions) in both stores when the ID it is asked
about holds no row (followRetiredID, one walker for both): it answers as the
ID its chain ends on would, with that row's remediation block alone
(retiredIDRemediationLock, which is CarryRemediationLock into an empty
survivor), as NeverAutoRemediate, attributed system:identity-change and
dated by the row it came from so two reads agree (a plan's policy revision
hashes the state). Nothing is written, so ListResourceOperatorStates still
lists only the rows the stores hold. The end of the chain decides, because it is
the ID the next generation lists: a lock the operator lifted there, by editing
or clearing its row, is not read back from the stale row a succession leaves on
an ID before it when its successor already had a row, and an unlocked stale row
does not hide a lock held at the end. An ID that holds a row of its own answers
with that row. A chain is as long as the identity changes were and has no cap;
a chain that returns to an ID it has seen has no end, so a lock held anywhere on
it counts. Only the block crosses, so while the window is open the retired ID
reads none of the row's other settings (retirement as a lifecycle state,
maintenance windows, criticality, notes), as it read none before. The walk is
one snapshot: the SQLite store reads the ID's own row and every hop in one
transaction, because a succession that commits between two of the statements
can move the lock onto an ID the walk has already passed. The window ends when
the new generation publishes: that generation lists the successor, and a
lifecycle plan made against the retired ID drifts (resource ... is no longer present). An operator edit to the retired ID inside the window goes to the
retired ID's own row, not the successor's: the operator-state API writes the ID
the registry it consults lists, and a succession applies once per predecessor.
A lock set there does not reach the successor, which the next generation lists
and reads, and a lock lifted there leaves the successor's lock in place, which
is the safe direction; the retired ID's own row still answers reads of that ID.
A retired ID that a different resource later mints again, with no row of its
own, reads the successor's lock until the operator writes it a row.
A host or Docker reporter that had no machine ID, DMI UUID or cluster slot is
keyed by its source-specific ID (unless a link or match folds it into another
resource) and held no identity pin (a pin needs one of those keys), so when a
report first carries a key, its own or one its pin completes, no pin names the
ID it leaves. The registry declares that ID itself, as it does a Proxmox guest's
retired IDs, because the report recomputes it: noteReporterEraLocked notes
the reporter's source-specific ID against the resource its report landed on,
and the snapshot or record ingest hands the batch to applyRecordSuccessions
(takeReporterEras), which skips an ID still observed live or folded into a
link. Only SourceAgent and SourceDocker reporters do this, and only in an
ingest that may write (a registry with a store, not saved-host continuity):
they own their identity, whereas a Proxmox node borrows its linked agent's key
and a link or split can move that borrow either way, so a borrowed key is not
an era. Two kinds of source-specific ID are left out. One that holds an
identity pin belongs to pin succession, which decides whether another key is
the same host and lets a different machine mint fresh, so a keyless-era ID that
gained a cluster-only pin on the way is carried only if that succession names
it, which it does not for a later machine key. One an operator split names is
the candidate of a source kept apart from another resource, and a succession
would rewrite that pair into an exclusion of the resource from itself in a
generation where the other side is absent, erasing the split, so the
declaration leaves that reporter's rows alone (pin succession refuses the same
pair, see the split paragraph below). Reporters that gain a key declare
their era on every rebuild and the stores re-key a predecessor once, to the
successor it first had (the record is keyed by the predecessor), so a lock the
operator set on the keyless ID is carried onto the keyed one (the whole row
when the keyed ID has none). The first rebuild after an upgrade declares the
era of every keyed reporter that passes those checks, in the batches of its
ingest passes, and also restores a lock or row an earlier keyless-to-keyed
change left behind, even where the operator has edited the keyed row since. An ID held under a report ID the reporter no longer sends is
not recomputable. Like every succession, the move happens while the previous
generation is still being served, which is why a read of the old ID follows the
succession (above); a link the succession rewrites takes effect in the next
generation, because a registry loads its links when it is built (the lock is
shared across the pair at once).
Pin succession does not join two IDs the operator split. It reads two pins that
share a strong key as one host's eras, and a source split from a sibling that
reports the same machine key pins that key on its own source-specific ID
while the sibling is present (the store keeps one pin per key and deletes the
other's row, so which of the two holds it follows the write order). In a
generation where the sibling is absent and the split source's pin holds the key,
the source mints the sibling's ID and its pin names its candidate as that ID's
earlier era; applying the pair would rewrite the exclusion into one of the ID
from itself, and the sibling's return would merge the two. PersistIdentityPins
therefore declares a succession only when its retired ID is no longer observed
and the operator has not excluded that ID from its successor, and
withoutSplitFanInLocked drops a batch's successions that retire two IDs the
operator split from each other onto one successor (a pin matching one
predecessor by machine key and the other by cluster slot). The registry owns
both checks, beside the observed-ID check, so a rebuild that could not read its
decisions guards the split from the exclusions it carried
(carryOverridesFrom). A split that pairs the retired ID with a third resource
is re-keyed onto the successor with the other rows, as before. The refused
pair leaves its operator rows where they are, and the pin write of the same
rebuild still hands the shared key to the sibling's ID: while the sibling is
absent the split source is listed under the sibling's ID, and an operator lock
set on the candidate ID does not apply to it until the sibling returns (the
same boundary as the reporter-era rule above, and the boundary that already
held when the sibling's pin held the key; before this check a split source
holding the key had the lock carried onto the sibling's ID, with the split
erased). Limits: record-declared eras (applyRecordSuccessions) are not
checked, as reporter eras already skip every ID a split names and the
predecessor IDs that Proxmox guest and TrueNAS records declare are older IDs
of the record's own resource; only the successions of one batch are composed,
so a chain through stale carried decisions can still reach a self pair, and a
predecessor the stores already recorded still counts toward a fan-in, which
holds a safe migration back rather than letting a split go; and a split
recorded after the registry read its decisions is seen by the next rebuild
whose decision reads succeed. Proof:
TestPinSuccessionKeepsASplitSourceApart in
internal/unifiedresources/registry_test.go.
Canonical ID changes that reach neither a link nor ApplyCanonicalIDSuccessions
carry nothing: a physical disk re-keyed in place to a machine-scoped ID
(rekeyPhysicalDiskLocked moves no operator state, and the disk takes the
unscoped ID again when the other machine's copy goes away, finding the old row
as it was). For the lock that is a boundary, not a gap, because the planner
plans only a capability the resource advertises and no producer gives a
physical disk one, so no dispatch can reach a disk's ID. A producer that adds
one must first make the lock follow the disk;
TestPhysicalDiskResourcesAdvertiseNoActionCapability fails when one of the
registry's producers does (a Proxmox disk, an agent's SMART disk, an Unraid
array disk, a record-fed disk), and TestProviderDiskRecordsAdvertiseNoActionCapability
in internal/truenas/provider_test.go when the TrueNAS provider's records do.
The disk's other operator settings (retirement, muting, maintenance windows,
criticality, notes) are not carried either, and that is a decision, not a gap.
The readers that resolve a disk's reference (alert intent, Patrol's
operator-state provider, the resources API and the agent resource context) read
the row of the ID it resolves to, so after the re-key they read none unless a
row already sits on that scoped ID (a row written on a scoped ID applies again
whenever a copy with the same serial and machine scope is scoped again). On the
rebuild after the other machine's copy goes away the disk takes the unscoped ID
back and its original row applies again, over anything written on the scoped ID
since. A row left on an ID the disk no longer holds stays stored (the
maintenance sentinel still enumerates every persisted row, and a read that
names the ID literally still finds it), but resolving the live disk's reference
does not select it. The registry cannot tell which copy a row was set for: one
disk seen from two machines (a dual-ported SAS shelf) and two disks behind one
serial (fixed-serial USB bridges, cloned VMs with an explicit serial) look
alike. Carrying the row to one copy, say the one that held the unscoped ID,
picks a winner without knowing which disk the operator meant. Carrying it to
every copy, as a split recorded against the unscoped ID applies to every copy,
is right for the shelf and wrong for the two disks, and the outcomes differ in
kind: an exclusion that reaches an extra copy only costs an extra row, but a
retirement or mute that reaches a disk the operator never silenced can hide
that disk's failure alerts. Leaving the row makes the disk eligible to alert
again at the split, and the operator sets the posture on the copy. It is not
safe throughout: when the other machine goes away the original row applies
again, and if the operator had written a row on the scoped ID that suppresses
less (a restored monitoring state, a shorter window) the original silences the
disk again over it. That is accepted because the sequence it takes is narrow (a
split, such a write, and the other machine leaving) and the fixes considered all
need more. A copy that keeps the original would bring a cleared row back at the
next rebuild unless a durable record says it was made (a clear deletes the row),
and a move needs a policy for the return; a read-side fallback to the unscoped
row needs no record but extends one disk's posture to unrelated disks and
cannot be cleared per copy; keeping a serial scoped once it has split, so the
unscoped ID does not return, needs a durable marker and its own policy for a
scope that changes when the machine resolves. No report of a posture lost this
way is known (#1516 and #1654 concern missing and duplicated disks). Revisit on
such a report, or when a disk gains an action capability, which already
requires the lock to follow the disk (above).
TestPhysicalDiskOperatorStateIsNotCarriedAcrossASerialSplit drives the monitor
adapter's rebuild on both stores and reads as alert intent does; it does not run
the API write path, Patrol's provider or the other readers, so a carry added
there is for review to catch. In short, the disk's other operator settings are
orphaned by the same re-key and are not carried. Proof:
TestRemediationLockHoldsOnTheRetiredIDWhileThePreviousGenerationServes,
TestReporterGainingAStrongKeyKeepsItsRemediationLock,
TestReporterEraIsDeclaredOnlyForAKeyTheReporterGains,
TestPhysicalDiskResourcesAdvertiseNoActionCapability,
TestPhysicalDiskOperatorStateIsNotCarriedAcrossASerialSplit,
TestResourceRegistry_ManualLinkFoldKeepsRemediationLock,
TestResourceRegistry_ManualLinkFoldLockLeavesSurvivorSettings,
TestLinkedComponentSharesRemediationLockThroughLinksAndUnlinks,
TestSQLiteStoreRestoresLocksEarlierIdentityChangesDropped and
TestSQLiteStoreRestoresLocksAcrossRecordedSuccessionChains in
internal/unifiedresources/registry_test.go, and
TestCanonicalIDSuccessionCarriesRemediationLockOntoExistingSuccessorRow,
TestRetiredCanonicalIDReadsTheLockItsSuccessorHolds,
TestRetiredCanonicalIDReadFollowsASuccessionChain,
TestRetiredCanonicalIDReadsWhatTheEndOfItsChainHolds,
TestRetiredCanonicalIDReadEndsOnARecordedLoop,
TestCanonicalIDSuccessionRekeysAPredecessorOnce,
TestCanonicalIDSuccessionLockReachesLinkedSurvivor and
TestCanonicalIDSuccessionKeepsLinkedMembersTogether in
internal/unifiedresources/canonical_id_succession_test.go.
actions.go now owns the canonical action preflight and audit-normalization
contract. Action plans must carry dry-run availability, safety checks, and
verification steps through preflight, and RecordActionAudit plus
RecordActionLifecycleEvent must normalize action id, request id, resource,
capability, approval policy, timestamps, lifecycle state, and requester before
records reach durable audit history.
Action approval decisions belong to the same resource-owned state machine:
ApplyActionDecision may transition only a persisted pending_approval
record to approved or rejected, while RecordActionDecision must update
the current audit record and append the lifecycle event atomically without
creating execution results or accepting stale second decisions.
Action execution now follows that same resource-owned state machine:
BeginActionExecution may transition only an approved action, or an
approval-free allowed plan that is not ApprovalDryRun, into executing;
dry-run-only plans may remain audited planning evidence, but must fail closed
before any executing lifecycle mutation. CompleteActionExecution may
transition only an executing record into completed or failed with an
explicit ExecutionResult. RecordActionExecutionStart and
RecordActionExecutionResult must perform the audit update and lifecycle
append atomically against the current persisted state, reject stale duplicate
starts or terminal writes, and preserve approval as separate from execution.
ResourceActionHistory.tsx now surfaces that same normalized action audit
trail inside the resource-detail workflow through the canonical
frontend-modern/src/api/actionAudit.ts client and shared
frontend-modern/src/utils/actionAuditPresentation.ts labels. The resource
drawer must treat gated action-audit reads as unavailable rather than turning
ordinary infrastructure inspection into an upgrade-prompt path.
Docker / Podman container lifecycle controls in
frontend-modern/src/features/docker/DockerContainerLifecycleControls.tsx and
dockerContainerLifecycleActions.ts are unified-resource capability consumers:
they may enable start/stop/restart only from backend-advertised resource
capabilities and must use sourceStatus, docker.agentId, docker.runtime,
docker.security, and backend-owned actionReadiness only for disabled-state
explanation, never as a feature-local execution bypass. The same controls may render in
DockerContainersTable.tsx and the canonical ResourceDetailDrawer.tsx header
only for Docker-source app containers backed by Docker or Podman runtime
metadata; other app-container sources such as TrueNAS must not inherit Docker
lifecycle controls from runtime-shaped metadata alone. After a governed request
completes, the owning surface may ask its existing useUnifiedResources query
to refetch the resource snapshot, but refresh is not an alternate execution,
verification, or provider-control path.
Alert-threshold identity on those Docker rows is also resource-facet backed:
DockerContainersTable.tsx resolves per-container alert thresholds by handing
the full app-container resource (name plus docker.containerId facet) to the
shared dockerContainerOverrideIdCandidates chain, so override identity keys
on docker:{host}/{containerName} (#1601) rather than on parsed unified
resource-id tails.
Proxmox VM and LXC lifecycle affordances follow the same resource-owned rule:
the backend advertises only status-appropriate start, shutdown, reboot,
and stop capabilities for non-template, unlocked Proxmox guests, filters them
when the owning node command agent is disconnected, and records disabled-state
context in actionReadiness. Proxmox platform pages and detail drawers may
consume those fields, but they must not treat row status, VMID, node name, or
guest metadata as separate permission to run qm / pct or provider calls.
Typed VM and system-container read views expose detached capability slices and
per-source delivery status for internal consumers. A Patrol detector must bind
to the exact resource-owned lifecycle capability and consume the canonical
Proxmox source status/timestamp; it must not reconstruct action availability or
freshness from guest power state or a locally hard-coded polling window.
A page summary that shows degraded or alerting resource counts beside
online and offline totals must derive them from the unified resources its
page already holds, not from a separate API call or a re-projection of
websocket state outside the shared resource pipeline.
resourceBadgePresentation.ts owns the canonical system identity resolver,
getInfrastructureSystemIdentityBadges(...), which feeds the resource drawer's
header badges and, through getDockerHostSystemBadge(...) in
frontend-modern/src/features/docker/dockerPageModel.ts (which drops
runtime-only Docker/Podman labels), the Docker hosts table's System column.
That resolver must prefer provider/API platform
identity, then reported host OS or appliance identity, before falling back to
Docker or other runtime capability labels.
This subsystem now sits under the dedicated core monitoring runtime lane so
canonical resource identity, discovery normalization, and platform-runtime
coverage stay governed as a first-class Pulse product surface, including the
shared VMware signal-metadata and resource-incident timeline vocabulary that
canonical resources expose to alerts, AI, and frontend consumers.
Agentless availability checks are now canonical resources rather than
connection-only status rows. SourceAvailability emits network-endpoint
records with the saved target id, probe address, protocol, cadence, last check,
failure count, threshold, correlation outcome, and evidence envelope in
AvailabilityData. Registry merge policy must preserve that payload and
incident state.
Correlation is fail-closed and ordered. A non-empty LinkedResourceID is
authoritative: it may resolve by exact canonical resource id, one unique source
id, or one unique canonical identity alias, and an invalid or ambiguous
explicit reference remains unresolved without falling back to address
matching. Without an explicit reference, the registry may attach only when one
normalized IP address or one exact normalized hostname matches exactly one
non-availability-owned canonical resource. Zero matches are standalone;
multiple matches are ambiguous; neither may be guessed. A genuinely
standalone target keeps its network-endpoint. An attached target does not
collapse into the matched resource: it keeps the same source-owned
network-endpoint row and projects an additive facet onto the matched
resource.
The source-owned endpoint is the canonical identity for each configured check.
It owns probe status, incidents, history, evidence, and the outgoing checks
relationship. The matched resource carries every correlated check in the canonical
availabilityChecks facet, keyed by saved target id, while availability
remains an additive singular compatibility summary selected from that set.
The summary is the worst check: a confirmed outage first, then any other
observed failure, then an unchecked, ambiguous or unresolved check, then a
passing one, ties going to the first saved target id. A confirmed outage is an
enabled check whose observed failures reach its failure threshold, with an
unavailable aggregate when one is reported and an outcome that is not
indeterminate. That is the gate the availability poller applies before it
raises availability_unreachable, so a probe agent that stops reporting keeps
its old failure count but confirms nothing. availabilityOutageConfirmed in
internal/unifiedresources/availability.go holds that rule for both the
ranking and EvaluateResourceHealth, which reads the summary. A confirmed
outage on any attached check therefore makes the resource's health critical
even when a check that sorts earlier has failed below its threshold, with the
availability_failed reason unless a critical alert explains the verdict
first.
Adding a second explicit or unambiguously correlated check must retain both
source-owned endpoint rows, project both facets onto the same resource, and
emit one checks relationship per target from the check to that resource.
The check evidence subject is bound to the source-owned endpoint; the projected
facet carries a cloned envelope rebound to the matched resource. Both include
the exact correlation rule and matched field. Ambiguous and unresolved check
evidence carries a typed reason instead.
Availability projection is deliberately narrower than identity merge: it must
not copy the checked service address, name, status, incident, tags, metrics, or
last-seen value into the matched machine or service. Rehydration may seed
SourceAvailability identity only from availability-owned endpoints, never
from a host projection, and manual identity links must not erase a configured
check row.
Frontend resource adapters must preserve that same availability identity on
both REST and realtime paths, including plural availabilityChecks on matched
resources: a thin network-endpoint update with
availability data is still platformType=availability, sourceType=api, and
must not regress to a generic platform badge in infrastructure rows or drawers.
Infrastructure row presentation must also consume that availability payload as
operator evidence, not only as badge identity. Any resource row carrying an
availability facet—whether a standalone network-endpoint or a known
guest that inherited the facet through explicit link or IP correlation—must
surface one visible probe readout from either the top-level availability field
or the live-state platformData.availability mirror: the System column uses
the probe protocol as the compact identity badge (ICMP, TCP, or HTTP),
while the metric cell shows only the target detail and latest latency or
failure result, such as 6053: 11 ms, /status: 503, 3 ms, or timed out.
The owning detail renders protocol, full target, latest result, latency,
freshness, and last observation for every attached check. Expired successful
evidence is stale, not Up or Responding normally; an unobserved check is
Not checked, not Down.
For HTTPS checks the same availability facet additively preserves certificate
monitoring policy and the canonical certificate observation. Resource clones
must deep-copy certificate SAN slices. The owning availability card on both the
source endpoint and any linked resource overview renders trust, subject, expiry,
hostname match, issuer, and a bounded SHA-256 fingerprint preview. Certificate
incidents remain on the source-owned endpoint and are not duplicated onto the
linked resource during projection.
Frontend primitives owns Machines as the operational presentation for those
same agentless checks; unified resources owns the projection contract consumed
there. StandalonePageSurface.tsx must fetch both agent and
network-endpoint resources, keep standalone machines and availability checks
as separate buckets in standalonePageModel.ts, include every source-owned
network-endpoint regardless of correlation state, exclude matched machine or
service projections from the check inventory by resource type, and let
AvailabilityChecksTable.tsx render saved probe method, target, latest result,
24h uptime, check age, last healthy time and failure count from the canonical
availability payload, with cadence restored only on the widest tables. Uptime
comes from the shared availability history summary the fleet view reads and
stays blank below 90 percent observed. The failure count reads "N in a row",
with the offline threshold on hover, not an "N/M" fraction.
Recent check timing and fuller failure context may stay in tooltip or drawer
detail, but the table row must not duplicate the same probe protocol and
result text across both identity and metric cells.
The probe source chip ("via Edge 01", or "2/2 locations reporting" for a
multi-location check, the same wording Settings uses) shares the result's
single line: the result keeps its full width at the cell's right edge and the
chip takes the room left, truncating with its full text on hover. Before, the
chip pushed "failed" out of its column at every width up to 1440px. Rows stay
one line because the table windows them at a single measured height. On
phones the method and target columns hide so the check name reads, and both
stay in the row drawer.
That same frontend-owned compatibility boundary must remain intentionally
narrow. Shared resource adapters may admit explicit aliases such as host,
truenas, and ceph, and VMware detail mappers may project typed metadata
through the canonical resource model, but unified-resource consumers must not
reintroduce removed workload aliases or feature-local resource-type shims just
to satisfy one table, drawer, or badge surface.
ZFS dataset inventory remains nested evidence rather than a new unified resource kind. The canonical host snapshot owns a deep-copied list of reported pool datasets, and Proxmox storage polling copies that list into the matching pool detail without changing resource identity, counts, parentage, or source selection. Deep-copy boundaries must clone both pool and dataset slices so state snapshots and unified-resource consumers cannot alias mutable ingest buffers.
Alert-intent identity and availability evidence projection
The monitor adapter may expose two optional read capabilities to the alert intent resolver: source-reference resolution to the current canonical resource ID and durable operator-state lookup for that ID. These are read-only views over the existing registry and store. Display aliases do not become persistence keys, an unresolved reference supplies no operator suppression, and the adapter does not mutate operator state or alert policy.
The canonical availability facet additively carries probeOutcome and
udpMode. indeterminate is evidence that UDP reachability could not be
distinguished from filtering; it is neither available nor unavailable truth.
Backend and frontend resource types must retain these values through JSON and
read-state projection without changing canonical identity, correlation, or
incident ownership. Legacy clients may ignore the additive fields and continue
reading the established boolean and status fields, but new consumers must not
convert an indeterminate outcome into a successful check.
internal/unifiedresources/availability_projection_test.go proves the wire
shape, internal/unifiedresources/monitor_adapter_read_state_test.go proves
canonical identity and operator-state forwarding, and
frontend-modern/src/types/__tests__/resource.test.ts proves the browser
projection.
Physical-disk identity and collection read state
pkg/diskinventory owns deterministic physical-disk fallback identity and
field-level collection state. Serial remains preferred over WWN, and both
remain preferred over device fallback. Direct SATA, SAS, and NVMe fallbacks
retain their historical device-scoped shape; controller members sharing one
block path add controller/target scope so they cannot collapse into one
resource. Topology correlation is parent-scoped and ambiguity fails closed.
That scope is added once. A controller member without a usable serial or WWN
keeps its history under a source ID that already names the member: the host
agent's HostSMARTDiskMetricID, and the Proxmox PhysicalDiskMetricID, which
returns ProxmoxPhysicalDiskSourceID. PhysicalDiskMetaMetricID therefore
returns a fallback that already ends in the disk's own device, controller and
target unchanged as the metrics target. It appends that topology only to a
fallback without it: a Proxmox source ID from before members were scoped,
which PhysicalDiskMetricID scopes the same way, or the canonical resource ID
PhysicalDiskView.MetricResourceID falls back to. The suffix survives a merge
because a member target only reaches a disk together with the controller the
agent reported beside it (the multiplexed smartctl path sets both), and the
Proxmox row copies both from that agent row. A registry rehydrated from
persisted resources rebuilds the agent source ID in the same scoped shape
(seedAgentPhysicalDiskSourceIDLocked). TrueNAS disks carry no controller
target and keep their fallback. The reader used to append the topology to an
already scoped source ID as well, so such a member's chart read a key no
writer used. Proof: TestPhysicalDiskMetaMetricIDScopesAControllerMemberOnce,
TestIdentitylessControllerMembersReadTheirWritersHistory.
Host reports, monitoring models, registry merges, typed physical-disk views,
API resources, websocket/REST snapshot merges, and storage presentation must
round-trip controller, target, per-member I/O, storage-group membership, and
the five field statuses for serial, temperature, I/O, controller, and pool.
available evidence wins over weaker observations per field. A current
unavailable, unsupported, or missing state may retain a prior value for
continuity, but the state and reason must survive so the consumer cannot claim
fresh evidence or synthesize controller-level activity for one member.
The one exception is a source withdrawing its own evidence: when the agent
row reports a field as no longer available, that supersedes an available
state the Proxmox row still carries from the same source
(diskinventory.MergeReportedStatus), in either ingest order. A host agent
past its reporting lease must not stay "collected" through the Proxmox row's
copy of the agent's own state, including when its host is down and no disk
poll refreshes that copy.
Each merge step then presents the shown temperature under a state that belongs
to it (pairPhysicalDiskTemperatureState). The value is still chosen by source
preference and the field states merged as above, so the shown value could
otherwise sit under another row's state: a silent agent's retained reading
under a Proxmox row's current available, or a legacy agent's stateless
reading under a Proxmox inventory row's unsupported. One merged state per
field cannot say whose reading is shown once a disk has three or more rows, so
the registry keeps each row's own temperature reading and state on the merged
disk (merge-time only, never serialized) and derives the state from the
readings of the shown value. Each counts its own state, except that a state a
non-agent row copied from an agent source gives way to an agent row's own
withdrawal of that source (a legacy agent's sourceless withdrawal matches its
host_agent copy through diskinventory.LegacyHostAgentStatus, the rule
monitoring stamps the copy with); that withdrawal is the only state taken from
a reading of another value, and it never grants available. A collected
reading is presented over one that is not and an agent's own report over a
copy, so while a current reading holds the shown value, the order in which
different rows arrive does not change the state. A second agent reporting the
same disk is not a copy: its withdrawal leaves another agent's own collected
reading collected. A row that reports again replaces its reading. When source
preference keeps showing a value no current reading holds (the row that
reported it went into standby, or reported again without the SMART attributes
that made its value preferred), the value keeps the state it was presented with
and the row that state belonged to, under that row's later withdrawal, and the
agent's withdrawal of its source still supersedes it; a row's earlier report
never competes as current evidence. Such a kept state depends on the history of
reports, as the kept value itself does, and stays available when its row now
reports a different collected value. A disk that arrives without the record, or
no longer presents the value and state it was built for (edited), stands as one
reading of unknown rows: an incoming agent row's withdrawal of the source of
its state supersedes it, and when the agent is among its sources its own
withdrawal still supersedes an incoming copy. A disk entering the registry as a
new row is that row alone. Two boundaries lose rows. JSON keeps only the
presented state, so a withdrawal it does not show cannot supersede a copy
merged after a round trip; the production rebuild ingests every row into a
fresh registry and never merges across JSON. A manual link keeps the primary
disk's readings and drops the other disk's, so rows merged after the link
(supplemental records) meet only the primary's.
registry_merge_policy_test.go
(TestPhysicalDiskMergePairsEveryShownTemperatureWithItsRowState) checks every
ingest order of a catalog of agent, Unraid, Proxmox and TrueNAS rows against
this rule, and TestPhysicalDiskMergeTemperatureReadingsAcrossIngestBoundaries
pins the boundaries.
Unraid array-inventory rows carry no per-field provenance, so the adapter
derives the state of a positive temperature taken from one (a row without a
temperature claims no state): unavailable from unraid
with "host agent stopped reporting" once State.ExpireHostTelemetry has marked
the host offline, or with "disk is reported spun down" for a spun-down disk,
and otherwise available. The value is kept as last-known context; it is
collected again only when a reporting host sends a positive reading for a disk
that is no longer spun down. The Unraid-native disk row carries that state, and
so does a SMART row that falls back to the inventory reading because it has
none of its own. The adapter's risk assessment of an Unraid row judges no
temperature at all; heat belongs to the alert disk temperature policy.
Cross-source correlation compares normalized serial and WWN values across
fields without truncation, allowing a PVE bare-hex array-volume serial to join
the same smartctl naa. WWN while keeping sibling volumes with a common short
WWN distinct. pkg/diskinventory/identity_test.go (TestHardwareIdentityMatch)
pins framing, symmetry, placeholder, and no-truncation behavior;
internal/unifiedresources/registry_test.go
(TestIssue1720ArrayVolumeMergesBareSerialWithPrefixedWWN) pins the merged
Proxmox-plus-agent resource boundary.
Canonical identity succession
Connection-backed TrueNAS systems keep connection-scoped canonical IDs across
reported hostname or machine-identity changes, and separate connections with
the same hostname remain distinct. Legacy hostname-derived IDs may be exposed
as explicit SupersededCanonicalIDs; registry persistence may re-key owned
operator state and delete the retired pin, while ordinary aliases remain
read-only lookup compatibility. A successor row that already exists keeps
its own settings, but on the succession's first application the predecessor's
remediation lock is carried onto it (CarryRemediationLock) and across the
successor's links rather than shadowed. Identity pins from an unrelated Pulse Agent
must not complete or merge a TrueNAS connection identity.
canonicalIdentity.supersededIds is preserved across backend projection and
thin/fresh frontend snapshot merges. Only this explicit succession set may
authorize another subsystem to migrate durable keys. Unified resources owns
identity and read-state truth, not alert configuration writes, Recovery
Assurance, or customer-infrastructure mutation; canonical Actions remains the
sole mutation plane.
pkg/diskinventory/identity_test.go,
pkg/diskinventory/status_test.go,
internal/hostagent/issue1595_sas_collection_test.go,
internal/monitoring/issue1595_collection_trust_test.go, and
internal/truenas/contract_test.go prove identity, collection, registry
read-state, and TrueNAS succession behavior.
frontend-modern/src/hooks/__tests__/useUnifiedResources.test.ts and
frontend-modern/src/utils/__tests__/resourceStateAdapters.test.ts prove
browser projection and snapshot-merge continuity.
Operational Trust relationship identity
Operational Trust relationships use a stable normalized relationship ID and may bind an exact evidence ID. Availability attachment, hosting, storage, protection, and membership relationships normalize through the unified registry; ambiguous identity remains unattached and emits only a bounded correlation outcome. Attached availability is a facet of the known resource and must not create a duplicate standalone resource or second primary presentation. Supported legacy relationship payloads may omit the additive ID, but all primary runtime projections author the canonical stable identity.
Patrol attention resource navigation carries the canonical subject resource ID through shared route builders as an opaque query value. Attention deep links carry the canonical operational-record ID separately. Neither link may derive a replacement resource identity from display text, provider labels, or alert metadata.
Protection posture identity consumer
ProxmoxCoverageTable remains a unified-resource identity consumer while
storage/recovery owns protection truth. Its explanation copy for rows without a
canonical workload identity says so in user terms ("does not match a guest
Pulse currently monitors, so it is not rated"); the identity rule itself is
unchanged. Dropping the per-source age columns
from its rows changes no identity input: rows still key posture by the exact
canonical Resource.id. Live VM/LXC rows carry the exact
canonical Resource.id into one bounded posture batch; the table must not parse
its presentation key, VMID, name, node, or instance to mint a replacement
resource identity. Host and orphaned backup artifacts have no canonical live
workload resource ID and therefore render Not evaluated while retaining
their forensic backup detail. That presentation state is not a fifth server
posture and must not be counted as unknown provider evidence. Unified resources
own row identity only; they do not derive backup
freshness, provider completeness, verification, or protection state.
Backup table windowing may change which rows are mounted, but the visible slice
must retain the exact full-set row objects and canonical resource identities;
viewport movement, spacer rows, filtering, and sorting must never mint a
replacement identity from a row index or presentation label.
TrueNASProtectionTable likewise consumes storage/recovery-owned event
outcomes without turning its compact failed/warning attention count into a
canonical workload ProtectionPosture; that count is event-history navigation,
not a second protection-truth projection.
APT Product Trust browser projection
The durable Actions inbox and resource action history consume the canonical APT
workflows without adding a frontend action-truth dialect. The shared
aptActionPresentation.ts translator may recognize only the complete bounded
host-update and package-cache summaries emitted by the accepted backend
contract. It validates the closed phase set, safe integer counts, cleanup byte
arithmetic, and exact empty parameter envelope before presenting facts. Any
partial, malformed, unknown-phase, or arithmetically impossible summary yields
no fact card and directs the operator to refresh and review the canonical
record. Execution, verification plus adjacent evidence source, and compensation
remain three independent ActionResultV2 cards.
The Actions inbox presents that durable record as a compact operator queue,
not a stack of equally weighted audit cards. Open work orders approval-required
decisions before runnable and executing actions; each collapsed row exposes
only state, action, bounded resource identity, recency, and reason before the
operator opens the governed review. Action list and detail reads enrich each
audit with the current canonical resource name and contract type when that
resource can be resolved. This metadata is a read-time presentation projection,
not part of ActionRequest, durable plan identity, or planHash; a resource
rename therefore cannot change action authority. Opaque canonical resource IDs
remain in the row's accessible name and title, while the visual row prefers the
API-supplied name and type and falls back to the bounded ID-derived type plus
short suffix only when the resource projection is unavailable. When the row is
too narrow for both, the resource name keeps its width and only the type, with
its separator, gives way: on a phone they used to shrink together, so the row
read "analytics-ba… · Virtual ma…" and hid which resource the action touches.
Read-only demo posture is quiet supporting context rather than a page-level
callout. The
empty Open queue must explain producer state rather than promising content:
when the effective Patrol mode is Watch only (read via the canonical
/api/ai/patrol/autonomy settings read, failing closed to the generic calm
copy when that read is unavailable), the calm state names that Watch only
never queues proposed fixes and routes unlocked installs to the Patrol mode
switch, while plan-locked installs get the presentation-policy-aware Pro
capability line from actionPresentation.getActionsWatchOnlyEmptyState with
the upgrade action suppressed whenever upgrade prompts are hidden. That
guidance is presentation-only: Actions must not gain a second Patrol mode
mutation surface. The
governed review dialog continues to own the full exact resource ID, plan,
policy evidence, lifecycle, authority, and outcome truth. Its first layer keeps
intent plus safety/authority facts visible while the immutable planning-time
policy sources, revisions, and reason codes sit behind an explicit disclosure;
missing provenance remains an immediate fail-closed warning rather than hidden
detail. Actions is the canonical browser hub for action review, execution
progress, and recorded outcomes; contextual sources such as Patrol link into an
exact action review instead of duplicating those mutations locally.
When a user selects a different action before a prior detail read completes,
only the detail matching the current action URL may open the review. Closing
the review invalidates pending detail and receipt reads, so a late response
cannot reopen it or substitute another resource's action. The page also keeps
Open and History list responses scoped to their latest request; an older tab
result or error cannot replace the current tab. This is a browser ownership
rule over server-authored action identity, not a new action or receipt state.
APT review presents server-recorded policy provenance and distinguishes the elevated update posture from low-risk-eligible cache cleanup. Both typed actions declare that no command, path, package selection, removal choice, or reboot authority is accepted from the browser. Reboot-required is a reported fact only; there is no reboot control. Durable attempt and receipt detail appears once and explains that refresh or reconnect rehydrates the existing action rather than creating a duplicate. Package cleanup is explicitly irreversible; an inconclusive or failed cleanup requires a fresh scan and never presents fake rollback or automatic retry.
An executing action whose durable dispatch attempt remains receipt_pending
for more than the server's one-hour reconciliation window is still an unknown
operational outcome. At any age, the Actions review labels that wait as receipt
pending, warns against a new plan, and can re-read the same action by GET without
dispatching or closing it; this is available even to read-only viewers. The
Actions review may offer the already-authorized local
audit force-fail recourse only after direct resource-state checking, a reason,
acknowledgement and a fresh detail read. This terminalizes the audit row
inconclusively; it does not stop or retry the agent operation. The shared
decision packet and Actions history therefore label an operator-force-failed
record as outcome unknown, not as a proved failed mutation. Terminal records
and read-only sessions retain their review evidence but no recovery control.
Task 09 owns shared APT telemetry freshness in
internal/unifiedresources/host_apt_telemetry.go. Capability construction,
finding admission, and execution readiness consume the same dual-timestamp and
SHA-256 validation rules. A retransmitted old agent observation stays stale
when freshly received, future/skewed clocks fail closed, and capability removal
cannot be bypassed by duplicated telemetry predicates.
Patrol Autopilot authority evidence
internal/unifiedresources/patrol_autopilot.go owns the versioned immutable
acknowledgement, revocation, activation, accepted-scope/limits, digest, status,
and evaluation contracts. A static server-owned registry binds every supported
acknowledgement version to its exact immutable scope, limits, and optional
lifetime; the current version provider is separate from that historical
registry. One pure stored-evidence validator checks each record against its own
registered version, canonical IDs, human actor and organization binding,
coherent times, digests, activation binding, and unique same-acknowledgement
revocation before any config mutation. Runtime evaluation uses the current
registry entry and fails closed; a malformed foreign revocation cannot become
a valid revocation attributed to the victim organization.
This authority evidence does not replace the governed action lifecycle,
approval strength, dispatch continuity, or ActionResultV2. It only controls
whether requested Patrol full mode is effective.
Canonical action-result truth
internal/unifiedresources/action_result_v2.go is the sole schema authority
for terminal action truth. ActionResultV2 versions execution, verification,
evidence trust, and nested compensation as independent facts. Independent
verification requires durable bounded evidence from a trust domain distinct
from the executor; evidence identifies observer kind as well as observer and
trust domain, and an agent readback remains agent-attested. Nil executor
results, legacy completed rows without results, timeouts with unknown effect,
and malformed evidence remain explicitly inconclusive. Legacy Success and
VerificationOutcome fields are derived compatibility projections only.
Canonical evidence is bounded before redaction and digested as SHA-256 over
the canonical redacted envelope. Redaction deep-copies nested evidence and
fails closed to redaction_contract_violation; it never preserves invalid or
unredacted input. Result normalization is copy-on-normalize across evidence,
verification, and nested compensation, so callers may safely normalize shared
immutable snapshots without mutating their stored input or racing other
readers. A present but malformed stored V2 also fails closed to
result_v2_invalid; legacy booleans can never override it. Compensation truth
never rewrites the primary result and carries declared trigger, durable
attempt/step identity, timing, nested execution and verification, and restored
state digest identity for downstream recovery without implementing recovery.
Workflow, API, AI, agent, Docker, host-agent, and relay packages must not
declare competing truth enums. Generated wire mirrors remain a bounded later
presentation concern, not a second source of semantics.
The first production distinct-trust-domain consumer is the Proxmox VM/LXC lifecycle executor. Its node-agent dispatch and Proxmox API observation remain separate evidence domains, and the API-owned projection binds the exact action, resource, before/after snapshots, observation times, and canonical digest. This does not authorize provider-local mutation or relax the false-independence guard for Docker or agent-attested APT readback.
The canonical action resource contract now owns immutable ActionActor and
versioned ApprovalRequirement bindings. Actor subject/kind/credential/org and
requirement floor/quorum/separation are part of deterministic action identity
and plan hashing. Human approvals are append-only under a durable monotonic
decisionRevision: SQLite and MemoryStore compare pending state, revision, and
the complete prior approval prefix before accepting the next decision. Each
accepted revision persists a typed decision event with the bound approval and
evidence; approved/rejected state changes persist a separate unique transition
atomically, while pending quorum decisions do not fabricate a state change.
Legacy nonterminal approvals without these bindings are readable but fail
closed as replan-required.
internal/unifiedresources/action_policy_provenance.go is the sole schema
authority for plan-time action policy provenance. Every new canonical plan
captures the capability-registry authority and may add only the ordered,
bounded tenant Patrol and resource-operator authorities actually consulted by
a trusted broker. Version, stable source identity/revision, organization,
resource, capability, resulting approval requirement, and closed reason codes
are digested and included in planHash; malformed, duplicate, cross-scope,
contradictory, unsupported, or unbounded facts fail before audit persistence.
planningAllowed means only that a typed plan could be created. It is not an
authorization result and cannot replace the fresh Task 04 dispatch lease or
current-policy recheck. Legacy rows without the field remain readable only as
legacy_unknown; normalization never invents historical policy authorities.
Memory and SQLite preserve the same object through replay and reopen.
Action audits are the durable source of truth for Patrol action continuity.
The store exposes optional ActionAuditOriginReader and
PendingActionAuditReader capabilities; origin lookup is scoped by org and
investigation identity, while pending reads are oldest-first. The optional
VerifiedActionAuditOriginReader is the canonical receipt source: it applies
the trusted origin set and confirmed postcondition predicate before the bound,
returns newest verification first, and never asks a product client to scan a
generic settled-action page for proof. SQLite persists
an absent origin as NULL, guards JSON-expression queries and indexes with
json_valid(origin_json), and keeps dedicated origin/state indexes so an old
empty or malformed value cannot reject otherwise valid audit rows. Its
origin/verification/update index keeps the receipt read bounded as audit
history grows. Memory and SQLite implementations preserve the same filtering,
ordering, and clone semantics.
Terminal audit persistence derives VerificationOutcome from the canonical
execution result: no verifier is unknown, a configured verifier that did not
run is unverified, a successful read-back is verified, and a failed read-back
is failed. Consumers must use that durable result rather than inferring
success from executor completion alone.
Unified-resource row actions must remain operable at phone widths without
changing capability ownership. Docker and Podman lifecycle controls retain
their backend-authored availability and approval semantics while using the
shared 40-pixel mobile touch floor; compact desktop sizing may resume at the
small breakpoint. Responsive styling must not synthesize capabilities, widen
the action set, or create provider-local lifecycle state.
That same runtime now also owns prospective monitored-system projection. Add
and update consumers must ask the unified-resource layer whether candidate or
preview records change the deduped top-level monitored-system count, including
replacement-aware projection and VMware host-UUID identity, instead of
rebuilding handler-local counting heuristics.
That same current-state contract now also treats candidate activity as
canonical unified-resource ownership. Inactive candidates must not materialize
projected monitored-system resources at all, new-candidate previews must fall
back to zero-delta/no-change when only an inactive candidate is proposed, and
replacement previews may remove only the replaced source while preserving any
remaining grouped monitored-system evidence.
Candidate matching must fail closed when the prospective monitored-system
candidate cannot resolve to a canonical top-level resource; malformed or
whitespace-only inputs are not allowed to masquerade as an already-counted
system simply because their no-op projection has zero additional count.
VMware replacement selectors must also keep source-specific identity signals
unambiguous: ResourceID scopes saved vCenter connection replacement to
ConnectionID, while host UUID / DMI identity matching belongs to the
machine-identity selector path, so editing one connection cannot strip an
unrelated VMware host whose UUID happens to equal that connection ID.
That same consumer ownership now also includes infrastructure drawer history
fetches. frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts
may hydrate canonical facet and intelligence data for the selected resource,
but it must do so through the shared retained-value query helper so opening a
resource drawer never drops the whole infrastructure surface into the app-level
Loading view... fallback.
VMware vSphere now follows the same admission rule. In the admitted phase-1
direction, vCenter is the connection authority but not a
top-level unified resource: ESXi hosts must project as canonical agent
resources, virtual machines as canonical vm, and datastores as canonical
storage. Datacenters, clusters, folders, and resource pools stay topology or
relationship metadata under those shared resources rather than becoming new
top-level types. Phase-1 vSphere work must not invent esxi-host,
vsphere-vm, vsphere-cluster, system-container, app-container, or
physical-disk projections just because the upstream APIs expose additional
object classes.
The ESXi consumer preserves provider-authored power state separately from
aggregate resource health. Desktop tables may expose both as independent
columns; phone presentation may suppress the ordinary powered-on value, but
must surface Off, Suspended, or Unknown beside host identity and must not use
that exception badge as a replacement for the canonical resource-health
indicator.
That same VMware contract now also includes the shared source boundary. When
runtime work starts, VMware-backed records must flow through one canonical
VMware source key plus platformType: vmware-vsphere, not through separate
vcenter and esxi source forks or provider-local raw type aliases. One
host, VM, datastore, or network from VMware should therefore still look like
one shared Pulse agent, vm, storage, or network resource to downstream
selectors, drawers, alerts, AI, and route filters.
That shared source boundary now also has a concrete frontend/runtime adapter
floor. internal/unifiedresources/types.go, internal/unifiedresources/registry.go,
internal/unifiedresources/views.go, frontend-modern/src/hooks/useUnifiedResources.ts,
frontend-modern/src/types/resource.ts, and
frontend-modern/src/utils/sourcePlatforms.ts must keep raw VMware ingest on
SourceVMware while projecting the operator-facing platform as
vmware-vsphere. Shared filters, route state, and badges may normalize that
single source onto the canonical platform vocabulary, but they must not invent
separate vcenter or esxi filter keys or a VMware-only top-level resource
family to make the phase-1 slice render.
That same frontend/runtime adapter floor now also owns the typed platform
projection. frontend-modern/src/utils/platformSupportManifest.generated.ts
must stay generated from
docs/release-control/v6/internal/PLATFORM_SUPPORT_MANIFEST.json, and
frontend-modern/src/types/resource.ts must derive PlatformType from that
generated supported-plus-admitted projection rather than hand-maintaining a
second platform union that can drift from the governed manifest or re-admit
presentation-only labels by mistake. The supported/admitted split in that
projection is also contractual: VMware may stay a valid PlatformType and
source-platform alias while admitted, but unified-resource consumers must not
infer current platform support from that union without checking governance
state/readiness. Agent host profiles are generated beside
that platform projection for shared identity/presentation use only; a profile
such as Unraid may label a Pulse Agent host, but it must not enter
PlatformType, PLATFORM_TYPE_KEYS, unified-resource source filters, or
canonical top-level platform identity.
Host-profile runtime fallback values are generated beside those labels so
agent-backed appliance reports can normalize to canonical runtime platforms
such as linux without making the appliance profile a unified-resource
platform. Unified-resource AgentData must carry that distinction explicitly:
agent.platform is the normalized runtime platform, while
agent.hostProfile carries a governed profile id such as unraid for
presentation and host/appliance support-floor copy. Raw appliance identity
aliases such as unraid-os may be accepted only through the generated
host-profile token projection and must resolve to a governed profile id before
they reach platform filters, source IDs, or top-level resource identity.
Unified-resource AgentData also carries the host memory composition:
AgentMemoryMeta exposes the reclaimable page-cache split (cache) beside
used/free/swap so machine surfaces can render used | cache | free without a
parallel payload, mirroring the proxmox.memoryCache transport nodes and
guests use. The field is additive and omitted when an agent does not report
it; consumers must treat missing cache as zero rather than inferring it from
free space.
AgentMemoryMeta.usageUnavailable, DockerData.memory.usageUnavailable, and
ProxmoxData.memory.usageUnavailable carry the separate case where capacity is
known but cache-aware live usage is not. Adapters must omit
ResourceMetrics.memory for that source rather than
publishing a synthetic 0% value. Registry and presentation merges must retain
a trusted memory metric from another source when the current source is
unavailable, clear an older metric from the same unavailable source, and keep
the raw source facet available for diagnostics and capacity display. Frontend
adapters apply the unavailable marker only when no trusted merged metric
exists, so cross-source recovery cannot be masked by an unknown Proxmox or
agent facet.
Frontend resource identity presenters may append a runtime version to a
displayed system badge only when that version is sourced from the same canonical
platform or host-profile identity, such as PVE ResourceProxmoxMeta.pveVersion
or platformData.proxmox.pveVersion, PBS version, or an agent OS report that
resolves to Unraid or Proxmox VE. They must not attach a collector OS version to
a different API-backed platform identity.
Container runtime badges follow that same shared identity boundary:
frontend-modern/src/utils/resourceBadgePresentation.ts owns the runtime badge
label and tone mapping for Docker, Podman, and unknown runtimes, and consumers
must render those badges from the shared helper instead of rebuilding local
runtime chips or page-specific colour classes.
Agent-backed storage resources follow the same distinction: StorageMeta.platform
may carry appliance presentation context such as unraid so the operator can see
what system owns the array, but realtime platformType and source filters must
remain agent-backed unless the storage resource is actually owned by a governed
API platform such as Proxmox, PBS, TrueNAS, or VMware. Storage resources must not
fall back to Proxmox solely because their canonical resource type is storage.
That same shared source boundary also applies when unified seeds and
supplemental providers coexist. If a canonical unified-resource seed omits an
owned supplemental source such as TrueNAS or VMware, the shared resource API
must still ingest that provider-owned source instead of letting the seed
silence the platform entirely. When a supplemental provider identity-matches an
existing resource, adding the source tag alone is not enough; the matching
provider facet must be merged onto the shared resource so source identity,
health, routing, and detail payloads cannot disagree. Operator-facing source
filters may accept the vmware-vsphere alias for the VMware platform, but the
emitted shared source family remains canonical vmware.
TrueNAS application resources now carry the same shared source boundary.
internal/truenas/provider.go projects native app API records into
TrueNASData.App, while internal/unifiedresources/types.go,
internal/unifiedresources/clone.go, internal/unifiedresources/registry.go,
frontend-modern/src/types/resource.ts, and
frontend-modern/src/hooks/useUnifiedResources.ts must preserve that facet
across backend clone/merge and frontend transport. The owning resource remains
the canonical app-container; the TrueNAS facet explains the platform-native
app shape, and Docker metadata remains secondary runtime compatibility rather
than the source of truth for the TrueNAS overview.
Deliberate drawer reveal after a same-route selection write is owned by the
Workloads table
(frontend-modern/src/components/Workloads/useWorkloadSelectionState.ts,
governed in performance-and-scalability). Platform resource tables open their
inline drawer through local component state, most through
createPlatformResourceDetailState(...) in
frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx
while the Docker hosts and Proxmox nodes tables keep their own selection
signal, and write no route state. An infrastructure table that moves drawer selection
into route state must tag the opened detail with the canonical active resource
ID; its route write must go through the shared same-path route-state scheduler
in frontend-modern/src/utils/routeStateNavigation.ts, which alone stages the
.app-scroll-shell position in
frontend-modern/src/utils/appShellScrollRestoration.ts at the moment it
navigates, so the root shell in frontend-modern/src/App.tsx stays anchored.
The row toggle itself stages nothing: the root shell applies a staged position
on the next route change, whatever caused it. The table must then hand off to the
shared summary-table/contextual-focus helpers when the opened drawer would fall
below the fold. That reveal scrolls only enough to keep the row header plus the
start of the detail visible, never leaving the drawer clipped or hard-centering
the selected row.
That same unified-resource boundary now also owns stored metrics-target
continuity for provider-backed resources. When registry rebuild cannot derive a
fresh metrics target from raw source facets, internal/unifiedresources/registry.go
must preserve the canonical MetricsTarget already attached to provider-backed
agents or app-containers, and typed views must expose that stored target
unchanged so shared chart routes keep using canonical IDs across live and demo
projections.
Seeded unified-resource snapshots are part of that same registry ownership.
internal/unifiedresources/registry.go must rebuild the canonical bySource
index from source-owned facets already present on seeded unified resources
before manual links, overlays, or metrics-target resolution run, so
/api/resources, infrastructure summary joins, storage summary joins, and
other chart consumers keep resolving history through canonical source
coordinates instead of silently falling back to hashed unified resource IDs.
That same registry/view boundary now also applies to provider-backed storage.
internal/unifiedresources/registry.go must attach the resolved
MetricsTarget onto cached view clones before ReadState exposes
StoragePoolView or PhysicalDiskView, so /api/resources, storage summary
selection, and /api/storage-charts all see
the same canonical history
identity instead of splitting between view-cache resource IDs and API
serialization-time metric IDs.
Proxmox Ceph pools are canonical storage resources when present in
CephCluster.Pools. internal/models.CephPoolStorageID owns the stable
source and metrics identity, and internal/unifiedresources/registry.go must
project each pool through normal storage ingest so API resources expose a
storage metrics target whose resource id is the storage runtime metric id
rather than the hashed unified-resource id.
That same VMware contract now also includes the identity rule. VMware managed
object identifiers are phase-1 provider identities, but they must be scoped by
the owning vCenter connection or discovered vCenter identity so bare object
IDs do not masquerade as workspace-global keys. Secondary identities such as
VM instance_uuid / bios_uuid and host UUID when available belong under the
shared canonical identity model for future merge or assistant reasoning, not
inside a VMware-only dedupe lane.
That same VMware contract now also includes the topology rule. vCenter,
datacenter, cluster, folder, resource pool, and datastore cluster objects may
enrich canonical agent, vm, storage, and network resources as
placement metadata or relationships, but they must not appear as synthetic
top-level VMware resource types just to mirror the upstream inventory tree.
Snapshot trees and VMware alarm/event/task context are also governed by that
same rule: they may enrich canonical vm, agent, storage, or network
resources and their timelines, but they do not become shared recovery
artifacts, new provider-local resource kinds, or a parallel VMware incident
model.
That same topology contract now also has a concrete projection seam.
internal/vmware/provider.go must preserve VMware placement and identity
detail on the shared vmware facet only: hosts may carry datacenter,
compute-resource, cluster, cluster HA/DRS service state, folder, and
attached-datastore metadata; VMs may carry runtime-host, cluster HA/DRS
service state, folder, resource-pool, datastore, guest-identity, VM
virtual-hardware configuration, VMware Tools runtime status, and VM hardware
Ethernet adapter plus VM hardware disk metadata plus canonical parentage to
the owning ESXi agent; datastores may
carry datacenter/folder placement plus shared storage-node and workload
consumer metadata through storage.nodes, storage.consumerCount, and
storage.topConsumers; networks may carry network type, datacenter/folder
placement, host attachments, VM attachments, and VMware health/task/event
signal summaries under the shared vmware facet on canonical network
resources. VMs may also carry VI JSON snapshot-tree context under
vmware.currentSnapshotId and vmware.snapshotTree, including snapshot
managed-object reference, display name, description, creation time, power
state, quiesce flag, current marker, replay support, and child snapshots.
VM hardware Ethernet adapter context belongs under
vmware.networkAdapters, including vCenter adapter id, label, emulation
type, MAC address/type, PCI slot, backing type, backing network id/name,
distributed switch/port or opaque-network references, connection state,
start-connected, guest-control, Wake-on-LAN, and UPT compatibility flags.
VM hardware disk context belongs under vmware.virtualDisks, including the
vCenter disk id, label, host-bus adapter type, IDE/SCSI/SATA/NVMe placement,
backing type, VMDK file path, bracketed datastore name when the VMDK path
provides it, and capacity in bytes.
VMware Tools context belongs under vmware.tools, including Tools run state,
version status, version number/string, install type, upgrade policy,
auto-update support, install-attempt count, last install error, guest reboot
request flag, requesting components, and request time. Those fields are
operator-facing monitoring facts from vCenter's VM Tools API; they must not be
promoted into lifecycle control, recovery status, workload identity, or a
separate guest-runtime resource.
VM virtual-hardware configuration belongs under vmware.hardware, including
vCenter VM guest OS, instant-clone frozen flag, virtual hardware version,
hardware upgrade policy/version/status/error, boot type, EFI legacy boot,
network boot protocol, boot delay/retry/setup-mode flags, boot-device order,
CPU cores-per-socket and CPU hot-add/remove flags, and memory hot-add
increment/limit settings. Those fields are API-native read-only VM
configuration facts; they must not become Pulse VM-control authority, workload
identity aliases, recovery protection posture, or a separate hardware resource.
Cluster HA and DRS state belongs under vmware.clusterHaEnabled and
vmware.clusterDrsEnabled for hosts and VMs whose placement resolves to that
cluster. It is API-native monitoring context from the vCenter cluster summary,
not a synthetic cluster resource, lifecycle command surface, scheduling policy
model, or recovery/protection signal.
Those enrichments must remain subordinate to shared agent, vm, storage,
and network resources rather than becoming a VMware-only topology graph,
recovery artifact, canonical identity alias, or separate provider detail drawer
contract.
TrueNAS disk telemetry now follows the same rule. API-backed TrueNAS disks must
populate canonical physicalDisk.temperature and reuse the shared
physical-disk risk semantics, so infrastructure, storage, charts, and AI read
the same disk-health contract instead of inventing a provider-local temperature
surface.
That same canonical physical-disk risk contract must also absorb disk-health
incidents during cross-source merges. A provider alert such as TrueNAS
truenas_smart is not presentation-only context; it must become a canonical
physicalDisk.risk.reasons entry so hybrid agent/API disk resources keep one
shared disk-health truth after deduplication.
That shared risk contract never judges temperature, collected or retained.
Heat belongs to the alert disk temperature policy, which no registry can see,
so neither the adapter assessment nor the registry's recompute from merged
metadata (physicalDiskAssessmentFromMeta) passes a temperature into
storagehealth. A 72C disk keeps its reading on the resource, adds no
temperature_high reason and stays online. Proof:
TestPhysicalDiskRiskNeverJudgesTemperature in
internal/unifiedresources/registry_test.go.
That same canonical disk contract now also owns recent aggregate temperature
history. When a provider such as TrueNAS can supply disk.temperature_agg
min/avg/max readings, it must project those onto
physicalDisk.temperatureAggregate instead of introducing a provider-local
history blob or a parallel disk-temperature presentation model.
That same canonical source and seed contract now also applies to runtime mock
mode. When mock-backed TrueNAS or VMware supplemental records are present, they
must enter the shared resource graph through the same canonical source/type
rules as live providers instead of introducing a mock-only source family or
resource kind.
That same mock seed contract now also includes legacy snapshot-backed sources.
internal/mock/fixture_graph.go must own the runtime mock snapshot and the
provider-backed TrueNAS/VMware fixtures together, and
internal/mock/platform_fixtures.go must project unified resources from that
one graph instead of combining a legacy snapshot read with standalone provider
defaults. The shared resource graph must therefore see one coherent mock
platform set regardless of whether a platform is snapshot-backed or
supplemental-provider-backed.
The graph also owns governed action fixtures in
internal/mock/action_fixtures.go. Those records must reference canonical
resource IDs from the graph snapshot, carry current policy provenance and typed
result truth, and reach the Actions workspace through the backend mock read
projection rather than a page-local fallback or durable-store contamination.
Agentless availability fixtures join that same graph-owned seed contract:
mock UPS, MQTT, ESPHome, HTTP, and controller endpoints must project as
SourceAvailability network-endpoint resources with real availability
payloads, incidents, and source status rather than as generic host rows or
settings-only sample data. Mock service availability fixtures must use
LinkedResourceID source references when the target service row is produced by
the same graph, so service ping evidence lands as an AvailabilityData facet on
the Docker or Kubernetes service instead of creating a disconnected duplicate
endpoint.
Callers should therefore consume CurrentFixtureGraph() and graph-owned
projections rather than reintroducing platform-only or state-only mock helper
exports.
TrueNAS-managed applications now follow the same canonical workload rule. One
TrueNAS app instance from app.query must project as one canonical
app-container resource under SourceTrueNAS, reusing the shared workload and
Docker payload contracts instead of inventing a truenas-app resource type or
lane-local workload UI. API-backed app.stats telemetry must now project onto
that same canonical app-container contract as live metrics and metrics
targets, using the shared docker:<id> in-memory key and dockerContainer
history store path instead of adding a TrueNAS-local workload history lane.
TrueNAS-managed virtual machines follow the same canonical workload rule. One
TrueNAS VM from vm.query must project as one canonical vm resource under
SourceTrueNAS, carrying native TrueNASData.VM metadata instead of inventing
a truenas-vm resource type, borrowing Proxmox guest fields, or rendering a
provider-local VM contract. Native VM lifecycle/control is read-only at this
floor until a governed action path owns it.
TrueNAS top-level systems now follow the same canonical host rule. One
TrueNAS appliance must project as one canonical agent resource under
SourceTrueNAS, carrying host-facing AgentData plus provider-specific
TrueNASData instead of inventing a truenas-system resource type or a
provider-local host surface. API-backed reporting.realtime telemetry must
project onto that same canonical agent contract as live metrics and metrics
targets, using the shared agent:<id> in-memory key and agent history store
path instead of adding a TrueNAS-only host history lane.
That same rule applies at the frontend boundary. Shared compatibility adapters
such as frontend-modern/src/hooks/useUnifiedResources.ts and
frontend-modern/src/utils/resourceTypeCompat.ts must collapse any legacy raw
truenas top-level type payloads back onto canonical agent before route
helpers, dashboard summaries, alert context, or selector models consume them.
Downstream shared consumers such as metrics-history target helpers and drawer
discovery mappers must reuse that same canonicalization step instead of adding
their own case 'truenas' branches later in the render path.
API-backed TrueNAS CPU temperature now follows that same canonical host rule.
TrueNAS system records must project cputemp readings into the shared
agent.temperature and agent.sensors.temperatureCelsius fields instead of
inventing a provider-local temperature payload or leaving TrueNAS host
temperatures unavailable without the unified agent.
Pressure-only host telemetry follows the same canonical host-sensor route:
agent resources may include agent.sensors.thermalState even when
agent.temperature and agent.sensors.temperatureCelsius are absent, so
platform consumers can show macOS pressure without creating provider-local
thermal payloads or fake Celsius values.
Assistant query and resource-context surfaces follow the same rule. Runtime
paths such as pulse_query and unified AI context must expose TrueNAS-backed
canonical agent, vm, app-container, storage, and physical-disk
resources through those shared contracts, filtering dataset-topology storage
children out of any storage-pool presentation instead of inventing
TrueNAS-local assistant types or mislabeling datasets as pools.
That same canonical app-container rule now also governs diagnostics. Assistant
runtime paths such as pulse_read must resolve API-backed TrueNAS apps
through the shared canonical app-container identity and resource_id
contract instead of reintroducing host-local container routing assumptions for
platforms that do not use the unified agent as their primary runtime path.
That same canonical app-container rule now also governs configuration reads.
Assistant runtime paths such as pulse_query action="config" must resolve
API-backed TrueNAS apps through the same canonical app-container identity
and resource_id contract, then project native runtime/config shape through
the shared app-container payload rather than forcing those resources through
guest-config routing or inventing a TrueNAS-local config type.
That projection contract is the product-definition floor for TrueNAS support:
Pulse supports TrueNAS only when it lands on the shared agent, vm,
app-container, storage, physical-disk, and recovery-linked resource
shapes, with native system-owned service inventory carried as
TrueNASData.Services on the canonical agent. The unified agent may augment
a TrueNAS system later, but baseline support does not depend on it, and product
surfaces must not reopen a parallel truenas-* resource model just to add
another capability.
The canonical resource timeline now also owns durable incident-response facts
that materially changed resource investigation state. ResourceChange kinds
such as alert_fired, alert_acknowledged, alert_unacknowledged,
alert_snoozed, alert_unsnoozed, alert_resolved, command_executed, and
runbook_executed are part of the canonical history contract, not optional
AI-local annotations. Snooze and resume projections must preserve the actor
and exact suppression expiry when present; they pause delivery and escalation
without acknowledging, resolving, or replacing the underlying incident.
An alert_resolved change for a close that was not a recovery carries the
alert engine's summary as its reason and the reason code as alert_resolution
metadata (AlertTimelineChange.ResolutionReason and ResolutionSummary), so
incident projection titles the close with where the alert went instead of
"Alert resolved: ". Frontend readers label the change through
getResourceChangePresentation(change) rather than by kind alone: with the
metadata set, the drawer's change history titles the entry Alert moved and
the ResourceChangeSummary badge reads Alert moved in the neutral blue of
the alert history's "moved to agent" badge (Alert closed for a reason code
the build does not know), and
formatResourceChangeHeadline uses the summary as the whole headline instead
of prefixing Alert resolved:. A node's own drawer does not list the move yet: node and guest
alert changes are still recorded under their legacy alert resource IDs
(MonitorAdapter.RecordChange maps only Docker IDs), and Proxmox platform
rows open the drawer in the table-row presentation, which fetches no
remote history. The facet badges
still count these changes under alert_resolved, because the counts carry no
metadata. Ordinary recoveries omit the key, and every other lifecycle kind
ignores the fields.
Alert-scoped
incident memory may still project those events for one investigation thread,
but the durable source of truth for resource-affecting alert lifecycle and
remediation activity now belongs to unified-resource history keyed by
canonical resource ID.
The canonical monitor adapter therefore also serves read-side incident
projection support: when a consumer needs an alert timeline, the incident view
should read canonical resource changes back through the attached timeline store
instead of rebuilding another durable event history beside ResourceChange.
Kubernetes node identity enrichment remains intentionally hostname-based when
the API cannot supply machine-level identity signals; the code may borrow
machine-id and MAC evidence from a uniquely matched host agent, but duplicate
short hostnames across domains or clusters stay an unresolved ambiguity rather
than being force-merged into a stronger canonical identity.
The canonical monitored-system and connected-infrastructure grouping contract
now lives in internal/unifiedresources/top_level_systems.go. Top-level
system identity may merge on strong runtime identity such as machine IDs,
agent IDs, connector-stable primary IDs, or the existing high-confidence
identity matcher, and it may use exact-host attachment only as a bounded
fallback onto a uniquely better existing surface. Friendly display names are
presentation-only and must not participate in monitored-system counting.
URL-backed host fields must be normalized down to canonical hostnames before
they participate in exact-host fallback attachment, and Kubernetes cluster
ownership metadata such as AgentID must not collapse a cluster into the
underlying host's monitored-system identity. Production grouping and monitored
system candidate previews must both flow through
monitoredSystemCandidateAllowsHostAttachment(candidate) so Kubernetes cluster
exclusions and non-unique IP filtering cannot drift between those paths.
Unspecified addresses such as 0.0.0.0 and :: are not identity evidence for
host attachment. The canonical resolver coverage is pinned by an explicit
top-level source matrix and mixed-environment characterization tests so new
top-level sources cannot quietly bypass the counting contract.
That same resolver now also owns monitored-system grouping explanations. When
one counted system includes multiple top-level collection paths, the resolver
must record the actual canonical merge evidence it used, expose sanitized
grouping reasons plus included top-level surfaces, and fall back to an
explicit standalone explanation when no cross-source merge occurred. Support
and billing surfaces must consume that shared explanation contract instead of
reconstructing count reasons from API-local heuristics.
That same monitored-system contract now also owns canonical runtime-status
explanations. When a grouped monitored system resolves to warning, offline, or
unknown, unified resources must expose the shared summary plus structured
degraded-status reasons derived from the grouped top-level resources and their
source freshness state, including which source or surface degraded and the
canonical degraded-signal reported_at timestamp. Billing and support
surfaces must consume that shared reason list instead of trying to infer why a
fresh overall last_seen can still coincide with warning status.
That same status contract must choose the canonical monitored-system runtime
status from the actual grouped top-level resources rather than from an
implicit unknown baseline. Severity ordering is canonical: offline
outranks warning, warning outranks unknown, and unknown outranks
online, so all-online groups resolve online while any grouped offline view
still wins over merely stale or warning surfaces.
That shared summary must also explain mixed-source freshness directly when one
grouped source reported more recently than the degraded one, so consumers do
not present a fresh Last Seen timestamp beside warning or offline state
without the canonical explanation of which grouped source is still reporting
and which one drifted stale or disconnected.
That same monitored-system contract now also owns the structured freshest-
signal model. Unified resources must expose the latest included grouped signal
as one canonical object carrying its timestamp, source, display name, and type
so consumers can say exactly which top-level grouped surface most recently
reported instead of reconstructing attribution from separate fields.
The unified-resource runtime now also owns the durable change timeline for the
canonical resource view. internal/unifiedresources/monitor_adapter.go feeds
registry rebuilds and supplemental ingest into ResourceChange records, and
internal/unifiedresources/store.go persists those changes so RecentChanges
can round-trip through the SQLite-backed resource store instead of living only
in memory or adapter-local state.
Timeline records now keep correlation context in relatedResources for every
meaningful canonical change kind, so the durable history preserves the same
cross-resource context the detail drawer can surface later instead of
collapsing state, restart, anomaly, or config changes down to resource-only
hints.
Those same relationship changes now summarize the actual edge(s) in from and
to, so the canonical timeline keeps the relationship transition readable without
needing the drawer to reconstruct an edge summary from raw endpoints.
The infrastructure resource drawer now follows the explicit shell/state/render
split used elsewhere in v6: ResourceDetailDrawer.tsx owns composition,
useResourceDetailDrawerState.ts owns composition of drawer-local state,
useResourceDetailDrawerHistoryState.ts owns facet/intelligence/timeline
runtime orchestration, useResourceDetailDrawerDerivedState.ts owns the
canonical drawer derivation layer, and
resourceDetailDiscoveryModel.ts owns the pure canonical discovery-config
derivation that feeds the drawer discovery surface,
resourceDetailDrawerOperationalModel.ts owns the pure source-health,
platform-signal, related-link, and host-detail overview derivations that feed
the current-state and host-details surfaces,
and useResourceDetailDrawerDerivedState.ts now composes those operational
overview derivations through that canonical model owner instead of rebuilding
Kubernetes capability badges, source health, related links, and host-detail
coverage inline,
and the current-state summary now leaves normal source provenance to the
canonical header badges while only surfacing a Sources row when source
health is degraded or unhealthy,
and it no longer repeats that same provenance as a separate Mode row because
the drawer header badges already own canonical source display,
and that composition preserves the frontend-primitives-owned object-detail
navigation contract without resource-local spacing variants: Overview
remains the landing tab, stored metrics remain behind the evidence-gated
History tab, and both use the default shared Subtabs shell and trailing
History range position. Unified-resource drawers may add evidence-gated
resource-specific sections, but they must not create a second tab density or
place stored metric charts inline on Overview,
and the drawer header no longer carries the technical primary identity line;
that canonical identifier now lives in the Identity card as Primary ID,
and the drawer header interaction is a frontend-primitives dependency:
ResourceDetailDrawer may own which lifecycle actions are available and how
they call resource state, but it must compose ObjectDrawerHeader so the
complete subject/badge row is the semantic collapse target and lifecycle
buttons remain independent siblings. Assistant, copy-context, close, and
future drawer-header action chrome must continue through shared primitives
instead of restoring resource-drawer-local button classes or a small
icon-only collapse target,
and platform alert tables use the same dependency rule for severity
presentation: Docker, Kubernetes, TrueNAS, and vSphere incident rows may own
which incidents exist and which native detail rows are shown, but visible
severity dots, badges, and severity label formatting must compose
AlertSeverityDot, AlertSeverityBadge, and
formatAlertSeverityLabel from the frontend-primitives-owned shared path
instead of restoring table-local severityVariant, severityTextClass, or
severity-label helpers, detail severity row tones must use
getAlertSeverityDetailTone instead of restoring local alertTone helpers,
and their severity toolbar filters must use
getPlatformAlertSeverityFilterOptions instead of restoring local
All/Critical/Warning/Info option arrays,
and table-local aggregate Attention filters must compose
withPlatformAttentionCount instead of restoring provider-local count badges
or page-level attention summary cards; cross-section overview summaries remain
a separate frontend-primitives concern,
and platform alert detail fields must use
formatPlatformAlertCode, formatPlatformAlertResourceType,
formatPlatformAlertEntityType, formatPlatformAlertStartedAt, and
formatPlatformAlertDetailDateTime from
frontend-modern/src/utils/alertDetailPresentation.ts instead of restoring
table-local provider code, resource-type, entity-type, or timestamp formatter
helpers (the Started cell reads as an age with the exact time as its hover
title, the drawer keeps the exact time),
and local operator identity labels now split from governed detail summaries:
infrastructure tables, selectors, links, and drawer headings must preserve the
canonical local instance identity (displayName, canonical display name,
hostname, then primary ID fallback) so service and host surfaces stay uniquely
addressable for operators, while the drawer governance summary and other
explanation surfaces still show the full canonical aiSafeSummary,
resourceDetailDrawerServiceModel.ts owns the pure Docker/PBS/PMG service
summary and breakdown derivations that feed the overview service-details
surface,
and PBS running-task visibility is part of that same canonical service model:
raw backup, sync, verify, prune, and garbage job arrays travel through the
unified-resource metadata contract in frontend-modern/src/types/resource.ts
and frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts,
resourceDetailDrawerServiceModel.ts owns active-task status classification and
shared activity wording, and
frontend-modern/src/components/Infrastructure/ResourceDetailDrawerOverviewTab.tsx
must render from that shared projection instead of rescanning raw job arrays or
inventing local PBS status heuristics,
resourceDetailDrawerIdentityModel.ts owns the pure identity-card,
discovery-summary, source-debug, and debug-bundle derivations that feed the
overview and debug drawer surfaces (the Identity card shows each identifier
once: Discovery and Metrics Target rows appear only when they name something
not already on screen, meaning the header's getPreferredInfrastructureDisplayName,
the rows above, or the Platform ID row, and Aliases omits the same displayed
values; candidate names the drawer never shows do not count, a shown Platform
ID counts as identity data for the empty state, and a Machines agent drawer
used to list one ID four times),
useResourceDetailDrawerDockerActionsState.ts owns Docker action runtime, and
the overview/debug render-heavy surfaces live in dedicated drawer-local owners
instead of staying inline in the shell.
The retired dashboard overview trend hook must not return as a second
infrastructure sparkline consumer. Node-row sparklines read the infrastructure
summary route through
frontend-modern/src/components/Workloads/useWorkloadTableMetricHistory.ts and
match series to rows through the chart-key candidates in
frontend-modern/src/components/Workloads/workloadMetricHistoryModel.ts
(node ID, linked agent ID, and node name variants) instead of issuing bespoke
per-node /api/metrics-store/history fetches.
The backend AI and Patrol context renderers now derive their canonical change
kind, source type, source adapter, actor, reason, and related-resource
fragments from internal/unifiedresources/change_presentation.go, so the
semantic mapping lives with the resource model instead of being duplicated in
lane-local prompt helpers.
That same presenter now also owns the resource state, restart, incident, and
config summary fragments used by change emission, so the human-readable
timeline values stay canonical even before they are wrapped into a full change
summary.
That same change-presentation helper now also owns the one-line
FormatResourceChangeSummary used by AI runtime recent-change sections and
Patrol seed context, so the change wording itself stays canonical before any
section-specific headings are applied.
The same helper also owns FormatResourceRecentChangesContext, so AI runtime
callers share the canonical recent-change section heading and resource
prefixing instead of rebuilding that wrapper locally.
The patrol-local memory conversion helpers also live in
internal/ai/memory/presentation.go, so the canonical change timeline and
the Patrol memory fallback both translate through the same adapter boundary
instead of carrying duplicate mapping code.
The canonical policy-posture aggregate now also lives in
internal/unifiedresources/policy_posture.go, so AI summaries and policy-aware
prompt context share the same sensitivity, routing, and redaction counts from
the resource model instead of rebuilding governance posture in AI-local code.
The same policy presenter now also owns the routing-scope labels used across
AI-facing policy surfaces, while the resource detail drawer stays on
per-resource policy lines instead of reconstructing a separate
Allowed/Blocked row or Cloud Summary decision row locally.
The default Internal + Cloud Summary posture is canonical policy metadata
that stays available in the drawer and AI/governance surfaces without being
promoted to always-on row chrome. A table that shows inline policy badges
reserves them for blocking policy states such as local-only routing or
restricted sensitivity, while sensitive + local-first and redaction-only
posture remains visible in Data Handling, detail, and AI/governance surfaces.
A table must not imply that ordinary sensitive resources carry an
operator-actionable infrastructure exception.
The resource drawer now applies the same rule to its investigation-context
governance block: the default posture remains part of the canonical policy
contract, but the drawer only surfaces the governance section when the policy
state is non-default or otherwise consequential to operator understanding.
The drawer investigation summary line also follows that boundary now: default
Cloud Summary routing is not repeated in the collapsed summary text, while
non-default routing still appears when it materially changes how the operator
should read the resource.
The drawer now also suppresses the investigation-context section entirely when
Patrol returns only generic baseline health with no notes, changes,
correlations, dependencies, or other non-default governance signal. The
canonical resource surface should not advertise AI context unless there is
actual investigative value to show.
The shared routing policy itself now stays intentionally minimal: it carries
only the routing scope and the redaction hints derived from canonical
sensitivity, and the cloud-summary decision is derived from that scope
instead of being stored as a second boolean in the owned resource-policy
contract.
The canonical policy summary formatter also mirrors that shape now: it reports
the sensitivity and routing scope directly, then lists redactions, so
governed mention blocks no longer repeat a derived cloud-summary boolean in
their owned summary line.
The backend AI and Patrol correlation context renderers now derive their canonical
relationship labels, direction, provenance, freshness, and metadata flags
from internal/unifiedresources/relationship_presentation.go, so the correlation
semantics live with the resource model instead of being duplicated in prompt
helpers or drawer-specific markdown.
That same resource model now also owns the canonical
FormatResourceRelationshipContext helper, so service-layer callers only
resolve the resource and hand the model the relationship list instead of
rebuilding the relationship section header, ordering, or freshness wording
locally.
Assistant finding handoffs are part of that same relationship-context contract:
when the runtime needs topology context for product-originated handoff
resources, it should resolve the canonical unified resource, synthesize the
canonical parent edge through ResourceRelationshipsWithCanonicalParent(...),
and call FormatResourceRelationshipContext(...) rather than rebuilding
relationship markdown in chat or Patrol-local helpers. The resulting topology
block remains model-only explanation context, not action authority.
Assistant finding handoffs are also part of the canonical resource-state
contract: when the AI runtime needs current state for a product-originated
handoff resource, it should resolve the canonical unified resource and summarize
the owned status, freshness, source-health, metrics, incidents, and governed
capabilities from unifiedresources.Resource instead of rebuilding a
Patrol-local or chat-local resource model. That state block remains model-only
read-only infrastructure context, and capability names or approval policies in
that snapshot do not grant execution authority.
Assistant finding handoffs are also part of the canonical resource-timeline
contract: when recent-change context is hydrated for a handoff resource, chat
execution should resolve the resource through the current unified-resource
provider before calling GetRecentChangesFiltered(...), with raw handoff IDs
used only as a compatibility fallback. That keeps Patrol-originated discussion
anchored to canonical resource identity instead of lane-local IDs or display
names.
The same shared relationship presenter also owns the compact change-timeline
relationship summary used by resource change records, so change from and
to values stay aligned with the canonical relationship labels instead of
reconstructing a separate type-token summary in the emitter.
The same AI resource-intelligence payload now also carries canonical
correlation evidence from the shared detector, so the drawer can show learned
edge patterns alongside the dependency relationships without rebuilding correlation
reasoning from raw events. The drawer renders that correlation evidence
through the shared
frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx
card, and is that card's only caller today; the Patrol page renders no learned
correlations and the frontend does not load the global correlation list. Any later surface
that shows learned edges must reuse that card instead of a page-local
implementation. That shared card also owns
the first-class relationship-map surface for canonical resource.relationships,
the correlation ordering, and the truncation rule, so callers pass raw
relationships and correlation lists instead of encoding their own sort or
top-N behavior.
Canonical parent edges now also originate in this subsystem: ParentID is
folded into the facet relationship set through
ResourceRelationshipsWithCanonicalParent before any consumer renders a
relationship map, so pages do not rederive parent topology
from raw resource fields or invent relationship-map fallbacks locally.
The drawer renders recent changes through the shared
frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
card, so canonical timeline wording and ordering stay governed by one
frontend feed instead of separate page-local loops. Callers may suppress
resource-change metadata badges only for compact operator-context surfaces;
no caller does today, and the Patrol page renders no recent changes. The
shared card still owns headline/reason
dedupe so prefixed backend reasons do not render as duplicated visible copy.
Assistant finding handoffs are part of that same timeline contract: when the AI
runtime needs recent changes for product-originated handoff resources, it should
read the canonical unified-resource timeline and FormatResourceRecentChangesContext
rather than rebuilding recent-change wording or querying Patrol-local change
detectors first. Those handoff timeline entries remain read-only explanation
context, not action authority.
The unified-resource detail drawer now also routes resource-tag presentation
through the shared frontend-modern/src/components/shared/TagBadges.tsx
primitive instead of importing a workload-local badge helper into the
resource surface. Future drawer tag presentation changes must extend through
that shared primitive boundary rather than recreating tag-dot logic inside the
drawer or pulling feature-local badge components across subsystem lines.
The same shared agent-resource module now also owns the canonical cluster-name
helpers, so Kubernetes context prefixes, Proxmox cluster labels, and
cluster-name fetch keys stay aligned instead of each surface rebuilding its
own pod, namespace, and VM routing fallbacks.
The shared node-state adapter (nodeFromResource in
frontend-modern/src/utils/resourceStateAdapters.ts) also routes Proxmox
cluster labels through that same helper into the node's clusterName, so the
Proxmox host drawer keeps the same canonical cluster name as the rest of the
unified resource model instead of rewriting the label locally.
Native provider tables keep a phone projection: prioritized identity and
operational columns sized to the available width, with no local or
document-level horizontal scrolling, for Proxmox backup, coverage, recoverable, Ceph, Mail Gateway, and replication rows; Docker native
and Swarm inventories; Kubernetes native inventories; TrueNAS systems and
workflows; vSphere hosts and workflows; and Standalone machines. The shared
platform-table-phone-hidden marker removes secondary or duplicate tracks at
the normal phone stage and applies identically to th and td; the
platform-table-narrow-hidden marker adds only the less-than-360-pixel
demotion while promoting identity to a 40-percent track. Docker rows whose full timestamps,
labels, image references, or placement values cannot fit now expose those
values in the same touch- and keyboard-operable inline detail pattern used by
the other platform tables rather than relying on hover titles.
The canonical unified-resource change and relationship presenters now also
share the same elapsed-time and "ago" wording utilities, so observed,
last seen, and ago fragments stay consistent without each formatter
maintaining its own "time ago" implementation.
The drawer's change timeline confidence labels now also use a shared frontend
formatter, so the same percentage wording is emitted across timeline
surfaces instead of each consumer rounding confidence values on its own.
Those same timeline surfaces now also share a token-humanization helper for
fallback labels, so underscore cleanup and title-casing for change and drawer
labels stay aligned without local copies.
The same resource-change contract now also owns the canonical filter parser
used by /api/resources/{id}/timeline, so kind, sourceType, and
sourceAdapter validation stays with the change model instead of being
reconstructed in the HTTP handler.
The canonical resource policy model also owns a shared clone helper, so AI
chat and tools consumers preserve policy metadata by copying through the same
unified-resource contract instead of maintaining their own deep-copy logic.
That same contract now also owns RefreshCanonicalMetadata and
RefreshCanonicalMetadataSlice, so API and AI consumers refresh identity and
policy in one shared pass instead of composing the same metadata steps in
consumer-local shims.
The change emitter now also classifies canonical restart changes for Docker
and Kubernetes resources when restart counters increase or uptime resets, so
the timeline can distinguish restarts from generic state transitions instead
of flattening them into status-only noise.
The same change emitter now also classifies canonical incident changes as
metric_anomaly records when the incident rollup changes, so resource
anomalies stay attached to the canonical incident surface instead of being
inferred later from metric noise or alert-adjacent heuristics.
That store also now migrates legacy resource_changes tables that still carry
the pre-v6 timestamp column by adding canonical columns without rewriting
large historical tables during startup. Timeline reads must resolve legacy
timestamp and nullable observed_at values through read-time fallback
expressions, while writes preserve the legacy timestamp on target databases
that still require it.
internal/api/resourceapi/resources.go now exposes that same history through dedicated
/api/resources/{id}/timeline reads, while the bundled /api/resources/{id}/facets
surface keeps the facet summary and recent-change history available without
forcing consumers to parse the full resource payload.
The facet bundle's relationship slice must be produced with
ResourceRelationshipsWithCanonicalParent, preserving explicit resource
relationships and adding a canonical parent edge from ParentID only when an
equivalent typed edge is not already present.
Those resource-owned timeline and facet reads are relationship-aware at the
API boundary: when the drawer requests a resource timeline, the store must
return direct changes for that canonical ID plus changes whose
relatedResources contains the same ID. The default store
GetRecentChanges path remains direct-resource-only for incident and AI
callers unless they explicitly opt into ResourceChangeFilters.IncludeRelated.
Those filtered timeline reads are backed by dedicated resource_changes
indexes on canonical_id, kind, source_type, and observed_at, so the
canonical history path stays fast as the filtered timeline grows instead of
falling back to a consumer-local scan.
The frontend now also consumes those facet reads through
frontend-modern/src/api/resources.ts and the dedicated resource detail
drawer, which keeps the presentation surface aligned with the governed API
contract instead of rebuilding the relationship and timeline inline.
The canonical routing owner now also lives in
frontend-modern/src/routing/resourceLinks.ts. Its workload-to-infrastructure
href builder was retired with the legacy /infrastructure route, so future
workload-to-resource navigation must extend that shared routing contract
instead of reintroducing workload-local path builders.
That same shared routing boundary now also owns the canonical Patrol
destination used by cross-surface findings and drill-down links. Shared
dashboard, alert, and settings referrals may target /patrol through
frontend-modern/src/routing/resourceLinks.ts, but retired /ai browser route
shapes must stay unregistered rather than compatibility redirects or forked
primary destinations in local link builders.
That same shared routing boundary now also owns storage route-state vocabulary
for unified resources without restoring the retired /storage top-level route.
Platform pages and other embedded owners may carry owned source, node, and
resource queries, but cross-surface consumers must land inside an owning
platform/runtime route instead of rebuilding drawer-local storage paths,
provider-local highlight rules, or standalone aggregate workspace URLs. When a
top-level system is a merged hybrid surface, the route-state helper must
resolve the deep-link source from the canonical merged source set before
falling back to raw platformType, so TrueNAS-backed hybrid systems do not
lose their storage context just because agent telemetry is also present.
Storage route state names no summaryGroup param: STORAGE_QUERY_PARAMS,
parseStorageLinkSearch(...) and buildStorageRouteSearch(...) dropped it
with the Storage pool-group pin, no link builder passed one, and a leftover
param in a saved URL is ignored.
That same routing contract now also owns workload platform scoping without
restoring the retired /workloads top-level route. Workloads URL-sync state,
and any workload link built through the shared buildWorkloadsRouteSearch(...)
helper, must preserve platform=<owned-source-key> for API-backed workloads
such as TrueNAS
app-containers instead of collapsing those routes back to generic agent or
Docker-only semantics when host telemetry is also present. Runtime-local
filters like agent or cluster context may still be added as secondary scope,
but the canonical platform query must remain the first-class route-state
boundary for shared workload navigation.
Shared workload routes, rows and selection use the exact unified Resource.id
for every workload kind. Moving a Proxmox guest to another node does not create
a new selection identity. Existing node-scoped bookmarks resolve through the
registry's current/declared-succession/unique-alias boundary, with ambiguity
refused. Provider coordinates remain explicit compatibility inputs for guest
metadata, native collection and History targets. They must not be rebuilt into
primary row identity or used to merge independent instance clones.
History uses an explicit backend metrics target when present. Its legacy
Proxmox fallback formats the current instance, node and VMID through the shared
native guest formatter, independently of the canonical selection ID. A guest
move changes that native target while retaining the selected canonical row.
The workload target tests and current-source desktop, intermediate and phone
browser matrix cover both supplied targets and missing-target fallback.
Unified resources carry no recovery route-state vocabulary. The recovery
query serializer (RECOVERY_QUERY_PARAMS, parseRecoveryLinkSearch,
buildRecoveryRouteSearch) was deleted from
frontend-modern/src/routing/resourceLinks.ts after the aggregate Recovery page
that read it went on 2026-05-26, and the protected-inventory state, event
status, and legacy stale=1 rules went with it. Infrastructure drawers and
other cross-surface consumers that expose recovery context must land in the
owning platform tab (the Proxmox Backups tab or the TrueNAS Protection tab)
instead of rebuilding drawer-local recovery links, assuming only PBS services
can expose recovery from infrastructure, or sending operators to a standalone
aggregate workspace URL.
Alert investigation offers no resource cross-jump links. The
resource-incident panel names its resource through the unified-resource lookup
and links to no other surface (its Pulse Assistant handoff aside): its
cross-jump chips were retired on 2026-05-16, and an alert card's single
resource link opens the owning platform page. Alert-side consumers must not freeze
per-surface route strings outside the unified-resource contract or revive
retired aggregate workspace URLs.
Patrol findings stay in place the same way: expanded Patrol-finding rows
carry the finding's own primary action and manual controls rather than
surface-link chips, and
frontend-modern/src/components/AI/__tests__/FindingsPanel.test.ts keeps
buildResolvedResourceSurfaceLinks and useResources() out of the panel. A
future finding handoff must not rebuild patrol-local route strings or revive
retired aggregate workspace URLs.
That drawer shell now routes its canonical timeline filter, facet-bundle, and
resource-intelligence state through
frontend-modern/src/components/Infrastructure/useResourceDetailDrawerHistoryState.ts,
while canonical identity, source, service, and debug derivations route through
frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDerivedState.ts
while Docker update mutations route through
frontend-modern/src/components/Infrastructure/useResourceDetailDrawerDockerActionsState.ts,
and frontend-modern/src/components/Infrastructure/useResourceDetailDrawerState.ts
stays the composition owner, so unified-resource history, investigation, and
drawer-local action runtime no longer accumulate inline beside the model layer.
The shared summary chart contract requires the backend feed to normalize
tiered infrastructure history into equal-time summary buckets, so long-range
node sparklines do not expose storage-tier density changes as right-edge chart
compression.
The shared ResourceFacetSummary consumer now omits capability and
relationship badges from the default table/detail surface entirely, while the
backend contract keeps capability and relationship data on the owned resource
model for governed AI and correlation consumers.
That keeps the proven monitoring UX centered on factual timeline
investigation while the richer facet payloads remain available as backend and
AI-facing foundations instead of being presented as first-class product facts
before they are fully populated.
The resource drawer now also keeps change history embedded inside Overview
instead of surfacing a peer History tab, so resource investigation stays on
one coherent runtime surface: the overview card carries the compact recent
activity summary, while the embedded change-history section owns filters and
the event log without duplicating a second timeline-summary card.
That same change-history header now renders as title plus compact summary only,
without an explanatory subheading, so the section reads like investigation
state instead of inline documentation.
The event log cards inside that section now stack key/value fields vertically
instead of using a two-column micro-grid, so each event reads like a single
timeline record rather than a tiny dashboard.
That same overview now keeps AI and governance detail
inside a collapsed Context disclosure, so runtime status and
identity stay primary while secondary AI and policy signals remain available
without competing with the first-screen monitoring story.
Inside that disclosure, the AI summary now reads as compact
label/value rows instead of metric tiles or nested cards, so the opened
investigation surface stays scan-first before the change summary and
correlation reveal appear.
Inside that disclosure, the governance summary also stays label-first with
compact rows and badges instead of a second card stack, so policy detail reads
as supporting context rather than another dashboard.
Inside that disclosure, learned dependency and correlation detail now sits
behind its own reveal without an additional bordered card wrapper, so the
opened investigation surface stays label-first and leaves relationship pattern
detail behind the reveal.
Change-related summary badges now belong to the Change history section
instead of the Runtime card, so current-state facts and timeline context do
not compete for the same ownership on first read.
The overview now begins directly with paired Current state and Identity
cards instead of a wrapper section title or separate peer runtime shell, so
current state and canonical identity read as one first-screen answer rather
than layered labels around adjacent mini-surfaces.
Those cards now use the same shared Card primitive as the workload drawers,
with a responsive two-column grid on wider screens, so the first read stays
compact while each side still has a consistent bounded card.
The drawer header now stays focused on canonical identity and source/type
badges only, while workload/service drill-down links and Kubernetes platform
signals live with the current-state card, so the top strip does not compete
with the resource name, status, or primary identity line.
That header badge row now also deduplicates identical visible labels, so
agent-backed nodes do not repeat Agent when both the canonical resource type
and a merged source resolve to the same badge text.
Runtime-scoped workloads drill-down routes now live in a dedicated Access
disclosure instead of a Current state row, so ordinary host drawers do not
surface a generic host-wide Workloads jump as default runtime chrome and
first-read status stays separate from the next place a user can go or inspect.
That same Current state card now only shows Mode when the resource carries
an actual canonical source mode, so ordinary hosts do not surface an empty or
meaningless mode row when no source-type contract is present.
Inside that top card pair, the operational and supporting context rows stay inline
instead of sitting in a collapsed Details disclosure or nested bordered
cards, so the first read stays like one linear sheet rather than a stack of
cards inside the overview shell.
Discovery support now lives as an Analysis reveal inside that same
overview-only Access surface instead of a peer drawer tab, so supplemental
inspection stays available without claiming the same navigation weight as
runtime, identity, or service-specific operational views.
That access surface is now a compact support row with a one-line summary,
embedded web-interface controls, scoped runtime links, and an on-demand
analysis panel, so the actionable access path stays primary while deeper
discovery inspection remains available without reading like a second peer
overview surface.
For ordinary host discovery, that analysis entry stays even quieter: the
collapsed Access state does not repeat a baseline Host analysis via <hostname> summary when the discovery target is just the same host identity
already shown elsewhere in the drawer.
The analysis panel now expands directly inside the outer Access disclosure
instead of as a second peer support block, so the access surface reads as one
flattened reveal instead of another card group under the overview.
The overview keeps access, investigation detail, service detail, and host
detail as collapsed sibling disclosures under the primary card pair, so the
drawer keeps
the top-level shape to current-state/identity plus Change history before any
secondary operational context appears.
That secondary hierarchy now renders in two layers: a full-width Change history surface first, followed by a separate support-disclosure grid ordered
as Access, Context, Service, and Host, so the operator sees links and
investigation context before deeper technical drill-down cards.
Inside Change history, the event list now renders directly in the parent
section instead of inside a second bordered Event log card, so the timeline
reads like one inspection surface rather than a card nested under its own
section title.
The Change history filter controls now stay behind an explicit Filter history reveal until the operator asks for them or activates a filter, so the
timeline reads as the primary inspection surface instead of opening on a form.
When that reveal is open, the controls still stack vertically instead of using
a paired filter grid, so the filter state reads as one subordinate control
column instead of a competing secondary layout.
Timeline filter default options such as all kinds, all sources, and all
adapters must use the shared frontend all-option presentation helper through
ResourceDetailDrawerOverviewTab.tsx, not drawer-local hard-coded strings, so
future wording changes stay aligned with workload, storage, recovery, and alert
filters.
When filters are active, the filtered facet bundle drives both the summary
chips and the event log, so the header and the list stay aligned instead of
showing stale unfiltered counts above filtered results.
Those support surfaces still use the same title-plus-summary header and
explicit reveal control without extra explanatory chrome, so the drawer signals
secondary depth through one governed structure instead of repeating prose about
what is "supporting" or "secondary" in each block.
Host and node system or hardware cards now also live behind a collapsed
Host support block instead of rendering before the primary overview
cards, so runtime status, identity, and next investigation steps stay first
while deeper machine detail remains available on demand.
That host-details section now reads as a simple vertical stack of detail cards
instead of a wrapped card grid, so the opened state stays linear instead of
feeling like a second dashboard.
Within that summary shell, current-state facts now stay operational: only
distinct platform IDs and platform-signal badges remain with runtime status,
while scoped links move to Access and aliases, IPs, and tags live only under the dedicated
Identity card.
That keeps first read status-first while still preserving canonical identity
metadata on the same top-level summary surface instead of mixing identity
support details into current-state chrome.
The identity-side rows stay label-first and only expand when a specific value,
like alias overflow, needs its own reveal, so the summary answers the main
resource question before deeper metadata appears.
When the identity side has no owned rows or supporting labels yet, the sparse
fallback now stays terse (No identity metadata yet.) so empty state chrome
does not read heavier than the data it is standing in for.
Type-specific Docker, PBS, and PMG operational panels now also live inside a
collapsed Service support block, so lane-specific controls and
breakdowns stay available without displacing the common runtime and identity
hierarchy on first read.
The drawer’s secondary support sections now share the same responsive
flex-wrap card-group pattern used by the workloads drawer, so change history,
access, service, host, and investigation context
read side by side on wider screens instead of as a single full-width stack.
Host uses that same flex-wrap pattern inside the disclosure for the
system, hardware, storage, and network cards, so the drawer matches the
shared workload-card density instead of stretching those cards one per row.
The collapsed Host summary now names the available categories only,
instead of exposing internal card counts in the disclosure label.
When Service is expanded, each service card remains summary-first and
pushes heavier breakdowns or update controls behind one more service-local
reveal, so the opened state still scans as current state before deeper
operations.
That same ownership rule now keeps the service-summary sentence in the
Service disclosure header instead of repeating a second summary box
inside PBS or PMG cards, and the service-local reveal labels stay terse
(Show jobs, Show mail flow, Jobs, Queue), while the opened accordions
also use shorter section labels (Types, Queue detail, Mail detail) and
count-only summary badges so opened cards read like current state instead of
descriptive chrome.
That collapsed Service summary now also uses resource-facing count
phrasing (1 datastore, 7 containers, 16 delayed messages) instead of
implementation wording like queue total.
Within that same PMG opened state, queue and backlog remain the primary metric
tiles while node count moves into quieter support context beneath them, so the
first read stays on mail-flow state instead of cluster metadata.
That support context also owns PMG freshness metadata now, so Updated does
not compete with queue and mail breakdown entries inside the mail-detail
accordion.
Those PMG queue and mail-detail accordions render as simple key/value rows
without entry-count badges or multi-column mini-dashboard layout, so the opened
state stays readable and scan-first.
The Docker service card now follows the same rule: its opened state uses
compact labels (Docker runtime, Updates, Checked, Show actions,
Check now, Update all) and short queued/confirm feedback so action
surfaces stay readable without turning the card into a paragraph of control
copy.
The remaining PBS and PMG cards also stay neutral and resource-first now:
their headings read PBS and PMG, and the primary health row is State
instead of Connection, so service support blocks read like resource status
rather than branded sub-pages.
Unsupported secondary tabs now also use the same terse availability notices
(PMG resources only., Kubernetes clusters only., Docker runtimes with Swarm only.) instead of explanatory sentences, so mismatch fallback state
stays readable without turning support surfaces into inline documentation.
Docker and Kubernetes platform subtabs now follow canonical resource evidence
inside workflow-level navigation instead of exposing one visible tab per API
kind. Docker / Podman keeps top-level Overview, Containers, Images,
Storage, Networks, and Swarm tabs: Storage is backed by host-level
Docker/Podman /system/df usage buckets plus canonical docker-volume rows,
and Swarm is backed by canonical docker-service, docker-task,
docker-swarm-node, docker-secret, and docker-config rows from manager
inventory. Kubernetes keeps top-level Overview, Nodes, Workloads,
Services, Storage, Configuration, and Events tabs: Workloads groups
Pods, Deployments, controller resources, and HorizontalPodAutoscalers;
Services groups Service rows with ingress and endpoint-slice rows without
duplicating Services in the networking table; and Configuration groups
metadata-only config rows with policy, quota, limit, and disruption-budget
rows. Legacy object-specific routes may resolve to the owning workflow tab, but
top-level tab visibility is governed by the workflow model. Inactive standalone
Docker Swarm metadata is not a tab, host role, or service-surface signal.
The frontend Docker facet contract covers host runtime telemetry, runtime
container projection, and Swarm service/task/node projection. Host resources
may expose runtime/version, OS, temperature, uptime,
container/image/volume/network/node counts, update state, command metadata,
engine storage usage buckets, and Swarm local-state/control evidence through
ResourceDockerMeta; app-container resources may expose container id, host
name, runtime/version, image/digest, container state, health, restart/exit
counts, published ports, attached networks, mounts, and image-update status.
Docker platform pages must consume those canonical fields rather than keeping
page-local host-runtime or container-runtime shape aliases.
Canonical resources now also carry platformScopes, the normalized
platform-page membership list consumed by workload filters. platformType
remains the primary display/source family, while platformScopes captures
overlap: Docker/Podman resources reported from a Proxmox LXC carry both
proxmox-pve and docker, but TrueNAS app containers that reuse
DockerData for runtime metadata remain scoped to truenas and must not be
promoted to Docker-managed action targets.
That overlap is not default peer-row membership on every platform overview.
The Docker / Podman runtime lens is the canonical detailed table for Docker
containers, while the Proxmox Overview workload table stays focused on VMs and
LXCs. Proxmox may surface Docker-inside-LXC evidence as LXC drawer detail, but
it must not promote those app-container rows into the default Proxmox peer
workload table or add always-visible child rows that compete with VM/LXC scan
flow. The peer row may expose only a compact nested-runtime cue derived from the
same context so operators can discover that the LXC has nested containers
without reading inline container details. That nested context must be read-only
and keyed by the same canonical
Proxmox guest identity and Docker host source identity used by the resource
model; ambiguous runtime-host matches must be omitted rather than guessed. When
that drawer links into the Docker / Podman runtime lens, it must carry the
unambiguous Docker host facet in the route (host=<runtime hostname>) and the
Docker overview must apply that scope to the host and container tables; if the
runtime host label is missing or ambiguous, the handoff falls back to the
unfiltered Docker overview.
The same facet bundle now also returns grouped recent-change counts by
canonical change kind, so the detail drawer can surface the distribution of
state transitions, restarts, config updates, and anomalies without
recomputing timeline history in the browser, while broader relationship or
capability facets stay available behind the same contract for non-default
consumers that can prove they are populated and justified.
That same facet bundle now also returns grouped recent-change provenance
counts by source type, so the detail drawer can distinguish platform events,
pulse diffs, heuristics, user actions, and agent actions without re-deriving
adapter provenance from the loaded slice.
That same facet bundle now also returns grouped recent-change adapter counts
by source adapter, so the detail drawer can distinguish Docker, Proxmox,
TrueNAS, and ops-helper provenance without re-deriving integration origin
from the loaded slice.
The same unified resource model now also feeds the canonical AI policy
posture summary, so sensitivity, routing, and redaction distributions stay
derived from the shared resource view instead of being rebuilt as a
page-local governance rollup.
The same shared policy presentation helper now also formats governed mention
policy lines and redaction lists for AI chat prefetch, so prompt context
stays aligned with the canonical sensitivity, routing, and redaction labels
instead of rebuilding them in lane-local helpers.
The same helper now also owns the governed-summary gate for mention
prefetching, so the decision to surface the block follows the same canonical
local-only and redaction rules as the rendered policy text.
The same helper also owns the governed-mention preamble and footer copy, so
the warning language around the block stays centralized with the policy model.
The same helper now also assembles the complete governed mention block, so
chat prefetch only routes the output instead of rebuilding the layout.
The same shared policy helper also owns the aiSafeSummary decision and
redaction predicates used by AI chat knowledge extraction and resource
context rendering, so governed labels and summary selection stay rooted in
the unified resource policy model instead of being duplicated in chat-local
helpers. Chat consumers now call CloneResourcePolicy(...) directly from the
shared unified-resource contract, and their governed labels now flow through
shared ResourcePolicyLabel(...) and ResourcePolicyRedactedValue(...)
helpers instead of through AI-local presentation shims, so policy copying and
policy-bound labels both stay centralized in the resource model. When a
policy requires governed handling, the shared label helper now prefers the
canonical AI-safe summary for every redacted or local-only resource and only
falls back to the canonical redacted label if that governed summary is
missing, so path-only and IP-only redactions do not regress to raw identity
leakage or over-redaction in chat context. That same unified-resource contract
now also owns the canonical mention identity path for shared Assistant reads:
chat surfaces carry the backend-issued ID for every supported mention kind.
ResolveResourceReferenceContext binds explicit selections to one owned record.
ResolveResourceContext allows unique name lookup for callers without a
selection. Both share current native coordinates and provider-scoped parent
ownership. Unknown selections and duplicated names refuse routing. Provider
renames update current display names without replacing canonical identity or
overriding a present higher-priority source. Native and legacy wire formats
remain bounded input compatibility, never a second primary identity model.
Assistant finding handoffs now resolve product-originated resource references
through the same canonical unified-resource helper before building policy
context, so handoff handling guidance uses CanonicalGovernanceMetadata(...),
ResourcePolicyLabel(...), and ResourcePolicySummaryLines(...) instead of
chat-local sensitivity inference. The resulting policy block is model-only
read guidance and must not become saved user text, disclosure authority, or
action authority.
The frontend unified-resource hook now trusts backend canonical policy and
aiSafeSummary values directly, so the canonical summary value stays
aligned with the same policy-aware contract that governs sensitivity and
routing metadata without re-normalizing locally.
The resource detail drawer's governance summary now also renders that
governed label through the same policy-aware helper, so it stays aligned with
the backend redaction boundary instead of reconstructing a local name
fallback.
The resource detail drawer now also resolves its AI-safe summary through that
same helper, so governed resources still present the canonical redacted label
when the backend summary is missing instead of dropping the governed summary
block entirely.
The shared frontend resource identity helper now owns that policy-aware
display contract, so infrastructure surfaces that ask for the preferred
resource label no longer need to re-encode the governed summary boundary by
hand. Provider-bound frontend labels, such as Assistant chat resource labels
and organization sharing, stay on that same preferred-label helper instead of
carrying a separate raw-name fallback fork. Operator-local pickers such as the
Settings ResourcePicker use getPreferredInfrastructureDisplayName(...) on
purpose, under the operator-local resource search obligation above.
That same helper also owns platform-id redundancy suppression for
infrastructure drawers, so surfaces only render platform IDs when they add
identity context beyond the canonical display name or hostname instead of
repeating the same identifier chrome in both runtime and identity sections.
The shared workloads-link helper, which labelled Kubernetes-cluster
navigation fallbacks and handed top-level TrueNAS systems to the workloads
route, was retired with the drawer's related-links injection described above.
New drawer or table links follow the local operator identity rule for
infrastructure links and land inside the owning platform page.
The resource drawer's Kubernetes namespace and deployment tabs use the
canonical cluster-name helper for backend fetch keys, keeping lookup identity
separate from the governed display-label contract.
The shared workloads projection in useWorkloads also uses that helper for
pod context labels, so dashboard Kubernetes grouping follows the same
canonical cluster-name contract instead of re-encoding the fallback locally.
That same shared workloads projection now also owns canonical app-container
identity on workload surfaces. Frontend workload records must keep the
unified resource id intact for drawer selection, deep links, anomalies, and
discovery, while Docker-native action fields such as containerId stay
separate and are only consumed by Docker-specific controls. API-backed
platforms such as TrueNAS must not regress that path back to runtime-native
container ids just because they expose Docker-compatible runtime metadata.
That same workload-state boundary also owns summary-chart identity for
provider-backed workloads. Unified-resource VM and system-container views may
surface MetricsTarget only as the history lookup target, while workload
chart transport and hover/focus selection must keep using the canonical
workload row ID so provider-backed workloads such as VMware VMs stay aligned
with workload rows and summary cards.
Kubernetes pods follow that same split. Pod rows may surface
MetricsTarget.ResourceID only as the history lookup target, but that target
must stay on the canonical prefixed runtime key
k8s:<cluster>:pod:<uid> even when the underlying source-owned pod ID arrives
as bare <cluster>:pod:<uid>. /api/resources, workload charts, and
/api/metrics-store/history must therefore collapse onto that prefixed pod
target instead of letting pod rows and pod charts drift onto separate metric
series.
Kubernetes clusters, nodes, and deployments are governed by that same shared
identity family. The registry must derive those metric targets through one
canonical helper boundary in internal/unifiedresources/kubernetes_metric_ids.go
and publish them unchanged through /api/resources, chart clients, and
mock-history paths, so cluster, node, pod, and deployment charts all bind to
one runtime key family instead of each layer rebuilding Kubernetes IDs from
cluster name, namespace, or surface-local aliases.
The drawer's discovery mapper also reuses that helper for pod fallback agent
IDs, so the resource-detail path and the Workloads path stay aligned on the
same cluster-name source of truth.
The workload projection and the resource drawer also share the Kubernetes
context helper getPreferredResourceKubernetesContext(...) in
frontend-modern/src/utils/agentResources.ts, directly in useWorkloads and
through getPreferredResourceClusterName(...) in the drawer, so pod grouping
and drawer cluster context keep the same cluster-context prefix before any
surface-specific display fallback is applied.
The unified-resource projection also reuses that same prefix helper for
projected Kubernetes clusterId, so the shared resource store stays aligned
with the Workloads and detail surfaces on the same canonical cluster-context
source of truth.
That same contract also owns the canonical resource display-name fallback, so
name-or-ID presentation stays consistent between the unified AI adapter, the
AI resource context, and the shared resource selectors instead of being
recomputed locally.
That same shared store now also persists append-only action lifecycle, action
audit, and export audit records, giving the control-plane verbs a durable home
next to the resource timeline instead of leaving those records isolated in
memory-only models.
The in-memory store mirrors the durable audit contract through atomic
create-or-return-current action identity and monotonic typed transitions; it
must never replace an existing action record merely because an ID collides.
SQLite uses insert-on-conflict-do-nothing for creation and conditional state
updates for transitions, with the lifecycle event committed in the same
transaction. Both stores treat rejected, explicitly expired, completed, and failed states as
absorbing and admit exactly one successful transition to executing. Lifecycle
events are unique per action and state, with migration deduplication for rows
written before this invariant became database-enforced.
Execution admission commits the audit transition and lifecycle event with one
deterministic ActionDispatchAttempt and its outbox row in the same
transaction. Transport states are deliberately limited to queued, claimed,
receipt_pending, and receipt_recorded; they do not encode Task 10 execution,
verification, evidence, or compensation truth. An expired claim before
MarkActionDispatchStarted requeues the same attempt. That one-shot CAS is the
sole pre-send linearization point, increments dispatchCount, and removes the
outbox row. Once reached, restart recovery may accept only a correlated receipt
or query a transport reconciler by attempt ID; it cannot claim or send again.
When a correlated response includes the existing ExecutionResult, SQLite and
MemoryStore commit the receipt, receipt_recorded attempt, terminal audit, and
lifecycle event atomically. Standalone callbacks without a result remain
transport-only receipts and do not invent terminal truth.
Current typed agent attempts also persist the transport-derived operation kind,
operation version, request digest, and agent identity with that admission.
Pre-B2 rows migrate with empty binding columns and remain readable but inert;
they are never rebound from current resource telemetry or resent. Agent
operation reconciliation requires exact equality with this persisted binding.
Queued, claimed, forged, conflicting, duplicate, late, and out-of-order receipt
handling is monotonic and tenant-scoped, and the in-memory store mirrors the
SQLite crash-boundary behavior.
It also mirrors the durable decision contract: approval/rejection writes must
target an existing pending action and must fail rather than creating a
decision-only record or overwriting an already decided action.
The enterprise audit API now reads those same unified-resource action and
export records back out, so the durable store is not just a write sink but the
canonical history surface for the control-plane verbs.
Assistant handoff action context must also read current action-plan and
action-audit state from this same store when an approval reference resolves to
a governed action, so chat follow-ups describe the canonical lifecycle record
rather than a stale approval snapshot. That read remains model-only review
context and must not expose raw command text or raw execution output.
Patrol queued-fix approvals are producers of the same unified action-audit
records: the approval adapter may seed planned and pending lifecycle events for
the governed action, and those initial request/lifecycle records must identify
pulse_patrol as the producer. The durable action identity, state transitions,
and history remain owned by this store rather than by a Patrol-specific audit
ledger or by Assistant-local requester inference.
That same ownership boundary applies to incident-adjacent runtime history:
durable backend facts about what changed on a resource belong in
ResourceChange and the shared unified-resource store, while
internal/ai/memory/incidents.go remains an alert-scoped investigation
projection for notes, analyses, command breadcrumbs, runbooks, and other
operator-facing incident memory. Agents must not model the same durable backend
fact in both places as competing primary histories.
Alert lifecycle resource changes record a nonzero occurrence start in
MetadataAlertStartedAt (alert_started_at), separately from the transition
timestamp. A refire retains this start, so the canonical incident query can
reconstruct the original occurrence without an incident-memory checkpoint.
Legacy changes without the metadata retain timestamp-based projection.
TestMonitorLifecycleRefireReopensRetainedOccurrence in
internal/monitoring/monitor_alert_handling_test.go proves the metadata bridge,
ordered lifecycle history and canonical-only reconstruction together.
The unified resource core is strong and canonical, but monitoring and some frontend/API consumers are still being tightened around it.
Tenant-scoped API resource seeding now also stays on unified-resource ownership
end to end: internal/api/resourceapi/resources.go consumes
UnifiedResourceSnapshotForTenant as the canonical tenant registry seed, and
no longer falls back to raw tenant StateSnapshot seeding on the live request
path when that unified seed is empty.
The registry proof map now also breaks out metrics-target normalization and platform-runtime registry support as explicit governed proof routes. Changes to history-query target shaping, registry resolution, Kubernetes capability derivation, store/source-filter state, PBS/PMG rollups, or resolved-host fallback behavior must stay attached to those specific proof policies rather than disappearing into a generic unified-resource runtime bucket.
Canonical storage metadata now carries runtime enabled and active flags so
monitoring and API export paths can derive models.Storage from unified views
without depending on legacy snapshot ownership.
Canonical Proxmox node metadata now carries node-only boundary fields such as
guest URL, connection health, PVE/kernel version identity, temperature details,
and pending-update metadata so monitoring can derive models.Node from unified
views without depending on legacy snapshot ownership.
Canonical host-agent metadata now carries host-only runtime fields such as CPU
count, load average, machine/report identity, command capability, exclude
patterns, and host I/O rates so monitoring can derive models.Host from
unified views without depending on legacy snapshot ownership.
Canonical Docker host metadata now carries Docker-host-only runtime fields such
as display-name identity, CPU/memory sizing, interval/load averages, raw
container membership, and host I/O rates so monitoring can derive
models.DockerHost from unified views without depending on legacy snapshot
ownership.
Canonical Proxmox guest metadata now carries workload boundary fields such as
guest OS identity, guest agent version, guest network interfaces, VM disk
status reason, QEMU guest-agent runtime status/expectation, and container
OCI/Docker-detection metadata so monitoring can derive models.VM and
models.Container from unified views without depending on legacy snapshot
ownership.
Canonical PBS metadata now carries full instance boundary payload such as host
and guest URLs, full datastore details, and PBS job arrays so monitoring can
derive models.PBSInstance from unified views without depending on legacy
snapshot ownership.
Canonical physical-disk views now expose the full disk identity and SMART
metadata needed by monitoring refresh paths, so physical-disk temperature and
SMART merges can run from unified ReadState instead of from snapshot-owned
disk arrays.
For a Proxmox physical disk with a complete instance, node and device path,
canonical aliases include the persisted PVE disk-alert reference
instance:node:disk:sanitized-device-path. The alert checker and registry use
one constructor for that legacy reference. It is a lookup alias, never the
disk's primary canonical ID or source ID, and must not leak across nodes,
instances or non-disk resources. Ambiguous alias claims still fail closed under
normal reference resolution. An absent device path retains the historical
empty-key alert reference, distinct from the root-device key, but cannot be
claimed as a disk alias without a device path. TestProxmoxDiskAlertAliasIsScopedAndNotPrimaryIdentity
pins the identity boundary, and the registry-backed monitoring mute test pins
its operator-state consumer.
When host-agent SMART and Proxmox physical-disk rows merge, the unified
resource must preserve both the enriched PhysicalDiskMeta and the Proxmox
source payload (ProxmoxData.NodeName, Instance, and source id). A
SMART-enriched disk must not lose Proxmox node membership, or later read-state
refreshes and Proxmox-scoped views can drop the disk even though inventory
still exists. HostSMARTMeta must carry sizeBytes through adapter, clone,
read-state, and API transport so disk capacity remains available after
registry rebuilds.
When no Proxmox physical-disk row exists, as with member disks behind a PERC or
other multiplexing controller, ingestHostSMARTDisks projects the merged
parent node's minimal Proxmox ownership facet onto the agent disk. That makes
the member discoverable in the owning Proxmox workspace without adding a
false Proxmox data source or changing SMART fact precedence.
That round trip must also retain provider vendor, controller/target topology,
and explicit zero-valued SMART counters. Registry matching may use usable
serial or WWN only inside a compatible physical-disk parent scope; when those
identifiers are absent or placeholders, host/device/topology fallback identity
is authoritative. An exact seeded source mapping may be reused after restart
only when its resource type and parent scope still agree.
A usable serial or WWN identifies a disk on one machine only, and the canonical
ID a new disk takes must honour that, not just matching. Dual-ported SAS
shelves, cloned VMs with an explicit serial, fixed-serial USB bridges and
TrueNAS systems report one identifier on several machines, and merging them on
a hardware-keyed ID collision dropped every machine but the last from
inventory. physicalDiskIDForMachineLocked resolves each disk's parent to its
machine (the nearest host ancestor, so a TrueNAS pool or Unraid array counts as
its system or host) and treats two disks carrying one identity as different
machines only on evidence: one reporter placing the identity on two machines
(for a single-source disk rehydrated without per-source parents, its own
parent), or differing machines whose hostnames share nothing. Reporters on one
machine still join across grouping parents and unmerged host resources (the
TrueNAS API and the agent on that box), and an unknown machine never splits a
disk. A split (operator exclusion) recorded against any ID the disk can hold,
unscoped, current or machine-scoped, keeps the observation on its
source-specific ID, keyed to its machine when another machine's disk already
holds that ID (an agent disk's source-specific ID hashes its bare serial or
WWN, below). Once the identity
spans machines the unscoped ID no longer names one disk, so a split recorded
against it applies to every copy, erring towards an extra row rather than a
merge the operator forbade, and a manual link recorded against it stops
applying. More than one joinable disk joins none, except that the holder of the
unscoped ID keeps it. Once an identity spans machines, every copy not split off
onto its source-specific ID takes the identity keyed to the machine of its
canonical parent at that point, and the holder of the unscoped ID is re-keyed
with its source mappings, retired-ID claims and relationship endpoints.
Machines may be ingested in any order, and the unscoped ID never passes between
disks that coexist on different machines. A disk only one machine reports keeps
its unscoped ID, apart from observations an operator split off. Residuals: like
any serial-keyed ID, the unscoped ID still passes to a same-serial disk that
appears once the previous holder is gone; a disk's ID changes when a
same-serial disk first appears on another machine and back when it goes away,
and alert-history rows owned under the unscoped ID do not follow a re-key, nor
do its operator-state rows, which is a decision (see the remediation-lock
paragraph); a
disk two reporters share is scoped to its canonical parent when the identity
first spans machines, which the fixed ingest order (snapshot sources, then
supplemental records) and source priority decide; and across reporters,
hostnames that normalize alike (default TrueNAS names, short names across
domains) still join. IdentityMatcher keeps one resource per machine ID, so
the registry indexes disks by hardware key (physicalDisksByHardware) to see
every copy.
An agent disk's source ID carries its host, because the registry keeps one
resource per source ID: when it was the bare serial, same-serial agent disks on
different hosts shared one SourceAgent mapping, every disk but the last
ingested lost its agent source target, and a disk only the agent reports lost
its metrics target and chart. HostSMARTDiskSourceID and
HostUnraidDiskSourceID key a disk with a usable serial or WWN as
<agent ID>/physical-disk:<serial or WWN>, which the SMART and Unraid
observations of one disk share when both report its serial; a disk without
hardware identity keeps its host/device/topology key. A registry seeded from
unified resources rebuilds one key from the agent ID the host above the disk
retains, directly or above its Unraid array or cache pool, and the merged
disk's serial or WWN (seedAgentPhysicalDiskSourceIDLocked), so a rehydrated
disk, which is what the resource API serves, keeps an agent source target,
though not every key its observations ingest under (a SMART row missing the
serial its Unraid row reports, or a host several agent IDs report from); with
no agent host found, a disk with hardware identity seeds its bare serial or
WWN. Canonical IDs do not move: a disk with hardware identity is keyed by it,
and SourceSpecificID hashes an agent disk's bare serial or WWN without the
host (sourceSpecificIDKey), so a disk split off onto its source-specific ID,
and the exclusion that split it, keep the IDs recorded before the host joined
the source ID. Every host's split copy shares that ID, so a split observation
takes it keyed to its machine when another machine's disk holds it, and joins
the holder on its own machine, whether the split reaches it through
physicalDiskIDForMachineLocked or findMatch. A split therefore cannot
separate observations of one disk that one machine reports under several agent
IDs: they meet on that ID, as they met on one source key before. Disk history stays keyed by
hardware identity, not host: HostSMARTDiskMetricID, like the Proxmox and
TrueNAS writers and PhysicalDiskMetaMetricID, prefers the reported serial or
WWN, so a drive keeps one SMART and I/O history across a move between hosts and
across sources that report it by the same identifier, and both hosts of a
dual-ported SAS disk chart the one drive. A host-scoped history key would
orphan the stored history of every agent disk with hardware identity for the
rare collision. Residual: distinct drives that share a usable serial on
different hosts (cloned VM disks with an explicit serial, fixed-serial USB
bridges) interleave their samples in one series, as they already merge into one
disk on a single host. Proof:
TestSameSerialAgentDisksOnTwoHostsEachKeepTheirMetricsTarget,
TestHostSMARTDiskSourceIDScopesHardwareIdentityToItsHost,
TestRehydratedAgentDisksKeepTheirLiveSourceIDs,
TestSplitAgentDisksOnTwoMachinesNeverOverwriteEachOther.
A SMART row that reports no serial, smartctl's standby row among them, takes
the serial the host's Unraid inventory reports for the same disk
(hostSMARTDiskSerial over matchUnraidDisk). The adapter shows that serial
and the disk's metrics target reads it, so HostSMARTDiskMetricID resolves the
same serial, and the disk I/O writer keys a device with no SMART reading by its
Unraid serial (HostUnraidDeviceMetricID) before its Proxmox and host/device
fallbacks. The writers used to key such a row on its WWN or host/device key,
which the chart did not read, so the disk's SMART temperature and I/O history
never appeared. The row's source ID stays its own (HostSMARTDiskSourceID
reads only the row), so its SMART and Unraid observations still ingest under
two keys onto one disk. Samples already written under the old key stay there:
the chart did not read that key while the Unraid row named the disk (only
Unraid OS reports an Unraid inventory, and it is never a Proxmox node whose
disk row could replace the serial), and a device-keyed series can hold another
disk's samples once device letters move. The key follows the inventory: while the host
reports no Unraid row for the disk, the row's own key is both written and read.
A row matches its Unraid row by device path alone, so a row on a path several
of the host's SMART rows share, controller members behind one block device,
takes no serial from it, and the I/O writer still files that device's counter
under no member. The I/O writer's inventory fallback also skips a device
several Unraid rows name, while a SMART row keeps the adapter's first match.
A row's own serial is kept even when it is a placeholder, as the
adapter keeps it, and the Unraid row then stays a disk of its own. Proof:
TestHostSMARTDiskMetricIDTakesTheSerialItsUnraidRowReports,
TestAgentDiskHistoryFollowsTheSerialItsUnraidRowReports.
The adapters' disk temperature rule is shared with the agent disk history
writer. HostSMARTDiskTemperature returns the temperature and collection state
a SMART row's disk shows: the row's own reading, or, when it has none, its
Unraid row's under unraidDiskTemperatureStatus. matchUnraidDisk finds that
Unraid row by the SMART row's usable serial anywhere in the inventory before
any device path, and a placeholder serial matches nothing. The fallback, like
the serial a row without one takes (hostSMARTDiskSerial), comes only from an
Unraid row that describes the row's disk (unraidDiskDescribesSMARTRow): one
carrying the row's usable serial, or one naming the row's device path when the
row is that whole kernel block device. A controller member, even the only one
reported, and a row sharing its path with other SMART rows are not, because
the Unraid row describes the block device as a whole. HostUnraidDiskTemperature
returns what a disk built from an Unraid row alone shows, and
HostUnraidDiskMetricID returns the key that disk's metrics target reads: its
usable serial, else its HostUnraidDiskSourceID, and nothing for a row without
a device, which is not ingested. The writer used to take only the SMART row's
own reading, so a temperature shown from the Unraid inventory, for a disk whose
SMART probe returned none or one excluded from SMART collection, was never
charted. Proof: TestAgentDiskChartsTheUnraidTemperatureItShows and
TestHostUnraidDiskMetricIDMatchesItsDiskMetricsTarget.
HostDiskTemperatureReadings lists the reading each disk of a host agent shows
for consumers that judge disk heat, the agent disk temperature alerts in
CheckHost: one per SMART row the registry ingests (no virtual block device),
then one per Unraid row whose disk key (HostUnraidDiskMetricID) no SMART row's
HostSMARTDiskMetricID equals, the history writer's rule, with a row without a
device skipped as the registry skips it. Rows with one key are one registry
disk whatever device labels they carry, such as a controller member
(0 [megaraid,0]) and its Unraid device (sda). When smartctl and Unraid
report different usable serials for one device the registry shows both disks,
and both are listed. Each reading is taken from the disk resource
resourceFromHostSMARTDisk or resourceFromHostUnraidPhysicalDisk builds, so
its temperature, collection state and disk type are the ones that row's disk
shows. Unraid rows on different devices that share a key and no SMART row are
one registry disk but keep a reading each, since alerts are keyed by device.
Proof: TestHostDiskTemperatureReadingsMatchTheDisksTheRegistryShows compares
each reading with the ingested disk, including two disks on one device and a
controller member Unraid lists under its block device.
That same canonical physical-disk view must also expose source-independent host
context. When a disk is API-backed rather than node-backed, typed views should
fall back to canonical host identity such as identity.hostnames instead of
returning an empty node label purely because no Proxmox metadata is present.
Canonical identity now also treats Proxmox-backed infrastructure parents as
node-owned resources first: when an agent resource carries canonical Proxmox
node metadata, canonicalIdentity.primaryId must remain stable as
node:<proxmox-source-id> even if agent discovery metadata is also present,
so merged node-plus-agent views do not drift to transient agent identifiers.
Frontend/API consumers and backend support files now require explicit registry path-policy coverage, so new unified-resource-owned runtime files must be added to a concrete proof route instead of falling back to subsystem-default verification.
The detail-mapper frontend consumer is governed as an explicit shared
boundary with the performance lane rather than implicit downstream usage, so
future fleet-scale changes there must preserve both canonical unified-resource
semantics and the performance proof route. The resource drawer surfaces
compact timeline summary chips through the shared ResourceFacetSummary, so
facet presentation changes must continue to flow through that component rather
than inventing a separate ad hoc summary path. A dense table row that adopts
those chips must first give the shared component a visible limit and overflow
label, and any row-level policy chip stays limited to blocking
local-only/restricted posture so mock-rich canonical resources cannot stack
or overstate governance badges inside the resource column. Those summaries now
prefer canonical facetCounts on the
resource object when available, so the backend list/read shapes remain the
source of truth instead of forcing the frontend to infer totals only from
loaded slices. The drawer now fetches those facets
through one backend bundle endpoint, and that shared facet bundle preserves
the timeline slice plus recent-change counts so the overview card and history
summary can report the loaded history instead of collapsing to the currently
loaded page when the timeline endpoint is paginated. Related resources on
those timeline entries render through the drawer's resource-label resolver.
The shared recent-change presentation boundary is also owned here now.
frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
is the canonical shared card for recent resource-change timelines, while
frontend-modern/src/utils/resourceChangePresentation.ts owns canonical
change-kind wording, source-type wording, source-adapter provenance labels,
headline formatting, and timeline sort order. Future recent-change wording or
badge changes should extend those unified-resource owners instead of leaving
recent-change presentation unowned or rebuilding helper-local labels inside AI,
Patrol, performance, or infrastructure surfaces. The shared card must not repeat
a reason line when that reason already equals the canonical headline.
The shared correlation and policy-posture presentation boundaries are also
owned here now. frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx
is the canonical shared card for canonical resource relationships, dependency,
dependent, and learned-correlation context, while
frontend-modern/src/utils/resourceCorrelationPresentation.ts owns endpoint
labels, relationship labels, headline formatting, summary wording, and canonical
relationship/correlation ordering. Correlation and relationship badge text must
preserve the formatter's human-readable title case instead of forcing visual
uppercase over enum-like payloads such as ALERT → ALERT.
frontend-modern/src/utils/resourcePolicyPresentation.ts owns the canonical
sensitivity, routing, and redaction labels and their orderings for governed
policy posture. No shared unified-resource card renders policy-posture counts
today: the card that once did lost its last mount on the Patrol page and was
removed together with its aggregate count-summary helpers. If a shared
posture card returns, caller-supplied framing such as a subtitle or a
resource-count label must extend that one card's API instead of forking a
page-local policy summary.
Future correlation or policy-posture wording changes should extend those
unified-resource owners instead of drifting into page-local loops in AI,
Patrol, or infrastructure surfaces.
The canonical frontend resource-type and badge presentation boundaries are
also owned here now. frontend-modern/src/utils/canonicalResourceTypes.ts
owns the canonical allowed resource-type set for shared resource-picking and
validation flows, frontend-modern/src/utils/resourceTypeCompat.ts owns
frontend canonicalization from legacy or alias type tokens, and
frontend-modern/src/utils/resourceTypePresentation.ts owns canonical
resource-type labels and badge styling. frontend-modern/src/utils/resourceBadgePresentation.ts
then owns the shared resource/source/platform badge composition used by
resource tables and drawers. Future resource
type or badge wording changes should extend these unified-resource owners
instead of rebuilding type-label or badge mapping logic inside infrastructure,
settings, alerts, recovery, or dashboard-local helpers.
That same unified-resource presentation boundary also owns workload, source,
and service-health labeling now. frontend-modern/src/utils/workloadTypePresentation.ts
owns canonical workload-type alias handling plus badge labels/titles,
frontend-modern/src/utils/sourceTypePresentation.ts owns canonical source
labels and source badge styling, and
frontend-modern/src/utils/serviceHealthPresentation.ts owns canonical
service-health tone, dot, and compact-summary presentation. The PMG-facing
consumer frontend-modern/src/components/PMG/ServiceHealthBadge.tsx is part
of that same boundary and must stay a thin render shell over the canonical
service-health helper. Future workload/source/service-health wording changes
should extend these unified-resource owners instead of rebuilding status or
badge logic inside PMG, recovery, dashboard, or infrastructure-local views.
The shared resource-runtime adapter boundary is also owned here now.
frontend-modern/src/utils/agentResources.ts owns canonical actionable
resource identities, agent-facet detection, and cluster-name fallbacks. It no
longer carries a resource-wide chart-key candidate list: workload table
sparklines match chart series to rows through the chart-key candidates in
frontend-modern/src/components/Workloads/workloadMetricHistoryModel.ts.
frontend-modern/src/utils/resourcePlatformData.ts
owns the typed extraction of platform-data fragments from unified resources,
and frontend-modern/src/utils/resourceStateAdapters.ts owns canonical
projection from unified resources into node/PBS/PMG runtime view models.
Legacy flat fields may synthesize a Proxmox facet only when current sources
include Proxmox, or source ownership is absent and the legacy shape applies.
Storage instance and node coordinates do not override VMware, TrueNAS or
agent ownership. Explicit ownership facets remain authoritative.
Future resource-to-runtime mapping changes should extend these unified-resource
owners instead of rebuilding ad hoc platform-data parsing or action-target
fallback logic inside alerts, settings, recovery, AI, or infrastructure-local
state owners.
Those runtime adapters must preserve the same operator-facing local identity
boundary as the platform tables: node, PBS, and PMG view
models keep canonical local instance labels for summary rows, drawers, and
settings selectors, while governed summaries remain available for policy/detail
surfaces rather than replacing per-instance operator identity.
ResourceFacetSummary now consumes the shared
frontend-modern/src/utils/resourceChangePresentation.ts label helper for
canonical change kinds, source types, and adapter provenance, so the chip
wording stays aligned with the drawer's recent-change cards and timeline.
Timeline cards in that drawer surface change metadata when it is present, so
the history view preserves the richer provenance already carried by the
unified-resource model instead of flattening those fields away.
The shared frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx
and frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx
cards keep resource links behind an optional buildResourceHref input with no
default, following the 2026-05-16 cross-resource drilldown retirement above.
The resource drawer passes none, so its change and correlation labels render
as plain text; a surface that needs resource links must pass a platform-route
builder into the shared card rather than rebuilding resource-filter paths per
surface.
Platform tables supply the resource-label resolver to the resource drawer
through PlatformResourceDetailTableRow. createPlatformResourceLabelResolver(...)
in frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx
resolves an ID against the page's own resources through
getPreferredInfrastructureDisplayName(...), so related-resource timeline
chips show the operator-local display name rather than a raw ID, without adding
a detail-local lookup path. A table that passes no resolver leaves those chips
on the raw resource ID.
The resource drawer now also passes that same resolver into the shared
correlation summary, its only consumer, so dependency and dependent chips stay
on those labels in the investigation path.
The same timeline and facet-bundle reads now also accept governed kind and
sourceType filters, plus a governed sourceAdapter filter for adapter-level
provenance drill-down, so history can narrow by canonical change class and
integration source while the store still owns the filtered total counts.
Invalid sourceAdapter values are rejected at the API boundary, keeping the
timeline query contract aligned with the canonical adapter set instead of
silently accepting arbitrary strings.
That same filter contract now includes provider activity entries and the
vmware_adapter value, so VMware task/event breadcrumbs are narrowed through
the same shared timeline API used for alert, relationship, and action history
instead of adding a provider-specific query surface.
The Connected infrastructure settings surface now also depends on a backend
owned connectedInfrastructure projection derived from unified resources plus
reporting-ignore state. That projection is now also the only v6 client
contract for reporting/ignored infrastructure state; future settings-row
grouping or reporting-surface scope changes must be routed through that backend
projection instead of teaching the frontend to reinterpret raw resource facets
or removed-runtime arrays locally.
No shared helper serializes recovery drill-down state any more: the
recovery timeline day, chart range, workspace view, inventory state,
itemType, and platform route-state rules served the deleted aggregate
Recovery page. The Proxmox Backups tab owns its own day selection through
PROXMOX_BACKUPS_QUERY_PARAMS.day; its chart range is component state. Readers
of /api/recovery/* payloads must still prefer canonical platform /
platforms response fields over legacy provider aliases. The frontend's
only recovery-points reader is useRecoveryPoints.ts, and
frontend-modern/src/utils/recoveryPlatformModel.ts rewrites provider,
subjectRef, and display.subjectLabel onto platform, itemRef, and
display.itemLabel at decode time. The TrueNAS Protection tab
(TrueNASProtectionTable.tsx, truenasPageModel.ts) reads only those
canonical fields; the normalized RecoveryPoint type does not declare the
subject names.
Shared API consumers now also depend on a single registry-list snapshot per
request when deriving canonical type aggregations for resource list and stats
responses. Re-reading registry.List() for the same /api/resources request
is forbidden because it adds avoidable clone churn to the hot path and breaks
the guarantee that aggregations describe the exact resource snapshot used to
build the response.
Canonical parent lineage is now source-tracked internal state, not sticky
merged payload state. parentId, parentName, and childCount must be
re-derived from the live per-source parent map on every ingest/build pass so
same-source reparenting, orphaning, and parent removal clear old lineage
instead of leaking stale topology into API and typed-view consumers.
The registry now also owns the canonical monitored-system projection used by
commercial entitlement and ledger surfaces. MonitoredSystems(...) must keep
top-level counted-system identity, representative resource selection, and
agent/API deduplication on unified-resource ownership instead of letting API
handlers or licensing helpers rebuild their own counted-system grouping logic.
That same registry-owned contract now also covers prospective admission and
source replacement. Add/update handlers must project candidates or preview
records through shared monitored-system projection helpers, including the
delta from replacing one existing source-owned surface, instead of guessing
from handler-local priority rules or transport-specific counters.
That same monitored-system contract now also owns the safe hostname
equivalence rule for top-level host attachment and replacement selectors.
Shared grouping may attach qnap to qnap.local when one surface reports the
short hostname and another reports the FQDN, but it must not collapse two
distinct fully-qualified hosts that merely share the same short prefix across
different domains.
Fallback owner buckets are pass-local priority-ordered slices, rebuilt from
each complete group snapshot. A maximum-priority group cannot be better than
any query and is omitted only from the temporary candidate index. Queries visit
only strictly better-priority owners; a second distinct qualifying root still rejects attachment even when
its priority or evidence kind differs. The unique root keeps lexical exact-host
evidence before full short/FQDN evidence before lexical exact-IP evidence.
Comparable/short-form keys only prune candidates: the full hostname equivalence
check remains authoritative. No index survives a grouping pass or caller, and
no resource, reporting surface or ambiguous identity is discarded. Exhaustive
all-group target/evidence enumeration, immediate-parent content comparisons,
multi-pass identity changes and connected provider/Infrastructure controls
verify this unchanged grouping contract.
That same projection contract now also owns structured replacement selectors
and detailed previews. Shared callers may serialize source-native selector
fields such as hostname, host URL, machine or agent identity, and source-owned
resource identifiers, but they must not invent preview-only matcher logic or
hide source replacement behind handler-local closures once the request crosses
into unified-resource ownership.
Candidate activity is part of that same canonical projection contract.
MonitoredSystemCandidate.State decides whether a candidate contributes a
counted top-level monitored system at all: inactive candidates must not
materialize a projected resource, new-candidate previews must resolve to a
zero-delta/no-change result when only an inactive candidate is proposed, and
replacement previews must remove only the replaced source while preserving any
remaining grouped monitored-system evidence.
Source-native record-set preview is required for provider-backed onboarding
that can discover multiple top-level systems from one saved connection, so
TrueNAS, VMware, and future multi-record providers stay on the same canonical
projection boundary for explanation.
VMware host previews are part of that same contract: canonical host identity
must honor VMware host UUID plus normalized hostnames so a vCenter add or
update explains host-backed systems consistently before and after persistence.
Canonical source-owned identifiers must also normalize surrounding whitespace
before they become by-source map keys or source-specific hash IDs. The same
runtime object must not fork into distinct canonical resources just because an
ingest path supplied "vm-100" in one pass and " vm-100 " in another.
Canonical target-derived identities must also normalize resource-type aliases
through the v6 type map before they become primaryId or alias entries.
Mixed-case or compatibility target values such as HOST and docker_host
must collapse to canonical v6 prefixes instead of leaking raw source labels
into merged resource identity.
Canonical metrics targets must also trim source-owned target IDs before they
become query coordinates. The same resource must not query different history
series just because one ingest path emitted " host-1 " and another emitted
"host-1".
Proxmox node metrics targets retain the canonical node resource type when the
node is API-only; compatibility normalization must not rewrite that target to
agent. A node with an explicit linked-agent target may still use the agent
series, so the selected target continues to describe the source that actually
owns the chart data.
If the canonicalized target ID is empty after that normalization, the metrics
target must fail closed to nil instead of emitting an empty query coordinate.
Kubernetes pod metrics targets must also canonicalize onto the shared
k8s: runtime namespace before they become query coordinates. Bare pod source
IDs such as cluster-1:pod:pod-1 are discovery keys, not public history IDs;
unified resources and history consumers must expose and query them as
k8s:cluster-1:pod:pod-1 so pod charts, drawer history, and workload summary
cards stay on one owned series.
ReadState resource-resolution lookups must also normalize surrounding
whitespace on the incoming name before matching canonical resources. A valid
resource must not look missing just because a consumer asked for " myserver "
instead of "myserver".
Frontend identity helpers share the trimmed-string helper from
frontend-modern/src/utils/stringUtils.ts so resource-id, hostname, and
linked-node normalization keep the same fail-closed whitespace trimming rules
instead of reimplementing ad hoc local string cleanups.
The same governed lookup boundary now also owns policy-aware resolved context:
downstream consumers that need routing plus canonical policy metadata must use
the unified-resource resolution context instead of rescanning typed views or
re-deriving AI redaction rules locally.
That same resolved-context boundary now also owns cross-platform app-container
routing. internal/unifiedresources/resolve.go,
internal/unifiedresources/resolve_context.go, and
internal/ai/tools/tools_query.go must register TrueNAS-backed canonical
app-container resources into the same resolved-context model as Docker app
containers while preserving adapter-specific routing. Reusing shared
DockerData for workload metadata must not misclassify a TrueNAS app as a
Docker-routed control target.
That same contract applies to the frontend workload state boundary:
frontend-modern/src/hooks/useWorkloads.ts,
frontend-modern/src/utils/workloads.ts,
frontend-modern/src/components/Workloads/workloadTopology.ts, and
frontend-modern/src/components/Workloads/useGuestRowState.ts may reuse
shared DockerData for runtime metadata, but they must keep Docker-only
action identifiers and update affordances scoped to Docker-managed
app-containers. TrueNAS-backed app-container workloads must still navigate
through the canonical app-container host path without populating Docker-only
action IDs, but discovery support must come from canonical
discoveryTarget ownership rather than synthesized node or instance
fallbacks. API-backed workloads such as TrueNAS apps may not expose agent-only
Discovery affordances unless the unified resource contract explicitly carries a
discovery target.
That same resolved-context ownership also governs read diagnostics. When
internal/ai/tools/tools_read.go executes pulse_read action="logs" against
a canonical app-container resource, TrueNAS-backed app containers must
route through adapter-aware native read providers keyed by canonical
resource_id, not through Docker host/container routing or agent-host
fallbacks.
Typed view accessors for linked topology IDs must also return canonical
trimmed values. Callers must not observe " node-99 " or " agent-123 "
through host/node view accessors when the canonical linkage is node-99 or
agent-123.
The same rule applies to source-owned typed-view IDs. VM, container, node,
storage, and docker host/container source-ID accessors must return canonical
trimmed identifiers rather than leaking outer whitespace from ingest payloads.
Proxmox topology coordinates exposed through typed views must also be trimmed
before they reach consumers. Node, cluster, and instance accessors must not
present " pve-a " or " lab " as distinct topology values from pve-a
and lab.
That same topology contract now also includes Proxmox guest pool membership.
ProxmoxData, VMView, and ContainerView must preserve trimmed pool
coordinates from the canonical monitoring runtime so inventory, reporting, and
future fleet grouping surfaces do not re-query or infer pool ownership locally.
Frontend unified-resource consumers must now also normalize legacy discovery
resource type aliases before storing discoveryTarget. Backend k8s
discovery coordinates collapse to the canonical frontend pod target, and
typed PBS/storage facets must be preserved as the explicit frontend resource
meta interfaces instead of floating as untyped platform-data consumers.
That same consumer boundary now also owns legacy top-level TrueNAS alias
collapse for discovery and chart consumers: shared frontend hooks may accept
raw truenas payloads at ingest, but once normalized the rest of the frontend
must consume the canonical agent host type rather than repeating the alias.
Resolved host deduplication must also fail safe on unfamiliar connector types.
Unknown source types may contribute identity and source-label evidence, but
they must not outrank the known canonical primary-type order when a merged host
contains a governed connector such as proxmox-pve or agent.
The canonical KnownSourcePlatform source-filter boundary applies to
infrastructure source UI options in Settings and platform/runtime pages. Those surfaces may render
friendly string keys, but membership checks against available sources must
normalize through the shared frontend-modern/src/utils/sourcePlatforms.ts
helper before consulting KnownSourcePlatform sets.
That same shared source-platform boundary now also owns TrueNAS-backed hybrid
resources. When a canonical resource carries both agent and truenas
sources, frontend-modern/src/utils/sourcePlatforms.ts must still resolve the
platform as truenas and the source mode as hybrid, so workload and
infrastructure consumers do not collapse API-backed TrueNAS systems or apps
back onto the generic agent path just because host telemetry is also present.
The shared resolveResourcePlatformType(resource) helper in that same module
is the canonical "what platform does this unified resource belong to" reader.
Platform-first top-level pages and any consumer that buckets unified resources
by family must call it instead of inspecting resource.platformType directly,
because the legacy backend resource projection leaves platformType empty on
several canonical resource types; the helper falls back to the resource's
sources array via the existing source-platform normalization so mock
fixtures and live backends produce the same client-side platform grouping.
That same boundary also owns the operator-facing system identity vocabulary.
frontend-modern/src/utils/resourceBadgePresentation.ts and its consumers, the
Docker hosts table's System column through getDockerHostSystemBadge(...) and
the resource drawer header, may preserve full merged-source detail in tooltips
and accessibility metadata, but visible headers, sort keys, and badges must
answer what system the operator is looking at. Provider/API
platforms such as Proxmox, TrueNAS, VMware, and Kubernetes outrank collection
methods; reported agent OS or appliance identity such as Unraid or Ubuntu
outranks a generic container-runtime capability; and the shared generic source
label for the docker platform is "Docker / Podman" when the runtime capability
is the best available identity. Docker-only wording is reserved for
implementation or action surfaces that are explicitly scoped to Docker-native
behavior. Agent telemetry is collection-method detail when a stronger platform
or host identity is present, not a peer platform label that should crowd the
table or drive the primary system sort.
The former top-level infrastructure feature route never shipped as a stable v6
surface and is intentionally removed rather than preserved as a compatibility
redirect. Canonical infrastructure management lives under
/settings/infrastructure, while agentless endpoint availability management
lives under /settings/monitoring/availability; day-to-day resource
inspection lives on the platform/runtime pages named by the
frontend-primitives-owned IA contract, with unified resources projecting
standalone agent machines for the Machines consumer and agentless endpoint
checks for the Availability checks consumer. Future infrastructure work must
extend those owners rather than
recreating
frontend-modern/src/features/infrastructure/, a /infrastructure route, or
a separate top-level availability route.
The Availability checks table and fleet view are two presentations of the same
source-owned network-endpoint resources. view=fleet, q, and status are
URL presentation state only: they must not mint another resource kind, clone
saved targets, or infer relationships from history buckets. Fleet tiles open
the shared resource drawer by canonical resource ID, while
/api/availability-history keys evidence by the saved availability target ID
already carried by that resource. History absence or failure cannot overwrite
the unified resource's current status, correlation, source ownership, or
navigation identity.
One availability resource may now carry several source-owned observation
locations without cloning the resource, relationship, or fleet row. Its
availability facet preserves the aggregate state, disagreement flag,
expected/reporting coverage, and the current state, latency, freshness, and
bounded failure reason for each path. Resource status remains active with
warning evidence when paths disagree, becomes stale/incomplete when coverage
is unknown, and becomes inactive with an outage incident only when every
current path is unreachable at the configured threshold. Frontend adapters,
REST, websocket, and mock projections must preserve this list rather than
flattening it to the most recent observer. The Availability table may summarize
the count and reporting coverage; the shared resource detail card owns the
expanded path comparison.
For HTTP/S checks with an explicit application response contract, the
availability facet preserves two source-owned facts: transportOutcome
describes whether the endpoint answered, while applicationOutcome,
applicationStatusCode, and applicationFailureCode describe whether the
bounded saved contract passed. The overall resource status still follows the
saved check outcome, so an answering endpoint with an incorrect application
response is not presented as healthy. Resource payloads, evidence envelopes,
incidents, relationships, and history must never contain request or response
bodies, Basic passwords, bearer tokens, or operator header values.
Shared unified-resource consumers now also normalize org scope through
frontend-modern/src/utils/orgScope.ts before building cache keys or
multi-tenant resource fetch state, so the canonical resource hooks do not
keep their own getOrgID() || 'default' fallback logic in each runtime
surface.
Canonical monitored-system counting now also depends on this subsystem. The
counted commercial unit is a deduped top-level monitored system assembled from
canonical unified-resource roots, so read-state helpers that derive
commercial-count groups must union agent, Proxmox, Docker, PBS, PMG, TrueNAS,
and Kubernetes cluster views through canonical identity evidence instead of
through transport-local counters or child-resource totals.
When one counted group is being updated in place, the prospective projection
must remove only the replaced source from that grouped root and preserve any
remaining canonical source ownership that still keeps the monitored system
counted, so replacement-aware preview stays aligned with final runtime
counting.
When support or onboarding needs to explain that same change, unified
resources must be able to return both the current grouped monitored system and
the projected grouped monitored system for the candidate being evaluated, not
just the numeric count delta, so explanation stays on one
canonical projection boundary.
Canonical unified resources now also own first-class policy metadata for the
v6 bridge release. Cloned and API-exported resources must carry
policy.sensitivity, policy.routing, and aiSafeSummary derived from the
canonical resource model itself, with routing scopes constrained to the owned
cloud-summary, local-first, and local-only contract plus explicit
redaction hints for hostname, IP, platform-identity, alias, and path-bearing
surfaces. Downstream API, AI, and frontend consumers may read those fields,
but they must not replace them with local sensitivity inference or ad hoc
privacy heuristics.
Shared privacy helpers also own the export sensitivity floor and route
decision derived from those canonical policy counts, so AI export audits and
route decisions reuse the same governed boundary logic instead of rebuilding
it in consumer packages.
That same export path now records canonical human-readable redaction labels
through the shared policy presentation helper, so audit records and prompt
context stay aligned on the same redaction vocabulary instead of duplicating
hint-to-label conversion in AI-local code.
The AI runtime now also uses the canonical policy presentation helpers to
surface those routing and redaction labels in shared context output, so the
same policy model is reflected in prompt summaries instead of being
re-described independently per surface.
That same shared presentation layer now also owns governed cluster-name and
IP-summary rendering for AI resource context, so topology labels and address
lists stay aligned with the same redaction vocabulary instead of being
formatted in AI-local helpers.
The AI correlation root-cause engine also consumes the canonical unified-
resource relationship model directly, so relationship reasoning and scoring
stay on the same owned edge vocabulary instead of keeping a separate
AI-local relationship struct.
Those helpers now own the canonical redaction-hint order and count-to-label
projection, so the AI summary and any other backend policy posture surface do
not re-sort redaction labels locally.
They also own the canonical sensitivity and routing order used to format
policy-posture count summaries with human-readable labels, so the AI summary
and any frontend posture presentation read the same presentation sequence
from the shared resource model.
Canonical resources now carry first-class relationship, capability, and
timeline fields: Capabilities (bounded action definitions with approval
levels), Relationships (typed inter-resource links with direction and
confidence), and RecentChanges (typed change timeline entries with source,
confidence, and related-resource references). These fields are defined in
capabilities.go, relationships.go, changes.go, privacy.go, and
actions.go. The backend keeps those fields for AI and correlation use,
while the frontend consumer stays timeline-first and only preserves the
recent-change slice plus facet counts it actually renders. The store now also
owns a resource_changes persistence table with RecordChange and
GetRecentChanges methods so change history is queryable by canonical ID and
time window.
Docker alert source references containing an exact full container ID resolve at
MonitorAdapter.RecordChange through the current registry, then a retained
history binding, then the deterministic source-specific container identity.
Names and shortened IDs cannot establish this binding. history_identity.go
owns a history-only alias index in the organization-scoped resource store.
Legacy event rows retain their IDs, resource references and timestamps. Reads
expand aliases and canonical predecessor eras without changing operator state,
action requests, approvals, links or exclusions. Separate monitor, API and
Assistant store handles must see current persisted aliases. Missing identity
storage is an error, not evidence of empty history. Retention removes an alias
only after neither identity has retained journal records.
Other alert source references resolve at MonitorAdapter.RecordChange
through ResourceRegistry.resolveHistoryReference, which accepts only durable
identities: the canonical ID, a retired era, a source ID (Proxmox node, guest
and storage IDs), a node-scoped Proxmox guest reference after migration, or
agent:<host ID>. Names and hostnames never bind history, unlike the wider
ResolveReferenceID used by alert policy, so a resource named like a system
reference cannot capture its events. A reference two resources answer to binds
to neither: its event keeps its own reference and creates or changes no
binding, though an earlier binding still covers that reference on read. Like
any unbound reference it is retried, and once a later generation resolves it
to one resource it binds there, replacing an earlier binding. A
reference no resource
answers to follows its retained binding after inventory removal, or keeps its
own history. Docker container references never take this path. Alert journal references
without a binding (read once per process, plus any written before inventory
named their resource) are retried on each published registry generation for
legacyHistoryBindWindow. Bound rows keep their recorded resource ID, so a
change list may show the source reference on rows written before the binding.
Only the full-presentation ResourceDetailDrawer reads this history in the UI
(facets and resource intelligence); the table-row drawer used by Proxmox node
and Agents rows, and the guest and storage drawers, do not request it.
Assistant and Patrol resource contexts read it from the store. Proof:
TestHistoryIdentityMonitorAdapterResolvesProxmoxAlertReferences and
TestHistoryIdentityBindsLegacyAlertRowsFromRegistryGenerations in
internal/unifiedresources/history_identity_test.go.
Docker host alerts (docker:<host ID>) and Swarm service alerts
(docker:<host ID>/service/<service ID>) resolve only through the registry's
Docker source identities: the host ID is the Docker host's source ID, and a
service reference names the service with that exact ID in the host's Swarm
cluster, whichever manager reported it. A hostname in the host position is
only ever looked up as a Docker host source ID. The registry keys a service
without an ID by its raw name, so the service entry must also carry exactly
the referenced ID. A container or service reported without an ID alerts under
its name, marked in the ID position (docker:<host ID>/name:<name> and
docker:<host ID>/service/name:<name>, from alerts.DockerContainerResourceID
and alerts.DockerServiceResourceID). Docker and Swarm IDs never contain a
colon, so such a reference never equals its host's reference or another
service's ID reference, and dockerHostHistoryReference treats a service slot
with a colon as a name. These name references, hostless docker-service:
references, container names and shortened container IDs never bind and are
never retried against later inventory. Rows journaled before name references
existed keep the reference they were written under: an ID-less container's
rows stay in its host's history, and an ID-less service's rows bind only to a
service in that cluster whose ID equals its normalized name.
Sub-resource alert references name no resource of their own and bind to the
owner whose durable ID they carry (historySubResourceOwner): ZFS pool and
device alerts (<storage ID>/zfs-pool:<pool>[/device:<device>]) to the
storage, the Unraid array alert (agent:<host ID>/storage:unraid-array) to
the array storage with that agent source ID, and host filesystem, SMART disk,
disk temperature, RAID, custom-sensor and native-sensor alerts
(agent:<host ID>/disk:, /disk_temp:, /raid:, /custom:, /sensor:) to
the host. The owner reference must
resolve to exactly one resource of the expected type; an ambiguous or
incompatible owner is a conflict, so the event keeps its own reference,
follows no retained binding and is retried. Pool, mount and kernel device labels are names,
and a device name can denote a different disk after a reboot, so these alerts
never bind a physical disk. Any other sub-resource shape stays unbound until
its producer and this list change together. The Docker, storage and platform
host-row drawers do not request per-resource history, so these bindings reach
the facets, timeline and intelligence APIs and Assistant resource context, not
a drawer. Patrol's scoped change feed matches the stored resource ID without
expanding bindings, so it includes events recorded under the owner's
canonical ID but not rows journaled before their binding.
Proof: TestHistoryIdentityMonitorAdapterResolvesDockerHostAndServiceReferences
and TestHistoryIdentityMonitorAdapterResolvesSubResourceReferences in
internal/unifiedresources/history_identity_test.go, and
TestOwnerAlertTimelinesUseCanonicalHistoryIdentity in
internal/monitoring/monitor_alert_handling_test.go against the real alert
producers.
PVE disk health and wearout alerts (ProxmoxPhysicalDiskAlertResourceID,
<instance>:<node>:disk:<device key>) never bind, although
ResolveReferenceID resolves the same reference to the physical disk at that
path for operator mutes (#2112). A device path is not hardware identity: a
replacement disk in the same slot, or a reboot that reorders devices, takes
over the path, and disk alerts are evaluated before their poll's disks reach
the registry. A binding belongs to the reference string and would carry every
row and every read of the path to whichever disk held it last. Each lifecycle
row is owned on its own instead (proxmoxDiskAlertOwner in
internal/unifiedresources/pve_disk_alert_history.go). The same ownership
decision is exposed on immutable unified snapshots by
ProxmoxPhysicalDiskAlertOwner for subject reports; the registry and snapshot
entry points share the implementation, including ambiguity, moved paths,
identity-less fallback and derived-ID collision checks
(TestProxmoxDiskAlertOwnerDecisions). Reporting admits only the reference's
canonical health/wearout alert identifiers and keeps resolution-window bounds
(TestReportPhysicalDiskAlertsFollowRecordedHardware in internal/api).
The alert records the
evaluated disk's serial and WWN (disk_serial, disk_wwn), and
MonitorAdapter.RecordChange writes the row under the one physical disk the
registry knows by that hardware identity (diskinventory.HardwareIdentityMatch),
wherever it sits now. A differing WWN does not rule a disk out, because the
registry keeps a merged agent observation's WWN, which smartctl frames
differently from PVE; of two matching disks, a WWN only one of them shares
with the row decides. The registry only translates identity into a
canonical ID: the path never breaks a tie, so a generation that still places
another disk at the path never gains a row that disk does not match by
identity, and no check precedes a later write. With no such disk in inventory
(a new disk before its first poll reaches the registry, or a removed one), the
row takes the canonical ID the registry mints for an identity it
knows by nothing else (MachineIdentityCanonicalID), unless another resource
holds that ID. A row without usable identity names only the one identity-less
disk at its path. Every other row, missing, unusable or ambiguous, stays under
the reference and is never retried. An owned row records its alert's
reference as alert_resource_id. A read by the reference returns the rows
journaled under it plus the rows owned away from it, matched through the
indexed alert identifier (ProxmoxPhysicalDiskAlertIdentifiers) and that
recorded reference, and every count uses the same predicate. Those
identifiers cover the health and wearout specs and the disk temperature
metric spec (<reference>::metric-threshold:diskTemperature), since PVE disks
also raise temperature alerts under the same reference
(TestProxmoxDiskTemperatureAlertRowsFollowRecordedHardwareIdentity in
internal/unifiedresources/store_test.go). The Alerts
history Resource action therefore still lists every occurrence raised under
the path, across the disks that held it, and alert-centric reads keep their
occurrences (see the AI runtime contract's incident-history queries). Rows
journaled under the reference before ownership existed stay there,
unrewritten, until the journal's 30-day retention removes them. The disk
drawer requests no change history, so ownership reaches the facets, timeline
and intelligence APIs, Assistant resource context and Patrol's scoped change
feed. History follows inventory where inventory merges: the registry merges
disks that report the same serial, and a disk whose poll reports no serial
keeps the serial last seen at its path (preserveUnavailablePhysicalDiskEvidence).
A disk the registry correlates with its agent's observation by path (an
identity-less or SAS agent disk) keeps that observation's ID and its serial
and WWN. When the identifiers PVE records for it share nothing with the
agent's (a SAS address reported as the serial, with no common WWN), or the
alert fired before the PVE observation reached the registry, the row carries
the minted ID: the disk's own history omits it, and reads by the reference
still return it. A disk the registry keys by its agent's WWN alone also
carries the serial PVE reports, so another disk reporting that serial, before
its own first poll reaches the registry, has its row written under the first
disk. Proof:
TestHistoryIdentityNeverBindsProxmoxDiskAlertReferences,
TestProxmoxDiskAlertRowsFollowRecordedHardwareIdentity,
TestProxmoxDiskAlertOwnerDecisions and
TestProxmoxDiskAlertReferenceReadUsesIndexes in
internal/unifiedresources/history_identity_test.go, and
TestProxmoxDiskAlertTimelineFollowsRecordedHardware in
internal/monitoring/monitor_alert_handling_test.go against the real alert
manager.
That same shared timeline vocabulary now includes the activity change kind
for provider-read breadcrumbs such as VMware tasks and events, plus the
vmware_adapter source-adapter token for canonical provenance drill-down.
BuildPlatformActivityChange must keep those provider reads inside the shared
change model instead of introducing a second event shape, and RecordChange
must stay idempotent by canonical change ID so poller refreshes and replayed
supplemental snapshots do not duplicate resource history.
Resource identity change emission compares scalar identifiers exactly and
hostname, IP-address and MAC-address lists as sets. Reordering a source merge
or changing a list between nil and empty is not an identity change; a changed
serial/machine ID, guest key or actual set member still is. This prevents
no-op identity configuration rows without weakening canonical matching or
changing the public resource shape. TestResourceChangeIdentityIgnoresSetOrderAndEmptySlices
pins both the quiet and real-change cases.
Restart detection covers Proxmox nodes, VMs and LXCs and host agents as well
as Docker and Kubernetes: an uptime that goes backwards between two positive
readings is a restart change (resourceRestartChanged in
change_emission.go), because a reboot shorter than the offline threshold
never flips status and would otherwise leave no history. Proxmox uptime counts
only on the same node, since a move to another node starts a new process and
is recorded as a relationship change. Host-agent uptime counts only for the
same agent ID. QEMU's uptime follows its process, so an in-guest reboot or a
hard reset of a VM is seen only through a host agent inside the guest (checked
on 2026-10-29: pulse-ci reported 4.5 days of QEMU uptime 19.6 hours after a
qmreset). A zero reading is a stopped or unreported resource, never a reset.
The lower reading must also be the newer one by that source's
SourceStatus.LastSeen: snapshots are captured before publication is
serialized, so an older reading can publish after a newer one. An uptime reset
that arrives with a status change stays a state_transition (its
changedFields name the uptime too), so a host that rebooted while offline
still records the recovery that availability reporting and
resource.status_changed events read.
TestBuildResourceChange_UptimeDropsThatAreNotRestarts pins the quiet cases and
TestBuildResourceChange_RebootWhileOfflineRecordsTheRecovery the precedence.
Change emission over registry rebuilds must diff relationships by edge
identity only: canonical source, canonical target, type, and active state,
order-insensitive (relationshipsEquivalent in change_emission.go).
Volatile provenance fields (ObservedAt, LastSeenAt, Confidence,
Metadata, Discoverer) refresh on every rebuild cycle and must never
count as a relationship change; comparing rebuilt slices structurally
emitted a no-op relationship_change row per relationship-bearing resource
per cycle and grew resource_changes without bound (issue #1496, demo
outage 2026-07-08). Retention pruning must also enforce a hard row cap on
resource_changes (maxResourceChangesRows in store.go) so a
pathological writer cannot grow the table unbounded inside the time-based
retention window. Store shutdown must close the retention signal exactly once,
join the retention loop, and only then close the single-connection SQLite
pool; a concurrent pruning pass must never outlive its database owner.
Action plans in actions.go still keep stale-plan protection to the canonical
resourceVersion, policyVersion, and planHash fields, so stale execution
checks stay in the shared resource action model rather than provider-local
helpers. The API execution endpoint must consume that model before dispatch:
it rebuilds the current resource/capability plan, rejects mismatched action id,
resource version, policy version, or plan hash as action_plan_drift, and
records the refusal as a failed action audit with a plan_drift: result.
actions.go also owns the canonical drift error vocabulary for the
governed-action broker. ErrActionPlanDrift is returned by brokers when
the payload presented at execute time hashes to anything different than
the approval-recorded planHash. Brokers must refuse execution rather
than silently downgrade drift into a generic execution error or a
"plan expired" outcome: the contract is "the operator approved exactly
this (command, target, reason) combination" and a different combination
cannot run under the stale approval. The error sits alongside
ErrActionNotApproved, ErrActionPlanExpired, and the other governed
refusal kinds so callers can distinguish "operator never approved" from
"operator approved a different action" from "approval window passed" —
each is a distinct safety failure that audit review and operator UI
surfaces should treat differently.
The shared change presentation helper also owns the canonical kind, source
type, and source adapter labels for those timeline entries, so summary cards
and drawer history surfaces both read the same badge vocabulary instead of
rebuilding resource-change labels locally.
That frontend consumer rule now applies on the canonical decode path too:
frontend-modern/src/hooks/useUnifiedResources.ts must preserve backend-owned
policy metadata, AI-safe summaries, recent changes, and facet counts as
first-class Resource fields. It may use the backend refresh path for initial
hydration and unsupported filtered queries, but canonical live freshness for
supported resource snapshots must flow from websocket state.resources
instead of layering confirmatory REST refresh loops on top of already-owned
resource updates.
Shared infrastructure consumers such as platform tables and the resource
detail drawer must present that owned metadata through shared helpers instead of
reconstructing privacy posture from display names, source types, or other
incidental runtime hints.
Canonical storage resources now carry a provider-neutral PoolHealth envelope
alongside the complete provider-native report. The envelope owns scope,
provider, native identity, canonical and native state, severity, summary,
recommendation, source, evidence codes, and observation time. ZFS
StorageMeta.ZFSPool remains the full native authority for scan progress,
topology, per-device states, and read/write/checksum counters; scalar ZFS fields
are compatibility summaries only. Clone and registry boundaries must retain
both shapes without sharing mutable slices or pointers.
The normalized state vocabulary is ONLINE, DEGRADED, FAULTED, OFFLINE,
UNAVAIL, and UNKNOWN. Provider adapters may map equivalent native
pool-health authority into that vocabulary, but may not infer a failed leaf,
missing disk, replacement target, or recovery from a cluster-level or absent
observation. Ceph therefore uses a cluster-scoped PoolHealth projection only
when native Ceph health evidence exists and preserves native check codes
separately.
Resource incidents may declare activation and recovery confirmation counts.
These fields describe shared alerts-owned lifecycle eligibility; they are not
provider-local alert state.
internal/storagehealth/zfs_pool_health_contract_test.go,
internal/unifiedresources/ceph_pool_health_contract_test.go, and
internal/api/resources_pool_health_contract_test.go pin the normalized and
wire-level contract.
PBS host physical-disk correlation preserves agent telemetry authority
internal/unifiedresources/pbs_host_disks.go may add pbs source membership
to an agent host and its agent-reported SMART disk resources only when one
host is uniquely corroborated by the PBS-reported node name, endpoint hostname,
endpoint IP against the host report and interface addresses, or a fresh PVE
guest-IP/Agent link. The user-editable connection label is not identity evidence.
All candidate Agent reports must be fresh relative to the PBS observation;
direct IP corroboration excludes host-local networks under the shared provider
link filter. Multiple eligible matches are ambiguous and must fail closed
without assigning PBS ownership.
The same unique match may set PBSData.LinkedAgentID on the PBS service only
after the source-native host ID resolves to a canonical resource carrying that
Agent facet. This link is for Backups host-history presentation; it does not
merge the PBS service and host, change either metrics target, or turn PBS API
polls into a host-agent time series. A missing or ambiguous host leaves the
link absent.
PBSInstanceView.NodeName() hands read-state consumers the hostname the PBS
server reports about itself (PBSData.NodeName), which is not Hostname(), the
host of the endpoint Pulse was configured with. Consumers that rebuild a
models.PBSInstance from the view, such as Monitor.PBSInstancesSnapshot()
feeding the connections ledger, must carry it: it is empty only when the
connection cannot read the node-name endpoint (API tokens).
TestView_PBSAndPMGInstanceViewAccessors pins the accessor.
PBS does not supply the SMART inventory. Disk identity, health, temperature,
and other typed physical-disk facts therefore remain agent-owned, while the
PBS source mapping and PBS-parent relationship make the existing disk
discoverable in Proxmox Backup Server storage context. Canonical parent and
fact precedence continue to follow the existing source-priority rules.
internal/unifiedresources/pbs_pmg_registry_test.go pins the unique-match,
guest-IP fallback, stale-observation and ambiguous-match boundaries.
That same shared-consumer boundary now also owns VMware phase-1 detail
presentation. frontend-modern/src/components/Infrastructure/
resourceDetailDrawerVmwareModel.ts,
ResourceDetailDrawerOverviewTab.tsx, ResourceDetailDrawerDebugTab.tsx,
resourceDetailDrawerIdentityModel.ts, and
useResourceDetailDrawerDerivedState.ts must surface VMware read-only
placement, signal, and snapshot context through the canonical resource drawer
and debug/source sections rather than introducing a VMware-only detail route,
drawer tab, or provider-local investigation shell.
The TrueNAS physical-disk drawer judges a current temperature reading by the
disk temperature policy, like the TrueNAS storage table:
useResourceDetailDrawerDerivedState.ts passes the alerts store's
getDiskTemperatureThresholds into buildTrueNASDetailSections, and the
Temperature row takes a warning tone only when isPhysicalDiskRunningHot
says the reading reached its disk type's alert trigger. A retained reading
keeps its muted last-known row, and without a resolver heat is not judged.
That same infrastructure consumer boundary also owns source selection
continuity. Settings infrastructure panels and platform/runtime pages must
keep canonical sources such as truenas and availability present in their
source option sets when the source is known from configuration or route
context, even when the currently loaded unified-resource snapshot does not
contain matching rows yet, so cross-surface handoffs from settings, alerts, or
findings do not collapse back to generic host-only language during hydration
or empty-filter states.
That same frontend-owned compatibility boundary must remain intentionally
narrow. Shared resource adapters may admit explicit aliases such as host,
truenas, and ceph, and VMware detail mappers may project typed metadata
through the canonical resource model, but unified-resource consumers must not
reintroduce removed workload aliases or feature-local resource-type shims just
to satisfy one table, drawer, or badge surface.
Resource store does not declare a resource_metadata table
The SQLite resource store schema in internal/unifiedresources/store.go no
longer declares the resource_metadata table (canonical_id-keyed
custom_url/custom_name/notes/tags rows) or its
idx_resource_metadata_canonical index. The table had no readers or writers
anywhere in the codebase, including pulse-enterprise; guest metadata is
owned by the JSON-file store in internal/config/guest_metadata.go, keyed by
instance:node:vmid. The unified-resource store must not grow a competing
user-metadata surface — reintroducing a metadata table here would fork
metadata ownership across two stores with different keying models.
Existing deployed databases are intentionally left alone: no DROP TABLE
migration is issued, because a stale unused table is harmless while a
destructive migration is not. The boundary is only that fresh schema creation
stops declaring dead tables.
internal/unifiedresources/store_test.go pins this by failing if a fresh
store's sqlite_master contains resource_metadata.
Cached per-tenant resource stores must be releasable
ResourceHandlers.getStore opens a SQLite handle per org and caches it for the
process lifetime, so the cache needs an explicit release path or an offboarded
tenant keeps its handle, its file descriptors, and its
unified_resources.db-wal/-shm sidecars, and its directory cannot be removed.
CloseTenantStore releases one org, CloseStores releases all of them, and
Router.CleanupTenant calls the former alongside the rest of per-tenant
teardown. TestCachedResourceStoresHaveATenantReleasePath in
internal/unifiedresources/code_standards_test.go is a source-shape guard,
because the leak is invisible at runtime until a tenant is deleted or a data
directory is torn down.
Canonical resource monitoring and lifecycle policy
ResourceOperatorState owns one durable per-resource monitoring posture and
lifecycle. monitoringMode is the closed vocabulary normal,
expected_offline, or muted; lifecycleState is active or retired.
Expected-offline is availability-specific, while muted removes all Alerts and
Patrol attention. Retired resources remain in canonical provider inventory and
retain history, but they also suppress attention and block automated
remediation until restored to active. Provider inventory deletion is not a
side effect of this policy.
The SQLite row persists both enums. Schema migration promotes legacy
intentionally_offline=1 rows to monitoring_mode=expected_offline, and the
legacy boolean remains only a derived wire compatibility projection. New
runtime consumers must use the enum helpers rather than assign a second meaning
to that boolean. Identity succession continues to rekey the same state row.
internal/unifiedresources/resource_operator_state_test.go and
resource_operator_state_policy_test.go pin normalization, validation,
round-trip persistence, attention suppression, and the retired remediation
lock.
Status follows each source's own verdict
A sighting's SourceStatus.Status describes delivery, not the resource:
online means the source delivered recently and stale that it has gone
quiet. Ingest records on each sighting the status that source reported for the
resource, as an unexported verdict, and aggregateStatus reads it. The stale
pass and manual links both apply that function:
- While any source with a verdict is current, only the current sources decide,
in the priority order
chooseStatususes at merge time. The highest-priority verdict wins (agent, then Proxmox or vSphere, then Docker, then the rest), and the best of equal ones. A quiet source drops out of that decision. - Once every source is quiet, an
offlineverdict survives and any other verdict readswarning. The best of those wins. - A current facet sighting carries no verdict (the PBS host-agent association).
It counts as
onlineonly when no current source has a verdict, and readswarningonce quiet. - Availability checks projected onto a monitored resource rank like that facet,
but their shared sighting is not their verdict.
availabilityChecksProveOnlinejudges each check at the pass'snowby its own evidence window (Evidence.ValidUntil: two poll intervals for a single local check, the probe report window for a remote or multi-location one). An enabled, passing check with current evidence proves the resource answers and readsonlineonce one of the resource's own sources has gone quiet and none that is current has a verdict. Every other check abstains, current or quiet: a failing check proves only that one port or service does not answer, and a pass whose evidence lapsed proves nothing now. A check's own row keeps the ordinary rules.
The stale pass used to read delivery as the verdict. A Proxmox node the cluster
reported offline on a live poll came back online once its linked agent fell
silent, which is what a powered-off machine's agent does. The Proxmox nodes
table then put an amber dot beside its own "Offline" label, while the drawer
led with a critical "Node is offline" alert. A node preserveOrExpireNodes
expired after failed polls read warning ("Degraded"), and the stopped guests
on it counted as needing attention. A silent standalone agent past its
reporting lease reached every consumer as warning, with its last report
rendered as current readings in the Machines table.
The push reporters keep their lease meaning. The host agent, Docker and
Kubernetes collectors mark the machine, Docker host or cluster offline only
once its reporting lease runs out. An agent past its lease is offline and
takes the existing offline treatment: frontend danger gates, the health
verdict's offline reason, offline filters and counts. One that is late but
inside its lease stays warning. A Docker host past its shorter lease stays
offline after its sighting crosses the 120-second stale threshold. A live
source still carries a merged row. A Proxmox node whose live poll reports it
online stays online when its linked agent stops reporting. A live agent keeps
a node online when the Proxmox poll reports it offline, which the Proxmox
nodes table reads with connectionHealth: error as a stale provider. When a
guest's or container's only source goes quiet, a running one stays warning
and a stopped one stays offline. In each quiet case a projected availability
check with current evidence lifts the resource to online, as described
below.
The sighting still reads stale, so health keeps its telemetry_stale reason
and monitored-system reasons are unchanged. In-memory clones keep the verdicts,
including a facet's missing one. A serialized copy carries none, so
IngestResources gives each sighting of a copy that lost them all the stored
resource status; a merged row's separate source verdicts do not survive that
round trip, and a copy whose status a passing check supplied gives that status
to every source. A manual link that joins two resources reported by one source keeps
the fresher sighting. registry_merge_policy_test.go pins the node,
poller-expired, guest, round-trip, copy, agent, Docker, Kubernetes,
mixed-source and manual-link cases, and the aggregation table.
Availability checks used to count by delivery too. With every source that
has a verdict quiet, a current failing check kept a node preserveOrExpireNodes
expired online, and a quiet one lifted it to warning. Several checks share
one sighting whose freshness comes from whichever check was projected last, so
a failing check that just ran could also vouch for another check's old pass.
Each check is now judged by its own evidence. A failing probe no longer holds
an expired node online, and it never makes a guest read stopped to the
consumers that count offline as stopped (the workloads summary, the Proxmox
page counts). The failure stays on the check's own row, which raises an
outage incident once the check confirms one (past its failure threshold, from
every location). A check observed from several locations relies on the poller
ageing out a location that stopped running and lasting an available check's
evidence only as long as its newest reachable path (monitoring.md), so one
location's fresh failure cannot lend its freshness to another location's old
pass.
The verdict is read from the checks on the resource when status is
aggregated. Projecting, re-running or retargeting a check also re-applies the
stale pass's rule to every target it touches whose status that pass owns,
because a check is not a delivery from the target's own sources and the
resources API replays checks after its stale pass. The pass owns a status only
through the target's own sightings: the checks' sighting going quiet neither
hands it the target nor, once removed, takes the target away, so a target
whose own sources have not gone quiet keeps the status they gave it. A check
retargeted away therefore takes its verdict with it at once. A
manual link keeps only the primary's own checks, so the merged resource is
judged by the checks it shows and never by the linked resource's fresher
sighting. registry_test.go pins the expired-node and quiet-guest cases, both
projection orders, re-judging on check changes, ownership through the
target's own sightings and the manual link; the aggregation table pins the
check rules.
Canonical object drawer hierarchy
The unified resource drawer is the shared operator-facing detail contract for provider resources. Its default Overview begins with exact active-alert messages for every canonical, provider, alias, or superseded identity that can name the resource, then shows only bounded context not already present in the expanded table row. Raw identity/runtime fields and provider, service, or host support tables remain collapsed and lazy under Technical details and Platform details. Operator overrides, lifecycle policy, update actions, audit controls, and saved web access belong to Manage. Provider pages may supply typed detail models, but they must not create a provider-local drawer hierarchy or promote metadata into Overview solely because it exists. The drawer header contains no generic Assistant handoff or agent-context copy action. Those shell-level capabilities must not consume object identity space; only the close control and a capability-backed object lifecycle action may sit beside the heading.
Proxmox node host details include configured interface names and addresses from
the PVE /nodes/{node}/network inventory. The secondary network read must not
fail or erase an otherwise healthy node poll: a transient error retains the
last-known interface inventory, while an authoritative empty response clears
it. Cluster connections use the normal endpoint-failover boundary. When a
linked Unified Agent supplies richer interface telemetry, the drawer presents
that agent view once instead of duplicating the PVE inventory.
internal/monitoring/monitor_pve_cluster_refresh_test.go,
internal/monitoring/node_memory_sources_test.go,
internal/unifiedresources/adapters_test.go,
frontend-modern/src/components/Infrastructure/__tests/ResourceDetailDrawer.identity-runtime.test.tsx,
frontend-modern/src/components/Workloads/NodeDrawer.test.tsx, and
frontend-modern/src/utils/__tests__/resourceStateAdapters.test.ts
pin collection continuity, canonical projection, and both unified and
Proxmox-page drawer presentation.
Proxmox update evidence merges as one authoritative observation
The Proxmox node facet carries pendingUpdates, pendingUpdatesCheckedAt,
pendingUpdatesStatus, and pendingUpdatesReason through adapters, registry
cloning, typed views, and frontend state adapters. When explicit status is
present, the incoming observation is authoritative as a unit: a checked zero
clears an older positive count, and unavailable or not-checked evidence cannot
inherit an older checked timestamp or status. Legacy status-less positive
counts remain compatible.
Consumers must not infer a successful zero from absent fields. The node drawer
uses the explicit state for details, while the compact node-row badge requires
current evidence. proxmox_update_evidence_test.go, views_test.go, and the
frontend evidence presentation tests pin transport, merge, and consumer
behavior.
Docker collection completeness survives canonical projection
The Docker host facet carries the optional collectionMode value through
adapters, cloning, typed views, API/frontend resource types, detail mappers,
and Workloads projection. typed-helper-summary remains attached to the host
whose bounded container summaries it qualifies; consumers must not infer full
runtime inventory or action capability from the presence of container rows.
The Docker drawer uses this canonical marker to warn and suppress update
controls, while absent or unknown values retain compatibility without changing
resource identity.
Resource snapshot receipt is independent of alert hydration
The WebSocket store exposes resourceSnapshotReceived separately from initialDataReceived. Only a state frame with a resources field sets this signal; an explicit empty resources array is authoritative, while an alert-only frame is not. Preserve the signal across transport reconnect and clear it with organisation URL state reset. The global no-op store reports false.
A failed admission HTTP refresh is not an empty estate either: retain the last valid facet on request failure. A successful response still replaces it, including all-false admission; first-load failure remains unresolved.
Docker tables state silence and drop per-row host context
EvaluateResourceHealth keeps the first reason as the one that explains the
verdict, and when a stronger verdict (an alert, an availability failure, an
offline host) wins while a source is stale, it appends a trailing
telemetry_stale reason with the backend-formatted age, so the summary API's
top reason is unchanged while surfaces can still tell that a resource stopped
reporting. That reason, alone under a stale verdict or trailing another, is
the only staleness signal platform tables read, through
features/platformPage/resourceStaleness.ts; tables never derive staleness
from lastSeen themselves. A stale Docker host dims its CPU, memory and
disk cells and shows the age under Uptime ("No report for 1h" on hover and
for assistive tech), and its container group header says the same. In
grouped-by-host mode the containers table drops the Host and Engine
columns, which repeat one value per group, and the group header names the
engine once; flat mode keeps both columns.
Existing Docker update and expanded identity text remain readable
DockerContainersTable marks its update cell as the phone reflow boundary for both
read-only status and governed UpdateButton content. The boundary must preserve
full action names, review semantics and native agent/container identity; it must
not hide update labels to satisfy width constraints. DockerNativeTables.test.ts
checks that the governed update action remains inside that boundary.
A phone row (under 440px) keeps container, state, CPU, memory and the update
control and defers the restart count to the row expansion, so the state word
and the Update control fit whole instead of clipping to "runni…" beside an
unreadable Restarts header. At compact width (a 1280-1536px laptop window) the
Host, Engine and Updates columns take enough share that "docker 26.1.3", a
host name and the Update control render whole; the percentage-only CPU and
memory bars yield the difference. Swarm services show the rollout state as
words ("Rollback started") with the raw token, message and completion time in
the title, and Swarm tasks show Started as an age with the RFC3339 stamp in
the title, matching every other platform table's time cells. A service's dot
names Docker's mid-change update states as themselves ("Update paused",
"Rolling back", "Rollback paused"; rollback_started used to read "Rollback
paused"), and no replicas running outranks a rollout. The cell behind each
Swarm dot's verdict reads in its tone: a service's Running count (with
"/desired" on phones, where Desired is hidden) and its Update words, a task's
Current state (the dot's own word, Docker's token and error on hover and the
error in the expansion), a node's Reachability or Availability.
The containers table's State cell says what docker ps would flag, through
dockerContainerStatePresentation.ts over mapDockerContainerStatus, so the
row dot and the words agree: Unhealthy and Starting for a running container's
health check, Exited (139) for a crash, Restarting, and muted Exited or Paused
for a container stopped on purpose, with the full sentence on hover. A health
status only counts for a running container, because Docker keeps the last one
on a stopped container (#1724). The State column appears when any row in view
has one of those states, including an unhealthy running container. A narrow
table (under 360 pixels, most phones) has no State column: beside the shared
40 percent name it cut "Unhealthy" to "Unhe…", so the same words read under
the container name on every row, and a saved State sort waits for a layout
that shows its header. A running container that Docker has restarted more
than five times gets one verdict, from mapDockerContainerStatus: warning,
"N restarts". The row dot, the drawer header dot and the attention-first sort
read it everywhere; where the row has a Restarts column the count reads amber
there and State keeps Docker's own word, and where it has none State says
"N restarts". The drawer's Restarts row is amber too, and its observed state
stays Docker's word so the restart is lifted once. Amber, not red: the
container is running. Docker's count is a total, not a rate, as its hover
says; the alert engine owns the windowed restart-loop alert. From the
compact layout up an Uptime column shows the current run (none for a stopped
container, whose leftover uptime is not time spent running), which marks a
container that just restarted; narrower rows keep it in the drawer. The Ports
cell drops the all-interfaces address and folds the IPv4/IPv6 pair Docker
reports for one mapping, keeping a specific bind address; the title, drawer
and search keep the full form.
The resource drawer's Runtime context agrees with that row for a Docker
container: Observed state is Docker's own state (Running, Exited (137)) rather
than the unified online/offline status, a running container's health check
gets its own row (Failing, Starting, Passing), and Uptime is the current run,
so a stopped container shows neither a stale health check nor leftover
uptime. Both surfaces read dockerContainerStatePresentation.ts.
Below a 720px table the containers table has no Restarts column (its header
cannot fit beside State, the metric bars and the Update control), so a running
container that restarted more than five times says N restarts in its State
cell there instead; wider tables keep the count in its own column.
ResourceDetailDrawer headings wrap long display names rather than ellipsising them. Overview rows may still truncate identity; keyboard expansion exposes the full heading. This shared drawer rule applies across resource types. The 390px browser qualification checks heading fit and keyboard expansion; no data model, authorisation, action dispatch or resource admission contract changes.
Operator links reach record-ingested resources
Every registry ingest path applies the operator's manual links: snapshot
ingest, resource ingest and record ingest (IngestRecords,
IngestRecordsWithStaleThresholds and the read-state overlay's record pass).
Either side of a link can arrive only as a supplemental record, such as a
vSphere or TrueNAS VM with a Pulse agent inside, or an agent on a TrueNAS host,
and the monitor's rebuild ingests those records after the snapshot. While only
snapshot and resource ingest applied links, the rebuilt registry behind the
websocket broadcast and /api/state kept both rows. The resources API, which
seeds through resource ingest, showed them merged, and so did the published
inventory whenever an unrelated absent machine made continuity hydration
clone the registry. Mock mode builds its unified view from fixtures and
applies the same links there ("Mock-mode unified view applies operator
links" below).
- The monitor adapter passes its configured stale thresholds to record
ingest, so a link joined there judges each side's metrics the way a
snapshot-time link does. Ordinary source merges into an existing row use
the same thresholds on every ingest path: snapshot and record ingest hold
the caller's thresholds while they run, and
mergeIntojudges each metric's freshness with them throughsourceStaleThreshold, the rule the stale pass reads. Before this, those merges used the defaults, so a Proxmox node polled every two minutes showed a silent auto-linked agent's readings while the stale pass called the node's poll current, and a supplemental refresh of a linked vSphere VM kept the agent's memory over vSphere's current reading. Outside mock mode the monitor configures only Proxmox, PBS and PMG; mock mode also configures TrueNAS, vSphere and availability. Regression coverage:TestMonitorAdapterSourceMergesUseConfiguredStaleThresholds(rebuild, supplemental refresh, overlay, node with auto-linked agent),TestSourceMergesJudgeFreshnessByTheIngestStaleThresholdsandTestMetricMergeFreshnessMatchesTheStalePass. - Continuity records never merge into a link. A saved enrollment only fills
an absent machine, so it stays its own row instead of lending its linked
guest an offline verdict and an old agent payload. The link still names one
identity, so the pass holds the saved row beside the primary
(
holdLinkedResourceLocked): every reference that resolves to the saved row (its canonical ID,agent:<host ID>, its machine ID or an alias it shares with the primary) resolves to the primary instead, throughResolveReferenceID,GetByReferenceand the alias index, as a reference to a folded resource does. An availability check resolved after the hold, as the resources API replays checks onto its seed, attaches to the primary too; the monitor's read state does not re-resolve checks after continuity, so a check naming the saved agent stays as the published registry left it. Reference lookups by the saved agent's ID (a resource detail read, the agent resource context), operator-state reads and writes through the resources API, Patrol's finding projection and alert intent therefore all reach the guest the agent was folded into before the restart, while each row keeps its own telemetry. Saved rows carry an in-memory marker (Resource.continuityOnly) that rides clones, so the resources API, which seeds a registry from the monitor's read state and re-applies the links, holds them too instead of merging the saved agent into the guest; an observation that later merges into the row clears it. A live member never resolves to a saved one: when the saved row is the link's primary (a link made from an agent's page to a resource that is not its guest), both rows answer for themselves until the agent reports and the link folds them, so intent set on the pair under the agent's ID does not reach the live member's references in that window. Holds are recomputed on every link pass. A saved row answers to the row its link partner folds into, found through the fold record when an earlier pass of the rebuild, or the monitor a registry was seeded from, already folded the partner away; a saved row held under a saved primary follows that primary's hold, and a cycle of saved rows resolves each to itself. A saved row that several links would fold answers to the best of the rows their partners fold into, found after the folds (a partner a seeded listing carries inside a row the links now fold away is ranked by the row it survives in), by the chain precedence below with each row judged by its own identity and an observed row ranked before a saved one; the first link the store lists no longer decides. Exact reads are untouched:Getstill returns the saved row, so the saved agent's own drawer reads its own facet bundle and history, while its operator-state section reads and writes the guest's state. - Links apply as chains (
manual_link_chains.go). Links that share a member name one identity, so a link pass folds every connected set of observed members into one row, whatever order the store lists the links in. Applied one at a time, a link naming a member an earlier link had folded away found nothing: 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, and a saved agent whose partner the published registry had already folded answered for itself. Standing the row that holds a folded member in for it fixed neither, because that row then outranked the link's own primary (a VM folded into a pool that had taken the agent first) and hid the agent-into-guest direction once the guest was folded. A link member is the resource the link names, judged by its own shape (agent, hypervisor-managed guest) after a link folds it too: the holding row takes a guest's Proxmox payload and would read as a guest itself. Fold records keep both sides' shapes, so later passes and a registry seeded from a listing judge a member alike. Each link keeps its pair rule: the stated primary, except that an agent named primary over a guest folds into the guest. A chain's root is picked from the members no link folds, or from every member when the directions form a cycle. Rows compete, each by its own identity: a member an earlier pass folded stands as the row holding it, since a fold is not undone. When every candidate row is an agent and the chain holds a guest, the rows holding guests compete instead, including a row an earlier fold put a guest into, so an agent never ends up holding a guest. Among candidates a hypervisor-managed guest wins, then any non-agent resource over an agent, then the primary of the earliest-created link, then the lowest canonical ID. A single link keeps its effective primary, and so does a chain whose directions agree, unless that primary is an agent and the chain holds a guest. The node and agent rules judge each link before it joins a chain: a link between a Proxmox node and an agent a newer split separates is dropped, and a link whose one side a joined node-and-agent row already holds records that side's fold on the row before any link resolves its members, so a second link naming the folded side joins the chain whichever link the store lists first; the fold record keeps both sides' agent shape, so a guest linked to the folded node still outranks storage. - The monitor's rebuild holds the link pass back until the snapshot and
every record source except availability are in
(
deferManualLinks,applyDeferredManualLinks), so its chains are judged over the assembled estate; the availability batch that follows runs its own pass, which finds the chains already folded. A link pass after each source folded members as their sources arrived, and a later source's member could then outrank a member already folded: a cycle through a Proxmox storage, a TrueNAS VM and a vSphere VM kept the storage or the vSphere VM, where judging the whole cycle keeps the TrueNAS VM. Availability checks still follow the links, so a check linked to a folded resource projects onto its primary. Record ingest into an existing registry still runs a link pass per call: a live supplemental refresh that brings a member the last rebuild had not seen judges it against the rows the rebuild left, until the next rebuild judges the whole chain. A refresh can also recreate a folded member whose source maps to a holder of another type; the recreated row competes as itself, as it did in the rebuild, and folds back along the fold records its chain carries, so identical records leave the pair set and every folded ID as they were. The resources API's snapshot-seeded fallback, used only while the monitor has published no unified listing, still ingests the snapshot and each supplemental source with a pass per call. The mock-mode fixture build (internal/mock) delegates toMonitorAdapter.PopulateSnapshotAndSupplemental(see "Mock-mode unified view applies operator links"), so it shares the monitor's rebuild boundary rather than reproducing source-order and link policy. - Rows fold along the chain's links, deepest first, so each fold record
names a stored link's pair. The links form a spanning tree from the root
that follows the fold records the rows already carry before any other
link: a row a record pass recreated folds back through a link a record
names in the direction it folded, and a chain with several recreated
members folds back along its recorded ancestry, instead of reaching one
through a member another row holds, which would turn that member's record
round and leave its ID resolving nowhere. A cycle's closing link is
recorded in its own direction, so it counts as a recorded link only where
that direction matches, and a recreated row may fold back through it; the
pair set and every folded ID stay as they were. Links no record names
join once those are exhausted, breadth first from the root. The pass then records every other link of the
chain on the root (the link closing a cycle, or one whose sides an earlier
pass already joined, recorded with the link's effective direction though
it folded nothing in), so a report-merge that excludes every recorded pair
undoes every link of the chain. The pass records each fold before it
merges the folded row into the holder, as the own-sources record needs. A
pair is recorded once and keeps the
direction it was first recorded in, since a seeded listing can carry
records from an older generation of the links, and turning one would leave
the ID it folded in without a row. When a row must fold into another
and its own records name members it took in, its records are oriented
away from an anchor: the surviving row's own ID when they name it (a
recreated row that now roots the chain, or a link changed after the
listing was published), else the member the link names. Each record points
from the side nearer the anchor to the side farther (records between two
members equally far keep their direction), so the folded row's own ID
becomes a folded ID and keeps resolving, and the anchor is never recorded
as folded: a record naming the surviving row as folded, such as a cycle's
closing link, would leave report-merge no holder that no link folded to
infer the root from once that row is re-keyed. Hanging the records from
the member when the surviving row lies between that member and the folded
row would leave a member with no incoming fold. Each turned record lists
all of the row's sources, since the row no longer knows which member
brought which. A row whose records reach neither, such as a physical disk re-keyed
after it took the member in, stays standing rather than leave its own ID
resolving nowhere. A turned record keeps each side's own sources with the
side, and a record the pass adds for a link closing a cycle carries them
too, so report-merge (above), which picks links by member from these
records, can cut a reported member from every path of the chain.
Availability-owned members stay
unmerged, and saved members never join a chain: two live rows that only a
saved row links stay apart until it reports.
TestManualLinkChainsFoldTheSameWayInAnyLinkOrder(registry_test.go) rebuilds twelve chains in every link order and checks both rebuilds, a live refresh of each record source, the read-state overlay and a registry seeded from it: one row of the expected type, every member resolving to it, every link pair recorded and the same fold records in every order. On main ten of the twelve leave a member standing, pick another root or miss a link pair in some order; the other two (a record-sourced storage chain and one recreated member) guard what already worked.TestManualLinkChainRefreshNeverLeavesAnAgentHoldingAGuestrefreshes in a vSphere host the rebuild had not seen and checks the storage holding the guest keeps the chain until the next rebuild keeps the guest.TestManualLinkToAJoinedNodeFoldsTheSameWayInAnyLinkOrderlinks a Proxmox node's own ID, which the inferred join with its agent consumed, and a pool, in both orders: the joined row's fold of the node is recorded before any link resolves its members, so the pool link joins the chain whichever link the store lists first.TestSavedLinkMemberHoldsFollowTheChainInAnyLinkOrder(resolve_test.go) holds a saved agent under the pool its VM partner folds into, and under its guest over a competing pool, in both orders, in the overlay and the resources API's seeded registry; on main each case answers to the wrong row in one order. - A link merge keeps the TrueNAS and vSphere payloads the primary lacks, so an agent chosen as primary over a TrueNAS system still carries the system's facet, and the system's pools re-parent to the merged row.
- The registry remembers each resource a manual link folded into its primary. A folded resource is still observed, so neither pin-driven nor record-declared succession may succeed its ID: that re-keyed the link onto the primary itself, which split the pair on the next rebuild, and already broke snapshot links whose primary is a machine-keyless agent-type row, such as a Proxmox node.
- Each side of a link is pinned only from its own identity, captured when
the link first joins it in a rebuild (
recordLinkOwnPin). A side with no pinnable identity (not agent-shaped, or no strong key) writes no pin, and a pinnable folded side keeps its pin under its own canonical ID. The merged primary used to be pinned with both sides' keys, and the store's one-owner-per-key rule then deleted the folded side's pin. A Proxmox node's pin records its qualified endpoint as the hostname, so the node's next rebuild completed the linked agent's machine key from that merged pin, minted the agent's machine-derived ID and merged with the agent by ID before the link applied. With the node as primary, succession then rewrote the link into a self-link on the agent's ID; in either direction, removing the link left the pair merged. - A link side rewrites its whole row (
ReplaceResourceIdentityPins) instead of upserting it. Like an upsert it keeps the stored fields its own pin leaves empty, so evidence from an earlier observation survives a weaker one, but it never keeps a machine, DMI or cluster-and-hostname key another resource holds this rebuild, including a cluster key a kept hostname would complete. That is how a key an earlier release borrowed into the row from the merged identity leaves it; a key a resource reports now also beats one a link side's row only kept, as the store already hands a moved key to the new pin. The store gives each strong key one owner and deletes any other row holding a key a written pin carries, so a folded side drops each own key held by a live non-link resource's upserted row (an upsert cannot drop a field), a live link side's own pin, or a folded side earlier in canonical-ID order. It writes no pin when no strong key is left, or when it would lose the machine or DMI key it reports: a cluster-only row reads as a machine-keyless host's, which cluster-slot succession lets a later machine in that slot absorb. A row kept for a side that writes no pin goes when another written pin carries one of its keys, such as the folded agent's own pin carrying the machine key an earlier release borrowed into a Proxmox node's row. That hand-back only reaches a row the node cannot complete from: while the node's qualified endpoint, or its cluster and name, still resolve to that row, completion supplies the borrowed key before any link applies, so the pair merges by ID and succession rewrites the link into a self-link, as it did before this change. A link side whose row loses a borrowed machine key becomes a machine-keyless row, open to the cluster-slot succession any machine-keyless host gets. Two live resources that share a strong key still take it from each other on alternate rebuilds, as before. Evidence a later record pass of the same rebuild merges into an already-joined row reaches neither side's pin. - A folded resource's canonical ID resolves to the primary holding it. The
registry indexes the folded IDs named by the merged resource's link fold
record (
linkFolds,recordManualLinkFold), which covers IDs folded along a chain of links, both when a link applies and when resource seeding copies the record in. The monitor's rebuild, a registry seeded from its listing (the resources API, which then replays availability checks) and a read-state overlay therefore resolve them alike. The index follows the holding rows, so a holder that a later link merges away or that is re-keyed in place keeps the answer consistent. An availability check configured against an agent later linked into its guest lands on the merged row, as a check configured against the primary would. "A manual link keeps only the primary's own checks" still holds: the merge never carries the folded resource's projected checks; only the check's own reference resolves again.ResolveReferenceIDandGetByReferencefollow the fold as well, as the folded agent's alert reference (agent:<host ID>) already did through the merged row's canonical aliases. Alert intent, operator-state reads and writes through the resources API, Patrol's finding operator-state projection and resource lookups by the folded ID (GET /api/resources/{id}) therefore reach the merged row. Patrol resolves a finding's reference through the monitor's current read state before it reads, so a finding raised before the link reads the merged row's maintenance and monitoring mode, not an operator-state row left under the folded ID, whenever that read state folds the agent, or holds the saved agent beside the guest after a restart (above). The folded row's remediation lock is the one part of it that does not stay behind: the store shares it across the link's component when the link is recorded or unlinked, and once on upgrade for earlier links, so the gates, which read the merged row's ID, still refuse (the remediation lock note under the operator-state contract above, which also states its limits). History does not follow the fold: a history binding persists, andexpandHistoryAliaseswalks bindings in both directions, so binding a folded ID would join the two journals for good. Folded IDs are neverSupersededCanonicalIDs, which alert-configuration and availability-link migrations rewrite permanently; the stored link stays as the operator wrote it. A live row with a folded ID answers for itself. Two rows holding one folded ID resolve to neither, without falling through to weaker matches such as a hostname alias. Folds ride in-memory clones only; a serialized listing loses them, as it loses source parents.availability_link_test.gopins both link directions through two rebuilds in all three registries (TestAvailabilityLinkToALinkFoldedResourceFollowsItsPrimary), a chain (TestAvailabilityLinkFollowsChainedLinkFolds) and the index cases (TestLinkFoldIndexFollowsItsHolders).TestResourceUnlinkSplitsManuallyLinkedPairpins the API lookup: the folded agent's ID answers with the VM while linked and with the agent's own row once unlinked.internal/api/ai_handlers_more_test.go(TestPatrolFindingOperatorStateFollowsLinkFoldedReference) pins the Patrol read against the resources API's write.
registry_merge_policy_test.go pins the record links in both directions
through two rebuilds and the live supplemental refresh, and checks that a
registry seeded from the monitor's listing through resource ingest, as the
resources API seeds, lists the same rows
(TestManualLinksJoinRecordIngestedResourcesInMonitorRebuild). The same file
pins the node case (TestManualLinkKeepsItsEndpointsThroughIdentityPinPersistence),
record-declared succession (TestRecordDeclaredSuccessionSparesALinkFoldedResource)
and both payloads (TestManualLinkKeepsProviderPayloadsThePrimaryLacks).
It also pins each side's own pin for a qualified-endpoint node linked to an
agent, standalone and clustered, in both directions, through three rebuilds
with no steady-state pin writes and a separate pair once the link is removed
(TestManualLinkPinsEachSideFromItsOwnIdentity), an unclaimed stored field
kept without a rewrite every rebuild
(TestManualLinkSideKeepsAnUnclaimedStoredField), a shared
cluster-and-hostname key kept by the live primary while the folded side keeps
its machine key, and handed to the folded side when the primary's row only
kept it (TestManualLinkFoldedSideNeverTakesALiveResourcesKey), a kept
hostname refused where it would complete another resource's cluster key
(TestManualLinkSideKeepsNoHostnameThatCompletesAHeldClusterKey), no pin for a
folded side whose machine key another host holds
(TestManualLinkFoldedSideWritesNoPinWithoutItsMachineKey), a folded side
re-pinned after the primary's new pin deletes its widened row
(TestManualLinkFoldedSideKeepsItsPinWhenAPrimaryClaimsItsWiderRow), and the
agent's own pin taking back the machine key an earlier release borrowed into
a node's row (TestManualLinkReturnsABorrowedMachineKeyToItsAgent).
store_test.go (TestResourceIdentityPinReplaceClearsFieldsUpsertKeeps) pins
replace against upsert on both stores.
monitor_adapter_read_state_test.go
(TestMonitorAdapterJoinsLinkedRecordsWithConfiguredStaleThresholds) pins the
thresholds on the rebuild, supplemental and overlay paths, and
internal/monitoring/issue1913_host_continuity_test.go
(TestManualLinkToSupplementalGuestHoldsWithAndWithoutContinuity) pins the
published inventory with no continuity, an unrelated absent machine and the
linked agent's own saved enrollment, and in each case that the read state,
alert intent and a registry seeded from the read state resolve the agent to
the guest without merging the saved agent into it.
resolve_test.go pins the hold in the read state and the
resources-API registry, the fold once the agent reports
(TestContinuityAgentLinkedIntoLiveGuestAnswersToTheGuest), a saved primary
that leaves the live member its own identity
(TestContinuityPrimaryLeavesLiveLinkMemberItsOwnIdentity), an observation
merging into a saved row (TestObservationMergedIntoASavedRowLetsItsLinkFold)
and holds through later folds, saved primaries and cycles
(TestLinkHoldsFollowTheirPrimaryThroughThePass); clone_test.go
(TestCloneResourceKeepsContinuityMarker) pins the marker riding clones and
resource seeding.
internal/api/resources_link_continuity_test.go
(TestResourcesAPIAndPatrolAgreeOnContinuityAgentLinkedIntoGuest) pins the
resources API's write and Patrol's read on the same store.
Mock-mode unified view applies operator links
The mock fixture graph uses MonitorAdapter.PopulateSnapshotAndSupplemental for the same resource generation boundary as the live monitor. It ingests snapshot and supplemental records, applies operator links over the assembled estate, ingests availability last, and makes the final freshness verdict. Supplemental sightings age under the monitor's source thresholds, including TrueNAS-only VMs. Fixtures still synthesize provider data. This shared generation does not exercise provider collection or every poller merge/rebase.
The fixture registry has no store. NewRegistryWithManualLinks supplies the links from the monitor adapter's current generation. Rebuilding a storeless registry carries explicit links and exclusions from its previous generation. It carries no previous resource data and cannot persist identity pins, canonical-ID successions or change records. A store-backed rebuild uses freshly loaded decisions when its store is readable and retains previous decisions when loading fails.
Links are judged across all non-availability sources, so a chain sees every member before choosing its primary. Availability references to folded resources project onto that primary, whether expressed through source references or canonical IDs. An agent linked into a guest leaves the agent listing and the guest carries its facet. GetAllWithMetricsTargets captures metrics targets with the resources and indexes source mappings once for the view.
The broadcast, /api/state, GetUnifiedReadStateOrSnapshot and UnifiedResourceSnapshot read this fixture view. Links reach it when the monitor's next rebuild loads them, as in live mode. The data view cache compares fixture freshness and each link's pair, primary and creation time. The structure view compares the fixture structure revision and the same link fields. Creation time matters because changing the oldest link in a chain can change its primary. Link changes rebuild both views without a fixture tick. No-link readers use the shared memoized snapshot. Linked readers build their monitor's own view when fixture data or links change. Concurrent cache misses can each build a view.
Freshness is assigned in publication order. A view with identical fixture freshness and links retains its predecessor's value. Every different view gets a later value than all previous publications, including a slow build that finishes after a newer one. The resources API reuses its registry only while that published freshness is unchanged.
The fixture factory supplies links but no exclusions. Presentation readers consult their monitor or store-backed registry exclusions, but cannot undo an automatic merge already made within the fixture graph. This existing limitation remains at the fixture input boundary.
Proof in internal/mock/platform_fixtures_test.go: TestFixtureGraphMatchesMonitorSupplementalFreshness compares fresh and aged TrueNAS sightings with the live generation. TestFixtureGraphAppliesManualLinksAtTheRebuildsBoundary checks cross-source chains and availability projection. TestUnifiedResourceSnapshotWithLinksLeavesTheSharedSnapshotUnlinked checks memo isolation. TestMonitorAdapterKeepsInMemoryManualLinksAcrossGenerations in internal/unifiedresources/monitor_adapter_generation_test.go checks storeless rebuilds. TestMonitorGenerationAppliesManualLinksAcrossSources and TestMonitorGenerationJudgesLinkedReadingsWithConfiguredThresholds in internal/unifiedresources/registry_merge_policy_test.go exercise the canonical boundary. TestMockUnifiedViewAppliesOperatorManualLinks and TestMockUnifiedViewFollowsALinkCreationTimeChange in internal/monitoring/monitor_host_agents_test.go preserve broadcast, API, cache, creation-time and no-durable-history behavior.
Provider link network corroboration
An existing reciprocal host/provider link remains authoritative, including a manual link whose provider name differs from the agent hostname. Lending that agent identity to another configured provider, or accepting a one-way link, must not use loopback, link-local, Docker interfaces or generated Docker bridge addresses as machine corroboration. These addresses recur independently on unrelated hosts. Ordinary private management addresses, vmbr0/custom management bridges and explicit global-unicast report-IP hints remain eligible; this rule must not erase retained link intent or change the public resource schema.
Validation: TestProxmoxInferenceRejectsSharedHostLocalNetworks covers the
inference and presentation path, including preservation of the reciprocal link;
TestProxmoxInferencePreservesManagementNetworkCorroboration and
TestProxmoxOneWayLinkRejectsHostLocalEndpointCorroboration protect management
network and explicit report-IP compatibility. These synthetic cases do not
establish the cause of a particular installation's association.
Physical-disk provider identity round trip
The monitor's disk readback preserves the Proxmox source ID separately from its canonical resource ID. Skipped physical-disk polls may refresh SMART data but must not feed canonical hashes into source inventory, changing identity at each subsequent projection. Views without Proxmox source metadata retain the legacy ID fallback. This does not relax cross-host/device correlation, migrate old duplicates, change agent authority, or redefine serial-less disk matching.
TestPhysicalDiskSkippedPollPreservesSourceIdentity in
internal/monitoring/physical_disk_roundtrip_test.go drives eight real skipped
polls and adapter rebuilds for both path-shaped and bare device names, checking
provider keys, canonical IDs, JSON projection, temperature/size/cadence, separate
nodes/controller members, and confirmed inventory removal.
TestPhysicalDiskReadbackSourceIDFallback covers missing source metadata.
This is synthetic runtime evidence, not USB hardware or reporter acceptance.
Linked direct-disk aliases with missing hardware identity (#2076)
Agent SMART and PVE physical-disk observations may share a canonical resource when they have the same already-correlated parent, the same normalized device path, compatible controller/target metadata and exactly one opposite-source candidate. The direct-device fallback applies only when at least one observation has neither a usable serial nor WWN. Two differing populated hardware identities are not missing identity; matching capacity or model is never identity evidence. Controller-member targets cannot use this fallback because a kernel path can represent several members. Existing explicit hardware and SAS correlation remain separate rules. Source-native IDs and per-source status are retained on the merged resource, as are hardware details supplied by the richer collector.
TestIssue2076USBMixedSourceSnapshot covers serial-present/absent in either
collector, both absent and placeholder identity through repeated ordinary snapshot
replacement, physical-disk views and JSON projection. Negative cases retain
separate conflicting IDs, devices, hosts and controller members; the linked-disk
ambiguity test rejects multiple opposite-source candidates in both directions.
These are synthetic source proofs, not appliance acceptance or a claim about
which collector produced a reporter's row.
Linked SAS path join refuses a contradicting WWN
resolveLinkedPhysicalDisk falls back to joining a Proxmox disk to its linked
agent's disk on the same path when the agent reports SAS, because Proxmox may
report a SAS address as the serial (#1595). That path fallback is refused when
both sides carry WWNs that name different disks
(diskinventory.HardwareIdentityConflict, under which the agent's NAA field
spelling equals the Proxmox WWN and udev's 64-bit NAA 6 prefix is no
conflict): the agent's row may be the slot's previous occupant, retained by a
silent agent, and the join would hand the replacement that disk's serial,
readings and canonical resource. A hardware identity match still joins on its
own, and without a WWN on either side the path fallback stands. The seeded
source mapping a rehydrated registry reuses applies the same refusal (next
section). TestRegistrySASPathJoinRefusesContradictingWWN covers the stale
row and both same-disk shapes; monitoring's SMART merge applies the matching
guard first.
Linked disk join honours operator splits
resolveLinkedPhysicalDisk joins an agent SMART disk and the Proxmox disk
under one linked host by hardware identity or, for SAS and identity-less
disks, by device path, ahead of findMatch. It read no exclusions, so
POST /api/resources/{id}/report-merge on such a disk (the drawer's Split
merged resource) recorded its exclusions and answered 200 while the disks
merged again on every rebuild. resolveLinkedResource now refuses the join
when an exclusion separates the observation's source-specific candidate ID
from the one disk it matched; a refusal never makes another candidate unique,
so the path join's ambiguity rule stands. physicalDiskSplitLocked decides
this for the three joins that match a disk observation by identity or path
(this one, findMatch and physicalDiskIDForMachineLocked): the exclusion
may name the existing disk's current ID, or the unscoped hardware-keyed or
machine-scoped ID either disk's identity mints. So a split survives the
re-key a same-serial disk on another machine causes, in either direction
(findMatch used to read only the current ID), and an agent disk that
smartctl finds in standby, reported without its serial and so keyed by its
device, stays apart from a Proxmox observation still carrying that serial.
Agent disks reach the registry only through the snapshot, which ingests them
before Proxmox disks, so the agent's row holds the merged ID and keeps it,
and the Proxmox observation is the one report-merge's pair against that ID
names. Split, the Proxmox row takes the ID it holds alone or, when both carry
one hardware identity (which the agent's row holds), its source-specific ID
through findMatch's excluded branch; that row takes the identity's ID
while the agent's disk is absent or reports no serial, as for any identity
split. An exclusion naming only the agent's candidate splits nothing, since
the agent's row holds the merged ID, so a report-merge filtered to the agent
source leaves the disks merged (it answers 200, or 400 "No exclusions
created" where the merged ID is the agent's own candidate); the drawer sends
every merged source. The monitor rebuild and a resources API registry built from the
snapshot apply the split on their next build; the registry seeded from the
monitor's listing follows once the monitor has rebuilt.
The PVE disk poller honours the split too. mergeHostAgentSMARTIntoDisks
pairs the linked agent's SMART rows with Proxmox disks by WWN, serial or path
before the registry sees either, and asks
MonitorAdapter.ProxmoxDiskAgentSMARTSplit
(internal/unifiedresources/physical_disk_agent_split.go) about each pair it
is about to make. The answer is physicalDiskSplitLocked's, applied to the
agent's disk as the registry generation holds it (as its row would key it
when the generation does not hold it) and to the Proxmox observation by its
slot's source-specific candidate ID, so the exclusions that keep the
registry's rows apart keep the poller's pair apart, in the same forms: one
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 is the
operator's later decision, so the poller pairs them again while it stands. The
decision reads the exclusions and that mapping, never what the pairing would
fill into the Proxmox row, whose serial it re-keys. A split Proxmox row takes
nothing from the agent's row: not its SMART attributes or I/O, health, serial,
WWN, type, controller, pool or temperature, whether from the row or from the
node's sensor lists. The node poll takes the SMART list from the linked agent
while the agent is reporting and its report carries a usable temperature (the
SSH collector's otherwise), and mergeNVMeTempsIntoDisks matches a list's rows
to the disk by the same identity, so dropNodeSensorTemperature drops a
reading taken from the agent's list, and the legacy NVMe list's guess by order,
which names no disk, while a reading from the SSH collector's list stays. The
rule is read from the agent's report as the disk poll sees it, so a report that
changed since the node poll can misjudge one poll. Nor does the disk
keep the agent's claim on its temperature alert (AgentSMARTReported): the
agent's CheckHost alerts on the agent's own disk and the PVE disk check has
no agent-supplied reading of the split disk to judge, so one reading never
alerts twice, and Proxmox's own health and wearout verdicts of the disk are
evaluated as for any disk. A refused row never makes another row match. The
record is marked AgentSMARTSplit, so the poll's evidence retention
(preserveUnavailablePhysicalDiskEvidence) restores nothing into it: nothing
records which retained value Proxmox collected and which the agent filled, so
its serial or ZFS pool is absent for a poll that cannot collect it and returns
with the next that can, and a Proxmox serial that goes unreported for a poll
can move the disk to a WWN- or slot-keyed ID, and its history to that key,
until it returns. The decider is asked once per matched row, about the
observation under its own ID, the key the registry holds it by, so the poller
follows the registry exactly: a split recorded under another key of the same
disk (a controller member's stand-in is keyed by its target, a Proxmox poll's
record by device alone) names an observation the other key's rows do not
carry, as for the registry. When the Proxmox disk query fails,
physicalDisksFromHostAgentSMART stands in for the node's disks except for
the rows the operator split from the Proxmox disk in their slot, judged under
the stand-in's own ID. Such a disk gets no stand-in, which would be the
agent's disk again, so while the query fails its Proxmox record is not listed
unless every row of the node is split, when the node keeps its last records as
any node Proxmox cannot be queried for does.
What the split does not reach. The poller applies a split on the first full
disk poll that collects the node from Proxmox and matches the agent's row
after the registry generation holds it. Until then a Proxmox record already
merged keeps the agent's data (the next full poll, five minutes by default,
PhysicalDiskPollingMinutes): the skipped polls between mark the record split
and drop its node-sensor temperature but leave the rest as it is, a node
Proxmox cannot be queried for keeps its last records, and a poll in which
the agent does not list the disk marks nothing, so retention restores the
earlier record's temperature, I/O, controller, target, serial and pool as
last-known evidence. 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 reports no serial). Two split
rows that share a serial read one serial-keyed history
(PhysicalDiskMetaMetricID), and a PVE disk alert lifecycle row whose
recorded identity matches both, with no WWN only one of them shares, stays
under its PVE reference (proxmoxDiskAlertOwner never breaks a tie by path),
so neither row's canonical history lists it. Proxmox keys a disk by its slot
(ProxmoxPhysicalDiskSourceID), so a split disk that Proxmox reports under
another device path is a new observation the exclusions do not name and
joins again until split again. A split names IDs: one recorded while the
agent's disk reported no serial, or against an agent disk whose identity
Proxmox does not carry (a SAS disk whose Proxmox serial is its transport
address), stops applying while the agent's disk reports otherwise, as every
exclusion keyed by a canonical ID does. In a registry seeded from a listing
where another disk was split onto a slot's source-specific ID, a refused
observation at that slot (next section) whose linked join a split refuses
lands on that same ID and merges into the refused disk, as the slot guard's
own replacement ID would; no production path replays Proxmox disks over a
seeded registry.
TestOperatorSplitSeparatesDisksJoinedInsideALinkedHost pins the exclusions
report-merge records (all candidates, or the Proxmox candidate alone), one
naming only the agent's candidate and an unrelated one, for four shapes (a
SAS disk whose Proxmox serial is its transport address, matching NVMe
serials, an agent disk without a serial behind a USB bridge, and Proxmox's
literal unknown serial), through three rebuilds of a SQLite-backed monitor
adapter in the monitor listing and the resources API's registry seeded from
the rebuilt listing or built from the snapshot, plain and for presentation;
then a relink of the split rows, the exclusions report-merge records on the
relinked disk (the link's own pair and both candidates), the agent's disk in
standby, a same-serial disk appearing on another machine, and a split
recorded while such a disk was present that holds once it leaves. At each of
those steps the test also asks ProxmoxDiskAgentSMARTSplit what the poller
would, and TestOperatorSplitKeepsAgentSMARTOffTheProxmoxDisk in
internal/monitoring/physical_disk_roundtrip_test.go drives the poller itself
through the same four requests for a SAS disk paired by path and an NVMe disk
paired by serial, with an open PVE temperature alert, the health alert the
agent's failure raised, and a failing Proxmox disk query.
Seeded slot mapping refuses a replaced disk
ingestRecord honours a source key's existing mapping, such as one
IngestResources seeds from persisted unified resources, before any
identity matching. Proxmox keys a disk by its slot
(ProxmoxPhysicalDiskSourceID), so a disk swapped into the slot arrived
under the previous disk's key, and mergeInto kept that disk's canonical ID
and, where an agent report had been merged in, its serial, WWN, temperature
and failed health. A Proxmox disk observation now refuses the mapping when
the two carry hardware identities naming different disks
(proxmoxDiskSlotHoldsAnotherDisk: HardwareIdentityConflict after
HardwareIdentityMatch). Only fields reported on both sides count, so a
missing serial or WWN, including Proxmox's literal unknown, is no evidence.
Differing serials are no evidence when either side is SAS, because Proxmox
may report the SAS address there (#1595), or when the mapped disk was merged
with an agent report, whose serial mergeInto may have kept (collection
status does not reliably say which serial it holds), unless Proxmox read the
drive's own serial too, by the rule monitoring's
hostAgentSMARTSerialComparable applies: NVMe on both sides, or an agent
SATA disk under Proxmox vendor ATA that Proxmox does not type usb, not a
SCSI designator or a USB bridge's serial. A refused key falls through to the linked-disk join,
findMatch and chooseNewID like an unmapped one, except that none of them
may merge it into the refused disk: an ID that lands on it is replaced with
the key's source-specific ID. Agreement still wins, as it does in identity
matching, so drives that share a serial they do not own, such as a USB
bridge's, read as one disk: a second swap in the same enclosure joins the
first replacement, which reported the same bridge serial. That belongs to
identity matching, not this guard. The refused disk keeps its Proxmox
facet and is not updated, so until the registry is rebuilt both disks answer
to the slot's PVE alert reference, and canonical reference resolution treats
that reference as ambiguous rather than handing it to either. A later
rehydration may seed the slot key to the old disk again, and the refusal
repeats. No current caller ingests Proxmox disk records over a seeded
mapping: the monitor rebuilds a fresh registry each poll, and the resource
API, host-continuity and Patrol registries seeded from unified resources do
not replay Proxmox disk records. This closes the registry contract, not a
reported symptom. TestRegistrySeededSlotMappingRefusesReplacedDisk covers
SATA (with and without a new WWN), SAS, USB-enclosure and Proxmox-only
replacements, plus eight same-disk controls (including a SCSI designator
from an agent without collection status and a USB bridge serial under
Proxmox vendor ATA), each through two rehydrations.
Drawer tab selection survives a transient snapshot change (#1723)
The shared resource detail drawer keeps the operator's selected tab while a
live snapshot is being replaced. useResourceDetailDrawerState falls back to
Overview only when the drawer starts showing a different resource; it must not
reset merely because the current tab is momentarily absent from the derived tab
list. A merged host's metrics target can be omitted for one snapshot during a
refresh, and treating that as a permanent loss of the then History tab made
the Proxmox -> Backups drawer silently jump back to Overview. History charts
now sit on Overview and simply withdraw while the target is absent; the other
tab bodies render their own availability notice while their tab is
unavailable, so the selection can be retained and recovered without
manufacturing a target. The
ResourceDetailDrawer.snapshot.test.tsx render test pins the single-resource
reset boundary, and scripts/check-drawer-tab-retention.cjs exercises the rendered
drawer at desktop and narrow widths: selecting Manage, dropping the merged
metrics target, and restoring it must keep the selection and bring the Overview
charts back. Its fixture, browser-tests/pbs-host-history-correlation.tsx,
supplies an explicit offline WebSocket context like the other drawer fixtures;
it threw before rendering until 2026-10-14. With the #1723 reset reintroduced
(dropping the target sends the drawer to Overview) the proof fails at both
widths, so it detects the regression it guards.
scripts/check-pbs-host-history-correlation.cjs uses the same fixture and
asserts the Overview tab stays selected with stable chart paths and Identity
rows across refreshes; it accepts the Metrics Target row's absence when the
Identity card suppresses a repeated identifier, and still requires the
intercepted history request to name the host series (forcing the service key
makes it fail).
Canonical reference resolution uses a derived alias index
After ingest and canonical identity refresh, the registry defers building its
derived simple-folded index for primary IDs, platform IDs and aliases until a
public reference lookup actually needs an alias. Rebuilding it on every ingest
made the registry's batch-ingest benchmarks regress. Distinct resources
claiming the same alias remain ambiguous. During an ingest batch, internal
reference reads use the live scan until the index is built. Exact canonical
IDs, superseded IDs, source IDs and Proxmox guest references retain their
existing precedence without paying the index build. ResolveReferenceID gives
identity-only monitor callers the same resolution without cloning a resource.
Registry tests cover Unicode fold classes, ambiguity, precedence and refresh.
On the 1,500-agent synthetic benchmark, canonical-alias hits moved from about
225µs and 1,518 allocations to about 5µs and 19 allocations. A server CPU
profile attributed about 0.77s of a 30s baseline window to the old alias
scan. These measurements identify this component cost, not the total
installed-fleet CPU effect.
The first #2260 benchmark job found the eager index build on ingest: its
50-host merge benchmark rose 27.91% and the mixed ingest benchmark rose 24.88%,
with additional allocations. After deferring index construction, five
alternating exact-base/candidate worker runs at load 0.53-0.91 measured the
50-host merge at 462.4µs versus 464.8µs (+0.5%) and mixed ingest at 4.918ms
versus 4.953ms (+0.7%), with unchanged allocations. The 200-host merge was
3.210ms versus 3.192ms (-0.6%). The warmed alias-hit benchmark remained about
4.7µs and 19 allocations. These paired runs remove the observed local ingest
regression. The revised #2260 CI Benchmarks job passed on commit
bbce69ea65 with no benchmark regression gate failure.
Actions empty-state copy does not touch the action ledger
The Actions page now hides its Patrol Watch only guidance while the
assistantEnabled session capability is false. This is empty-state
presentation only: the action audit list, approval counts, review dialog,
routing and every recorded action outcome are read and rendered exactly as
before, and no resource or action identity changes.
Action review links to the resource it acts on
The governed action review tells the operator to check the actual resource
before approving, retrying or closing an action whose outcome is unknown, but
linked only back to Patrol. With showResourceLink, ActionReviewDialog
resolves audit.request.resourceId through useResolvedResource
(frontend-modern/src/features/platformNavigation/useResolvedResource.ts)
and shows Open resource from buildResourcePagePath, with the audit's
recorded resource name and type as the fallback while the registry answers or
when it cannot resolve the id. Only the Actions page passes it: it keeps the
review in ?action=, so Back from the resource reopens the same review.
Patrol holds its review in memory and already links the subject, and the
Docker container controls open the review from the resource itself, so they
get no link and no lookup. It is a link only: the action ledger, plan,
decision and every recorded outcome are read and rendered as before, and no
resource or action identity changes (ActionReviewDialog.test.tsx,
Actions.requestOwnership.test.tsx).
vSphere Overview leads with vCenter health signals
The vSphere Overview answers "is anything in trouble?" before inventory, as
the TrueNAS Overview does. While the Overview is active the page also
hydrates the Health tab's resource query (hosts, VMs, datastores and
networks) and, when buildVmwareIncidentRows returns any rows from those
resources' canonical incidents, renders the shared VsphereAlertsTable
above the hosts table without its filter toolbar. Nothing renders when
vCenter reports no signals. The Overview's own model, workload snapshot and
navigation facets still come from the Overview query; the Health tab keeps
the filterable table.
Correlated guest disks retain the independent agent source
VMView.LinkedAgentDisks, ContainerView.LinkedAgentDisks and
HostView.CurrentAgentDisks expose detached agent-owned filesystem inventory
with the agent source's own receipt time, independently of agent memory.
Missing, non-online, expired, stale, undated or future agent sources cannot
supply current disks just because the platform row keeps reporting. The
registry's configured source lease remains authoritative; this adds no new
expiry duration. Existing HostView.Disks retains last-known presentation.
linked_agent_disks_test.go covers selection, source timestamps, nil views
and detached inventory across all three views. No public model field, inferred
link, guest command or safety-pause clearance is introduced.
Unlink replaces the pair's operator link
POST /api/resources/{id}/link records a ResourceLink; unlink and
report-merge record a ResourceExclusion. An operator decides each resource
pair one way, and the later decision replaces the earlier: the store's
AddExclusion deletes the pair's link rows and AddLink deletes its
exclusion rows, in the same transaction as the write, matching both ID
orders because canonical-ID succession can store either. Unlink used to add
only the exclusion. The link row survived, and applyManualLinks, which
never consults exclusions, kept the pair folded in the monitor's rebuilds and
in the resources API's registry, so the agent facet stayed on the VM and the
agent row stayed hidden although the API answered "Resources unlinked".
GetLinks and GetExclusions return only each pair's latest decision
(effectiveManualPairDecisions in manual_link_decisions.go), so a store
that still holds both rows for a pair, written before this change or
rewritten onto one pair by succession, reads its later write, and a tie
reads as apart. Every registry loads its links and exclusions from its store
when it is constructed, so the monitor's rebuild and the resources API's
store-backed registry apply one decision with no exclusion check in
applyManualLinks. Unlink keeps the exclusion, so identity matching and
presentation coalescing also keep a pair apart that would otherwise match
automatically.
Identity pins honour the exclusion too. While a Proxmox node was linked to a
standalone agent, the merged resource's pin could record the node's endpoint
hostname with the agent's machine key. After unlink the node completed that
key in completeIdentityFromPins, minted the agent's machine-derived ID and
folded into the agent by ID, a path no exclusion check sees, so the pair
stayed merged with the link row gone. A pin whose canonical ID the operator
excluded from the ID the record takes without the pin (its chooseNewID or
source-specific ID) now completes nothing. This covers pins already written
that way, not only new ones. A Proxmox node's link to an agent honours the
split as well; the next paragraphs cover it.
An operator's split overrides a Proxmox node's link to a pulse-agent. That
link is normally Pulse's own inference rather than a resource-store
decision: monitoring links a node to the one agent whose endpoint address or
hostname matches it (the agents API can also set it by hand), and the
registry joined the pair in resolveLinkedResource (a link both sides
declare, or a node-side link the agent's hostname corroborates) before
findMatch ran. The linked node had already taken the agent's identity in
resourceFromProxmoxNode, and with an agent reporting a machine key it
minted the agent's machine-derived canonical ID before the agent was
ingested. Neither path read exclusions, so the drawer's Split merged
resource (report-merge) on a node and its agent answered "Resource split
applied" and left the pair merged on every rebuild, in the monitor and in
the resources API. Cloned machines and reused short hostnames are where that
link is wrong, and report-merge exists for wrong merges, so the split wins.
nodeAgentSplit (proxmox_node_links.go) decides the pair: the operator
split the node off when an exclusion names one of the node's own IDs (its
source-specific ID, or the ID its identity derives without a machine key,
which a Proxmox node never reports itself) against one of the agent's (its
source-specific ID, the ID its identity derives, the ID it holds, or the ID
the joined pair derives). Unlink and report-merge name the merged ID and the
SourceTargets candidate IDs, and the split node can hold an ID it did not
hold while joined, so the decision is read across those sets, not one exact
pair. Where the pair merged under the agent's machine-derived ID, an
exclusion naming only the agent's candidate against that ID does not count:
report-merge records the same pair when it splits another source, such as a
Docker host, off the agent. Where it merged under the node's own ID (an agent
reporting no machine key), that exclusion splits the agent off the node.
splitProxmoxNodeLink keeps a split node from taking the agent's identity in
ingestSnapshot and remembers the agent for identity-pin completion, which
refuses the agent's machine key from a pin written while they were joined
when the node is split from the agent its own link or an agent row holding
the pin's ID names, or from the remembered agent where the pin can be that
agent's (no machine key or DMI UUID both report differs), so also while the
agent is missing from the snapshot or stops reporting its machine ID;
resolveLinkedResource refuses the link from either side. The registry adds
no LinkedAgentID to the node: guests, agent deployment and service
discovery act on a node's linked agent. The node then holds the ID its own
identity derives, with only its hostname and endpoint address, which
identity matching scores at 0.80 at most, under the 0.85 auto-merge floor.
The agent holds the ID its own identity derives once pins complete it (its
machine-derived ID when it has a machine key).
The latest decision across the two sets wins, so a link between them that
postdates the newest exclusion joins the pair again even where it names
another pair than the exclusions do, as a relink of the two rows a
report-merge left does (a registry now keeps each exclusion's CreatedAt);
a tie keeps the pair apart. Once a relink rejoins them, the declared link
folds one of the rows it names into the other's ID, and applyManualLinks
records that as a ManualLinkFold on the joined row (it recognises the
node's own IDs from the row's Proxmox facet, and the agent's source-specific
ID), so pin succession treats the folded ID as observed and keeps the link
instead of re-keying it onto the joined ID and handing the decision back to
the older exclusions, and report-merge of the joined row names that pair. The paths
that join rows after ingest apply the same decision: applyManualLinks
skips a link between a node row and an agent row split after it, and the
presentation filter (ListForPresentation and the broadcast) keeps such
rows apart when no single exclusion names their IDs; an exclusion naming
the two rows exactly keeps them apart there even against a newer link
across the sets, which only a listing older than the registry's rebuild can
present as two rows. It shares the
presentation limit the broadcast paragraph below names: a third same-host
row (another agent reporting no machine ID, say) that merges with one side
first carries the pair into one row. TestOperatorSplitOverridesProxmoxNodeAgentLink
pins report-merge, unlink naming the node's candidate or the split rows, an
exclusion between the two candidates and one naming only the agent's
candidate, for seven link shapes (declared both ways, node-side only and
agent-side only, unclustered and clustered, an agent hostname in a different
form, and an agent reporting no machine key), through three rebuilds of a
SQLite-backed monitor adapter in the monitor listing, the broadcast coalesce
and the resources API's registry seeded from the listing or the snapshot,
after agent-first ingests (with and without the host in the snapshot) taken
while the joined-era pins still stand; then a relink of the rows (also
followed by an agent-first rebuild that persists its pins) and the same
request again. An exclusion naming the merged ID
against an unrelated ID leaves the pair merged, and the split node names the
agent only where its monitor record does.
TestOperatorSplitFromOneAgentKeepsAnotherAgentsPin keeps a node's own
agent's pin while another agent it was split from declares it, and
TestOperatorSplitHoldsWhenTheAgentStopsReportingItsMachineID keeps a split
whose agent comes back without its machine ID.
Monitoring's own link honours the split as well, at each place it reads the
link as evidence: besides the readers below, the temperature read for a
polled node skips a split agent in its exact-hostname fallback (the held-back
link would otherwise leave the agent "unlinked" and matchable by name), while
the check that drops a carried reading once its agent's lease lapses still
finds a split agent whose hostname is the node's name, so a reading it
supplied earlier does not outlive that lease. An agent the link tied to the
node by address (an FQDN, say) is no longer found once split, and a reading it
supplied earlier stays until the ordinary carry window ends: readings carry
no source to find it by. UpdateNodesForInstance holds the link back before the
merge key reads it, for the polled instance's nodes and for the retained
nodes of the other instances, so an agent the operator split from a node
never proves two connections' views of that node to be one machine. The node's
LinkedAgentID and the agent's LinkedNodeID in models.State are what
the agent's SMART inventory as the node's disk fallback, its disk-exclude
patterns on the node's disks, guest discovery and commands (guests inherit
the node's linked agent), agent deployment (already_agent), service
discovery, the agent's LXC filesystems and the node and agent's shared
alert correlation read, so leaving that link standing kept treating the
two machines as one. The resource store holds the one record of the
split. MonitorAdapter.ProxmoxNodeAgentSplit implements
models.NodeAgentSplitDecider with splitProxmoxNodeLink's rule over the
two records, and the state holds back both sides of every link it splits
wherever a link is written (the node poll's link before its merge key reads
it, the reconcile after manual intent, an agent report). The decider reads
the adapter's current generation and confirms a split it finds against the
store's latest decisions. Monitoring writes links before the rebuild that
loads a newer decision, so without that check a relink would stay held back
for one more poll, and that rebuild would join the rows by the manual link
alone, under the link's primary ID (for an agent reporting no machine key, a
different ID from the one the node's link joins them under). A split
monitoring misses for the poll before that rebuild is applied by the
registry to the node's link on that rebuild, as above. With the link held
back, the registry ingests a node naming no agent and an agent naming no
node. Every server-side view keeps them apart, within the presentation limit
this section records for a third same-host row, and the browser's realtime
coalesce is the limit recorded below. A relink joins them again once
monitoring infers the link on its next poll.
The decider reads the agent under the ID the registry holds it under too,
so an agent that stops reporting its machine key, whose pin keeps its
machine-derived ID, stays split from the node in monitoring as in the
registry. The agents API's node link (Monitor.LinkHostAgent) is the
operator's newest decision about the pair, so before it records manual
intent it removes from the store the exclusions that split that node from
that agent (LiftProxmoxNodeAgentSplit, across the same ID sets). If the
intent then fails to persist, it records them again with their original
times (RestoreProxmoxNodeAgentSplit), and a removal that fails part way
restores the ones already removed. A restore only fills a pair the operator
has not decided about since: ResourceStore.RestoreExclusion declines a pair
that has an exclusion in either order or a link recorded at or after the
exclusion's time, checking and inserting in one transaction, so it does not
replace a newer decision (it compares the records' times, so a decision
written with an earlier clock reading looks older), while a link row older
than the exclusion, left beside it by older data or canonical-ID succession,
is superseded by it as it was before the take. The pair joins in
monitoring at once and
in the registry on its next rebuild. Report-merge's exclusion of the agent's
own candidate from the machine-derived ID stays, because it never split the
node. A split recorded after a manual link ends that intent on the agent's
next report that finds the split confirmed in the store
(ProxmoxNodeAgentSplitConfirmed), which records the agent's link as
automatic in host continuity. The node is then no longer reserved for that
agent, and the split holds back the inferred link. Until then, and while
the store cannot be read, the persisted intent keeps its node. The agents
API's unlink records no store decision: it clears monitoring's link, so the
registry stops joining the pair through it, but a resources API link
between their rows still joins them in the registry, and so can identity
matching where a node completes a joined-era pin's machine key.
TestMonitorStateHoldsBackAnOperatorSplitNodeAgentLink (store_test.go)
runs the six requests above over four link shapes (unclustered, clustered,
an agent hostname in another form, an agent reporting no machine key)
through a models.State holding the adapter's decisions, over three
poll-and-rebuild cycles per step in every view. It checks the state's links
from the second cycle, checks that a report alone keeps a split pair apart,
then a relink, an agent-first rebuild that persists its pins, and the
request again. TestMonitorStateHoldsBackSplitLinksItStartsWith holds back
the links a state already has when the decider is installed, and a manual
link restored from host continuity once the reconcile writes it.
TestOperatorSplitStopsMonitoringTreatingNodeAndAgentAsLinked
follows a report-merge through the monitor's readers of the link and keeps
them all linked under an unrelated exclusion.
TestManualNodeLinkReplacesAnOperatorSplit covers the agents API's link
after a split (and that a link to another node lifts nothing), a split after
it, and a resources API relink.
What the split does not reach: a relink through
POST /api/resources/{id}/link joins the registry's rows, but monitoring
links the pair again only where it infers the link or the agents API sets
it, so a pair that only that link joins is one row that monitoring does not
link, as for any manual link. The alert manager's record of which node an
agent's usage alerts cover (hostAgentNodeLinks) changes when it checks the
agent's next report, or when the agent goes offline, so the node's CPU,
memory and disk alerts stay with the agent until then. Mock mode's
consumers read the fixture graph, whose links ignore operator decisions,
as the mock-mode view does. A rebuild that cannot read the store's links or
exclusions carries the decisions of the generation it replaces, whole
(carryOverridesFrom), even when only one of the two reads failed, so for
that generation the registry keeps the pair split and applies the same manual
links, and the decider finds the same split (it still confirms a split
against the store's latest decisions when they can be read); the next
readable rebuild loads the store's current decisions, one recorded or lifted during
the outage included. Carried decisions keep the IDs they were loaded under,
so a canonical-ID succession during the outage reaches them when the store
can be read again. Only the decisions are carried: the rebuild still
publishes its snapshot, since stale resource data is worse than stale
decisions. The overlay a read builds for saved-host continuity carries them
the same way. The resources API's own registry, rebuilt from the store for a
listing, does not. A first generation built while the store is unreadable
has nothing to carry and holds only what its reads returned. An exclusion that
names the node by its source-specific ID stops naming it if the node's
source ID changes, like every exclusion keyed by a canonical ID. A report
reads the split before it stores the agent and the state reads it again
when it does (for the agent's own link, then for each node linked to it),
and the report uses the link the state kept, so a split the decider sees
between those checks does not reach the node's back link, the agent's
container filesystem readings, its alert coverage or its persisted
continuity. The decider answers from the adapter's generation and confirms a
split it finds against the store, so a split recorded since the last
rebuild takes effect from the rebuild that loads it, and is applied to the
link the next report finds. When that report drops the agent's link, or ends
its manual intent, it also clears the container filesystem readings the
agent had cached for the node's containers. Those readings are also checked
when they are shown: a cached reading is not shown for a node the operator
split from the agent that cached it (State.NodeSplitFromAgent), whether or
not a report ever cleared it, so a report that infers no node for the agent
(its name no longer matches, or matches several) and clears nothing does not
leave it on show. The check is the split only: a reading whose link ended
for another reason is used until it expires, as before.
Physical disks inside one host join through resolveLinkedPhysicalDisk,
which now honours their operator exclusions ("Operator split separates disks
inside a linked host" above, upstream #2748). A node split also puts the two
sides' disks under different parents, so they no longer meet there. The node
split and the disk split remain independent operator decisions.
Cluster- and hostname-derived IDs carry no source, so an exclusion recorded
against another resource that derives the node's own ID (a Docker Swarm host
reporting no machine key, named like the node in a swarm named like its
cluster) also splits that node from its agent, and one splitting the node's
candidate off its own ID while another source was merged there (a Docker
host linked into it) also splits it from a later agent reporting no machine
key, which joins under that ID. A rebuild that sees the agent in neither the
snapshot nor the registry, with no node link naming it, cannot tie an
exclusion naming the agent only by its candidate ID to the agent's key on a
joined-era pin, so until the agent reports again the node takes that key
and the agent's ID. The other way round, a node split from an agent that
reports no machine key and declares it refuses any joined-era pin while its
own linked agent is missing, keeping its own ID until that agent reports. An exclusion keyed by the
agent's machine-derived ID stops naming the agent if the agent's effective
canonical key changes (it stops reporting a machine ID and no pin restores
it), as every exclusion keyed by a canonical ID does. The browser renders
the split as the server presents it; see "The browser renders those rows as
delivered" below.
The resources API seeds its registry from the monitor's listing, which
already has the link applied, so it cannot split the pair itself: an unlink
shows on REST, /api/state and the websocket from the monitor's next
registry rebuild, the same generation in which a new link reaches the
broadcast. REST applies a new link at once, because its own registry applies
the store's links on top of the seed. The mock-mode view now applies the
current monitor generation's operator links too ("Mock-mode unified view
applies operator links" above), so a mock unlink likewise needs that
monitor rebuild to remove the fold from the seed. Mock fixtures that identity
matching merged stay merged on every surface: the fixture graph is built
without the store's exclusions.
The websocket broadcast coalesced host views with
CoalescePresentationHostResources, which honours no exclusions, while the
resources API's ListForPresentation honours the registry's, so a host pair
the operator split could be one broadcast row and two REST rows. The
broadcast now coalesces through Monitor.coalesceResourcesForPresentation,
which asks the read state that listed the rows for
MonitorAdapter.CoalesceForPresentation when its registry is store-backed
(the resource store's adapter, or a host-continuity overlay that loaded the
store's exclusions afresh). The mock view and other views built from an
already-unified list sit on a store-less registry, which declines, so the
resource store's adapter supplies the exclusions instead. Either applies its
current registry's exclusions through the same presentationExclusionFilter
that ListForPresentation uses; a rebuild published between listing the
rows and coalescing them is judged by the newer generation's exclusions for
that one broadcast. Both surfaces share one known limit: the filter compares
the IDs of the rows being merged, so a third same-host fragment that merges
first can carry an excluded pair into one row.
The browser renders those rows as delivered. Its realtime merge
(mergeCanonicalResourceSnapshot and mergeCanonicalResourceDeltaSnapshot
in resourceStateAdapters.ts, used by the websocket store and
useUnifiedResources) used to join an agent-only row and a platform row
(Proxmox, Docker, Kubernetes, vSphere or TrueNAS) that shared a hostname
unless their machine IDs, DMI UUIDs or Proxmox provider scopes disagreed. It
read no exclusions, so a host pair the operator split reached the browser as
two rows and rendered as one. Every realtime payload (the websocket
snapshot, its deltas and /api/state) already carries the server's
presentation coalesce, so the browser now merges each row only with the
previous row of its ID and never joins host rows. A split usually leaves one
side on the joined row's ID, and that per-ID merge keeps what the incoming
row omits, so the agent kept the node's Proxmox facts: the flattened
platformData the Proxmox facet is rebuilt from, its platform scopes,
clusterId, identity fields and canonical aliases. When the incoming row's
own sources list lacks a source the previous row of its ID listed,
mergeCanonicalResource rebuilds the row from the incoming one instead of
merging. A list inferred from the facets a thin row carries is no such
evidence. The rebuilt row keeps the REST-only enrichments the realtime
payload never carries where the departed sources did not own them: platform
scopes minus the departed sources' own that no surviving source, Docker LXC
host or non-host facet supports (a Docker container in a Proxmox LXC stays on
the Proxmox page when its availability check is removed, because its host ID
still places it there, and an agent-reported disk keeps the Proxmox scope its
ownership facet gives it; a host row's facets are no evidence, since
canonicalizing flattened platform data synthesizes them), the source status
of the sources that remain (status the pruning empties is deleted), discovery
readiness unless a coordinate it names (targetId the reporter, resourceId
the resource) differs from the same coordinate of the row's discovery target
(realtime carries a target only for agent and Docker host rows, so a row
without one keeps it unless the agent left), and action readiness unless the
agent left. Everything else REST adds returns with the next REST refresh. The fast merge path never rebuilds
a row: sources is outside its allow-list, so it patches the previous display
row and a rebuild waits for the row's next full merge (see the limits below).
Three rules keep REST enrichment from outliving a source. Source status is
REST enrichment, since the realtime payload carries none, and the platform data
merge and the top-level merge prune its entries to the sources the merged row
lists (only a list the row carries itself counts; canonicalizing a thin row
that carries none synthesizes one from its facets, which the merge cannot tell
apart, so a thin row can prune the status of a source its facets omit); a
joined host's proxmox entry otherwise kept the Machines page from
listing the agent that was split off it, because that page reads source status
as provider ownership. A previous row claims every source either of its own
lists names, its top-level sources and its platformData.sources, so a row
whose two lists disagree, because an enrichment of another generation landed on
it or a shared array changed under it, is rebuilt as soon as the realtime row
drops the extra source instead of carrying that source's metadata on. And the
resources hook's full merge no longer hands the websocket store's rows to the
merge: the store reconciles server changes into its own rows in place, and cache
rows that shared a nested array with them, such as sources, flipped to the
split value while keeping the REST enrichment of the joined era. It clones the
store's rows once on that path, as the delta path clones each changed row.
Known limits: a hook's own store is still created from its cache's rows, so a
store commit can edit rows another cache entry shares (the claimed-sources rule
rebuilds such a row on its next merge), and the fast merge path is
content-equivalent to the full path only for a display row whose own lists
agree, so enrichment of another generation can leave a departed source's status
on a non-agent row until its next full merge. After a rebuild the browser
judges whether REST-only scopes and readiness still belong to the row from
names and target coordinates alone, because the realtime payload carries no
provenance for them: a facet canonicalization synthesized from flattened
platform data on a row that is not a host (a guest's disks, a storage
row's instance, a Kubernetes node's kernel version) can keep the scope it
names, a Docker host row (docker-host) can keep the agent scope through its
synthesized agent facet, and a guest without a discovery target keeps the
previous reporter's readiness when its reporter changes in the same interval
without an agent source leaving (and loses it when an in-guest agent is
unlinked while the node's reporter still serves discovery). The next REST
refresh restores every one of these. keeps an operator-split node and agent as two rows through snapshots and deltas
(resourceStateAdapters.test.ts), keeps an operator-split host pair as two rows through a snapshot and deltas (websocket-unified.test.ts), keeps an operator-split host pair as two rows and an unchanged agent peer by identity
and drops REST enrichment of a departed source when the store reconciles a split in place (useUnifiedResources.test.ts) pin a split pair in the
broadcast's shape through full snapshots, the delta that splits a joined row,
later deltas and the resources hook (the last also that hook rows share no
array with the store's), rebuilds a row whose own source lists disagree once the realtime row drops the extra source pins the claimed-sources rule, and
prunes source status entries of sources the merged row no longer lists pins
the status rule.
A write leaves one row for its pair: AddLink and AddExclusion also delete
a row of their own kind that succession stored in the other order, and the
in-memory store replaces a pair's rows on every write and stamps CreatedAt
as SQLite does. Reads keep the newest link per pair, so an older reversed copy
cannot win with its primary, and drop exclusions older than it; duplicate
exclusions already stored stay, which changes no decision. A registry resolves its GetLinks and GetExclusions results
together in loadOverrides, so an unlink committed between the two reads
cannot load both decisions for one generation. Report-merge undoes a link
the same way (see "Report-merge splits operator-linked resources" below).
TestManualPairDecisionReplacesThePreviousOne and
TestManualPairDecisionReadsResolveStoredConflictsByRecency pin the store
rule on SQLite and the in-memory store,
TestUnlinkSplitsHostPairWhosePinTookTheOtherSidesKey links and unlinks
node and agent pairs (IP and FQDN endpoints, either side primary) through
three monitor rebuilds per step,
TestRegistryResolvesDecisionsAcrossItsTwoReads loads a link read before an
unlink and the exclusion read after it,
TestResourceUnlinkSplitsManuallyLinkedPair drives link, unlink and relink
through the API handlers against a monitor adapter rebuilt twice per step,
and TestMonitorAdapterCoalesceForPresentationHonoursExclusions,
TestBroadcastPresentationCoalesceHonoursMergeExclusions and
TestBroadcastPresentationCoalescePrefersTheListingReadState pin broadcast
and REST row counts for a split host pair.
Report-merge splits operator-linked resources
POST /api/resources/{id}/report-merge records exclusions for the reported
sources. For each reported source mapped to the merged resource it excludes
the merged resource's ID and the candidate ID that source's record takes when
no match is allowed (ResourceRegistry.SourceTargets), as before, which
keeps an identity match apart. That candidate is derived from the merged
resource's type, so for a source an operator link brought in it named
neither side of the link: an agent linked into a VM got a vm-
candidate, and an agent linked with a node or a Docker host keyed by its
machine ID got a source-specific one. No link row matched, the link stayed
applied, and the API answered "Merge reported" while the drawer's Split
dialog toasted "Resource split applied". Two linked agents share their only
source, so the API refused them as "Resource is not merged"; an applied link
now marks a merge as well (the drawer still offers Split only for a resource
listing two sources).
applyManualLinks now records each link it applies on the merged resource
(recordManualLinkFold): the link row's own pair, the resource that took the
other in and the one folded into it, plus the sources the folded side
brought, including anything links had already folded into it, so every link
along a chain keeps its own pair. A pair is recorded once, since record
ingest can recreate a folded side whose source mapping points at a holder of
another type and fold it again, so a repeated pair adds its sources to the
fold already recorded (the holder still carries what the earlier fold
brought). The record is unexported and rides in-memory
clones, so it reaches the resources API's registry, which seeds from the
monitor's already-linked listing and never holds the folded row.
A fold's Sources is its folded side's whole subtree, so it cannot say
which member of a chain a source belongs to. Selecting links by it undid every
link on the way to a reported source (a Docker host linked into an agent
linked into a VM: naming Docker split the agent from the VM too), and where
links form a cycle it left the reported member joined through the link it did
not name. Each fold therefore also records what its two sides are on their own
(HolderOwn, FoldedOwn): the sources the side's row listed before any link
folded something into it, which a side that already took members in reads from
the record its first fold made. recordManualLinkFold runs before the other
side is merged for that reason, and a repeated pair unions the own sources as
it does Sources.
Report-merge picks links by member (ReportedManualLinkFolds, fed by
ResourceRegistry.ManualLinkFolds). A member whose own sources include a
reported source is reported, whatever it took in; the resource being reported
on never is, since it is what stays. A link is undone when it joins a reported
member to a member that stays, one the resource still reaches without passing
through a reported member, or to another reported member. A member that hangs
below a reported one and carries no reported source goes with it, and the link
holding it there stays: the report names a source that is not theirs to undo.
Where links form a cycle, a reported member linked both to the resource and to
a member that stays is cut from both, so the surviving link cannot fold it
back in. The store's one-decision-per-pair rule deletes each undone link row,
so the pair splits on every surface from the monitor's next rebuild, as with
unlink. The drawer reports every merged source, which undoes every link, and
so does a report naming none. A fold recorded without its sides' own sources
falls back to its folded subtree, and a member several folds name takes the
union of what they record, since a refold unions into its own pair's fold
only. A resource the records no longer name (re-keyed after the links folded)
is replaced by the one holder no link folded; when no single holder qualifies,
which the recorder does not produce, the folds' subtrees decide, as before.
A link joins only the pair its row names. Canonical-ID succession re-keys
link endpoints with UPDATE OR IGNORE but moves primary_id
unconditionally, so a row whose re-key collided with the successor's own row
kept the retired endpoint and took the successor as its primary.
applyManualLinks honoured that primary and merged the successor through a
row no exclusion of the merged pair removes, so an unlink or report-merge of
that pair came back on the next rebuild. A primary that names neither side
of its row now falls back to the row's first side, which leaves such a row
inert while the retired ID is gone.
TestResourceReportMergeSplitsOperatorLinkedPair links and reports through
the API handlers against a monitor adapter on the same SQLite store, rebuilt
three times per step, for VM/agent, node/agent and agent/Docker pairs linked
from either side and for two linked agents. Every two-source case but a node
linked from its agent fails with the previous handler, whose candidate for
that node happened to be the node's own source-specific ID.
TestResourceReportMergeSplitsPairBehindASuccessionShadowedRow reports a
pair that a shadowed row also named,
TestResourceReportMergeSourceFilterSelectsLinks pins the source filter,
TestResourceReportMergeSplitsIdentityMergedPair keeps an identity-merged
agent and Docker host apart through the rebuilds,
TestManualLinkFoldsNameEachLinkPairAlongAChain pins a chain's pairs on the
monitor's registry and on one seeded from its listing, and
TestManualLinkFoldsRecordEachPairOnceAcrossRecordIngests folds a TrueNAS
system into a VM across repeated record ingests, and
TestManualLinkFoldRepeatedPairKeepsEarlierSources refolds a side with fewer
sources than it first brought. TestManualLinkFoldOwnSourcesComeFromTheFirstRecord
keeps a holder's own sources from growing with what it takes in.
TestReportedManualLinkFoldsDetachMembersCarryingTheSource selects links for a
leaf, a holder, both and a cycle (a TrueNAS VM taking in a Proxmox storage and
a vSphere VM that is also linked to the storage), and
TestReportedManualLinkFoldsLeaveNoReportedMemberJoined checks that no
reported member stays joined to the resource through the links left, which the
subtree rule fails on that cycle. TestResourceReportMergeSourceFilterDetachesChainMembers
reports a Docker host linked into an agent linked into a VM through the API,
for the leaf, the holder, both, every source and no filter, on the monitor and
the REST surface. TestResourceAPIReportMergeExcludesRegistryLinkFolds keeps
the handler on the registry's fold record.
Reconciled node-agent relink fold bookkeeping
A declared node-agent join can consume one split row before its newer
operator relink is applied. The relink records that side's ID and source in
the current holder-bound ManualLinkFold index, so identity-pin succession
keeps the operator decision and the resources API seed retains the same fold
for report-merge. No synthetic telemetry, identity key, enrollment or service
link is added. TestOperatorSplitOverridesProxmoxNodeAgentLink checks that
the monitor and its re-ingested API seed retain the fold across all split
shapes, then survive pin persistence and a repeated split.
TrueNAS disk policy consumers use the disk's alert identity
The AI/Patrol physical-disk consumers classify TrueNAS disks through
alerts.IsTrueNASDiskResource, the same classifier as unified alert evaluation.
They resolve temperature policy under the disk's canonical resource ID, not its
parent system's synthetic agent ID. Merged agent/TrueNAS disks retain that
classification; ordinary agent disks still follow their reporting host's policy.
Registry identity, source precedence and retained-reading semantics are unchanged.
TestIsTrueNASDiskResourceMatchesTheUnifiedEvaluator and
TestPatrolJudgesTrueNASDisksByTheirAlertTiers exercise the unified registry
projection and its consumer boundaries. Table/drawer frontend acceptance is described below and remains
separate from these backend tests.
TrueNAS disk-specific heat presentation (8 October 2026)
TrueNASDiskTemperatureThresholdResolver receives the disk resource (including
its canonical ID), not just a disk type. The table's status dot, reason,
Attention filter/count and drawer temperature row use the same resolved tiers.
A retained temperature is not current heat under any override. Changing alert
configuration updates those judgments without changing inventory identity.
Verification: truenasPageModel.test.ts,
resourceDetailDrawerTrueNASModel.coverage2.test.ts and
browser-tests/truenas-disk-thresholds.cjs cover disk overrides, TrueNAS-wide
limits, Off and last-known readings. Synthetic browser observations do not
establish sustained native metrics, History, revocation or release availability.
Availability recovery replaces complete check records (10 October 2026)
A present availability summary, its platformData mirror and plural check set replace the previous complete record. Optional failure/application/certificate/ location fields omitted after recovery or summary-target change are withdrawn; an absent record retains enrichment only while its explicit source remains. The plural mirror must leave with that source and cannot reappear on hydration. Other provider facets keep their own partial/native-withdrawal rules, including linked-agent and guest filesystems. Snapshot, rebuilt websocket merge-patch and source-removal controls cover both canonical and mirrored records.
The availability table, fleet, open probe card and loaded Settings resource classification use the existing shared clock for freshness and ages. No clock tick initiates a probe, grants health, changes thresholds or widens token scope. The vSphere VM table has one h2 title, including kiosk and filtered-empty state; its count follows filtered rows only when the page-owned toolbar state is ready.
Host filesystem consumers retain uncertainty
The existing Proxmox node and Docker host drawers preserve a negative filesystem usage sentinel through normalization into Usage unavailable, not 0% or healthy empty storage. Missing/invalid capacity and negative or non-finite used bytes also withhold utilization; a finite positive capacity can still be shown independently. Canonical DiskInfo omits genuine zero bytes, so those omissions retain their existing zero semantics when positive capacity is present and there is no unknown sentinel. Valid measured byte ratios, mount filtering and resource identity remain unchanged.
Both drawers consume the same host disk presentation text and neutral unknown
state. A same-ID accepted resource refresh replaces the old reading, in both
directions, without adding a read, scan or disk operation to disclosure.
HostDrawer.filesystem-readings.test.tsx checks both production consumers;
DrawerDiskListCard.readings.test.tsx checks normalized unknown/invalid and
zero controls. The source-bound browser-tests/host-disk-usage.cjs fixture
connects synthetic Resources HTTP, the real resource hook, platform tables and
keyboard/touch drawer controls. This is presentation admission, not installed
collector, guest safety, restart or release acceptance.
The shared filesystemByteUsage.ts admission also applies to filesystem inputs
of stackedDiskBarModel.ts: unusable byte rows remain neutral in tooltips and
do not contribute used bytes, capacity, bars, combined percentages or highest
usage. All-unmeasured filesystem lists with no independent accepted aggregate
render N/A, not a fabricated zero. Independently supplied aggregate metrics and
retained/unavailable source classifications preserve their existing semantics.
The connected stacked-model controls retain explicit aggregate fallback tests;
the browser fixture checks mixed and all-unknown lists in the actual summaries
as well as both drawers, including live replacement at narrow widths.
Platform drawers repeat their row's status verdict. Every table that opens a
ResourceDetailDrawer through PlatformResourceDetailTableRow passes the same
StatusIndicator its row dot renders (statusIndicator), so staleness,
impaired sources, a hot TrueNAS disk or a Kubernetes state the raw status does
not carry (a succeeded pod, a scaled-to-zero deployment, a suspended CronJob)
read the same in the row and in the drawer heading. The drawer's own
statusIndicator remains only the fallback for callers without a row, such as
the availability fleet view. This is presentation, not a new status source:
no table changes how it judges a resource. The drawer heading is the shared
DrawerSubjectHeading with the source and identity badges beside the name, and
a saved web interface URL opens from the header the way it does in the Proxmox
guest drawer. The health-issue chip left the heading because the same issue
already leads the Overview's "Worth checking" list.
Platform drawer content follows the guest and node Overview. The TrueNAS,
Kubernetes and vSphere sections join the summary sections in one split
(buildResourceDrawerOverviewInventory): warning and danger rows not already
stated by an open alert lift into "Worth checking", sections whose test id
marks them as content cards (pod containers, TrueNAS pool health and disk
SMART) render in view, and every other section sits in the one closed Details
as a plain DetailSectionTable; the nested "Show TrueNAS / Kubernetes /
vSphere" disclosures are gone. Kubernetes Deployments, autoscalers, Services,
Ingresses, volume claims, persistent volumes and storage classes gain their own
sections from fields the resource already carries, a replica shortfall or a
Pending/Lost/Failed phase lifts, and a pod's namespace, owner and node join its
facts line. Docker image and volume drawers describe the image or volume (update
check, consumers, size, tags, digests; driver, scope, mountpoint, labels), with
an available or failed update check lifted. Copyable identifiers wrap. This
changes presentation only: no status, alert or ownership rule moves.
Platform record drawers (alerts, events, tasks, services, configs, secrets,
networks, replication jobs, storage usage, vSphere activity) are
InlineDetailPanels headed by their subject with the row's own status, a
plain one-line summary, wrapping sections and, where the app has a route that
focuses the owning object, an "Open " link (RecordOwnerLink, built on
buildResourcePagePath; it is omitted rather than shown when the target page
cannot focus that object). The five Swarm tables share one record panel in
DockerNativeTableShared.tsx (human dates, every label, the reporting host).
Kubernetes Events, ConfigMaps, Secrets and RBAC objects open record drawers
instead of the full object drawer, so an event shows its message, reason,
count and involved object and no longer offers maintenance windows; a
Secret's key names and values are never shown. Namespaces keep the object
drawer because they carry alerts. No resource identity, status or alert rule
changes.
A record drawer's owner link (RecordOwnerLink) reads "Open" alone below the
sm breakpoint and "Open " above it, with the full label kept as its
accessible name and tooltip. The drawer heading beside it already names the
object; on a phone the repeated name took about half the header and broke a
long heading (a Kubernetes pod's) mid-word across four lines. Where it links
and when it appears are unchanged.
The remaining bespoke object drawers follow the guest drawer. The Proxmox Mail Gateway row opens the shared resource drawer (row status, Overview, Manage) with mail flow as its headless Mail tab, so a PMG has one drawer instead of two; the Ceph cluster drawer has the canonical header, Overview (alerts, Worth checking for health checks, down OSDs and full pools, capacity history, facts, pool and service cards, closed Details) and Manage. The Kubernetes cluster drawer's Deployments tab, which repeated the Workloads table with dead-end rows, is removed; its Namespaces tab opens the Workloads tab scoped to the cluster and namespace. The unreachable Docker Swarm tab and the drawer state nothing read any more are removed. PBS and PMG alerts are matched on their instance id too, so the drawer finds them without a metrics target. The Proxmox node and Docker host drawers gain the guest drawer's Open action, Docker host readings are withheld while it is offline or stale, its Manage lists operator state first and shows its action history, and a guest's own agent reports its physical disks' temperature alerts inside the guest drawer.
TrueNAS tabs keep their table search in the URL (TRUENAS_QUERY_PARAMS.query,
?q=), read and written by the Storage, Apps, VMs, Shares, Services and
Protection tables through the shared filter state's external search, so a link
can open a tab already narrowed to one object and the table's own search box
shows and clears it. buildResourcePagePath emits that filter for TrueNAS
pools, datasets, disks, apps, VMs and shares (a disk named only by an alert,
with no registry resource, gets none, as on Proxmox), which gives the TrueNAS
alert and protection record drawers the same "Open " owner link as the
other platforms. A TrueNAS system still opens the Overview tab unfiltered,
because its table has no search box, so service drawers keep no owner link.
The Overview alerts table keeps its own search. No resource identity, status
or alert rule changes.
Drawer detail rows that carry a sentence rather than a value wrap instead of
cutting off with an ellipsis: the TrueNAS pool and disk storage, protection,
rebuild, risk, posture and scan summaries, and the vSphere hardware upgrade and
VMware Tools install errors, set the row's wrap. Short values stay on one
line. The availability fleet view opens the shared resource drawer as a
full-width grid item directly after the selected tile (a dense grid keeps the
other tiles packed), so it lands beneath that tile's row instead of below the
whole fleet; the fleet list is reconciled by resource id so a live snapshot
updates the open drawer in place rather than remounting it, and closing it from
its header returns focus to the tile. No resource identity, status or
availability rule changes.
The Proxmox Coverage drawer's restore evidence values (location and details) wrap on their own spans rather than through the table cell, so a long snapshot description no longer runs past the drawer edge. No resource identity, status or recovery rule changes.
A platform overview's host table narrows the workloads below it on every
platform that pairs the two: a Proxmox node row shows its guests, a Docker
host row its containers and a vSphere host row its VMs, and a second click or
"Show all nodes" / "Show all hosts" clears it; the row's chevron alone opens
the host drawer, and stays visible on phones. Docker scopes through the URL
host filter its containers table already reads (?host=, the host's Docker
hostname); every host stays listed and the scoped one is marked, where that
filter used to hide the other hosts. A vSphere host scopes the shared workload
table to the scope that table already gave one of its own VMs
(getVsphereHostWorkloadScope), the VMs matched to the host by managed object
ID within its vCenter connection so two vCenters' host-12 stay apart; a host
with no VMs gets a scope that names it and matches none. A host table with no
workloads under it (Docker Swarm hosts) keeps opening the drawer on a row
click. No resource identity, status or alert rule changes.
Resource surfaces stopped handing context to the browser Assistant on
2026-10-22, when the chat window was retired: the resource and guest drawer
Assistant context models are gone, the operator lock copy in
ResourceOperatorStateSection.tsx no longer names the Assistant, and
frontend-modern/src/pages/Actions.tsx reads AI availability from
frontend-modern/src/stores/aiAvailability.ts. The external-agent setup hash
in frontend-modern/src/routing/resourceLinks.ts moved to the Agents route.
Resource identity, policy, and drawer focus state are unchanged.
Backup evidence panels retain their owning rows
Proxmox Coverage and By date consume PlatformWindowedRows with stable workload
and artifact/group keys. The shared renderer measures inline detail rows as
part of their summary item; it preserves a mounted disclosure through live
resource snapshots and accounts for measured panels when they leave the
runway. Native scrolling inside evidence must not substitute a different
resource. ProxmoxCoverageTable.test.tsx exercises both consumers at desktop
and phone budgets, with grouped dates, live snapshots, scroll-away/return
and exact visible-column spacer spans. Browser proof covers actual production
panels at both widths. This changes no unified identity, matching, provider
evidence or recovery authority.
Backup table extent survives measured-detail retirement
Coverage and By date opt into PlatformWindowedRows.reserveScrollExtent. The
shared measurement owner reserves the natural table height on its outer scroll
shell before a tall inline panel leaves the row window. This prevents a
transient shrink from clamping native page or app-container scrolling. It does
not set the table's own height or move the native scroll position. Natural
remeasurement releases the reserve on disclosure close or responsive layout;
leaving windowed mode and unmount restore the shell's previous minimum height.
Other table consumers keep their existing lifecycle by default.
PlatformWindowedRows.test.tsx checks opt-in extent retention, bounded rows,
return, close and small-result filtering; consuming backup proof must exercise
real desktop/narrow app scrolling and inventory polling, including the last
visible workload. Posture, keys, authority and native recovery are unchanged.
The reserve derives from the full keyed measured-height map plus table chrome, not a DOM height sampled while a window retires. Offscreen detail measurements remain in that map until the owning item is remeasured or removed, so a transient DOM extent cannot lower the reserve before its compensating spacer settles.
Coverage task order is evidence, not an input-order tie-break
The Coverage task summary names a latest task only when the observed start times establish one (or only one task was observed). Missing, invalid, non-positive or future starts cannot be ranked as epoch dates; distinct observations with equal latest starts cannot be ordered by input position, status or ID. In either ambiguous case the summary is Unknown, not OK or None. The existing detail explains the uncertainty and retains every possible latest task's status, start, duration, literal error and full ID. Possible tasks are displayed in a stable non-time order; older known tasks are not possible latest tasks.
The task column remains visible even when no latest task can be established. Existing workload/search scope includes candidate errors and IDs, never another connection's namesake. Ordinary inventory refresh can restore an ordered latest, reintroduce uncertainty or remove all task evidence without replacing the keyed row, open panel or disclosure focus. No new API read, route, association rule, protection assessment, backup/guest operation or recovery guarantee is added.
proxmoxBackupTaskChronology.test.ts checks permutations, ties, future/unknown
starts, candidate completeness, scope and sole/absent tasks.
ProxmoxCoverageTable.test.tsx checks the canonical compact/full consuming
summary and complete candidate detail. backupTaskEvidence.test.tsx exercises the parsed HTTP inventory through the
router, compact/full summaries, complete literal evidence, saved-view search and
ordinary polling. Browser verification must exercise these states through the
production consumer at desktop and narrow widths and inspect actual pixels.
Unmatched backup placement comes only from node evidence
Unmatched PBS namespaces and datastores remain backup locations, not guest
nodes. Unmatched PVE records retain their reported native node, never their
connection name as a substitute. Both existing workload detail views say
Not reported for missing VM/LXC placement; host labels remain separate.
Node filters and unscoped task matching cannot use invented fallback nodes.
proxmoxBackupRecoveryModel.identity.test.ts and the normal-suite
backupWorkloadIdentity.test.tsx cover absent/blank placement, independent
reader/location identity, native-node controls, node filtering and live owner
arrival/removal through the parsed inventory consumer. Matching rules, source
keys, restore points, protection policy and guest operations are unchanged;
removing fabricated node metadata prevents one false unscoped-task match.
Desktop and phone browser proof exercises both existing detail views. This
corrects attribution, not #2681/#3248 causality or native recovery.
When Coverage hides the Location column on narrow containers, each existing
restore-evidence Source cell also wraps its labelled repository location.
Removing a guessed node must not discard the useful namespace/datastore it
misrepresented. ProxmoxCoverageTable.test.tsx checks narrow/full projection
and complete long location text; the parsed inventory regressions also retain
reader identity and full repository context without adding reads or routes.
A datastore drawer keeps its server's resource one click away (3 November 2026)
A Backup servers datastore row still resolves to its canonical PBS resource, and correlated host details and history still come from that resource. The drawer opens on the datastore instead: the resource inspector sits behind a collapsed "Server" section and is mounted, with its reads, only when opened. A server row with no datastore opens the inspector directly, as before.
Backup rows stay on one line (1 November 2026)
Coverage and By date rows keep one line at every container width, phones included: the workload name truncates beside its folded type/target ID, and a PVE or reader connection is named inline only when the loaded inventory spans more than one, where it tells namesakes apart. The page decides that over the whole inventory, so labels do not appear and vanish as filters narrow the list. Narrow By date rows are workload, age and state; source kind, reader connection, repository location, size and provider identifiers live in the single-point drawer, whose disclosure name already carries both scopes before it opens. This supersedes the earlier wrapped-identity projections below 720px, which grew phone date rows to 116-132px and Coverage rows to 65-81px and pushed the list below the fold; measured on the mock rig the rows are now 37px and 32px (desktop 47px to 33px). Matching, posture, verification, filters, polling and the API are unchanged.
backupWorkloadIdentity.test.tsx, recoverableIdentityAccess.test.tsx and
backupSourceConnection.test.tsx exercise the parsed inventory consumers at
320-1200px: single-line truncation, inline connections only for multi-connection
inventories, drawer identity and live refresh. Browser proof measures row
heights and inspects actual pixels at desktop and phone widths.
Location-filtered backup evidence is not a location protection rating
The Proxmox backup-health strip names its all-target/all-location count scope, independent of filters. In Coverage, a resolved backup-location filter qualifies ages and restore evidence next to the list and inside an expanded record. The server's protection assessment, provider evidence and task history remain workload-wide; a current backup elsewhere must not read as protection of a stale, running-only or snapshot-only selected location. Labels come only from resolved inventory identity, never raw saved-query text. An unresolved location keeps the existing explicit empty selection rather than broadening to another repository. Clearing the filter removes the qualification without replacing the keyed open record or making another read. No assessment, association, policy, API, route, guest operation or recovery authority changes.
Normal-suite ProxmoxBackupsTable.test.tsx covers stale, running and snapshot-only
selected evidence beside a server-owned Protected workload, all-target counts,
independent task history, filter clearing and ordinary-poll disappearance/return.
Desktop/narrow browser proof must exercise the parsed inventory consumer,
filter interactions, scoped open records and literal long labels and inspect
actual pixels. This corrects evidence scope, not original incident causality or
native backup/guest recovery.
Phone Coverage rows name the reason, not just the state (3 November 2026)
A compact Coverage row shows the canonical protection posture's reason in a word or two, with the state and explanation kept for assistive technology. Row identity, the posture itself and its sorting are unchanged, and a reason this build does not know falls back to the state word rather than a guess.
Coverage distinguishes assessment clocks from visible restore evidence
An expanded Proxmox Coverage record exposes the server assessment's evaluatedAt,
lastSuccessfulPointAt and lastVerifiedAt as separately labelled UTC instants.
Time labels and values use wrapping stacked rows, not truncated hover-only labels.
Evaluation is not backup completion. These workload-wide recorded times do not
come from the current artifact list or its location filters and do not establish
a fresh inventory read, successful restore or guest responsiveness. Missing
optional clocks say Not reported; malformed instants say Unknown rather than
being repaired by the browser or borrowed from another field. A failed posture
read withdraws the section with the assessment; ordinary recovery restores it.
No provider, policy, association, age, permission, guest operation or polling
contract changes.
Normal-suite coverageAssessmentEvidence.test.tsx exercises the parsed Backups
consumer at desktop/narrow widths, differing artifact/evaluation/point clocks,
missing fields, location filtering, ordinary refresh, failed-read withdrawal and
isolated retry. ProxmoxCoverageTable.test.tsx protects strict presentation of
invalid instants. Browser proof must inspect the actual consuming record at
desktop and narrow widths, including UTC text, keyboard/touch disclosure and
refresh/recovery with the open record preserved. This is evidence inspection,
not original incident recovery.
TrueNAS memory composition is inspectable without hover
The existing TrueNAS system memory bar opts in to a resource-named native button
and the shared accessible Dialog. Keyboard and touch expose the same live
stackedMemoryBarModel rows as pointer hover, not a second calculation or a
snapshot captured when opening. A measured zero stays zero, percentage-only
readings do not acquire byte/free/cache rows, and absent ARC never gains a
fabricated cache row. Metric withdrawal removes its open breakdown. The native
button stops the enclosing system-row action; closing/Escape/backdrop returns
focus through the existing dialog owner. Its 44px phone target and wrapping
labels must fit narrow viewports. Shared hover suppression remains unchanged;
other consumers do not opt in automatically. No collector, freshness, alert,
permission, API call, polling cadence or native recovery guarantee changes.
Normal-suite TrueNASSystemMemory.test.tsx uses the actual table, bar, model and
dialog for known/missing/zero cache, measured zero, percent-only/unreported
readings, live resource changes, row isolation and unavailable withdrawal.
StackedMemoryBar.test.tsx retains unavailable explanations without fabricated
usage and Dialog.test.tsx owns modal isolation/focus. Browser proof exercises
the consuming TrueNAS table with ordinary keyboard/phone taps, hover parity,
updates and dismissal, and natively inspected desktop/narrow pixels. This repairs
composition access, not the reporter's missing native ARC or I/O/History source.
Monitor adapter announces the changes it recorded (29 October 2026)
MonitorAdapter.SetChangeObserver installs one non-blocking observer that
hears each change the adapter just persisted, with its resource ID resolved to
the canonical identity the row was stored under. Registry diffs from
replaceRegistry and PopulateSupplementalRecords are announced after the new
generation is swapped in, so an observer reading the adapter sees the
generation that produced the change; recordRegistryChanges and
recordRegistryChangesBetweenGenerations return only the changes the store
accepted. Alert lifecycle rows are announced only through RecordLiveChange;
RecordChange stays silent so replayed and imported history is not presented
as new. The API agent event stream is the only observer today. Proof:
TestMonitorAdapterChangeObserverHearsOnlyRecordedLiveChanges in
internal/unifiedresources/history_identity_test.go.
By date retains literal restore-point date evidence
The existing Proxmox By date record exposes the provider's exact reported date beside its formatted Created interpretation. Offsets and subsecond precision remain literal wrapping text for PBS snapshots, PVE backup files and guest snapshots, including malformed and future values; missing values say Not reported. Unknown Created values remain unknown. The existing By date notice continues to explain unavailable/future dates and their exclusion from activity and day filters; no duplicate per-point warning is added. Raw dates are not an inferred completion time, freshness, protection or restore assertion.
The same open point updates its raw date and interpretation on ordinary
inventory polling without borrowing another point's date or losing owned focus.
Normal-suite recoverableIdentityAccess.test.tsx covers all three sources,
precise/malformed/future/missing/literal-markup dates, desktop/narrow widths and
in-place replacement/withdrawal. Registered ProxmoxBackupsTable.test.tsx
protects unknown-date evidence through the parsed inventory consumer and
ProxmoxRecoverableTable.test.tsx protects direct presentation. Browser proof
must exercise the actual By date consumer at desktop and narrow widths and
inspect wrapping, uncertainty, keyboard/touch disclosure and live replacement.
No parser, association, ordering, count, filter, posture, API, permission or
provider-operation contract changes. This is inspection, not guest recovery.
Polling can move an existing By date point between calendar groups, including into Unknown date. Before the keyed list changes, the table captures only focus it owns. After the move it restores that same connected control only if focus fell to the document body; it never steals focus moved elsewhere or resurrects a removed point. The open record, strict dates and existing withdrawal fallback remain unchanged. Direct normal-suite tests cover owned/external/removed focus; the parsed Backups consumer covers an open point moving into Unknown date. Actual Chromium and WebKit browser proof must cover that day-group move.
The Proxmox gzip baseline increases by 256 bytes (80339 to 80595, 0.32%) for literal date evidence and the browser-reproduced focus repair. The 15% threshold, all other per-chunk baselines, total JS/CSS and preload/SRI checks stay unchanged. This is a narrowly declared intentional UI/accessibility cost, not suppression of the retained failed budget runs or permission to omit browser verification.