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.
Performance And Scalability Contract
Contract Metadata
{
"subsystem_id": "performance-and-scalability",
"lane": "L10",
"contract_file": "docs/release-control/v6/internal/subsystems/performance-and-scalability.md",
"status_file": "docs/release-control/v6/internal/status.json",
"registry_file": "docs/release-control/v6/internal/subsystems/registry.json",
"dependency_subsystem_ids": ["frontend-primitives"]
}
Purpose
PBS job failure carry is bounded per instance (3 November 2026)
Each PBS poll copies only that instance's stored job results
(State.PBSJobHealthEvidence) rather than a full state snapshot, and
carryPBSJobFailures is linear in that instance's jobs. Datastore job
incidents add at most one incident per failed job to the datastore resource.
The mock fixture adds seven PBS job results across two instances, so large
mock estates gain no per-guest work.
Drawer live-readings strip adds no history work (2 November 2026)
GuestDrawerHistory renders its "Latest readings" strip only in place of
charts it cannot draw (a failed first read or a plan-locked range). It reads
the currentMetrics and deferredMetrics the drawer already derives, issues
no request, adds no poll or timer, and holds one item per configured series.
The history query, its 30-second poll and its retry are unchanged.
Plan-locked history link adds no history work (3 November 2026)
The plan-locked range in GuestDrawerHistory ends with a Plans & Billing link
from HistoryLockPlanLink. It resolves a static in-product route, reads the
session presentation policy the shell already holds, and issues no request:
no commercial-posture fetch, poll or timer. A locked range still starts no
history read.
Missing backup completion remains a presentation-only uncertainty
Workloads keeps its existing scalar and legacy absence classification, but shows the badge/shield and drawer in cautionary Unknown rather than a red no-backup state. All-time absence and “first backup” cannot be inferred from the current inventory. Missing observations supply no exact time, age rule or completion when activity ends. Valid ages, malformed/future reasons and guest safety precautions retain their existing meaning. This adds no request, join, clock, parse loop or collection work to the hot path.
The normal-suite REST/snapshot backupTimestampFlow.test.tsx regressions cover
VM/LXC missing and Go-zero input, running/stopped activity, valid recovery and
missing recurrence while preserving mounted details/focus. Shared presentation,
cell, full-drawer and clock tests cover the remaining consumers. Desktop/narrow
production-row browser proof is separate from source results and establishes
no native guest, backup, restore or installed recovery.
Workloads maps backup instants once per resource update
The REST and owning-snapshot adapters use the shared strict backup timestamp
parser before producing numeric WorkloadGuest completion evidence. Impossible,
unzoned/date-only input produces unknown numeric evidence (NaN), not a normalised
completion or absence. Zero/Go-zero absence, valid zoned values, VM/LXC identity,
backup activity, snapshot ownership, row reconciliation and polling are unchanged.
No new request, clock subscription or per-visible-row parse loop is added.
The existing useWorkloads.test.ts invalid-evidence controls and normal-suite
backupTimestampFlow.test.tsx exercise producer-to-badge/shield/drawer updates;
source-bound desktop/narrow browser proof covers live recovery and recurrence.
Drawer History scrubbing does not reflow (26 October 2026)
Reserved readout widths are derived from the points a panel already holds (one formatted label per observation per series, recomputed only when the reply, range or source changes) and applied through two CSS pseudo-elements per slot. Scrubbing then changes text only, so the drawer no longer reflows its chart grid on pointer moves. Peak labels are at most one positioned span per inspected series. No read, timer or observer is added.
History reads follow reporting transitions
The shared drawer history query refreshes once when source reporting authority changes, in addition to its existing bounded polling. Ordinary snapshot object replacement with unchanged target, range, access and reporting state does not start a read. Stored series keep their shared resource/range cache; live-only replies cannot remain current while their canonical source is unreported.
Workloads aggregate disk readings keep their units and presence (14 October 2026)
Workload aggregate metrics are percentage points, including values from zero through one; selection never guesses a fraction from magnitude. A capacity or used-byte scalar alone is not an aggregate utilization reading. The mapper preserves missing/invalid aggregate fields, while an explicit finite non-negative percentage or finite non-negative used bytes with positive capacity supplies usage. An explicit invalid percentage cannot fall back to retained byte carriers. Values above 100 are bounded for existing display.
The row (bars and history lens), drawer current/last-known fallback, numeric search and capacity sorting share this numeric admission. Source-owned guest read deferrals, linked-agent leases and stopped-VM rules still determine freshness independently. Unavailable or retained values remain after current values in both sort directions and cannot match numeric capacity queries. Percentage-only readings show no invented used/capacity bytes; byte-only readings and explicit zero remain available. Per-filesystem DiskInfo omitted zero bytes retain their existing wire semantics and are not aggregate metrics. No collector, guest request, timer, store/history point, threshold or alert policy is changed.
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: workloadDiskUsage.test.ts, useWorkloads.test.ts (REST and owning
snapshot refreshes), workloadSelectors.test.ts, GuestRow.test.ts,
GuestDrawerHistory.disk-provenance.test.tsx and stacked-disk tests cover low
percentages, capacity-only absence, explicit zero, byte-only reads and the
unchanged freshness controls. browser-tests/workload-disk-metrics.tsx feeds
synthetic REST observations through the production mapper, selection, rows and
full drawer at desktop and phone widths. Its browser result/pixels must be
recorded separately; it proves neither native recovery nor availability.
Existing Workloads snapshots retain guest interface names
The Workloads mapper selects the existing agent interface list, otherwise the
existing Proxmox list, on both REST and owning-snapshot paths. It adds no fetch,
sort, cross-producer merge or retained cache. Explicitly empty agent lists keep
precedence. Source provenance travels with the selected list so a source change
on the same canonical row updates only its owning last-known presentation.
useWorkloads.test.ts checks VM/LXC transitions, unchanged ordered IPs and
identities, eight normal REST reads versus zero Workloads requests for the
owning-snapshot path. This is consumer proof, not native collection recovery.
Network tooltip text follows the existing semantic palette; this changes no
geometry, source selection, polling, hover ownership or portal mechanism.
Guest filesystem guidance remains reachable by touch and keyboard (13 October 2026)
The existing Filesystems footer link in the guest drawer has a 44px minimum
height below the shared sm breakpoint, while desktop keeps its compact text
height. Its underlined label and focus outline use the semantic foreground in
both themes. The target is the unchanged shipped missing-reading explanation;
no new route, setup action, guest operation, polling or recovery claim is added.
Read-reason updates keep the destination available until a current reading
removes the explanation. Existing section reconciliation is unchanged.
GuestDrawer.test.tsx covers the connected drawer's responsive/focus classes,
destination, same-guest reason replacement and current-reading
withdrawal. browser-tests/guest-disk-docs-context.cjs measures actual target
bounds, foreground/focus contrast, keyboard/touch navigation and the consuming
Docs renderer at desktop/phone widths in both themes. Browser acceptance and
pixels must be recorded separately; these fixtures prove no native thaw or
recovery.
Workloads reading explanations work without hover
The existing Memory/Disk freshness and cache cues are native disclosure buttons.
WorkloadReadingStatus opens the shared Dialog only on activation and shows the
already-qualified reason, source and original observation time supplied to the
row. It creates no read, timer, layout observer, collection or recovery action.
Unmarked current cache-aware readings add no component or control. Dense row
geometry, column widths, bars/sparklines and hover-history ownership remain.
The phone target extends within the cell without increasing the row rhythm.
Each cue is a 12 px icon on the bar's line rather than a word under the bar,
which put a second line of text in the row: a history icon for a retained
reading, a question mark for a cache-inclusive or unknown-freshness one, and
an alert for a disk read the user can fix (amber). The word (Last known,
Cache?, Denied) stays in the button's accessible name and dialog, the
reason in its title and assistive text, and its 24 px target overhangs the
icon so the row height does not change for it. In compact (phone and narrow)
cells the icon is 10 px and overhangs the cell's right padding, so the bar gives
up about 8 px and still shows its percentage whole.
Same-identity observations update an open explanation; a genuinely current observation removes the cue and returns focus to the row's existing disclosure. A changed canonical identity closes the old explanation, even when names match. Dialog Escape, backdrop and Close return focus to the original cue; activation never opens the enclosing row. This is accessible evidence, not confirmation of thaw, writes, guest-agent availability or ordinary restart recovery.
GuestRow.test.tsx covers the actual row/control, safe fixed copy, cache caveat,
original time, identity replacement and current-reading withdrawal. The
production fixture browser-tests/reading-status-access.cjs consumes canonical
Resources through useWorkloads and verifies desktop keyboard/narrow touch,
settled captures, request counts, unchanged row nodes and target bounds. Browser
proof must be recorded separately; a fixture is not accepted pixel evidence.
Guest memory alerts do not translate unrelated samples (12 October 2026)
When the Workloads row uses host-relative memory, its existing guest drawer explains that alert percentages use guest allocation while the row uses host capacity. The alert retains its own message, evaluated value, observation time, clear rule and hover evidence. The basis explanation is visible detail, not a percentage calculated from the guest's latest bytes and the host's latest capacity: even current values need not describe the alert's observation, and retained or unavailable values must not acquire authority from a poll refresh.
Guest-relative rows and non-memory alerts keep their existing attention copy. The row's own memory calculations, observation qualification and accepted zero, collection and threshold evaluation remain unchanged. This does not establish native recovery, ordinary notification delivery or released availability.
guestDrawerAlertMemoryBasis.test.ts covers current/retained/unavailable/unknown
observations, independent host capacity and alert-owned evaluation phases.
GuestDrawerOverview.alertMemoryBasis.test.tsx covers same-guest updates and
basis selection in the mounted production attention panel; GuestDrawer.test.tsx
retains the connected full-drawer regression. The desktop/phone production
fixture browser-tests/guest-alert-memory-basis.cjs also exercises the row and
native basis selector. Browser acceptance must be recorded separately; adding
the fixture does not establish a passing browser run.
Workloads node attribution preserves instance/node boundaries
Workloads uses an encoded instance/node tuple for UI node scopes, grouping and parent lookup. Concatenated legacy aliases may resolve existing bookmarks only when unique; neither a partial host hint nor an ambiguous alias may choose the first node. An unresolved bookmark remains a visible, removable text filter and uses filtered-empty copy, not an inventory-outage message. Supplied parent fields take precedence over inferred legacy guest-ID prefixes, whose positive VMID suffix must match the supplied VMID and which may fill missing fields but cannot contradict them. The state builds one node per canonical Proxmox agent resource and keeps that resource's own tuple, so a shared native ID cannot erase another tuple; it accepts no caller-supplied node snapshots. Ambiguous tuples or native-ID aliases do not provide parent evidence. Legacy fallback must also resolve the candidate's own tuple back to that same node; a unique native ID cannot restore an ambiguous tuple, even when the guest's instance or node fields are absent. Row status and host-relative memory use the validated row parent in grouped and flat modes; a group label is not authority to supply another row's parent. Unrelated platforms do not inherit Proxmox parent state from matching labels.
UI scope tokens are not collector or metric IDs. The existing charts transport uses a uniquely resolved native node ID, or its bounded global summary when that parent cannot be resolved uniquely, retaining canonical per-resource chart ownership and existing polling/point limits. This presentation boundary changes no server ingestion, guest ID, alert identity, collector, native History or monitoring permissions. Node removal or ambiguous node inventory leaves the host-memory denominator unavailable, never zero or another node's capacity.
Verification: workloadTopology.attribution.test.ts and
workloadTopology.scope.test.ts cover collided scopes, parent ambiguity,
source-field precedence, legacy hints and unrelated platforms.
workloadTopology.ambiguousParent.test.ts discriminates complete and incomplete
guest fields, both native aliases, VM/LXC types and both inventory orders;
unique, consistent legacy fallbacks remain valid.
WorkloadsSurface.performance.contract.test.tsx checks both snapshot orders of
two canonical nodes whose instance and node names join to one string;
useWorkloadTableMetricHistory.test.tsx checks the native-ID transport boundary. Parent-bound browser proof checks real
Workloads grouping, row status, host-memory basis and removable bookmarks on
desktop and phone. It does not establish server ingestion or native recovery.
Workloads disk decorations follow the selected filesystem source
GuestRow passes the shared getWorkloadGuestDiskRead classification to the
stacked disk primitive, not just its explanatory text. Last-known filesystem
values keep their bytes, percentage and geometry in every bar mode, but use a
neutral fill in the cell and tooltip and cannot assert a live anomaly. Tooltip
headings and per-disk titles identify those values as last known; their mount
names and numbers use theme-aware text. An explicitly unavailable reading
withholds usage and anomaly even when numeric carriers remain, while known
capacity may remain inspectable as unknown usage, never measured zero.
Current QEMU readings and independent current linked-agent filesystems retain threshold colours and anomaly behaviour. A linked-agent lease loss makes its own filesystems last known; a Proxmox deferral cannot withdraw a current agent reading. Unannotated host/platform callers and measured current zero retain their behaviour. Status text alone is not a freshness classifier. Source-state replacement updates the mounted shell and open tooltip without collection, History changes, timers, alert-record changes or timestamp renewal.
Verification: GuestRow.test.tsx, StackedDiskBar.test.tsx and
stackedDiskBarModel.branchcov0712b.test.ts check the source boundary, every
mode, retained geometry, unavailable numeric carriers, current/unannotated/zero
controls and reactive replacement. The parent-bound browser receipt covers
real canonical mapping and Workloads rendering, desktop/phone and light/dark
with synthetic observations. These proofs establish presentation, not native
guest recovery, ordinary QEMU-only polling or release availability.
Narrow Workloads identity during guest locks
In narrow and phone layouts, the status, guest name and backup evidence control share one line, so a guest row stays a single line tall: the name truncates first, and the control's 24 px touch target overhangs its 14 px shield through negative margins instead of adding height or taking the name's width (see Accessible Workloads backup evidence). Stacking the control below the name grew every 375 px phone row from 32 px to 43.5 px. The guest lock occupies a separate, wrapping line below that identity. It must not consume the name's horizontal space or spill into the adjacent metrics. The full lock remains visible; a long name keeps its full title and existing truncation. Wider layouts keep the inline lock. Disclosure, first-touch row activation and memory observation source/time are unchanged. This is presentation only: a backup lock or successful backup never proves guest recovery.
GuestRow.test.tsx checks layout structure, lock updates and existing action
ownership. browser-tests/build-guest-row-lock-fixture.mjs compiles the real row,
stylesheet and drawer before bounded static browser execution. Use
node browser-tests/build-guest-row-lock-fixture.mjs --with-parent --parent <full-parent-SHA>
to read the exact parent row from Git; no manually supplied control is accepted.
browser-tests/guest-row-lock-identity.cjs measures the rendered name/lock at 320 and 390 px in bars and sparklines, and exercises keyboard/first
touch through the existing drawer, checks long-name bounds, and rejects the current
parent with the same static fixture. No dev compiler or old terminated preview
is replayed. Native recovery remains separate.
Workloads memory selection follows its displayed observation
Memory sorting and numeric search use the same selected observation policy as Workloads row and drawer labels. Proxmox memory needs an explicit current state and usable original observation time. Last-known, unavailable, missing, future or unrecognised evidence cannot participate as current capacity; a reported current zero still can. Resource Last seen and QEMU disk-read deferrals cannot renew or withdraw independently observed memory. Valid unannotated unrelated platform readings retain their numeric behaviour.
In either sort direction non-current or missing values follow all current readings, with the existing name/identity tiebreak. Host-capacity sorting first qualifies guest memory, then requires a finite non-negative comparison and a usable host total/used value; missing host capacity is not zero. Numeric search continues to compare guest usage percent, independently of the host display basis. Name search and OR conditions retain access to the whole inventory; same-identity source replacement updates selection without new collection.
workloadSelectors.test.ts, its branch companion, searchQuery.test.ts and
its branch companions, and memoryObservation.test.ts cover current/retained/
unknown/invalid states, zero, original-time validity, host-share comparison,
independent disk state and refresh membership. These are presentation/selection
invariants, not native guest recovery, alert changes or release availability.
Memory freshness is preserved at the Workloads row boundary.
GuestRow.tsx qualifies selected memory once per reactive reading using the
shared drawer policy. Non-current rows keep a visible/accessibility cue through
bars, sparklines, the History lens and host-capacity mode. An unavailable
numeric carrier is not a current value; retained History paths stay unchanged.
Source-time qualification never uses Last seen or a filesystem deferral,
and same-guest observation updates do not remount the row or request History.
No collection, chart sampling, sorting, retention or alert threshold changes.
GuestRow.test.tsx (memory observation provenance),
MetricMiniSparkline.test.tsx, memoryObservation.test.ts and the existing
drawer/History suites pin this boundary. The production browser fixture
browser-tests/guest-row-memory-provenance.cjs checks touch/pointer/keyboard
and narrow/desktop layouts with synthetic observations, not native recovery.
Drawer observation labels derive locally from the selected snapshot without renewing timestamps, adding reads, remounting charts or changing stored metric coordinates.
Guest drawer alert copy formats backend status only
Guest drawer attention rows format alert.metricStatus through
getGuestDrawerAlertAttention and the shared getAlertAttentionCopy. No
threshold comparison, recovery timing or resource-metric lookup runs in the
drawer, and the host-capacity memory comparison stays a suffix on that copy.
Drawer provenance stays local to snapshot presentation
Guest and canonical resource drawer memory presentation share the same pure
original-observation policy. Same-ID state replacement updates current versus
retained/unknown fallback labels without remounting a chart, changing coordinates,
adding reads or plotting live numbers as stored observations. The full
GuestDrawer.test.tsx and ResourceDetailDrawer.history.test.tsx controls assert
unchanged single-read budgets through retained-to-current replacement and zero
preservation. This changes no estate collection, timing target or cache policy.
Bulk resource reads do not repeatedly derive canonical metadata
Registry List and typed-view copies materialize identity/scopes/policy once
per observed mutation, then detach those blocks. Separate dirtiness lets List
avoid constructing an unused estate-sized typed view. Mutation-time invalidation
includes incremental batch records and stale-source transitions; no timestamp,
last-update or generation alone is used to declare a broadcast unchanged.
cloneResource retains arbitrary-input refresh semantics. Full inventory,
policy, observation time and health/alert evaluation remain unchanged.
The independent pre-change List oracle checks every resource field and wire content, and paired one/one-thousand-resource controls expose repeated canonical allocation work without wall-clock thresholds. Include dirty reads and typed rebuilds when measuring: a cold generation must still derive metadata, and moving that work into the registry is not proof that total ingest or broadcast CPU improved. Native #2199 CPU/RSS, trailing refresh/duplicate ingest identity, owner-set grouping, broadcast conversion and the sawtooth remain separate.
Agent identity lookup cost follows identity-relevant inventory
Report admission no longer clones/ingests twenty explicitly listed Kubernetes metadata collections that cannot supply a host facet. Clusters, nodes and workloads, every other source, canonical matching and fresh post-lock reads remain. No complete inventory, graph, alert or publication is pruned. Native point lookups retain an ID scan but clone just one selected record; peer sensor and container payloads no longer multiply the allocation cost of that read.
The allocation controls compare zero/one-thousand metadata objects and one/ seventeen hosts without wall-clock thresholds. The paired benchmark retains an executable copy of the old full-snapshot lookup in the same process, with identical fixtures and host-view reads, so lookup time/bytes/allocations can be compared without selecting a favourable rerun. This is a bounded source cost improvement, not attribution of the reporter's native CPU, RSS, sawtooth or remaining refresh/grouping/broadcast mechanisms.
Memory presentation does not collect or renew observations
Guest-memory provenance is projected from the already-owned snapshot in the existing drawer. A same-guest provenance change updates the Overview/History label without refetching metrics History, resetting the drawer, creating chart points or running a diagnostic. Fixed source labels and the original known time replace fabricated current freshness; there is no new timer, collector or fleet-wide query. Connected hook and mounted sparse/provenance controls pin unchanged numeric selection, source isolation and no-extra-History-read behaviour. Browser comparisons are source/render acceptance, not native CPU, RSS, backup safety or installed relief measurements.
Guest read-state display does not start another read
The existing workload drawer's guest-read state and backup precaution derive only from its current workload props. Cached version metadata and Discovery assignment are not connectivity checks. Opening or changing the precaution must not start diagnostics, guest-agent requests or additional polling. Existing History/metadata reads keep their own ownership and request identities, and same-guest lock/uncertainty/recovery does not remount the drawer. No retained filesystem reason is promoted to a memory-source claim.
Verification: GuestDrawer.test.tsx, the mounted
GuestDrawerOverview.agent-state.test.tsx state replacements and
browser-tests/guest-agent-coverage.cjs cover source-only calculation, tab
identity and absence of diagnostic/mutation requests. Synthetic read/render
observations establish neither fleet CPU relief nor native guest recovery.
Workload backup projection preserves timestamp uncertainty
Both resource-API and owning-canonical-snapshot paths preserve a present malformed backup time for the existing shared age admission, rather than replacing it with the numeric zero absence sentinel. Only missing/empty values and the explicit Go zero-time value (including zero fractional seconds) map to absence. The drawer does not gate its backup presentation on timestamp truthiness: NaN must reach the unknown verdict, not disappear as a missing completed backup. Future dates cannot be clamped to Today. This adds only constant-time validation to the current mapper and presentation memos; it introduces no requests, timers or retained caches.
useWorkloads.test.ts, GuestDrawer.test.tsx and the focused backup time evidence
controls pin the boundary. browser-tests/backup-time-evidence.cjs exercises real
resource projection, rows, indicators and drawer replacement with synthetic API
and canonical full/delta observations; those observations are not native backup
or release proof.
Workload projection preserves native guest-read evidence
useWorkloads forwards the existing Proxmox disk-status reason, guest-agent
state/expected flag and VM operation lock through both its resource-API and
owned canonical-snapshot paths. Numeric retained metrics cannot erase those
read-state facts. useGuestRowState also withdraws bars/current-value labels
for non-retained deferrals or unavailable canonical telemetry, rather than
reviving a richer stale number. Same-identity read-state changes participate in the existing
row signature even when numeric values are unchanged; unrelated rows retain
their identity. No extra resource read, timer, workload command or graph is added.
Full and fast canonical facet merges share the same bounded optional-field
clearing: a native VM facet with positive VMID, runtime state and explicit
guest-agent outcome supersedes its omitted disk-status reason, lock and
expected flag. Other richer fields and partial/legacy omission remain retained.
useWorkloads.test.ts and resourceStateAdapters.test.ts verify forwarding,
clearing, false/zero values, unchanged peer-site rows and full/fast equivalence.
browser-tests/workload-read-evidence.cjs composes the real hook, canonical
merges, row, Overview and History with synthetic inputs. This is no native
QGA/thaw, installed recovery, fleet-performance or release-availability claim.
Choosing a node's temperature source in resourceStateAdapters.ts reads one
more field of the facet already in the canonical payload
(proxmox.temperatureDetails), only when the existing record selection yields
no usable reading, and keeps it only when it holds a CPU reading. That is one
extra record mapping per such node per adapter call. It adds no resource read,
merge pass, timer or subscription. Node.cpuTemperature copies the resource's
existing top-level temperature scalar, one field read per adapter call.
Mock CPU temperatures refresh on the existing tick: each online node with a CPU
reading takes one SampleMetric and rebuilds its core list (copied, never
mutated in place), and each agent host rewrites its CPU keys from the sample
it already took. No new timer, pass or fixture-wide scan is added.
Mock Linux agent hosts rebuild their native sensor inventory (at most ten
entries) in that same per-host update in updateHosts, from one more
SampleMetric and a stable hash, only when the host already has one. That is constant work per
host per tick; it adds no timer, pass or fixture-wide scan, and the Thresholds
sensor rows are derived in the existing host-data memo, which parses
configured sensor IDs once into a per-host map, so composition is linear in
reported plus configured sensors.
Unavailable filesystem values share the existing disk model
The filesystem list and guest Overview use the same nullable measured-byte ratio for text, severity and progress. Per-disk validation is constant work within the existing linear presentation pass; it adds no reads, queries, timers, remounts or resource-identity changes. Unavailable values stay neutral rather than passing a fabricated zero into threshold classification. Mounted filesystem evidence tests and the production browser fixture verify replacement and rendering, not a new latency, fleet-performance or native-collection claim.
Guest History live filesystem provenance
The guest drawer derives deferred filesystem context from its current snapshot,
separately from current CPU, memory and I/O. A retained prev- value may populate
only the labelled last-known legend, never the current fallback or chart geometry.
The added presentation input does not create a polling timer, trigger a guest
read, or change History target/range ownership. Stable-target context updates
reuse the mounted chart and existing query; the drawer's pre-existing target
recomputation on guest-snapshot changes is unchanged. Mounted regressions in
GuestDrawer.test.tsx and GuestDrawerHistory.disk-provenance.test.tsx verify
the actual fallback/resumption path and request counts. This is presentation
proof, not a native CPU improvement, QGA/thaw result or delivery acceptance.
Guest filesystem provenance preserves dense row geometry
Visible retained and fixable-read filesystem cues must fit the existing dense row rhythm (an unavailable setup-gap read adds no visible cue), including canonical phone/narrow column weights, without adding a new collector, history request or layout observer. Keep compact copy on narrow rows and the full safe reason in assistive text, the existing drawer and the read-only reading disclosure described below. Inline sparkline plots may shrink to preserve their numeric value within the already assigned column; do not add forced minimum widths, observers or a larger row to compensate. The cue stays outside the bars/sparkline/history-lens branch, so changing display mode cannot discard freshness information; removing it requires a changed source observation rather than merely ending a lock.
Verification: GuestRow.test.tsx, MetricMiniSparkline.test.tsx and production
row/column-sizing/CSS browser fixture guest-disk-provenance.cjs cover all fixed
deferrals, fresh independent evidence, same-row changes, and equal dense row
height versus an unmarked control on desktop Chromium and phone Chromium/WebKit.
Synthetic chart rendering is not fleet CPU, native collection or thaw proof.
Guest disk status updates retain row ownership
Disk deferral copy follows reactive same-VM props in the existing row and drawer,
without new guest commands, client polling, History writes or row remounts. Retained
values are labelled rather than replaced with invented fresh percentages; fresh
observations update values and remove the status. Mounted row/list/drawer controls
and browser-tests/guest-disk-deferral.cjs verify same-row ownership in bar and
sparkline modes with desktop and phone CSS. This is client behaviour proof, not
native backup coordination, new History samples or a fleet performance result.
Completed backup presentation follows the existing same-guest snapshot owner.
Running activity and completed protection are independent derived detail rows;
neither starts a command, adds a read/timer nor remounts the drawer. Stopping
activity cannot synthesize a completed timestamp. GuestDrawer.test.tsx and
browser-tests/guest-backup-protection.cjs verify in-place missing/old/new
completion transitions through the actual drawer. This is ownership/presentation
proof, not an allocation benchmark, native backup or fleet performance claim.
Phone workload identity weights
The existing phone guest projection allocates 38 percent to the name cell, which includes disclosure, status and backup controls, while normalising every remaining visible metric weight. Narrow/mobile/desktop modes and windowing ownership remain unchanged. Guest column regressions verify the sums and the production composed-table browser fixture checks identity and all configured metric tracks at narrow width; this is readability, not a throughput claim.
Bounded confidence/priority work in broadcast grouping — issue #2199
Broadcast performance work preserves the unified grouping semantics and allocation bounds, including its source controls and qualification limits.
Connected-dashboard snapshot ownership — issue #2199
Concrete frontend snapshots encode resources individually into immutable owned buffers, avoiding a whole-state resources encode/decode/copy round trip. Each resource identity is decoded from its encoded bytes, including every tail entry; source ID hints are never authoritative. Unknown shapes and custom marshalers retain full generic encoding. The remaining top-level fields use that same generic path, preserving future fields, nil/empty/omitempty semantics and keyed alert/infrastructure fallback. Reconnect baselines, removals, ordering, queue failure and REST-hydration frame limits keep their existing ownership.
Full-wire differential tests and fuzzing compare typed value/pointer snapshots, errors and encoded identities with generic encoding; mutation tests protect retained buffers. Complete broadcast benchmarks include projection and delta queues rather than treating an ID-only or component allocation result as field CPU relief. Installed connected/closed-dashboard CPU remains separate evidence.
Realtime normalization also keeps provider ownership source-authoritative. Flat storage instance/node fields may synthesize Proxmox facts only when the current sources permit it, with explicit ownership facets preserved. Full and delta merges apply the same bounded per-row rule without estate-wide lookup.
The resource adapter fast delta path must remain content-equivalent to the full merge for explicit Proxmox memory withdrawal. An absent canonical metric plus incoming Proxmox usageUnavailable clears the old display value; store patch operations must emit that clear even when only the raw facet key changed. This bounded per-changed-row check must not introduce an estate-wide scan or defeat untouched-row identity preservation. Adapter tests cover both delta paths and store writes, including trusted-zero recovery and ordinary partial omission.
The PR #1935 log-level parser benchmark remains an unresolved environment-bound observation. Two CI comparisons on unchanged parser source report +10.04 and +10.23 percent for the empty-string case, with stable base/candidate binaries. Ten alternating exact-base worker samples report 5.449 versus 5.357 ns (p=.436) and unchanged allocations. Identical source does not invalidate the CI timing, and the worker result does not turn it into a pass. No further rerun or threshold relaxation is justified by that reproduction. The implementation merged as 560dbf314c4fc3744f52aa4e5a6a204cafe3aa7d, independently of this open observation.
The Docker/app-container history families dockercontainer and docker use
separate physical .observed series for new disk capacity and block-I/O
measurements. Older disk series lack the required presence/capacity semantics
and remain stored unchanged, but retained reads exclude them from current
evidence. All four shared read APIs expose corrected series under the existing
public metric names. Valid capacity from other providers sharing this storage
family remains writable. NormalizedSeriesKey describes physical storage for
coverage/backfill matching. Rollups aggregate each physical generation separately.
Projection happens once per returned series, not per observation, and adds no
query, schema migration, or per-row work for other resource families.
pkg/metrics/store_docker_observation_contract_test.go pins legacy coexistence,
zero retention, selected/fleet read parity, rollup separation and unaffected
resource families.
Retained reads use one shared query contract in pkg/metrics/store.go for
Query, QueryAll, QueryAllBatch and QueryMetricTypesBatch. A non-empty
preferred resolution no longer hides a newer raw tail, an older uncovered
bucket, a gap, or another metric on the same resource. Resource identity,
metric filters and timestamp bounds apply to every tier and overlap probe.
Tier priority still follows the requested range. An aggregate owns its UTC minute/hour/day bucket when that tier has priority. Lower-priority observations inside it are excluded. A coarser fallback that overlaps a preferred observation is omitted as an indivisible aggregate, never split or interpolated. Only buckets whose stored timestamp lies in the requested window participate. This avoids double-counting and prevents observations outside the requested range from suppressing evidence inside it. Reconciliation precedes display aggregation, which retains the existing unweighted mean and centred display bucket timestamp. Single-resource charts aggregate in SQLite after reconciliation so only display buckets cross into Go. Fleet queries stream ordered observations into bounded display buckets without retaining every input point. Both preserve identical bucket, mean and extrema semantics, and reuse scan destinations across rows.
Each bounded resource chunk reads one consistent snapshot. Plain reads execute the canonical reconciliation query as one SQLite statement. They require no separate presence probe or explicit transaction. All-metric plain reads use resource/time index order, which preserves each output series' chronology without an unnecessary metric sort. Streaming display aggregation still requires contiguous series and requests that ordering explicitly.
Display-aggregated reads use one transaction. Indexed existence checks identify
which retention tiers have observations in that snapshot. Every present tier
participates in the shared indexed overlap query. Presence never stands in for
per-series coverage. The store retains at most 32 compiled read-statement shapes
and 32 SQL templates keyed only by parameter counts, tier order and aggregation
shape, projection, physical layout and bounded integer transport. Alphabetic named SQLite bindings supply each current identity, window and
display step once across all branches. Bindings use database/sql.Named so the
driver need not repeatedly convert ordinals to strings while matching a large
parameter set. Names describe parameter positions only. Resource IDs and all
other values remain bound data, never interpolated SQL. The large-scope binding
regression reuses a 500-resource query shape with new resource family, identities,
metrics and time window, including IDs that resemble parameter names or SQL.
An uncorrelated existence guard in the same
statement avoids per-observation overlap probes when a preferred tier is absent.
If any preferred observation exists, the correlated same-series check still
owns coverage. Both checks are reevaluated in the current snapshot.
The template lock performs no database I/O and is separate from statement
preparation. The store never caches tier presence, query results or timestamp
windows. Consecutive output points append directly to the current series slice,
flushing it to the result map on series change and completion. Interleaved
metrics resume their existing slices. A single chunk returns its result directly
without copying the outer map. Less common
shapes run uncached after the bound is reached. Preparation occurs before
acquiring the transaction, including with a single-connection pool. The shared
database instrumentation preserves timing for transaction-bound prepared
statements, and database closure owns their lifetime. In display-aggregated
reads, empty tiers need no per-observation probe and an all-raw series uses a
direct range query. Fixed query dimensions need
not be decoded again for every returned point. Query-plan tests exercise the runtime SQL builder,
including all tier priorities and metric filters. Multi-stage rollups preserve
recorded minima and maxima instead of taking extrema from bucket averages.
Already discarded historical extrema cannot be reconstructed by this change.
Filtered raw value fleets carry each observation's timestamp and statement-local series number in one SQLite integer when the requested window proves that the product and sum fit a signed 64-bit integer. The decoder uses floor division for negative epochs. Extreme timestamp windows retain separate columns. This transport choice participates in the SQL shape key, so a cached ordinary-window query cannot be reused for an overflowing window. It changes neither stored identity nor API representation, metric selection, retention reconciliation, returned floating-point values or chronological ordering.
The retained-metric-query-coverage follow-up addresses the specific first-tier
query defect reproduced during Patrol outcome qualification. Returned points
still do not prove continuous collection or a complete requested window.
Uncollected observations and unavailable pressure evidence remain unavailable.
pkg/metrics/store_tier_coverage_test.go owns the overlap, tail, gap, per-series
scope, downsampling parity and retained-extrema regression cases.
Resource-scoped Assistant performance reads query retained CPU, memory and disk series using the registry target, then retain the existing 120-point output limit. A backend restart does not define the requested history window. Store errors cannot silently substitute a shorter in-memory series. Unscoped summary modernization remains tracked by the AI runtime contract.
Own measurable performance budgets, query-plan guarantees, and hot-path regression protection.
Dispatch-time Patrol authorization uses one bounded policy snapshot and one storage CAS on the execution hot path. Policy writers serialize against that admission coordinator; the broker must not add policy-history scans, resource registry walks after admission, or network probes before the executor. Failed admission records a stable refusal without invoking executor or network code.
External-probe alert synchronization is linear in configured availability targets and assigned agents during the existing availability snapshot pass. It must aggregate to one alert and at most one mobile notification per agent outage, retain only bounded target identifiers needed for diagnosis, and never start a goroutine, timer, or notification lifecycle per target.
The public helper and action-runner download routes reuse the bounded release
asset cache/proxy path in internal/api/router.go. They may add no background
poller, per-agent goroutine, inventory scan, or action-session lookup to normal
request routing; local assets are streamed once and published fallbacks retain
the existing bounded HTTP client and artifact-size checks.
The custom Workloads guest row shares Table's singleton non-activating native
click marker for WebKit touch eligibility. Bind it only while a row action
exists, without changing row identity, alert/highlight classes, metric derivation
or delegated child-control ordering. The marker must not perform actions, read
telemetry, start History work, add polling/timers or activate on pointer-up or
touch-end. GuestRow.test.tsx verifies its conditional lifecycle and
non-activation; the production row/full-drawer touch fixture verifies first
activation and unchanged identity independently of native collector acceptance.
The guest row also creates one createRowTextSelectionGuard() from Table per
row, so a drag that selects row text (a VMID, address or tag) does not open the
guest drawer, while a press released in place still opens it on the first
click. The guard keeps one press coordinate in a closure, binds its native
mousedown listener only while a row action exists, and reads the selection only
when the row is clicked: no document listener, timer, signal, metric derivation
or History work is added per row. GuestRow.test.tsx covers the drag, the
in-place click and chevron activation over a selection.
Chart caps select before wire conversion (24 October 2026)
The existing time-nearest chart cap selects indices in the original series before allocating wire-format points. Its equal-time targets, latest-time tie break, first/last observations and degenerate-span index fallback are unchanged. No average, synthetic timestamp or new sampling policy is introduced; zero and selected extrema retain their exact values. Oldest-data metadata still examines every eligible source observation, including one omitted from display. Empty series remain empty and each converted response owns its point slices. The retained reader, LTTB stage, source/alias choice, scopes and cache budgets stay unchanged.
TestChartPointSelectionMatchesOriginalCap compares the frozen former algorithm
with both wire and source-point paths over mixed cadence, millisecond ties,
negative epochs, unsorted/degenerate spans and caps from unlimited to one point.
TestContract_ChartIndexFallbackPreservesObservations checks the exported fallback
with equal-time, fractional, negative and explicit-zero observations. Source
parity and consuming browser evidence remain separate acceptance obligations.
Canonical Files
frontend-modern/src/utils/workloadDiskUsage.ts— aggregate disk numeric/current-reading admission.frontend-modern/src/utils/filesystemByteUsage.ts: shared finite byte/capacity admission for filesystem utilization.
pkg/metrics/store.go1a.pkg/metrics/clustered_layout.go1b.pkg/metrics/clustered_layout_test.go1c.pkg/metrics/identity_index_test.go1d.pkg/metrics/issue1124_write_amplification_test.gopkg/metrics/store_query_plan_test.gopkg/metrics/store_slo_test.gopkg/metrics/store_additional_test.gointernal/api/slo.gointernal/api/slo_bench_test.gofrontend-modern/src/components/Workloads/WorkloadsSurface.tsxfrontend-modern/src/components/Workloads/workloadInventorySourceIssues.tsfrontend-modern/src/components/Workloads/__tests__/workloadInventorySourceIssues.test.tsfrontend-modern/src/components/Workloads/WorkloadsTable.tsxfrontend-modern/src/components/Workloads/WorkloadPanel.tsxfrontend-modern/src/components/Workloads/WorkloadTableHeader.tsxfrontend-modern/src/components/Workloads/useWorkloadsState.tsfrontend-modern/src/hooks/useWorkloads.tsfrontend-modern/src/components/Workloads/useWorkloadsControlsState.ts15a.frontend-modern/src/components/Workloads/workloadColumnWidths.ts15b.frontend-modern/src/components/Workloads/workloadColumnLayoutUrl.tsfrontend-modern/src/components/Workloads/useWorkloadsDerivedState.tsfrontend-modern/src/components/Workloads/useWorkloadGuestMetadataState.tsfrontend-modern/src/components/Workloads/useWorkloadSelectionState.tsfrontend-modern/src/components/Workloads/useWorkloadRouteState.tsfrontend-modern/src/components/Workloads/useWorkloadUrlSync.tsfrontend-modern/src/components/Workloads/WorkloadsFilter.tsxfrontend-modern/src/components/Workloads/workloadsFilterModel.tsfrontend-modern/src/components/Workloads/ThresholdSlider.tsxfrontend-modern/src/components/Workloads/thresholdSliderModel.tsfrontend-modern/src/components/Workloads/useThresholdSliderState.tsfrontend-modern/src/components/Workloads/StackedDiskBar.tsxfrontend-modern/src/components/Workloads/stackedDiskBarModel.tsfrontend-modern/src/components/Workloads/useStackedDiskBarState.tsfrontend-modern/src/components/Workloads/StackedMemoryBar.tsxfrontend-modern/src/components/Workloads/stackedMemoryBarModel.tsfrontend-modern/src/components/Workloads/useStackedMemoryBarState.tsfrontend-modern/src/components/Workloads/MetricBar.tsxfrontend-modern/src/components/Workloads/metricBarModel.tsfrontend-modern/src/components/Workloads/MetricMiniSparkline.tsxfrontend-modern/src/components/Workloads/useMetricBarState.tsfrontend-modern/src/components/Workloads/EnhancedCPUBar.tsxfrontend-modern/src/components/Workloads/enhancedCpuBarModel.tsfrontend-modern/src/components/Workloads/useEnhancedCPUBarState.tsfrontend-modern/src/components/Workloads/DiskList.tsxfrontend-modern/src/components/Workloads/diskListModel.tsfrontend-modern/src/components/Workloads/useDiskListState.tsfrontend-modern/src/components/Workloads/GuestRow.tsxfrontend-modern/src/components/Workloads/GuestRowCells.tsxfrontend-modern/src/components/Workloads/guestRowModel.tsxfrontend-modern/src/components/Workloads/useGuestRowState.tsfrontend-modern/src/components/Workloads/GuestDrawer.tsxfrontend-modern/src/components/Workloads/GuestDrawerOverview.tsx47a.frontend-modern/src/components/Workloads/GuestPhysicalDisks.tsxfrontend-modern/src/components/Workloads/GuestDrawerHistory.tsxfrontend-modern/src/components/Workloads/guestDrawerModel.tsfrontend-modern/src/components/Workloads/useGuestDrawerState.ts50a.frontend-modern/src/components/Workloads/NodeDrawer.tsx50b.frontend-modern/src/features/docker/DockerHostDrawer.tsxfrontend-modern/src/components/Workloads/useGroupedTableWindowing.tsfrontend-modern/src/components/Workloads/workloadSelectors.ts52a.frontend-modern/src/components/Workloads/workloadSearchSuggestions.tsfrontend-modern/src/components/Workloads/workloadTopology.tsfrontend-modern/src/components/Workloads/workloadSelectionModel.tsfrontend-modern/src/components/Workloads/workloadRouteModel.tsfrontend-modern/src/components/Workloads/workloadFilterConfigModel.tsfrontend-modern/src/components/Workloads/workloadMetricHistoryModel.tsfrontend-modern/src/components/Workloads/workloadRouteStateModel.tsfrontend-modern/src/components/Workloads/workloadUrlSyncModel.tsfrontend-modern/src/components/Workloads/useWorkloadFilterOptions.tsfrontend-modern/src/components/Workloads/__tests__/workloadSelectionModel.test.tsfrontend-modern/src/components/Workloads/__tests__/workloadFilterConfigModel.test.tsfrontend-modern/src/components/Workloads/__tests__/workloadRouteModel.test.tsfrontend-modern/src/components/Workloads/__tests__/workloadRouteStateModel.test.tsfrontend-modern/src/components/Workloads/__tests__/workloadUrlSyncModel.test.tsfrontend-modern/src/components/Workloads/__tests__/workloadTopology.test.tsfrontend-modern/src/components/Infrastructure/resourceDetailMappers.tsfrontend-modern/src/components/Workloads/__tests__/WorkloadsSurface.performance.contract.test.tsxfrontend-modern/src/components/Workloads/__tests__/WorkloadsFilter.test.tsxfrontend-modern/src/components/Workloads/__tests__/useWorkloadSelectionState.test.tsfrontend-modern/src/components/Workloads/MetricBar.test.tsxfrontend-modern/src/components/Workloads/__tests__/useMetricBarState.test.tsxfrontend-modern/src/components/Workloads/__tests__/EnhancedCPUBar.test.tsxfrontend-modern/src/components/Workloads/__tests__/useEnhancedCPUBarState.test.tsxfrontend-modern/src/components/Workloads/ThresholdSlider.test.tsxfrontend-modern/src/components/Workloads/__tests__/useThresholdSliderState.test.tsfrontend-modern/src/components/Workloads/__tests__/StackedDiskBar.test.tsxfrontend-modern/src/components/Workloads/__tests__/useStackedDiskBarState.test.tsxfrontend-modern/src/components/Workloads/StackedMemoryBar.test.tsxfrontend-modern/src/components/Workloads/__tests__/useStackedMemoryBarState.test.tsxfrontend-modern/src/components/Workloads/__tests__/DiskList.test.tsxfrontend-modern/src/components/Workloads/__tests__/GuestRow.test.tsxfrontend-modern/src/components/Workloads/__tests__/MetricMiniSparkline.test.tsxfrontend-modern/src/components/Workloads/__tests__/workloadMetricHistoryModel.test.tsfrontend-modern/src/components/Workloads/GuestDrawer.test.tsxfrontend-modern/src/components/Workloads/__tests__/useGroupedTableWindowing.test.tsfrontend-modern/src/components/Workloads/useWorkloadViewportSync.tsfrontend-modern/src/components/Workloads/__tests__/useWorkloadViewportSync.test.tsxfrontend-modern/src/components/Workloads/useWorkloadTableMetricHistory.tsfrontend-modern/src/routing/routePreload.tsfrontend-modern/src/useAppRuntimeState.tsfrontend-modern/src/utils/storageSummaryCache.tsfrontend-modern/src/components/Workloads/WorkloadsSurface.tsxfrontend-modern/src/components/Workloads/nestedWorkloadContext.tsfrontend-modern/src/components/Workloads/__tests__/nestedWorkloadContext.test.tsfrontend-modern/src/utils/workloads.tsfrontend-modern/src/utils/__tests__/workloads.test.tsfrontend-modern/src/utils/searchQuery.tsfrontend-modern/src/utils/__tests__/searchQuery.test.tspkg/server/gzip_middleware.gopkg/server/gzip_middleware_test.gofrontend-modern/src/stores/websocket.tsfrontend-modern/src/utils/resourceStateAdapters.tsinternal/mock/fixture_graph.gointernal/mock/generator.gointernal/mock/integration.gointernal/mock/platform_fixtures_test.gofrontend-modern/src/stores/__tests__/websocket-unified.test.tsfrontend-modern/src/utils/__tests__/resourceStateAdapters.test.ts
Shared Boundaries
Multi-disk Bars summary
The existing vertical-bars workload/node disk cell shows the fullest measured
disk's percentage beside equal-weight per-disk micro-bars. Its title retains
the actual mount and percentage. Unknown/invalid usage cannot produce a new
summary; an aggregate fallback must not masquerade as measured member usage.
The displayed maximum uses the existing shared disk measurement and threshold
logic; no collector, sorting key, metric units, History request, resampling or
performance threshold changes. StackedDiskBar.test.tsx and the model branch
controls cover real/unknown measurements and unchanged per-member bars.
browser-tests/proxmox-docker-rows.cjs checks the actual label, bars and title
at desktop and phone widths; this is presentation proof, not native collection
or a measured fleet performance improvement.
frontend-modern/src/components/Infrastructure/resourceDetailMappers.tsshared withunified-resources: resource detail mappers are both a canonical unified-resource consumer surface and a fleet-scale performance hot-path boundary.frontend-modern/src/components/Infrastructure/useTableWindowing.tsshared withfrontend-primitives: the shared bounded table-window controller is both a canonical frontend rendering primitive and a fleet-scale scrolling hot-path boundary.frontend-modern/src/features/platformPage/PlatformWindowedList.tsxshared withfrontend-primitives: the shared bounded list renderer is both a canonical platform-page primitive and a fleet-scale mounted-DOM performance boundary.frontend-modern/src/features/platformPage/PlatformWindowedRows.tsxshared withfrontend-primitives: the shared bounded table-row renderer is both a canonical platform-page primitive and a fleet-scale mounted-DOM performance boundary.frontend-modern/src/features/platformPage/usePlatformWindowedItems.tsshared withfrontend-primitives: the platform windowing controller is both a canonical frontend scroll primitive and a directional-runway performance hot path.frontend-modern/src/routing/routePreload.tsshared withfrontend-primitives,unified-resources: 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,unified-resources: the process-wide realtime store owns alert acknowledgement request lifetime, unified-resource state and fleet-scale connection and reconciliation.frontend-modern/src/stores/websocket.tsshared withalerts: the connection-owned realtime store is both the canonical alert truth boundary and the fleet-scale resource reconciliation hot path.frontend-modern/src/useAppRuntimeState.tsshared withcloud-paid: the authenticated app runtime bootstrap is both a hosted commercial org-context boundary and a protected app-shell performance boundary. Security-status SSO display labels are part of the existing authenticated bootstrap payload. The app shell may projectssoSessionDisplayNameinto visible signed-in chrome, but it must not introduce an additional pre-protected-state fetch, route preload, organization probe, or commercial posture request just to resolve display identity. The same bootstrap may expose a local resolution signal derived only from the current authenticated REST response, a completed WebSocket snapshot, or retained server-owned runtime state. Platform navigation may consume that signal without adding a second state fetch, websocket subscription, route preload, or browser-local cache read on the authenticated hot path. Local, proxy-auth, and SSO sessions must share exactly one protected/api/statehydration after authentication is established. That single request must resolve the cold app shell before organization hydration and WebSocket startup, so a delayed or blocked first stream snapshot cannot hide server-owned platform scopes; auth-mode branches must not fork additional state probes or perform the same hydration twice.frontend-modern/src/utils/resourceStateAdapters.tsshared withunified-resources: canonical resource compatibility and realtime row merging are both a unified-resource contract and a fleet-scale reconciliation hot path.frontend-modern/src/utils/workloads.tsshared withunified-resources: the stable workload metadata identity helper is both a unified-resource persistence boundary and a workloads hot-path lookup boundary.internal/api/slo.goshared withapi-contracts: the SLO endpoint is both an API contract surface and a protected performance hot-path boundary.internal/mock/fixture_graph.goshared withmonitoring: the canonical mock fixture graph is both monitoring-owned runtime data and a protected large-estate demo transport hot path.internal/mock/generator.goshared withmonitoring: mock metric generation is both monitoring-owned runtime data and a protected large-estate demo update hot path.internal/mock/integration.goshared withmonitoring: the mock runtime scheduler is both monitoring-owned sampling infrastructure and a protected large-estate demo cadence boundary. Alert-history lifecycle enrichment remains graph-build work, not sampler-tick work. History access must apply its requested limit before cloning rows, and cloning optional lifecycle timestamps must stay linear in the returned slice rather than rebuilding or walking the full mock estate. This keeps history/timeline consistency from adding cost to the protected realtime update path.
Large-estate realtime updates must be sparse end to end. The public 50-node,
900-guest demo advances node-scoped metrics through ten bounded cohorts on the
shared two-second sampler, keeping each node current within twenty seconds while
leaving broadcast headroom to coalesce several sampler invalidations. A cohort
must not rebase unchanged guest, node, storage, or disk evidence, and the
provider-backed fixture set refreshes once per full rotation rather than on
every tick.
A slower mock tick rotates the PVE estate through a divisor of those cohorts
that keeps every node sighted within thirty seconds, down to every node per
tick, so per-second churn never exceeds the two-second default while running
guests stay inside the Proxmox freshness threshold.
Shared storage and Ceph clusters, which no node owns, are re-sighted only on
the first cohort of each PVE rotation, so keeping them fresh adds a handful of
rows to one tick per rotation rather than to every tick.
Mock replication timing is advanced in that same full-rotation refresh, and
only a job whose schedule phase has passed is rewritten, so keeping demo
replication on schedule adds no per-tick change for jobs that did not run.
Shared storage in the mock estate stays one row per cluster per store, so the
Storage surface grows with the number of storages rather than with the node
count times the number of shared storages.
Demo Docker container names stay unique per host (numbered suffixes on reused
profiles), so image "used by" lists and container rows never collapse two
distinct containers into what reads as a duplicated row.
Mock Kubernetes pods share their node's allocatable memory: each active pod's
memory target is scaled by mockKubernetesPodMemoryShare over the active pods
on its node, which keeps a node's pods at or below 58% of allocatable memory in
steady state, and capMockKubernetesNodePodMemory clips them to 60% only while
rescheduled pods' smoothed readings settle, so a dense node does not pin itself
and its linked agent at 100%. The count and the clip are linear passes over the
cluster's pods in each usage update, keyed by node name, with no per-pod scan
of other pods or nodes.
The browser applies resource deltas to its connection-scoped raw baseline, but
canonicalizes and reconciles only changed and newly added resources. Each
server row is one display row, because the server already coalesced host
views for presentation, so unchanged display resources, host rows included,
retain object identity and the browser runs no host-merge pass of its own.
The hook's full merge (initial hydration and uncovered revision gaps) clones
the connection store's rows once, because cache rows must not share nested
arrays with rows the store reconciles in place; delta merges already clone each
changed row that takes the full merge path, and fast-path rows clone only the
patched subtrees.
frontend-modern/src/stores/websocket.ts publishes the changed-ID set and a
monotonic resource revision with each reconciliation. The shared
useUnifiedResources owner applies that revision to the process-wide canonical
cache once, then projects route filters from the already-canonical result;
route-scoped consumers must not independently canonicalize the full estate. A
hook instance observing an already-applied revision must not deep-unwrap the
realtime store, and the merging instance dereferences raw store subtrees only
for rows the delta merge will clone. The connection store keeps a bounded
per-revision changed-id history so an instance that mounts or resumes several
revisions behind the shared cache catches up through the unioned changed-id
set as a delta merge instead of a full-estate remerge; the full fallback is
reserved for uncovered gaps and full-snapshot commits.
Per-tick reconciliation work must additionally scale with the patch, not the
row: the server's resource delta is a JSON merge patch, and each
reconciliation records which top-level keys every patch touched
(platformData expanded one level). A changed non-host row whose recorded
keys are confined to the pass-through metric fields (cpu, memory, disk,
network, diskIO, temperature, uptime, lastSeen, status), the
proxmox facet mirror, and the four platformData metric mirror leaves
(diskRead, diskWrite, networkIn, networkOut) is merged as the previous
display row with only those subtrees cloned in — no full-row deep clone,
re-canonicalization, or full canonical merge — and commits to the resource
stores as per-key subtree writes instead of a whole-row keyed reconcile, so
neither commit path deep-walks the unchanged remainder of the row. The
changed-key shapes ride the revision history (and the hidden-tab deferral
set) with unknown-shape contamination: rows added, removed, patched twice in
one frame, or patched outside the allow-list fall back to the full
clone-canonicalize-merge path, and the fast output must remain
content-equivalent to that path. The broadcast payload
itself is a scalability surface: duplicated capability blobs travel once
through the state-level capabilityCatalog and per-resource
capabilitiesRef, and non-default policy postures and AI-safe prose dedupe
the same way through policyCatalog/policyRef and
aiSafeSummaryCatalog/aiSafeSummaryRef (estates carry only a handful of
distinct postures and templated summaries); default-posture policy is
omitted and synthesized at ingestion, and neither superseded canonical ids
nor the row's own wire id are duplicated into the alias list — the primary
id stays so aliases remain the complete live vocabulary a host is reachable
by — so full snapshots, REST recovery, and reconnects do not re-ship static
metadata per resource. The connected-infrastructure reporting
projection rides the same per-client keyed delta engine: a broadcast carries
id-keyed merge patches for changed items only (at 50-node scale, timestamp
patches of a few hundred bytes instead of the full ~55KB projection every
tick), and the client applies them to an isolated baseline then reconciles
the store with reference-stable untouched items so the per-tick deep walk of
the whole projection is gone. Active alerts travel the same keyed transport
(activeAlertsDelta, replacing the ~37KB whole-array re-ship whenever any
alert changed) while their application stays immediate per the alerts
subsystem boundary. Each committed alert is reconciled in place against its
copy in the keyed active-alert store, so a reader of an unchanged alert there,
or of an unchanged nested value such as its live metricStatus or metadata,
is not notified although every commit carries freshly parsed objects; omitted
fields are deleted rather than shallow-merged. The state.activeAlerts array
is still replaced on every alert commit. A pending acknowledgement hold that
gives up after 15 seconds re-syncs from /api/alerts/active (reusing a
recovery already in flight, and fetching again if that one applies nothing)
rather than waiting for an alert delta a quiet estate may never send. A local
acknowledgement write that overlaps a recovery discards its response and
fetches once more. These projection baselines are
socket-owned: an oversized
frame invalidates resources, connected infrastructure, and active alerts
together, while REST recovery hydrates display state only. The store also
owns acknowledgement request lifetimes across overview remounts. Scope changes
end both request ownership and optimistic confirmation guards; a same-scope
reconnect retains them. websocket.alertAcknowledgementRequests.test.ts and
websocket-global.noopLifetime.test.ts pin that boundary. A later keyed delta
without a socket baseline requests the throttled recovery path instead of
patching an independently built REST array or silently retaining a stale
projection. Workload table rows derived from canonical
snapshots reuse the previous row object whenever the serialized row is
unchanged, and a refresh that changes nothing returns the previous row array
itself, so per-tick row identity churn stays bounded to guests whose data
changed.
Initial active-alert availability must not pay the full /api/state estate
cost merely because the live connection failed before its first alert
snapshot. The process-wide store uses the bounded /api/alerts/active
projection after a cold socket close or a five-second open-without-alerts
deadline, coalesces concurrent requests, and throttles automatic attempts to
one per thirty seconds. The HTTP result is
revision-fenced against later socket commits and never becomes the keyed-delta
baseline, so recovery adds neither a page-local subscription nor a second
per-tick reconciliation path. The JSDOM no-op global store reports this
projection as ready without starting transport work, preserving deterministic
consumer tests while the production owner retains the pending/ready/unavailable
contract.
Retained or prefetched tabs may keep fetched snapshots, but only the visible tab
consumes realtime projection work. Re-entering an inactive tab must catch up
from the shared canonical cache rather than replaying every missed delta.
Hidden tabs continue advancing the raw baseline without reconciling the estate;
all hidden changes are materialized once when the document becomes visible.
Active operator input gates realtime resource work harder still — scrolling,
wheel, pointer presses, and typing all count, while bare pointer movement
deliberately does not, so a resting hand cannot starve data freshness. A tick
arriving mid-interaction queues its delta unapplied, in arrival order,
because on a large estate even the baseline patch walks the whole resource
array. The
reporting projection and the realtime tick token (lastUpdate) defer
latest-wins alongside — the token is what every downstream realtime consumer
keys on, so holding it keeps unified projections and workload remaps fully
quiescent through the gesture. Queued deltas drain in order — at scroll
idle, before any in-place tick applies, and into the same deferral set the
hidden-tab path uses — so one batch materializes everything while nothing is
visually moving. The queue is bounded by a single gesture: hidden tabs keep
the in-place baseline advance, and a full snapshot supersedes and clears any
queued deltas along with the deferral set. Alert application stays live
mid-gesture. This is a scheduling boundary, not a cost reduction — the
per-tick reconciliation cost itself remains owned by the
resource-payload-static-metadata gap.
These rules must be proved against a 50-node fixture and may not be replaced by
blank-row virtualization or a second page-local polling path.
Governed action decisions preserve SQLite and MemoryStore parity through one shared pure append command. Every accepted approval advances a monotonic decision revision and compares the complete prior approval prefix before mutation; SQLite performs the state, revision, identity, and prior-prefix CAS atomically, while MemoryStore applies the same command under its store lock. Contention across independent SQLite handles is bounded to CAS failure, reload, replay/conflict/quorum re-evaluation, and retry, so a stale writer cannot erase another actor's approval. Decision events are uniquely indexed by action and decision revision, true lifecycle transitions retain their partial action/state uniqueness, and a completing approval writes its decision fact plus state transition in one transaction. Schema migration retains historical events, reopen preserves decision revision ordering, and no action-decision change may globally weaken the Task 03 lifecycle-state idempotency invariant.
Extension Points
Add performance budgets through SLO or contract tests
Add query-plan guardrails for DB-backed hot paths
Optimize hot paths only when backed by benchmarks or proven query issues Main-listener response compression belongs to
pkg/server/gzip_middleware.go. Negotiation must combine everyAccept-Encodingfield line, honor strict RFC qvalues and explicit gzip exclusions, and bypass token-valid WebSocket upgrades before wrapping the response writer. Informational responses must leave negotiation open for the final response, body-forbidden statuses must not gain compression framing, and partial responses must preserve the identity representation whose byte positionsContent-Rangedescribes. Once a body-permitted full response advertises gzip, an explicit empty body must still emit a valid empty gzip member. Regression proof lives inpkg/server/gzip_middleware_test.go. WebSocket state refreshes on monitor, agent-report, and alert mutation hot paths must enqueue coalesced current-state invalidations instead of building full frontend-state payloads at every signal. The hub owns delayed tenant-aware state resolution so superseded signals do not retain large state snapshots. Full state resolution and serialization must run through one cancellable build slot across broadcast, initial-client delivery, and client-requested refresh delivery: reconnect churn must cancel work for clients that have already left, and active reconnects or refreshes must not overlap whole-state clones with each other or with the coalesced broadcast worker. The operations-loop status endpoint is performance-adjacent because it aggregates fleet, action-audit, workflow-starter, AI-usage, and external-agent activity evidence for every request. Starter and contextual collaboration evidence on that endpoint must come from persisted count-oriented histories in the existing evidence window, not from prompt payload scans, per-session transcript reads, model-response reads, or unbounded route/request history. Aggregate active finding precedence on that endpoint may read the existing in-memory Patrol findings store once for issue-level active counts, but it must not add a second per-resource registry walk or call the sorted UI presentation list just to decide current work. External-agent readiness on that same endpoint may inspect only the already loaded in-memory API token registry against manifest-derived Pulse MCP surface scopes; it must not add persistence scans, token usage history walks, transcript reads, or per-capability route probes to the protected request hot path. Workload platform-scope filtering and option derivation are part of the workload table hot path. Shared selectors infrontend-modern/src/components/Workloads/workloadSelectors.ts,frontend-modern/src/components/Workloads/useWorkloadFilterOptions.ts,frontend-modern/src/components/Workloads/workloadRouteModel.ts, andfrontend-modern/src/hooks/useWorkloads.tsmust consume canonicalplatformScopes; page surfaces must not rebuild platform membership with ad hoc source or runtime scans. Workload active-alert decoration must consume the alerts store's existingdetectionEnabledaccessor and websocket read model. External notification activation may not trigger a second resource scan, clear cached active alerts, or become a workload-table filter because delivery state is not detector state. Page-owned workload-type exclusions are part of that same hot path:useWorkloadsStatemust apply them before dedupe, filter-option derivation, summary statistics, and row rendering so a platform overview that demotes nested workloads does not carry hidden rows through downstream table state. The shared workload column profile must consume those same exclusions. When the public combinedcontainerview has only system or application containers remaining, it must resolve to that subtype's canonical column set instead of exposing empty runtime-specific columns; page-local column suppression and duplicate platform schemas are forbidden. Responsive workload columns are part of the same table hot-path and usability contract. The active width stage must filter both the rendered column set and the column picker's available choices; a remembered user selection must not force a wider table or introduce horizontal scrolling when the current container cannot present that column readably. User-hidden preferences remain width-independent, and selected wide-only columns must return automatically when the table reaches a supporting width. The phone stage keeps workload identity, availability, CPU, memory, and disk visible, while row expansion owns secondary operational detail. State-model tests must cover contraction and restoration of selected columns, and the browser receipt must prove table and container scroll-width parity across the affected breakpoint boundaries. When a platform page still needs a visible signal for those demoted nested workloads,nestedWorkloadContext.tsmust derive a bounded summary from the same raw workload snapshot before row rendering. That derivation must use canonical workload IDs and ambiguity-safe runtime-host matching; row and drawer components may render the summary they are given, but they must not scan hidden workloads per row or guess ownership from ambiguous VMIDs. Row cues for nested runtimes must receive that precomputed summary throughWorkloadPanel/GuestRowprops rather than deriving hidden-workload state inside each row render. The same bounded derivation owns Docker host-facet handoff data for nested runtime links.useWorkloads.tsmust carry the Docker runtime hostname ontoWorkloadGuestsonestedWorkloadContext.tscan build a route-scoped Docker link without scanning unified resources again inside drawers or Docker table renderers. The sameuseWorkloads.tsmapping owns canonical-field fallback for per-row scalars the workload table reads.WorkloadGuest.uptimemust fall back to the canonicalResource.Uptimefield after the platform-specific carve-outs (proxmox.uptime,agent.uptimeSeconds,docker.uptimeSeconds,kubernetes.uptimeSeconds); platforms whose adapters only populate the canonical field — vSphere is the working example — would otherwise render blank uptime cells for every row. That mapper must preserve observation presence separately from the numeric fallback required by the legacyVM | Containershape.0is a real reported CPU, capacity, I/O, or uptime value; an absent or non-finite API field is unavailable and must render as such. The mapper records that fact once onWorkloadGuest.telemetryAvailability, never substitutes wall-clock time for an absentlastSeen, and reads vSphere CPU allocation fromVMware.CPUCountbefore declaring the count unknown. Workload guest rows may compose the shared saved web-interface adjacent launch control fromfrontend-primitives, but row rendering must receive any saved URL from already-loaded row metadata and must not add per-row metadata fetches, Discovery probes, URL validation copies, or page-local external-link logic on the table hot path. The inert resource name and the separate 24-by-24 CSS-pixel launch target must remain one bounded render composition rather than a new column or secondary lookup. Workload status filters remain URL-canonical. Scoped local persistence may seed a missingstatusparameter when a platform page is revisited, but the restore path must write the URL once withreplaceand must not force row filtering through a separate page-local state channel. Status buckets must remain mutually exclusive and derive from the already- loaded workload snapshot: warning or offline unified-resource health takes precedence for filter/stats posture, while healthy resources continue to use the provider-authored runtime power state.useWorkloads.tscarries both values; selectors must not collapse warning health intoStoppedor add a second resource lookup to recover it.Development bypass checks inspect only the current request's explicit credential presence and the existing cached development flag. Explicit tokens continue through canonical authentication and scoped identity, without introducing a separate auth cache or persistence scan. Keep shared auth gating in
internal/api/router.gocheap and local: pre-auth quick-setup and recovery routing may short-circuit on loopback/session/token checks, but they must not trigger chart, metrics, or broad persistence fan-out on the protected request hot path. Agent command authorization is likewise a dispatch-time point lookup and atomic approval consume, not a route-wide scan or request-hot-path fan-out; grant signing and WebSocket writes happen only after that bounded verifier succeeds. Assistant mid-turn steering was removed on 2026-10-23 with the browser chat window, its only caller. Scheduled-report background worker registration is allowed in router startup, but it must stay outside protected request handling. Due-schedule scans may enumerate tenant organization IDs and load each workspace schedule store, but normal API route dispatch must not generate reports, render PDFs, scan metrics history, or perform SMTP delivery as part of auth gating or router registration. Reading mutable auth configuration for CSRF bootstrap and login checks must stay a short in-memory snapshot underconfig.Mu.RLock(): local username/password presence, API-token presence, and proxy-auth secret presence may be copied while locked, while SSO provider presence is checked after the lock is released. This preserves the protected hot path and avoids holding the config lock across provider/state work. The same rule applies to public setup-script lifecycle routes:/api/auto-registerand/api/auto-unregistermay bypass the global auth wall so their handlers can validate request-body setup tokens, but the router-level public-path check must stay O(1) and must not front-run persistence loads, monitor refresh, or other teardown/register side effects before the canonical handler owns the request. Metrics-history live fallback for Docker / Podman app-container CPU may read the already-loaded Docker host snapshot to normalize per-core CPU by host CPU capacity. It must remain inside the existing lazy fallback-state load and must not add container-runtime calls, persistence scans, or extra unified resource walks to the protected history endpoint. Test seams around the router's relay runtime client may expose the current relay status to onboarding handlers, but they must remain in-memory interface boundaries and must not add persistence probes, network reconnects, or metrics fan-out to QR/deep-link request handling./api/config/exportand/api/config/importfollow the same hot-path rule: router auth bypass exists only to let their handlers make route-local auth and public-network decisions, and the bypass check must remain a constant-time path comparison rather than a persistence-backed authorization probe. Agent-version signaling follows that same hot-path rule. Shared helpers used by/api/agent/versionand adjacent settings payloads may read the cached process version once, but they must not add per-request release lookups, filesystem walks, or other heavy work just to compute whether an attached agent is current. Workload drawer Assistant and context-copy entries are also click-triggered boundaries. RenderingGuestDraweranduseGuestDrawerStatemay derive canonical workload identity and Discovery coordinates from already-loaded row data, but it must not fetch the agent resource-context bundle or hydrate rich Assistant context while a row is merely rendered, expanded, filtered, sorted, or windowed. The same bounded-row rule applies to workload action-agent readiness: drawer rendering may read an already-loadeddiscoveryTargetand local agent fields, but it must not infer Proxmox action ownership by scanning nodes, fetching discovery, or probing agents during render. The/api/version.agentUpdateTargetVersionprojection follows that same rule: it may mirror the cached deployable agent target exposed to agents, but it must not inspect attached agents, download artifacts, or resolve release metadata on each request. Update-readiness planning follows the same bounded-router rule. The router may wire cached config and monitor host snapshots into the updates handler, but it must not add release lookups, broad persistence scans, or live agent probes to protected request setup before/api/updates/planowns the work. Proxmox-side LXC Docker collector wiring ininternal/api/router.gofollows the same startup-only router rule: env opt-in may configure monitoring-owned checker/collector callbacks, but normal protected request setup must not runpct, scan LXC guests, or collect Docker inventory. Automatic LXC filesystem capacity collection remains outside that request path in the node-local Unified Agent. It uses one shared deadline, fixed output ceilings, and bounded running-guest/disk counts; monitoring merges only a fresh in-memory node/VMID/name match during the existing PVE poll. Source freshness threshold wiring ininternal/api/router.gofollows the same bounded startup/config rule. Router construction may pass already-held monitor config into the unified-resource adapter, but it must not add per-request polling, registry rescans, persistence walks, or tenant-wide refreshes to decide whether Proxmox/PBS/PMG resources are stale. Pro update credential wiring ininternal/api/router.gofollows the same bounded rule: the credential-source closure reads the already-held activation snapshot only when the updater checks or applies, and the download-broker fetch stays on the existing update-check cadence (the check cache plus one fresh resolve per apply). It must not add polling loops, background license-server traffic, or per-request broker calls. Global resource timeline routing follows the same protected-request hot-path rule:/api/resources/timelineregistration may wire the authenticated handler, but router setup and auth gating must not execute resource-change store reads or provider activity scans before the handler owns the request. Agent command-token validation follows the same bounded router rule:internal/api/agent_exec_token_binding.gomay validate against the in-memory API token registry and persist a single first-use binding for a governed Proxmox install-command token, but it must not add guest scans, monitor refreshes, broad persistence walks, or external calls to command WebSocket registration. Container runtime migration token minting follows that same rule: adding server-derived owner metadata ininternal/api/router.gomust reuse the already-authenticated request context or caller token and must not add monitor scans, persistence reads, or other broad hot-path work before the route-local handler owns the mutation. Patrol investigation-record fan-out through shared router callbacks follows the same bounded-work rule: the callback may copy the already-materialized durable record into unified findings, but it must not add broad resource scans, model calls, or persistence walks to protected request setup paths. The same rule covers the operator-facingimpactandrecommendationfields copied from Finding to UnifiedFinding through that router callback: the callback may pass them through as already-materialized strings but must not invoke models, persistence walks, or evidence aggregation to derive them on the protected hot path. Theprevious_resolved_fix_summaryoperational-memory field follows the same constraint: the router callback passes the already-captured string fromFindingsStore.Addrather than reaching back into investigation history or persistence to re-derive it inside the request setup path. Patrol run Assistant handoff wiring ininternal/api/router.gofollows the same protected hot-path rule: the shared callback may resolve one requested Patrol run ID from the already-owned Patrol service and strip tool traces before returning it to AI runtime, but it must not scan run history broadly, hydrate resource inventories, call models, or perform persistence fan-out as part of router setup or generic request admission. Assistant session rename routing follows the same bounded router rule:PATCH /api/ai/sessions/{id}may branch to the AI handler and relay-mobile capability check, but router setup and auth gating must not scan session files, load transcripts, hydrate handoff context, or inspect model/tool history before the route-local handler owns the single title mutation. Assistant session undo/redo was removed on 2026-10-23 with the browser chat window. Report branding follows the same bounded-work rule. Reporting handlers may read provider-default env configuration and a tenant-local system-settings record when a report is generated, but router setup and normal protected request handling must not scan tenants, hydrate cross-client state, read logo files outside PDF rendering, or add report-specific control-plane fan-out. API action-completion event bridging ininternal/api/router.gofollows the same bounded-work rule: router wiring may connect the already-completed action audit record to the agent SSE projection, but it must not perform executor dispatch, resource rescans, model calls, or persistence fan-out on the protected request setup path. Native Pulse Assistant tool provider and adapter wiring ininternal/api/router.gofollows that same protected hot-path rule: router setup may inject already-constructed AssistantToolAdapterdependencies, while native Assistant naming and MCP protocol projection remain AI/runtime plus API-contract concerns. Performance-owned code must not use MCP-named native seams to justify extra model calls, persistence walks, or tool registry scans during route setup or generic request admission. Docker / Podman lifecycle execution uses the same bounded setup rule:internal/api/router.gomay wire the API action executor once at startup, while per-action resource refresh, policy validation, agent command dispatch, polling verification, and audit completion must occur inside the route-local execute handler path. Agent-managed host package updates follow the same bounded setup rule. Router construction may register the typed host-update executor once, but package refresh, fingerprint comparison, APT execution, and post-install verification must remain inside the selected action and agent command paths. Generic request admission must not probe agents, refresh package indexes, enumerate pending packages, or wait for update completion. Package-cache cleanup follows the same rule: router construction may register the typed executor once, while cache inspection, fingerprint comparison,apt-get clean, and post-cleanup measurement remain agent/action work. Generic request admission must not walk cache directories, inspect mounts, or wait for cleanup; the agent scan is entry/byte bounded and the unified-resource mount lookup is an in-memory pass over already-reported disks. The Patrol action-broker and proposal-catalog factories are wired the same bounded way:internal/api/router.goinstalls the per-org factory closures on the AI settings handler once at startup, and each broker or catalog is constructed lazily per investigation run rather than eagerly per request, so the wiring adds no fan-out to the protected hot path. Core-owned Patrol policy resolution follows that same boundary: the broker may resolve the already-scoped AI service and read its in-memory effective autonomy/full-unlock posture only during proposal submission. Router setup and unrelated protected requests must not enumerate tenants, load provider catalogs, scan resource policy, or execute action planning eagerly. Plan-time policy provenance adds one bounded capability lookup plus the already-scoped tenant/resource reads on Patrol submission only. One shared pure evaluator derives both the descriptive factors and automatic eligibility; dispatch re-fetches current inputs and invokes that evaluator once before atomically persisting its lease. The provenance object is capped at three ordered authorities and eight reason codes per authority. It rides the existingplan_jsonaudit blob, so Memory/SQLite parity and reopen need no side table or unbounded query fan-out. Proxmox VM/LXC lifecycle execution follows that same routed-executor budget: router setup may register the Proxmox executor alongside Docker / Podman, but it must not resolve guests, probe node agents, callqm/pct, poll verification state, or refresh inventory outside the route-local action plan/execute path. Injecting the tenant-monitor resolver at setup remains constant work; the direct Proxmox status/uptime reads are action-local and poll at most once per second within the closed postcondition registry's bounded verification window. Retiring self-hosted trial acquisition follows that same rule: removing/auth/trial-activateandPOST /api/license/trial/startfrom public-path and CSRF inventories must stay as constant-time route-table absence rather than replacing the old callback with persistence-backed router probes.Extend workload hot-path filter, sort, grouping, and stats math through
frontend-modern/src/components/Workloads/workloadSelectors.ts, and extend workload identity, discovery routing, and node-topology helpers throughfrontend-modern/src/components/Workloads/workloadTopology.ts, rather than duplicating selector or topology logic infrontend-modern/src/components/Workloads/WorkloadsSurface.tsxPlatform-owned Workloads surfaces may force a platform scope, but that scope must be applied before deriving host, Kubernetes context/namespace, and container runtime facet options so embedded pages do not pay for or display unrelated platform options. Net I/O and Disk I/O outlier statistics (median, MAD, p97, p99) are built from guest throughput bycomputeWorkloadIOEmphasis(...)inworkloadSelectors.ts, which produces the stats thatgetOutlierEmphasis(...)inguestRowModel.tsxreads; that math must not move back behind aResource-shaped infrastructure selector cast. Workloads source-health messaging must derive from the viewer-safe/api/runtime/inventory-sourcesprojection throughfrontend-modern/src/components/Workloads/workloadInventorySourceIssues.ts. Platform-owned embedded Workloads surfaces must scope those source-health issues to the forced platform before rendering an empty inventory state, and the remediation action must route to the canonical infrastructure workspace without adding per-source fetches or route-local source probes. Connection-ledger refreshes on the Workloads page are steady-state health probes, not route-loading authority: after the Workloads shell has mounted, those refreshes must retain the last rendered table state and must not trip the app-level Suspense fallback or blank the table while the next/api/connectionsrequest is in flight. The same rule applies to Workloads inventory refreshes fromfrontend-modern/src/hooks/useWorkloads.ts: transient/api/resourcesfailures or in-flight polls must keep the last fulfilled workload snapshot mounted, report errors out of band, and must not rely on SolidcreateResourcein a way that can bubble into the route-level Suspense fallback or the setup/welcome shell. Workload row drawer expansion and local row focus are local interaction state. Inbound Workloads deep links may hydrateresourceinto the focused row, but opening, closing, or clearing an inline drawer must not write that param back to route state, schedule router navigation, or trip the app-shell fallback. Workloads has no group focus, so it reads nosummaryGroupparam: row expansion stopped writing it and no link builder passes one, so its hydration was removed with the group pin. URL synchronization for Workloads stays limited to filter-owned scope infrontend-modern/src/components/Workloads/useWorkloadUrlSync.ts. The Workloads page may show a bounded partial-inventory banner when a configured workload-capable source is unauthorized, unreachable, stale, pending, or paused, but it must not fabricate VM/container rows from host telemetry or hide source blockers just because another source still has workload rows. The same projection may include an active VMware source only when its last otherwise-successful refresh reported degraded optional enrichment. That completeness record is a strict whitelist of stage, category, occurrence, and aggregate count; raw messages, entity identifiers, endpoints, and credentials remain private. The vSphere page shares this single bounded poll with its embedded Workloads state and must say when displayed inventory may be incomplete rather than treating omitted enrichment as a healthy empty result. The retired dashboard overview route must not return as a hot-path orientation shortcut. First-viewport system count, health, source coverage, and freshness now belong to the provider-first platform landing surface and Add infrastructure, derived from their existing runtime/resource state rather than a dashboard-specific compact summary fallback. Any future brief-style Assistant handoff needs a newly governed owner and must not add route-global polling, model/settings fetches, or chart/history reads to the authenticated root path.Normalize workload view-mode aliases through
frontend-modern/src/utils/workloads.tsinstead of keeping local URL/storage parsing infrontend-modern/src/components/Workloads/WorkloadsSurface.tsxDeduplicate workload rows by canonical workload ID from
frontend-modern/src/utils/workloads.tsrather than via local pass-through wrappers infrontend-modern/src/components/Workloads/WorkloadsSurface.tsxRender workload row identity directly from the shared canonical workload helper so row selection, hover, and fallback metadata lookup stay aligned with the same workload contract
Format infrastructure sensor labels through the shared
frontend-modern/src/utils/textPresentation.tspresentation helper instead of maintaining a local title-casing implementation infrontend-modern/src/components/Infrastructure/resourceDetailMappers.tsExtend workload row contract and per-row hot-path derivations through
frontend-modern/src/components/Workloads/guestRowModel.tsxandfrontend-modern/src/components/Workloads/useGuestRowState.ts, and extend tooltip-backed row cell presentation throughfrontend-modern/src/components/Workloads/GuestRowCells.tsx, rather than rebuilding column metadata, row identity, cell tooltips, or anomaly correlation insidefrontend-modern/src/components/Workloads/GuestRow.tsxGuest metric thresholds read the guest's alert policy tags through onegetWorkloadAlertPolicyTagsmemo per row and per drawer, beside the existing scope and override-candidate memos, sopulse-relaxedbar colouring adds no per-render tag parsing and no extra store reads. On coarse-pointer touch layouts, those cell details must not spawn floating hover tooltips from synthesized mouse events; a row tap remains the primary drawer action. Tooltip suppression belongs to the shared hover-capability boundary rather than per-row viewport branches or listeners. The sharedEnhancedCPUBarhover panel names the CPU count that the bar shows in parentheses beside the percentage ("22% (18)") as "CPUs": logical CPUs on a host, configured vCPUs on a guest, so "Cores" would be wrong on hyperthreaded hosts. It reads thecoresprop the row already passes and adds no per-row work. Ultra-narrow workload presentation belongs in the existing layout and column model: below 360 pixels it keeps five identity/health columns with a 40-percent identity track. It must not add per-row measurement, viewport listeners, or render-time column discovery to the Workloads hot path. Workload runtime badges must consume the shared resource badge presentation helper rather than carrying local neutral chip classes, so Docker, Podman, and future container runtimes keep the same identity tones across Workloads, Docker, and infrastructure surfaces without adding per-row styling branches to the hot path. Workload history adoption signals may be emitted from this surface only through the session-deduplicated, closed activity boundary infrontend-modern/src/api/workloadHistoryActivity.ts. Pointer movement may update the shared in-memory cursor on every frame, but it must never create a per-frame, per-point, or per-row request stream; the scrub milestone is recorded at most once per browser session and contains no guest, cursor, value, route, timing, or browser identity. App-container image cells must use the shared compact image formatter to show the image leaf plus tag/version while preserving the full registry and namespace reference in tooltip/detail metadata, and the image column must stay left-aligned as text; table rows should optimize for container/version scanning, not registry path inspection. Workload backup cells may expose a compact visible freshness label derived from the row's scalarlastBackupvalue, but they must remain presentation-only: no per-row backup API calls, recovery evidence joins, or provider-specific backup fetches belong in the shared workload hot path. Freshness classification must reuse the configured backup thresholds and the sharedgetBackupInfo/workloadGuestPresentationvocabulary: existing stale or overdue backups stay amber. Missing completion evidence is also amber Unknown, not a red no-backup verdict: the current scalar does not establish all-time absence. The compact row must not infer a red failure state from a fixed backup age. When the dedicated Backup column is hidden, supported non-template guests retain one fixed-size shield in the identity cell for every state: green for fresh completed coverage, amber for stale, overdue or unreported completion evidence, and blue for a backup currently running. Positive coverage must not disappear merely because it is healthy. Backup support must be derived from the row's canonical platform scopes before classifying an absent scalar:proxmox-pverows may consume the currentlastBackupcontract, while API-backed providers without that contract, includingvmware-vsphere, render no compact warning and an unavailable cell rather than converting missing evidence into "never backed up." Legacy workload rows without platform metadata retain the Proxmox-compatible behavior at the migration boundary.A backup shield's hover card and dialog name the limit that coloured it through
getWorkloadsGuestBackupAgeRule(Fresh Hours decides amber for stale and overdue alike; overdue also names Stale Hours), read from the same configured thresholds the row already holds, so the row adds no request. The dialog links to the Recovery thresholds (ALERT_BACKUP_THRESHOLDS_PATH).Extend workload drawer derivations and runtime wiring through
frontend-modern/src/components/Workloads/guestDrawerModel.tsandfrontend-modern/src/components/Workloads/useGuestDrawerState.ts, and extend drawer overview rendering throughfrontend-modern/src/components/Workloads/GuestDrawerOverview.tsx, rather than rebuilding canonical guest identity, discovery routing, or drawer-local normalization insidefrontend-modern/src/components/Workloads/GuestDrawer.tsxThe selected resource owns its drawer tab and History range. Regrouping the same resource under a new parent or node retains both even if its drawer remounts. Closing or selecting another resource restores the default view. History continues to consume the explicit backend-owned metrics target. Legacy VM and system-container inputs without that target use the shared native provider-key formatter for History. This compatibility fallback follows the current node and never changes canonical selection identity. Backend targets take precedence over every client-derived fallback. The guest drawer header owns the saved web-interface launch action. It reuses the sharedWebInterfaceLinkand drawer-header action class, so phone and narrow rows keep hiding the adjacent row link for name legibility while the saved service stays one tap from the expanded row. The action renders only for a saved URL and adds no fetch, polling or per-row work.GuestDrawer.test.tsxverifies its target, the unsafe-URL warning, and that opening it does not collapse the drawer. The workloads table header owns the bulk web-link editor. The trigger inWorkloadWebLinksAction.tsxholds only the open flag and unsaved drafts and lazy-loadsWorkloadWebLinksDialog.tsx, whose state (useWorkloadWebLinksState.ts) and derivations (workloadWebLinksModel.ts) stay out of the WorkloadsSurface chunk and run only while the panel is mounted. It edits the guests in the current filtered view through the same guest metadata API and metadata-changed event as the drawer field.workloadGuestMetadataRecord.tsis the single lookup for a row's saved link in both the table and the editor. Panel rows keep unchanged row objects across inventory ticks so an open editor never remounts the input being typed in.WorkloadsSurface.performance.contract.test.tsxpins that wiring. The editor takes a source rather than guests: workload tables pass live guests and metadata so the row model loads only with the panel, while the Docker containers table passes ready rows and lazy-loads the trigger so it does not merge into the chunk the Docker and workloads pages share. Saves run one metadata write per changed link, then dispatch the metadata-changed events together so whole-snapshot listeners coalesce onto one in-flight refetch instead of refetching per link. The drawer overview lazy-loadsGuestPhysicalDisks.tsxunder a localSuspense, so the physical-disk presentation module (diskPresentation.ts) loads with an open agent guest's drawer instead of joining the WorkloadsSurface chunk.WorkloadsSurface.performance.contract.test.tsxpins the dynamic import. Prose and tests call the table chunk the Proxmox and vSphere pages share the WorkloadsSurface chunk, but the build names it after its last module in execution order, andWorkloadsSurface.tsximports only the state's type, sofrontend-modern/.bundlesize.jsontracks it asuseWorkloadsStatewith the same limit. AMISSINGreport only says the name is absent, which a split or a removal also causes: when inspection confirms the same shared chunk merely changed its name, rename the key and leave its baseline alone. Drawer history charts belong tofrontend-modern/src/components/Workloads/GuestDrawerHistory.tsx. A current metric may remain visible in a chart legend only when labelledcurrent; it must never be expanded into synthetic timestamps or a flat line. One stored sample is a visible point at its actual time, with a dated single-observation caption rather than a collecting claim or invented trend. Successful empty reads sayNo stored history in this range. Only metrics-store samples may contribute chart geometry, bounds, or hover inspection, including valid measured zero. Same-source transient failures retain those observations with a warning, but final HTTP 401/403 responses withdraw the batch charts, inspection and its retained remount entries. The shared query cache advances its generation so a pre-denial read cannot restore a former cached range. Access guidance comes from numeric status, never raw transport text; the existing target/range-scoped retry remains focusable while pending, and only a successful read restores history. Runtime denial/cache/recovery controls are inGuestDrawerHistory.refresh.test.tsxandcreateNonSuspendingQuery.test.tsx, with real client 403/503 browser controls inbrowser-tests/history-access.cjs. These are client presentation proofs, not native authorisation or collection. This presentation adds no fetch, point expansion, polling or retention budget. Verify sparse and mixed-series geometry and failed-refresh/source-change behaviour inGuestDrawerHistory.sparse.test.tsx, with rendered phone/desktop coverage inbrowser-tests/history-window.cjs. Current-value legends preserve the same availability semantics as workload rows: the poller's negative unknown-disk sentinel is unavailable and renders-, never a fabricated negative percentage. History cards must let the plot area stretch to the card height instead of pinning the SVG wrapper to a fixed short height, so guest and node drawer history cards do not leave unused card space when headers have different legend heights. The drawer backup card must consume the same configured thresholds and shared freshness presentation as the workload row. Drawer-local 7-day, 30-day, or other fixed color cutoffs are forbidden because they can contradict both user policy and the table beside the drawer.Extend workload disk-list derivations and fallback runtime wiring through
frontend-modern/src/components/Workloads/diskListModel.tsandfrontend-modern/src/components/Workloads/useDiskListState.tsrather than rebuilding usage math, progress-state mapping, or tooltip fallback logic insidefrontend-modern/src/components/Workloads/DiskList.tsxWorkload drawer filesystem rows must consume the same canonical disk presentation. Known utilization may supply bounded progress metadata to the shared detail-row primitive while retaining percentage, capacity, and type text; unknown usage must omit the bar instead of fabricating 0%. Disk rows carrying the poller's negative unknown-usage sentinel (config-only LXC mounts, #1477) must be excluded from usage math, summary percents, and bar/mini-slot rendering instackedDiskBarModel.ts, and rendered without a fabricated percent indiskListModel.ts; they stay listed in tooltips and the drawer with capacity only. Disk normalization infrontend-modern/src/utils/format.tsmust preserve the sentinel instead of recomputing a percent from a zero used value, and per-machine max-disk derivations must skip sentinel rows rather than surface them as 0% or negative percents.Extend mounted workload guest metadata lifetime, metadata refresh, org-scope switching, and optimistic custom-URL updates through
frontend-modern/src/components/Workloads/useWorkloadGuestMetadataState.tsrather than rebuilding workload-local storage caches, event listeners, or guest metadata API wiring insidefrontend-modern/src/components/Workloads/useWorkloadsState.tsA changed set of native metadata keys refreshes that cache after accepted inventory publication. Metric-only updates do not refetch it. Superseded responses cannot overwrite a newer refresh, confirmed edit or tenant scope.Extend workload deep-link selection and hovered-row continuity semantics through
frontend-modern/src/components/Workloads/workloadSelectionModel.ts, and extend table scroll preservation plus reactive selection state throughfrontend-modern/src/components/Workloads/useWorkloadSelectionState.ts, rather than rebuilding resource-query parsing, selected-row scroll pinning, or hovered-row invalidation insidefrontend-modern/src/components/Workloads/useWorkloadsState.ts. Every workload row and selection key is the exact unifiedResource.id. Route-driven selection lets the shared focus bridge reveal its destination. Initial viewport measurement retains the selection window and still measures row and detail geometry. Scroll and resize events remain authoritative for subsequent window movement. Local row clicks preserve the existing viewport, and that preservation must not undo a route reveal. Historical references use the API contract's existing server resolver and never a client-reconstructed node or pod identity.Extend workload route ownership, route-driven option catalogs, and toolbar filter config through
frontend-modern/src/components/Workloads/useWorkloadRouteState.ts,frontend-modern/src/components/Workloads/useWorkloadFilterOptions.ts,frontend-modern/src/components/Workloads/workloadRouteModel.ts,frontend-modern/src/components/Workloads/workloadFilterConfigModel.ts, andfrontend-modern/src/components/Workloads/workloadRouteStateModel.ts, and extend query-param synchronization plus managed workload URL semantics throughfrontend-modern/src/components/Workloads/useWorkloadUrlSync.tsandfrontend-modern/src/components/Workloads/workloadUrlSyncModel.ts, rather than rebuilding route sync, alias parsing, option derivation, toolbar callback/config wiring, reset policy, node-selection compatibility rules, param precedence, or managed workload URLs insidefrontend-modern/src/components/Workloads/useWorkloadsState.tsWorkloads route host scopes must resolve throughfrontend-modern/src/components/Workloads/workloadTopology.ts: app-container scopes use the canonical Docker/runtime host id before host labels or node fallbacks, while VM and system-container scopes keep the instance-node key. Routeagentfilters and option catalogs must consume that shared scope so Infrastructure related-workload links cannot drift from Workloads filtering. Workloads route-state writes must preserve the owning platform/runtime pathname instead of rebuilding the retired aggregate/workloadsroute.useWorkloadRouteState.tssupplies the route-enabled boundary, whileuseWorkloadUrlSync.tsandworkloadUrlSyncModel.tsmay serialize canonical workload query params only after the embedding surface has opted into route state. Embedded surfaces that are table-only or drawer-local must stay route-state inert so the hot path does not schedule app-shell navigations or revive aggregate-path redirects. The user-facing Workloads Type filter must expose the stable operator bucketsAll,VMs,Containers, andPods. The internalsystem-container/app-containerdistinction may continue to parse for legacy deep links and exact runtime scopes, but broad container filtering must resolve through shared workload view-mode helpers so route sync, platform option derivation, row filtering, and column defaults do not duplicate hot-path type matching.Extend grouped workload derivation, summary fallbacks, and grouped/windowed table presentation through
frontend-modern/src/components/Workloads/useWorkloadsDerivedState.ts, extend viewport-driven grouped table synchronization throughfrontend-modern/src/components/Workloads/useWorkloadViewportSync.ts, and extend node parent mapping throughfrontend-modern/src/components/Workloads/workloadTopology.ts, rather than rebuilding grouped selectors, summary snapshot math, scroll listeners, or topology lookups insidefrontend-modern/src/components/Workloads/useWorkloadsState.tsExtend workload control defaults, persistent view preferences, keyboard reset behavior, column-visibility ownership, and tag-search flow through
frontend-modern/src/components/Workloads/useWorkloadsControlsState.tsandfrontend-modern/src/components/Workloads/workloadsFilterModel.tsrather than rebuilding sort/search/grouping state, reset drift, or column-toggle plumbing insidefrontend-modern/src/components/Workloads/useWorkloadsState.tsManual workload column sizing stays dormant until an operator drags a header edge at tablet, compact, or wide layout. The first drag snapshots only the rendered header widths, seeds newly revealed selected columns from their canonical definitions, and publishes one bounded width map at pointer release; it must not measure rows, write storage per pointer move, add global pointer listeners, or change the default responsive no-horizontal-scroll path. Persisted widths are scoped with the owning column-visibility preference. A validatedcolsroute parameter may own a shareable ordered layout without overwriting that viewer preference; unknown ids, invalid widths, oversized lists, and phone/mobile layouts must fail closed to the ordinary responsive table. A platform-owned memory comparison preference may be supplied as an accessor touseWorkloadsState. Host-relative sorting must reuse the bounded parent-node map fromworkloadTopology.ts; it must not scan the node inventory per comparator call or resolve topology independently in each row. Platform-owned Workloads surfaces may scope column visibility preferences when a shared workload metric has platform-specific meaning. Docker container surfaces must force theapp-containercolumn profile, suppress the mixed-workload Type filter, show runtime identity in a dedicatedRuntimecolumn immediately afterName, keep container image references image-only, hide writable-layerdiskand generictagsby default, label the optional writable-layer toggle asWritable layer, and label container context asHost. Grouped Docker platform rows represent the host boundary, so platform-owned host identity badges such asLXCorUnraidbelong on the group row instead of the workload plural label.netIoanddiskIoare valid Docker runtime container columns, but they must only be default-visible when the current Docker resource snapshot includes corresponding network or block-I/O telemetry; otherwise they stay available as column-picker options without creating blank default columns. Non-Docker Workloads surfaces keep the globaldiskdefault unless they declare their own scoped contract. A scoped default-hide only reaches users who have no saved preference for that storage scope, so every column a scope newly default-hides must also be listed in thedefaultHiddenMigrationIdsargumentuseWorkloadsControlsStatepasses touseColumnVisibility. That list is the one-time retirement path for stale preferences; without it the column stays visible forever for anyone who had already touched the Columns control on that page. The migration only fires where the id is already in that scope's effective default-hidden set, and it records a marker so a column the user deliberately restores is never re-hidden. vSphere previously default-hidtagsas well, because the adapter filledResource.Tagswith fixed provenance strings and never read vCenter's own tag/category system. That stopgap is retired:internal/vmware/client_tags.goreads the CIS tagging service andinternal/vmware/provider.goprojects the result onto both the flatResource.Tagskeyword set and the canonicalVMware.Tagsfacet, sotagsis default-visible on every workload scope again. The two tag surfaces have distinct contracts and must not be collapsed.Resource.Tagsis the flat keyword set that resource search, the?tags=resources filter, and saved report-schedule tag filters read, so the adapter's provenance strings stay in it and real vCenter labels are appended, never substituted.VMware.Tagscarries only the operator's own tags with their vCenter category, and is what per-row presentation reads:useWorkloads.tsmapsWorkloadGuest.tagsfrom that facet for any resource carrying VMware metadata, including the empty case, so an untagged vSphere VM renders an empty cell rather than falling back to six identical provenance dots. A future adapter that mixes provenance intoResource.Tagsowes the same facet split rather than a column hide. Tag reads are optional enrichment on the collection hot path and are bounded accordingly. Associations come from one batchedlist-attached-tags-on-objectsPOST per bounded object batch, never a per-object request; tag and category names resolve at most once per client TTL through the client-scoped catalog, so a steady-state refresh of a tagged estate costs only the association reads. A vCenter without the tagging service, or an account without the tag read privilege, must degrade into anInventoryEnrichmentIssueon thetagsstage and leave the inventory untagged; it must never fail the refresh. Column visibility that depends on whether data exists at all is data-gated rather than preference-gated.availabilityis the current case: the cell renders nothing until an availability check is linked to that workload, souseWorkloadsStatepasses ahasAvailabilityDataaccessor anduseWorkloadsControlsStatedrops the column fromrelevantColumnswhile it is false. That path must never write a hidden preference, because doing so would overwrite the user's own choice the moment the first check appears; the column returns by itself when data arrives. The accessor reads the unfiltered guest set so narrowing the table by search or status never removes the column.Extend workload filter active-count, reset semantics, and mobile toolbar state through
frontend-modern/src/components/Workloads/workloadsFilterModel.ts(defaults,countActiveWorkloadsFilters,hasActiveWorkloadsFilters) rather than rebuilding filter-local state insidefrontend-modern/src/components/Workloads/WorkloadsFilter.tsx. Workloads filter presentation now composes the sharedFilterBar(frontend-modern/src/components/shared/FilterBar/FilterBar.tsx) with a per-pageFilterDef[]catalog rather than the legacyPageControlsstructured control deck. High-frequency Type and Status filters stay in that catalog but render as inline compact segmented controls (inline: true), while longer or dynamic scope filters continue through the "+ Filter" menu and chip popovers. The Add filter control inherits FilterBar's compact accessible-only label by default instead of paying for a page-local labelled-field shell. Durable presentation controls pass only their panel content throughFilterBar.viewOptions; the shared FilterBar owns the single View trigger and popover. Contextual actions useleadingControls, while frequently changed analytical orientation such as the active trend range usestrailingControls. In kiosk mode the sharedFilterBarkeeps that toolbar unmounted, so a wall display mounts none of the bar's search field, suggestion list, View popover or type-to-search listener; overview pages must not add their own kiosk check around it. Workload autocomplete must project from the same unfiltered guest inventory and the same search-candidate helper used by the workload predicate. The projection includes workload identity plus deduplicated node, Docker host, Kubernetes context, cluster, and namespace scopes so Proxmox, vSphere, Docker, and Kubernetes embedded workload surfaces all inherit the same inline completion and multi-term pill behavior. Committed comma-separated workload terms, including recognized abbreviated queries, retain the existing inclusive OR semantics; arbitrary unmatched draft text remains the existing workload free-text query. On the Proxmox overview, those workload terms filter only the workload table. The node summary retains the real already-loaded node inventory so a workload query can never produce or appear to produce the estate-empty "No Proxmox VE nodes" state. Desktop filter/action wrap alignment must remain a pure shared flex-layout contract: the parent distributes the two rails while they fit and a wrapped action rail starts at the leading edge. It must not add resize observers, viewport listeners, layout signals, or page-local measurement branches. Large-estate option counts must reuse one memoized stats pass over the unfiltered workload snapshot fromuseWorkloadsState; type and status options read that bounded projection and must not rescan resources during render or issue a separate summary request. Adjacent table headers must consume the page-owned visibility accessor rather than mount another persistent-signal owner for the same preference. Workload filter option semantics stay workload-owned, but FilterBar chip presentation is frontend-primitives-owned: status and runtime leading dots must usefilterChipStatusDotrather than workload-local span factories. WorkloadsFilter remains the shared interaction shell only. The Proxmox and vSphere overviews, the pages that embed a Workloads surface, pass their own aria label, search placeholder, empty-search copy, and status option labels straight to their page-owned toolbar, and pass forced platform (and, for vSphere, forced view-mode) context into the shared workload state, so each page exposes filters for the objects visible on that page rather than generic mixed-workload labels.Extend threshold-slider value-position math, title/label derivation, and drag scroll-lock runtime through
frontend-modern/src/components/Workloads/thresholdSliderModel.tsandfrontend-modern/src/components/Workloads/useThresholdSliderState.tsrather than rebuilding slider-local state and pointer lifecycle insidefrontend-modern/src/components/Workloads/ThresholdSlider.tsxExtend stacked disk-bar capacity math, segment/tooltip derivation, summary-strategy selection, and resize-observer runtime through
frontend-modern/src/components/Workloads/stackedDiskBarModel.tsandfrontend-modern/src/components/Workloads/useStackedDiskBarState.tsrather than rebuilding disk-bar-local state, mode branching, and tooltip shaping insidefrontend-modern/src/components/Workloads/StackedDiskBar.tsx. Compact multi-disk rows default to same-height per-disk lanes so each filesystem has its own visible usage bar without implying the whole host disk state is one max or aggregate percentage; explicitmode="stacked"remains the capacity-contribution stack for callers that intentionally need that presentation, and explicit aggregate callers may choose total-capacity or worst-disk summaries when the owning table's operator job needs one compact risk signal, while tooltips continue to carry the full per-disk breakdown.Extend stacked memory-bar capacity math, balloon/swap derivation, and resize-observer runtime through
frontend-modern/src/components/Workloads/stackedMemoryBarModel.tsandfrontend-modern/src/components/Workloads/useStackedMemoryBarState.tsrather than rebuilding memory-bar-local state, tooltip shaping, and label-fit logic insidefrontend-modern/src/components/Workloads/StackedMemoryBar.tsxDirect used-versus-total comparisons may provide a comparison label and a separate severity percentage. This lets Proxmox guest rows draw used bytes against the host total while retaining guest-allocation threshold meaning. Host-relative mode must not relabel guest-relative history as host history. Proxmox guest history records rawmemoryusedbyte samples alongside the guest-relative percentage, and the workload table derives every host-share trend point from those bytes and the bounded parent-node total. If raw-byte history is unavailable, the trend remains empty rather than substituting the guest-relative percentage.Extend metric-bar width, label-fit logic, and resize-observer runtime through
frontend-modern/src/components/Workloads/metricBarModel.tsandfrontend-modern/src/components/Workloads/useMetricBarState.tsrather than rebuilding metric-local state and threshold mapping insidefrontend-modern/src/components/Workloads/MetricBar.tsxExtend enhanced CPU bar usage/anomaly presentation and tooltip runtime through
frontend-modern/src/components/Workloads/enhancedCpuBarModel.tsandfrontend-modern/src/components/Workloads/useEnhancedCPUBarState.tsrather than rebuilding tooltip-local state and CPU-threshold formatting insidefrontend-modern/src/components/Workloads/EnhancedCPUBar.tsxWorkload and unified-resource metric bars may accept resolved alert display threshold props, but they must not choose alert thresholds locally. Scope and override resolution belongs to the alerts-owned activation store andfrontend-modern/src/utils/metricThresholds.ts, while the hot-path bar models remain presentation-only consumers. Metric-fill motion for these hot-path bars must stay CSS-owned and transform-free for layout stability:StackedDiskBar,StackedMemoryBar, andEnhancedCPUBarmay attach the shared.metric-fill-geometryand.metric-fill-dividerclasses to existing SVG geometry, but they must not add per-row timers, animation signals, measurement loops, or page-local motion state. The global frontend primitive CSS owns the easing, color/geometry transition timing, andprefers-reduced-motionfallback. Numeric percentage and small-count readouts in the same bars or summary strips must use the sharedAnimatedNumberprimitive, whose state owner batches active animations through one frame loop and snaps underprefers-reduced-motion; hot-path Workloads components must not re-create independent number animation loops.Extend grouped workload row windowing, reveal-index clamping, overscan math, and per-group visible-slice derivation through
frontend-modern/src/components/Workloads/useGroupedTableWindowing.ts, and extend viewport event wiring throughfrontend-modern/src/components/Workloads/useWorkloadViewportSync.tsrather than rebuilding scroll handlers, mounted-row budgets, viewport listeners, or group-slice math insidefrontend-modern/src/components/Workloads/useWorkloadsDerivedState.tsViewport sync may select an ancestor when it explicitly ownsoverflow-y: scroll, including during the mount frame before children contribute their final height, or when anauto/overlayancestor has a real vertical scroll range. A horizontally scrollable table shell may computeoverflow-y: autothrough CSS overflow-axis coupling, but when its scroll height equals its client height it is not the workload viewport owner and must be skipped. The listener must continue outward to the bounded app scroll container, or fall back to the window, so scrolling a large mobile estate advances the mounted row window and removes the final bottom spacer when the operator reaches the end. Grouped virtualization must represent every node header in exactly one place: a leading spacer, the mounted window, or a trailing spacer. The inverse offset-to-guest calculation must use that same guest-row plus group-header geometry, and a partially mounted group must not reinsert its already-spaced header. This keeps total table height stable while groups cross the virtual window and prevents the visible estate from bumping by a header row during continuous scrolling. Virtualization must remain visually invisible under rapid wheel and trackpad input, and must never block that input. The windowing owner keeps a symmetric runway and tops up only the depleted side, in dead-band-sized batches: a mutation frame costs a near-constant style/layout pass on the mounted table whatever the shift size, so batching keeps most scroll frames compositor-only while the dead-band absorbs sub-row scroll jitter; only a viewport that leaves the mounted window entirely re-centers it in one jump. Wheel viewport sync may prewarm that runway with the projected delta. Every windowed surface must route listener lifecycle, scroll-ancestor selection, and wheel-delta normalization throughfrontend-modern/src/components/shared/windowedPageScroll.ts. Every listener that shared owner registers must be passive — the compositor must never wait on windowing work — and it must not register a touch listener: phone gestures remain compositor-native and advance the keyed runway only through the passive native scroll event after the page moves. Group and guest iteration must remain keyed so overlapping rows survive window shifts rather than rebinding every mounted row. This anticipation extends to platform rows rebuilt by live snapshots: a unique logical id or explicit key extractor owns one stable wrapper and independently reconciled row store. Sorting may reorder those wrappers but must not reconcile one row's nested value through another row, duplicate rendered rows, or remount row-local drawer and input state. Missing or duplicate keys fall back to reference-keyed rendering. This anticipation must preserve the existing bounded mounted-row budget; rendering the whole estate or adding per-row observers, timers, or scroll listeners is forbidden. That same viewport-sync owner may expose one passive app-shell scroll position signal and a smooth back-to-top action for the Workloads surface. The control must remain absent near the top, sit above the mobile navigation when present, and reuse the existing viewport listener rather than adding a second page-local scroll observer or any per-row work.Extend workload table shell ownership through
frontend-modern/src/components/Workloads/WorkloadTableHeader.tsxandfrontend-modern/src/components/Workloads/WorkloadPanel.tsxrather than rebuilding sortable header markup, grouped node rows, row expansion, or guest-drawer rendering insidefrontend-modern/src/components/Workloads/WorkloadsTable.tsxPlatform-owned workload titles must enter the Workloads surface through its optionaltableTitleslot and render from the sharedTableCardHeaderinside both the populated and filtered-empty table card. A platform page must not place a parallel floating title above its filters; the title/count band belongs to the same framed table surface as the rows.WorkloadPanelrenders only the guest drawer. Grouped host rows are static dividers: no click handler, hover preview, group pin, or inline node drawer. They keepdata-summary-group-idso a click on a divider does not clear an open guest drawer. Host details open from the platform page's own hosts table (ProxmoxNodesTablemountsNodeDrawer;VsphereHostsTableowns its detail row). The formergroupNodeDrawerModeoption defaulted to an inline grouped-row drawer that only the retired standalone Workloads page used; both production mounts passeddisabled, so the option, the inlineNodeDrawermount and the Workloads group hover/pin scope were removed. Compact icon headers insideWorkloadTableHeader.tsxmay stay visually dense for responsive workload tables, but the icon must be decorative and the column label must remain present through ansr-onlylabel so the header row exposes names such as Uptime, Image, Context, and Node instead of collapsing to only the visible text columns. Info/ID headers and cells must center as compact identifiers beside the workload Type column, while compound Net I/O and Disk I/O headers center over their paired directional values. Header alignment exceptions belong inWorkloadTableHeader.tsx; page CSS and duplicated platform table schemas must not reposition them. Sort-direction presentation must remain a constant-time shared helper call: inactive headers render no repeated marker, while the active header consumesfrontend-modern/src/components/shared/tableSortPresentation.ts. It must not add per-column state, measurement, or listeners to the workload hot path. Inline detail table rows rendered from workload or infrastructure hot paths must compose the frontend-primitives-ownedInlineDetailTableRowshell. Performance ownership remains on expansion state, mounted-row budgets, viewport sync, and reveal timing; it must not fork the repeatedTableRow/TableCell/ surface-alt / click-containment shell inside workload, infrastructure, or platform table render paths. Bounded platform tables use keyed measured item heights, including their native inline details, when mapping scroll pixels to their mounted runway and spacers. Reading a tall drawer must keep its owner mounted without disabling windowing or increasing the row budget. Measurements update on resize and row mutation rather than adding per-row layout reads to each scroll event. The mountedPlatformWindowedRows.test.tsxregression covers retained editing state inside a tall drawer and its offscreen scroll extent. Pod-mode workload filters must use the workload-ownedK8s cluster/All K8s clusterslabels for Kubernetes context selection, rather than a genericClusterlabel that can be confused with Proxmox cluster terminology on adjacent infrastructure surfaces, and all workload default filter-option labels must flow through the shared all-option presentation helper via the workload filter config model instead of the hot-path shell hard-coding localAll ...strings.Keep public self-hosted checkout handoff endpoints on the adjacent commercial/router boundary, not the summary-chart hot path. When
internal/api/router.go,internal/api/router_routes_cloud.go, orinternal/api/licensing_handlers.goevolve/auth/license-purchase-startor/auth/license-purchase-activate, performance work may keep those routes cheap and redirect-safe, but it must not treat purchase-return callbacks as chart-transport hot paths, fold summary-card caching into commercial callback behavior, or reuse those public auth endpoints as a justification for relaxing the protected history payload budgets that belong elsewhere. That same shared callback path must also keep install-version attribution O(1):internal/api/router.gomay pass the cached processserverVersionintointernal/api/licensing_handlers.go, but performance work must not add filesystem reads, GitHub release lookups, or other per-request version discovery on activation, legacy exchange, or grant-refresh traffic just to stamp authenticated install metadata.Keep retired dashboard summary-chart paths absent rather than replacing them with new hot-path fetches. Node rows that draw infrastructure history must read the canonical infrastructure-summary route owned by
internal/api/router_routes_monitoring.goandinternal/api/router.go, today throughfrontend-modern/src/components/Workloads/useWorkloadTableMetricHistory.ts; the storage pool Growth column must read through the storage summary cache owners (useStorageSummaryCharts.tsandstorageSummaryCache.ts). The authenticated root path infrontend-modern/src/App.tsxmust not prewarm a deleted dashboard-specific overview, trend, or summary transport. The same hot path must keep mock/demo chart identity on the canonical unified snapshot too: when mock mode is enabled,internal/api/router.gomay not read/api/charts,/api/charts/infrastructure, or/api/storage-chartsfrom the live store-backedReadStateif that would omit provider-backed resources already present in the canonical mock unified-resource graph. The same app-shell bootstrap boundary now also governs demo-hidden organization context. When presentation policy suppresses organization chrome,frontend-modern/src/useAppRuntimeState.tsmay retain a hidden default org scope for route-safe API calls, but it must skip browser org list hydration and must not turn dashboard landing onfrontend-modern/src/App.tsxinto protected pre-auth churn. On public login entrypoints (/and/login), if auth is configured but the browser has no local auth hint yet, the app shell must stop at the login-needed state instead of probing/api/stateand paying an avoidable401; once a local-login hint exists or the operator is on a protected route, that shared state probe remains the canonical runtime detector. External dashboards and scripts that only need fleet counters must use/api/state/summary, not the full/api/statehydrate. That summary route must remain bounded to aggregate counts and Docker host rollups, with no resource arrays, metrics history, connected-infrastructure list, or chart payloads added to the response. That same app-shell performance boundary treats global commercial banners as non-hot-path UI. Retired self-hosted trial or managed-model acquisition surfaces must not be reintroduced intofrontend-modern/src/App.tsxas always-mounted chrome that preloads commercial posture or adds route-global render work to ordinary monitoring sessions. The authenticated app shell must also avoid background commercial-posture bootstrap whilepresentationPolicy.hideUpgradesuppresses upgrade prompts. Cloud signup retirement follows the same route-table rule:/cloudand/cloud/signupmust stay absent from the ordinary self-hosted app shell rather than being replaced with public-route wrappers that preload checkout or hosted-account state. Invitation accept/revoke and other org-membership changes follow that same hot-path contract:frontend-modern/src/useAppRuntimeState.tsmay reload the org list from the sharedorganizations_changedevent, but that refresh must stay event-driven and route-safe rather than expanding into a second full app bootstrap, a pre-auth org probe, or a deleted dashboard-route prewarm that duplicates the canonical summary fetch path or expands into another summary-fetch or org-bootstrap hot path. The same protected hot path also owns Patrol route canonicalization:/patrolis canonical and retired/aibrowser entry points must stay unregistered rather than mounting a second Patrol shell or duplicate app bootstrap work. The shell-level Patrol open-work badge may refresh active Patrol findings and live approvals fromfrontend-modern/src/useAppRuntimeState.tsafter authentication on a bounded 30-second interval, but it must stay on those existing content-safe endpoints, avoid resolved-history expansion, avoid resource or chart hydration, and avoid adding another route preload or commercial/bootstrap fetch to ordinary monitoring sessions. The same rule now applies to the retired/operationssurface:/operations/*browser entry points must stay unregistered rather than mounting a second diagnostics/reporting shell or paying extra bootstrap work before the canonical Settings URL takes over. Authenticated/loginrecovery belongs to that same app-shell boundary:frontend-modern/src/App.tsxmust redirect that route back to the canonical Infrastructure landing path instead of leaving the freshly authenticated shell on a not-found page that immediately pays another cold bootstrap. App-shell route module preloading belongs tofrontend-modern/src/routing/routePreload.tsand the delayed authenticated preload call infrontend-modern/src/App.tsx.frontend-modern/src/useAppRuntimeState.tsmust not keep page-local dynamic imports or a second route-preload cache, because the runtime bootstrap already owns state, chart cache warming, org hydration, and health probing. The delayed preload set is limited to the lightweight global Actions review route. Alerts and platform routes load from operator intent because their larger module graphs should not compile behind the current destination; Patrol, Settings, and alternate platform modules remain lazy for the same phone-startup reason. The same protected hot path now also owns proof harness steadiness. Store-backed chart SLO and benchmark helpers inpkg/metrics/store_slo_test.go,internal/api/router_bench_test.go,internal/api/slo_bench_test.go, andinternal/monitoring/monitor_metrics_slo_test.gomust wait for deferred metrics-store startup maintenance to quiesce before timing steady-state reads, so one-time retention or auto-vacuum cleanup does not masquerade as summary-route or chart-batch regression latency.BenchmarkHandleWorkloadCharts_StoreBackedseparates cached handler work through a counting writer, fresh-service store-backed computation, and a fully drained loopback HTTP exchange. Keep those measurement boundaries explicit. A payload-retaining test recorder must not stand in for cached handler cost, and warm response-cache hits must not stand in for query latency. Fresh services do not clear SQLite or OS caches. Preserve old failed comparisons across harness changes and establish new baselines rather than claiming that renamed cases prove a runtime speedup.TestSLO_WorkloadChartsmust similarly use a fresh service per timed sample so its existing query-latency budgets cannot be satisfied solely by a response-cache hit after the sanity request. Controlled idle-worker proofs setPULSE_STRICT_LOCAL_API_SLOS=trueto enforce the existing 90 ms local budget, including on hosted runners, without changing their actual runner identity or accepting a skipped test. Ordinary hosted execution retains its 550 ms envelope. The optional Build and Test chart-latency job compiles a fixed candidate executable before measuring, requires observed idle capacity, and retains executable hashes, raw percentiles, and CPU/guest/swap evidence before, during and after measurement. It executes the candidate directly; relative baseline comparisons belong to the separate paired benchmark job. A baseline failure cannot suppress the candidate's absolute check. The proof requires quiet I/O before starting; the measured process's own I/O remains part of its latency, with I/O wait and process I/O counters retained for diagnosis. Competing CPU, guest/steal or swap activity invalidates the measurement, and process CPU counters identify the largest observed background users. On Actions, exactly oneprovjobd<digits>process bounded to one logical CPU plus one percentage point of sampling skew is normal hosted overhead. Keep it inside the absolute latency, while retaining its raw CPU and a separate attribution. Apply the unchanged 10% limit to all remaining observed/unattributed CPU; multiple/over-bound agents or missing hosted/CPU context get no exception. Guest/steal and swap limits remain unconditional. Real budget failures on this envelope must fail, not become neutral; historical classifications are evidence, not retroactive qualification. Only a passing explicit 90 ms report on valid capacity establishes the local SLO. The manualpulse-enterprise:.github/workflows/verify-workload-chart-latency.ymlreuses that same public proof on the existing disposablepulse-ci-vm-largerunner. It checks out literal public Pulsemainand verifies the expected full commit and clean tracked source before toolchain or source execution. A moving main fails closed. The runner label alone establishes no capacity claim: the unchanged idle admission and concurrent observations decide whether its one strict measurement is usable. A separate three-second CPU attribution benchmark never retries or replaces the SLO result. Source, control, toolchain and executable identities, raw capacity intervals and CPU attribution remain in the job log. Core dumps are disabled and no raw diagnostics artifact or publishing permission is added. The privatescripts/release_latency_gate_test.pyexecutes the actual workflow source guard against valid, mismatched and modified fixture checkouts. Operation is documented inpulse-enterprise:scripts/workload-chart-latency-proof.md. This focused route changes no existing complete release comparison, scheduler policy, source gate or release gate. L10's broader performance follow-up remains open until its own evidence supports closure. This evidence does not replace required source checks or release gates.Keep the retired dashboard overview route absent from the protected hot path.
frontend-modern/src/pages/Dashboard.tsx,frontend-modern/src/hooks/useDashboardOverview.ts, and/api/resources/dashboard-summarymust not be restored as compatibility surfaces for KPI cards, problem-resource rows, or top-infrastructure identities. New summary cards must live on their owning product route and prove their data path there.Keep globally mounted consumers off deleted dashboard summary state. Globally mounted shell helpers must read the live websocket snapshot or the existing unified-resource cache rather than forcing root navigation to pay for a replacement dashboard overview transport, and must not grow one-off inline strings or extra state branches on that hot path. The browser Assistant drawer this obligation was written for was retired on 2026-10-22, so no chat shell stays mounted in the app shell any more; a future globally mounted AI surface inherits this same budget, including the rule that it may not shrink a primary operating surface below a workable width.
Keep the retired dashboard page-header path absent from the compact hot path. New page headers must stay pure presentation on their owning route and must not introduce a second data load, widen suspense ownership, or force deleted dashboard summaries back through full-resource fetch paths just to satisfy page chrome.
Keep the Workloads table CSP-safe on the hot path. The renderers in
frontend-modern/src/components/Workloads/WorkloadsTable.tsx,frontend-modern/src/components/Workloads/WorkloadTableHeader.tsx,frontend-modern/src/components/Workloads/GuestRow.tsx,frontend-modern/src/components/Workloads/EnhancedCPUBar.tsx,frontend-modern/src/components/Workloads/StackedMemoryBar.tsx, andfrontend-modern/src/components/Workloads/StackedDiskBar.tsxmay still use shared models plus SVG or HTML attributes for widths, offsets, and colors, but they must not fall back to inlinestyle=attributes on the public shell just to express virtualization spacers, alert accents, or workload metric bars.Keep the unified connections ledger off the polling hot path. Changes to
internal/api/router.gothat register/api/connectionsand/api/connections/probemust keep those routes off the monitoring fan-out budget:GET /api/connectionsmust resolve purely frommonitoring.Monitor.SchedulerHealth()plus existing per-type config stores without triggering any live network probes, and blocked metadata, link-local, multicast, and unspecified probe destinations must be rejected during request validation so the route does not spend dial budget or become a side-channel scanner against forbidden targets. The probe path must also keep the validated destination pinned through the restricted outbound client so DNS rebinding cannot swap targets after admission, andPOST /api/connections/probemust remain bounded at 3s total / 2s dial / 1s read with at most 5 concurrent fingerprints so the probe endpoint cannot be repurposed into a slow-leak scanner that starves the dashboard hot path. Platform-first top-level pages named by the frontend-primitives-owned IA contract must remain in the app-shell route preload registry.frontend-modern/src/routing/routePreload.tscarries aROUTE_PRELOADERSentry per supported platform so first-paint navigation between visible shell tabs stays warm and does not depend on a cold dynamic import after the user clicks. New supported platform families must extend that registry rather than skipping the preload hot path; presentation-only or retired routes, including the top-level Workloads, Storage, Recovery, or legacy Infrastructure aggregate routes, must not be registered. Preload entries may warm route modules, but they must not trigger additional unfiltered resource fetches, metrics-history fan-out, recovery-history fan-out, storage scans, or provider scans before the destination page owns its normal data query. The preload order is a frontend-primitives hot-path hint; performance owns preload cost and side-effect boundaries, not Standalone landing eligibility. The authenticated app shell must not separately prewarm retired Infrastructure or Workloads chart caches as a generic side effect; those chart fetches belong to the route that renders the chart surface or to the scoped table metric-history interaction that requested them. Platform landing should stay route-module warm and data-light until the selected platform page owns its normal resource/table query. Two platform pages embedWorkloadsSurface: the Proxmox and vSphere Overview tabs (frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsxandfrontend-modern/src/features/vmware/VmwarePageSurface.tsx). Each page builds the workloads state itself withuseWorkloadsState, renders the one sharedWorkloadsFiltertoolbar (search, status filter, a type filter that vSphere suppresses, and the View options for grouping, metric display, and columns on the sharedFilterBar) from that state, directly above the surface, and hands the same state toWorkloadsSurfacethrough itsstateprop. The surface renders no filter row of its own, so the page never stacks two toolbars wired to one state. Thatstateprop is required and the surface never builds a workloads state itself: it accepts onlystateplus presentation props (forcedPlatform,forcedViewMode, the empty-state title and description, andtableTitle). EveryuseWorkloadsStateoption (WorkloadsStateOptionsinuseWorkloadsState.ts) belongs on the page's own state call. The state always runs its workloads query and takes no enable flag and novms,containersornodesarrays: guests and Proxmox nodes come from the canonical resource snapshot the page passes (or, with none, from the state's own resource queries), so no caller can supply a second inventory that diverges from it. The options type rejects them on either page, andWorkloadsSurface.performance.contract.test.tsxandProxmoxPageSurface.contract.test.tsxpin their absence from the hook and the Proxmox call. The surface repeats onlyforcedPlatformandforcedViewModeand declares none of the hook-only options, so a mount that names one as an attribute fails type-checking. It imports only the state's type, so it can never become a second state owner on the page. Proxmox also passes that state's search, plus its page-owned metric mode and history range, to the nodes table above the guests, so one toolbar drives both tables.WorkloadsSurfacehas notableOnlymode, no toolbar prop, and no dashboard cards or summary strip to hide: it renders the workloads table or an empty-state table card, plus a Back to top control while scrolled. The platform scope flows throughforcedPlatformas a typed page input touseWorkloadsState, the toolbar, and the surface.suppressPlatformFilter: truemakes the state expose no Platform filter config, so a platform the page already fixed never counts as an operator filter in the surface's filtered-empty state, and both pages passplatformFilter={undefined}to the toolbar, so the user never sees the locked platform as a removable chip.
Navigation resolves from a bounded request
The app shell MUST resolve which platform pages exist from the
platformAdmission facet on the canonical resource aggregations, which is
answerable from a one-resource request, rather than by classifying an
estate-sized runtime payload. Admission cost MUST NOT scale with estate size:
a larger estate makes the runtime payload slower to build and transfer, and
navigation must not wait on it. Live runtime state remains authoritative for
navigation once it has arrived.
Admission refresh is event-driven
Platform admission is refreshed on the events that can invalidate it, an organization switch and a websocket reconnect, and MUST NOT be polled. Live runtime state is authoritative once it arrives and already tracks the estate, so a steady-state session makes no admission requests at all.
The shell bootstrap is estate-independent
The authenticated shell bootstrap MUST NOT fetch an estate-sized payload. It
probes the session with /api/state/summary and resolves navigation from the
platform admission facet, so sign-in cost does not scale with estate size and
the websocket is not held behind a full-state build.
/api/state remains the recovery path for a snapshot too large for a
websocket frame and MUST keep returning the full resource set. It is not a
bootstrap surface, and the shell MUST NOT call it.
Forbidden Paths
- Speculative micro-optimizations without evidence
- New N+1 data loading paths on dashboard/resource views
- Hot-path query changes without updating plan or SLO guardrails
Completion Obligations
Command-channel routing must remain bounded by tenant-scoped session keys. Router consumers may enumerate only the current organization and must resolve token or hostname aliases to exactly one revalidated live connection before dispatch. Reconnect replacement and token invalidation remove the indexed session without fleet-wide retry loops, and pending request correlation uses the same scoped key so concurrent tenants can reuse local agent/request IDs without contention or cross-delivery.
- Update benchmarks, SLOs, or query-plan tests when hot-path behavior changes
- Update this contract when a new protected hot path is adopted
- Route runtime changes through the explicit performance proof policies in
registry.json; default fallback proof routing is not allowed - Record the evidence source for any claimed performance improvement
- Keep entitlement and runtime capability lookups on shared router/settings
hot paths bounded and request-local. AI control-level clamping in
internal/api/router.gomay consult the already-wired runtime entitlement service, but it must not add broad persistence scans, metrics fan-out, or external network calls to protected settings or chat request paths. - Initialize and cache each organization RBAC manager once per router lifecycle. Request handlers may reuse the cached manager but must not reopen or remigrate SQLite on each role or assignment request, and shutdown must close the owned manager set.
- Guest Overview filesystem provenance is local presentation over the already
supplied snapshot: no additional query, timer, poll, History fetch or guest
command may be added to establish it. Its existing linear filesystem mapping
may label retained values and omit current utilization bars; it must preserve
ordinary current-value builder behaviour and must not mutate the snapshot.
DiskList.test.tsxverifies the pure builder's retained/unavailable/current controls; mounted drawer regressions and the full-drawer browser proof cover the shipped path. No performance or native workload improvement follows from the presentation proof alone.
Current State
Retained component state in bounded platform windows
PlatformWindowedRows and PlatformWindowedList retain one keyed renderer
owner as overlapping visible windows change. Components that remain visible
keep their local state and unsaved edits. Removed items still unmount, and the
existing row budgets and spacers remain bounded. The mounted regressions in
PlatformWindowedRows.test.tsx exercise both renderers. The final browser
receipt exercises a narrow Proxmox Manage form through scrolling, saving and
viewport changes while the synthetic estate updates.
This correctness proof does not close the large-estate performance gap. The
final measurements and host-load limitation remain recorded in
records/resource-payload-static-metadata-2026-08-24.md. They do not establish
a controlled performance improvement or satisfy the open SLO qualification.
Window resize listeners do not grow with rows
Table rows must not each register a window resize listener.
frontend-modern/src/hooks/useBreakpoint.ts keeps one module-level width
signal, fed by a single rAF-debounced listener while at least one caller is
mounted, and a new caller starts from the live innerWidth. Shared tooltip
state in frontend-modern/src/components/shared/useTooltipState.ts listens
only while its tooltip is visible. Measured on 2026-10-07 on a mock-mode
/proxmox page with 140 workload rows at 1440 px, the active listener count
fell from 859 (699 tooltip instances, 156 breakpoint callers) to 5; at 390 px
with 36 rows it fell from 203 to 5. An open tooltip adds one listener and
removes it on close, and crossing the phone breakpoint in either direction
still switches the workload table and row layout. useBreakpoint.test.ts
proves one listener for 50 callers, that back-to-back resizes leave one pending
frame, and that every caller crosses a breakpoint when that frame runs.
Large API responses negotiate gzip without corrupting edge cases
The main listener compresses eligible JSON and frontend text assets for
clients that accept gzip. Negotiation combines repeated header fields,
supports wildcard acceptance, applies strict three-digit qvalue parsing, and
lets explicit gzip exclusions override wildcards. WebSocket token lists and
range requests bypass the wrapper. Explicit empty 200 responses carry a valid
empty gzip stream whenever Content-Encoding: gzip is committed, while
informational responses defer negotiation to the final response and
204/205/206/304, SSE, already encoded, small declared, and binary responses
stay on their identity paths. Partial content retains the identity bytes that
its Content-Range describes.
Libvirt workload projection stays bounded and allocation-local
The Linux host collector performs one domain-list call and one bulk domstats
call under a shared eight-second deadline. It accepts at most 128 validated
domain names and caps combined list and statistics output at 64 KiB and 1 MiB
while the child process runs. Server normalization and registry projection are
single bounded passes over that inventory. The frontend workload mapper reads
the already-loaded provider-neutral VM facet in constant time per row; it adds
no request, subscription, global lookup, or provider-specific scan.
Custom metric drawer projection remains resource-local and bounded
The Infrastructure detail drawer formats sensors.custom from the already
selected resource payload. It performs no fetch, subscription, global resource
scan, or history query, and the native agent limits the source collection to 32
definitions with four concurrent command or REST executions. Group/subgroup
ordering and numeric, boolean, or timestamp rendering remain one bounded
sort-and-map over that collection and stay outside table-row and virtualized
viewport hot paths.
resourceDetailMappers.test.ts pins the resource-local projection and no-fetch
boundary.
Workload refreshes retain one coherent paged generation
The workload polling cache accepts a REST refresh only when every advertised
page succeeds. A failed later page leaves the prior array and its stable row
identities in place, ends loading, and exposes the refresh error; it must not
publish a partial list, clear rows as a loading transition, or silently hide
the error. Proxmox workload filtering consumes the source-authored
proxmox.runtimeStatus before aggregate health so an availability-only
freshness update cannot collapse a Running view. A later complete response may
still remove an authoritatively deleted guest. These rules preserve sort,
selection, drawer, and virtualized viewport state without adding another
resource scan, websocket subscription, or browser-local source of truth.
Proxmox owner snapshots remain complete on first paint
The scoped Proxmox owner reuses the canonical resource snapshot and performs
only constant-time field projection per workload row. That snapshot carries
top-level uptime and the intact source-authored Proxmox facet, so the first
successful REST paint can render runtime and backup evidence without showing
an interim unknown or never-backed-up state while waiting for a WebSocket
tick. This correction adds no request, subscription, retry, or resource scan;
useUnifiedResources.test.ts and useWorkloads.test.ts pin the boundary.
vSphere owner snapshots avoid duplicate estate enumeration
The VMware vSphere overview owns one type=agent,vm,storage,network resource
query scoped to source=vmware-vsphere and passes the resulting canonical
snapshot into its embedded Workloads state. Host and VM regions therefore
paint from one paged generation and explicit refresh path; the Workloads owner
must not launch the generic all-platform workload pagination or its generic
infrastructure snapshot. The shared unified-resource hook projects the same
type-and-source filter from canonical WebSocket state, so this request
reduction adds no polling fallback or freshness regression. Contract tests pin
the request shape, realtime projection, snapshot injection, and refresh
handoff.
Provider routes hydrate only the inventory they own
The Proxmox shell enables only the active tab's unified-resource query. An Overview visit must not eagerly start Storage, Backups, Replication, Ceph, and Mail inventory in idle callbacks: those independent page families can fan out dozens of paged requests and compete with the visible node and guest snapshot. Backups reuses the Overview guest owner and adds a bounded PBS-only query, so moving between Overview and Backups never downloads the same large PVE guest estate twice. A direct Backups visit enables both owners because both resource families are visible there; other inactive routes remain dormant.
Docker and Kubernetes page queries include their canonical provider source as well as their type family. Merged provider/agent rows remain eligible while unrelated standalone or other-platform agents are rejected at the API and local WebSocket projection boundaries. Focused page contracts must pin the exact query ownership, and browser verification must show only the active route's resource request before first paint at desktop and phone widths.
TrueNAS likewise queries only source=truenas; the merged appliance source
contract preserves agent enrichment without downloading unrelated agents.
Its recovery-point inventory is inactive outside the Protection route, while
the Protection tab remains discoverable from the presence of a TrueNAS system.
Standalone Machines uses the resource API's inclusive Agent/availability
scope plus provider-source exclusions so provider-owned merged agents are
removed before paging, payload construction, and browser-side projection.
Command-session liveness lookup stays bounded and in-memory
The connections ledger's command-channel liveness check
(Router.agentCommandSessionConnected) is at most three in-memory scans of
the live agent registry per agent row — token ID, then agent ID, then
hostname — each under a read lock with no network I/O, persistence reads, or
background fan-out. The fallback stages exist for correctness against stale
recorded token IDs and must not grow into per-request enumeration of token
stores or durable state.
Canonical mutation-plane dependency
Router wiring now exposes only typed action planning for model-originated infrastructure changes. The mutation registry audits run in governance CI and must remain bounded to static construction/catalog scans; they introduce no request-path enumeration or per-request registry traversal.
The router's shared browser-cookie writer is request-local security policy. It
must not add per-request persistence reads, network work, or background fan-out;
all login and CSRF call sites consume the already-derived in-memory policy.
Separating HttpOnly session emission from client-readable cookie emission is
an in-memory policy dispatch only and does not add a second derivation path.
Workload and host drawer discovery-tab Suspense fallbacks now compose the
frontend-primitives DiscoveryLoadingFallback template. GuestDrawer,
NodeDrawer, and Docker host drawer consumers own tab availability and target
identity, but they must not recreate the centered loading row, local border
spinner, or discovery loading copy inside hot-path drawer render code. Those
consumers must also gate Discovery through the shared
useDiscoveryFeatureAvailability boundary: unresolved, failed, or explicitly
disabled AI settings expose no Discovery tab, readiness badge, explanatory
copy, identified-service suggestion, or passive discovery lookup. A discovery
target proves technical support only; it does not override the operator's
feature setting.
Default-org token scoping and notification-settings fan-out on shared
internal/api/router.go are likewise adjacent only: the tenant-monitor
settings inheritance hook runs once per tenant-monitor creation and changes
no chart transport, downsampling, or polling behavior.
Container-runtime migration mode selection on that shared router path is also
request-local. Deriving the bounded host-plus-Docker or Docker-only token
scope and matching install flag must remain constant work with no resource
inventory scan, telemetry fan-out, or extra persistence pass.
The bars / sparklines toggle, row-history lens, and history-range picker on the
WorkloadsSurface support page-level ownership through four optional
overrides exposed by
frontend-modern/src/components/Workloads/useWorkloadsState.ts:
metricDisplayMode, onMetricDisplayModeChange, metricHistoryRange,
and onMetricHistoryRangeChange. When a platform page renders a
sibling table that also reacts to bars/sparklines (Proxmox overview's
top hosts table today), the page owns the persistent signals against
STORAGE_KEYS.WORKLOADS_METRIC_DISPLAY_MODE /
STORAGE_KEYS.WORKLOADS_METRIC_HISTORY_RANGE and passes the accessors
- change handlers into both surfaces.
useWorkloadsControlsStatethen short-circuits to the supplied accessor / handler instead of its internal persistent signal so the toggle and the hosts-table render stay in lockstep. The history range remains inline in both display modes because the default bars mode uses it for the intent-driven guest-row history lens. Embedded sibling tables that opt into sparklines re-instantiateuseWorkloadTableMetricHistoryand name the rows they draw through its requiredseriesoption. The Proxmox nodes table passes'nodes'and polls only the infrastructure summary; the WorkloadsSurface reader passes'guests'and polls only the workloads history. Two readers on one page do not share reads: each passes its own abort signal straight to the charts API, and retained query values seed matching mounts and source changes without deduplicating requests. A reader therefore must not poll a summary its rows do not render. In Trends the vSphere overview polls only the workloads history, and the Proxmox overview polls the workloads history and the infrastructure summary once each. AuseWorkloadsStateowner that omits these overrides keeps the original persistent-signal-backed behavior;WorkloadsSurfacebuilds no state of its own, so it always renders the owner its page passes. Every toolbar that controls aWorkloadsSurfaceconsumesgetWorkloadsMetricFilterPropsas one atomic binding. Those toolbars are the page-ownedWorkloadsFilterinstances on the Proxmox and vSphere overviews, since the surface renders none, and the binding keeps the display mode, row-hover mode, history range, and first-use hint on the page's one workload state owner; provider pages must not recreate a partial metric prop list that can enable prefetching without exposing the matching control or discovery state. That first-use hint clears while the pointer is over a guest row, because the first populated preview marks it seen. Clearing it must not unmount it or change the toolbar height: wherever the hint wraps the action row onto its own line, removing it moved the table up under the pointer and the history lens retargeted the next guest.WorkloadsFilter.tsxtherefore keeps the cleared hint mounted butinvisiblewherever the desktop History controls render, for as long as row hover stays in bars + history mode. Leaving that mode or remounting the filter releases the box.WorkloadsFilter.test.tsxpins the retained node and its release on a switch to Trends.
The alert-bridge patrol-trigger callback wired in internal/api/router.go now
short-circuits before queuing a scoped patrol when a firing alert does not meet
the operator's per-rule trigger policy (minimum-severity floor plus optional
alert-type allowlist, critical-only by default). This bounds alert-driven
patrol fan-out: in a noisy-warning estate the default policy keeps the LLM-backed
investigation path from being invoked once per warning, so the patrol queue and
provider spend stay proportional to the alerts the operator actually opted into.
Operator-state mutations wired through internal/api/router.go must reconcile
the active-alert set once per mutation so newly inherited parent maintenance
takes effect immediately for every descendant. The reconciliation may inspect
the already resident active-alert map, but it must not scan unified inventory,
query persistence once per resource, or run on the steady-state alert hot path;
ancestor lookup remains bounded by canonical hierarchy depth for each active
alert actually evaluated.
Grouped host rows in the embedded WorkloadsSurface are identity-only
dividers. frontend-modern/src/components/Workloads/WorkloadPanel.tsx
renders each grouped node through NodeGroupHeader as one cell spanning
the table: status dot, linked node name, cluster badge, and agent badge.
Per-host CPU, memory, disk, network and disk I/O, uptime, temperature,
and version stats belong to the platform page's own hosts table (the
Proxmox nodes table today), so the workloads table must not render them
per column or inline in the group row. The former compactGroupHeaders
option and the per-column node metric cells it switched off were removed
because both remaining production mounts (Proxmox and vSphere overview)
set it unconditionally, so the non-compact path no longer rendered
anywhere. A new embedded consumer that needs host
stats beside its workloads must render its own hosts table rather than
re-growing metric cells in the shared group row. The same applies to host
interaction: the group row has no drawer, hover preview, or pin, and the
Workloads state no longer builds per-group summary scopes for every
filtered-guest change.
WorkloadsSurface stays monitoring-first. It must not render a persistent aggregate banner just because running VMs or system containers lack an in-guest Pulse Agent; many healthy estates include appliances, test guests, or workloads where Pulse should remain API-only. Agent install guidance for AI actions belongs on intentful guest/action surfaces, such as the guest drawer, where the operator is inspecting a specific workload and can decide whether that guest should be agent-managed.
Trend-mode and row-history-lens cells own their vertical scale through
getMetricMiniSparklineScale in
frontend-modern/src/components/Workloads/workloadMetricHistoryModel.ts.
Percent series are zero-floored and scaled to their own observed peak with a
5% floor ceiling and a 100% cap. Network and disk I/O series follow the same
shape rule with a 100 KiB/s floor ceiling, so an idle guest's background
chatter stays near the axis instead of drawing the full-height spike a busy
guest draws. A fixed 0-100 window is not the contract, because inside
a 16px table cell it draws low-domain series such as a guest's share of host
memory or an idle guest's CPU on top of the axis rule, where a flat line is
indistinguishable from missing history. Absolute level stays readable through
the per-cell current-value label, the hover tooltip, and bar mode, so scale
work must not remove those. The scale is derived from the points already
fetched for that cell and must not add history reads or a second pass over the
Workloads hot path. Pointer scrubbing may synchronize one normalized cursor
position across the active guest row, but it must remain row-local and operate
only on the already-fetched series. GuestRow builds each chart from accessors,
so a live snapshot updates the mounted lens or Trends chart in place instead of
remounting it, and an open scrub tooltip re-reads the current series at its
pointer position rather than holding the values from the last mouse move.
The Workloads table metric display mode is part of the protected Workloads
hot path. Default bar mode keeps compact current-value bars at rest and swaps
only the active fine-pointer or keyboard-focused guest row to the original
sparklines; persistent Trends mode keeps sparklines visible for every rendered
row. Bar mode does not hydrate estate history at rest. With the history lens
on, one centralized queue warms a bounded window instead: up to the first six
guests of the mounted table window at rest, then the active guest first plus
its next four and previous one, with at most four reads in flight and 18 cached rows. Each read
targets one guest's canonical metrics target on /api/metrics-store/history,
is capped at 36 points, and is never polled. Equivalent live guest snapshots
must not restart a read. A range change or leaving the lens mode cancels
pending and in-flight reads, while leaving a row lets its read settle into the
bounded cache. Per-row query owners, estate-wide fan-out, and polling remain
forbidden. Persistent Trends retains one cache-keyed
ChartsAPI.getWorkloadCharts reader for all rendered guest rows. Grouped
host rows render no metric cells, so the WorkloadsSurface reader never polls
ChartsAPI.getInfrastructureSummaryCharts; node series belong to the page's
hosts table reader. Both readers keep fetched series only in the query layer's
retained cache; neither persists a summary to browser storage. Range-sensitive readers clear prior-range data when no
exact cache entry exists and forward cancellation so superseded range work
does not continue occupying browser connections. Sparkline ranges must stay
bounded to the governed compact table windows. Expanded history belongs in the existing guest drawer chart
surface, where longer-range reads stay demand-driven and scoped to the selected
workload. Its range control belongs in the drawer chrome rather than a dedicated
chart row. The drawer history view must preserve visual density by grouping
related series into utilization, network I/O, and disk I/O charts rather than
repeating one chart frame per metric. Those grouped charts must still support
inline hover inspection by updating the existing legend values and showing only
the hovered timestamp, so density does not remove point-in-time metric detail.
Proxmox node thermals follow that same drawer-only rule: temperature remains a
node-context metric, not a universal Workloads table column, and the node detail
drawer may add one compact Thermals history group beside utilization and I/O
only after a node's drawer is opened from the Proxmox nodes table. Host-agent CPU temperature must be
persisted into the same metrics-store history stream as other agent metrics,
with current node temperature displayed only as a drawer-local current reading
while history is still accumulating; it must not become a synthetic history
point. API-only nodes must query the existing canonical node stream and omit
the host disk-throughput group that their source cannot populate; selecting a
node therefore remains one bounded all-metrics request rather than a per-series
fallback fan-out.
Standalone agent thermal pressure follows a compact table-and-drawer rule:
platform tables may show a short pressure status such as Nominal or
Constrained in the existing temperature cell when no positive Celsius reading
exists, while resourceDetailMappers.ts owns the fuller thermals-card rows for
pressure source and throttling limits. The table fallback must stay row-local
and must not add history reads, polling work, or a second thermal query path.
GPU utilization and VRAM rows in resourceDetailMappers.ts follow the same
drawer-only rule. The mapper may render typed GPU sensor values already present
on the selected resource payload, but it must not add GPU-specific history
reads, per-row polling, browser-side nvidia-smi assumptions, or table-wide
aggregation work.
Host-agent fan RPM, additional thermal readings, and power wattage rows in
resourceDetailMappers.ts follow the same drawer-only rule. The mapper may
render those sensor values already present on the selected resource payload,
but it must not add host powercap reads, sensor-specific history reads,
per-row polling, browser-side command assumptions, or table-wide aggregation
work.
Host-agent SMART disk rows in resourceDetailMappers.ts mark a retained
temperature "(last known)", with its collection reason as the title, from the
payload's own collection.temperature state, through getPhysicalDiskTemperaturePresentation
in frontend-modern/src/features/storageBackups/diskTemperaturePresentation.ts.
That module stays separate from diskPresentation.ts so the drawer and
Machines chunks take the decision without the Storage presenter, and the rows
add no reads, polling or aggregation work.
A silent host agent's other Thermals rows (pressure, limits, GPU, temperatures,
additional sensors, fans, power) take the same "(last known)" suffix and reason
title. buildTemperatureRows gets them through its lastKnownReason option,
which the drawer sets from the resource's own agent.stale, so the drawer
still reads nothing extra.
The Proxmox node drawer overview should follow the existing guest drawer
compact detail-section pattern and expose node-specific context such as platform,
kernel, hardware, raw capacity, telemetry, and thermal facts rather than
repeating the metric cells already visible in the Proxmox nodes table row.
Object drawers across workload, node, Docker, and unified-resource surfaces
must keep their default render bounded to active attention plus a small
additive context projection. Full provider-specific support workflows remain
lazy behind collapsed support disclosures, while curated technical inventory
stays visible through shared compact section rows. Operator
policy, update actions, and saved access mount only after the Manage tab is
selected. Alert lookup may consume the already-loaded active-alert map through
the resource's bounded canonical/provider identity candidate list; it must not
add a per-drawer fetch, rescan the workload inventory, or eagerly mount hidden
technical sections.
Guest, node, and Docker-host technical rows must compose
TechnicalDetailsSection, DetailSectionTable, and detailSectionModel.ts
instead of local detail-card grids. The projection may only format the
already-selected resource payload and existing drawer state; making those rows
visible must not add a fetch or inventory scan.
Guest and resource drawer headers must not initialize clipboard-context or
Assistant-handoff state for generic header buttons. Removing those controls
also removes their drawer-local signal, API, and formatting wiring; the global
Assistant shell remains the single generic entry point.
The investigation enrichment path in MaybeInvestigateFinding
adds at most one operator-state projection lookup per investigation
(in-memory via the existing provider) and zero additional reads —
OperationalMemory is built from fields the internal Finding
already carries. Investigation enrichment does not multiply
per-finding cost as the operator-state surface grows; the projection
serves both suppression and investigation reads from a single
shape.
The agent SSE stream at /api/agent/events keeps publishers
non-blocking by design: the broadcaster's per-subscriber buffer is
bounded (64 events) and a full buffer drops the event for that
subscriber rather than stalling the publish path. A slow agent does
not pin the patrol-finding hot path; many concurrent agents do not
multiply per-finding work because each subscriber gets its own
non-blocking send. The same guarantee extends to the governance and
action-audit producers wired through the same broadcaster:
approval.pending events fire from the approval store's post-create
callback on its own goroutine after the approval is persisted, and
action.completed events fire from PulseToolExecutor's
post-completion callback on its own goroutine after the audit
record is persisted. Goroutine dispatch keeps the approval and
dispatch hot paths independent of consumer drain rate; per-event
cost is one channel send per subscriber. Heartbeats are the
exception: each SSE handler writes its own keepalive directly to
its response, so concurrent subscribers do not turn one
connection's heartbeat ticker into a global N-subscriber fan-out.
The action.completed payload's verification block is a small
fixed-shape projection (5 fields, no embedded output) so adding
it to every successful dispatch event does not materially change
per-event size. Verification stdout — which can be large for
some action classes — stays on the audit record and is fetched
on demand via /api/actions/{id}; the event is the doorbell, not
the transport for full probe output.
/api/agent/resource-context/{id} does at most four reads per
request: one operator-state SQLite point lookup (already covered by
the resource_operator_state index), one in-memory findings lookup
via the patrol findings store's byResource index, one in-memory
filter against approval.GetStore().GetPendingApprovals() (bounded
by the store's MaxApprovals=100 ceiling — a fixed-cost scan
independent of resource cardinality), and one bounded action-audit
query (limit 10, since-1-week filter). No fan-out, no
cross-resource scan — the bundle is leveraged for substrate use
without becoming a per-request hot path that scales with global
finding volume.
/api/agent/fleet-context is O(N) over registry size with bounded
per-resource cost: one operator-state SQLite point lookup and one
in-memory findings index lookup per resource, plus one bounded
pending-approvals scan grouped by canonical resource id before the
registry walk. Fleet context must not call the per-resource
approval-summary helper once per resource; the approval list is
bounded, but scanning it N times would make the rollup scale with
resource cardinality and pending-approval cardinality. No
action-audit reads in the fleet path — the rollup is intentionally
light enough to serve the "where do I focus?" question without
triggering N audit queries. Sized for the hundreds-of-resources
regime that is canonical Pulse fleet scale; agents that need to
scan tens of thousands of resources should narrow the registry
first via the existing filtered list endpoints, not the fleet
rollup.
/api/agent/capabilities is unauthenticated and cacheable
(Cache-Control: public, max-age=300); the manifest is a small,
hand-authored static structure serialized once per request with
no I/O, so even unbounded discovery traffic costs nothing per
request beyond JSON encoding. Agents are expected to fetch the
manifest once at startup and rely on the 5-minute cache header,
not poll on every operation.
The new-finding hot path now consults a per-resource operator-state
provider when one is wired. The provider call is gated on
f.ResourceID != "" and a non-nil provider so deployments without
the feature wired pay no extra work; the provider implementation
itself is a single SQLite point lookup keyed on canonical_id, no
join, no scan. The projection returns every operator-set signal in
one call, so adding new signals (intentionally offline, never
auto-remediate, criticality) does not multiply per-finding lookups.
Operator-state suppression therefore adds at most one read per new
finding, not per existing-finding update, and not per operator-set
flag.
A route summary that surfaces health-state counts (offline, degraded,
alerting) must derive them as read-only projections from existing websocket
state. It must not introduce new polling loops or widen fetch scope on the
hot-path boundary.
Agentless availability endpoints participate in the same unified-resource
consumer hot path as other infrastructure resources. Adding
network-endpoint to resource queries, filters, and summary counts must reuse
the existing unified-resource hydration and websocket paths; frontend
consumers must not add an endpoint-specific polling loop or a second table
model just to show availability status.
This lane already has strong evidence and guardrails, but it still trails on score because critical hot paths need more complete protection and verification. Compact physical-disk drawer charts now also belong to the protected hot path. Thirty-minute storage detail charts must query the same in-memory plus store-backed disk history path as longer-term disk charts, with the backend owning range selection and fallback. Feature-local polling loops or browser-side disk ring buffers are forbidden because they duplicate live sampling work and drift out of sync with the governed history timeline.
All governed performance-owned runtime files now require explicit registry path-policy coverage, so new protected hot paths must be mapped to a concrete proof route instead of falling back to subsystem-default verification. Monitored-system grouping preview now also sits on a protected backend hot path. The removed monitored-system limit-enforcement path must not return; unified-resource projection helpers should reuse one current monitored-system snapshot plus prospective candidate/preview projection for settings/support explanation instead of rescanning platform inventories per handler or falling back to zero when monitor state is unavailable. That protected path now also includes supplemental-inventory settlement. Performance work may not shortcut monitored-system grouping readiness to "store exists" once provider-owned platforms such as TrueNAS or VMware suppress snapshot-owned sources; the hot path must report preview unavailability until the monitor has both observed an initial baseline for every active connection and rebuilt the canonical store at or after the latest provider watermark.
The Workloads selector path and the Workloads runtime that consumes it
are now part of the protected performance surface rather than proof-only
context. Future hot-path filter/group/sort/windowing changes must route through
the explicit Workloads performance proof policy in the subsystem registry.
Node filter options combine the existing canonical Proxmox node snapshot
with workload-derived hosts. Empty nodes retain instance-scoped identities
and labels without an extra inventory request. Only matching platform scopes
include these Proxmox nodes. A filtered-empty guest result cannot present an
unrelated source outage as its cause when the unfiltered guest inventory is
populated. Verify node option disambiguation and filtered-empty handling in
workloadRouteModel.test.ts and WorkloadsSurface.k8s.test.tsx.
Route-backed workload resource focus on that hot path is contextual state
only, not inferred filter state: opening or closing an inline drawer must not
invent, retain, or clear agent or node-scope filters unless those filters
were already explicit in the managed workload URL.
That same hot-path ownership covers summary emphasis. No top-of-page summary
cards render on infrastructure or workloads today; if they return, row hover,
chart hover, and route focus must stay one shared active-series contract that
reuses one existing chart path instead of repainting page-local “selected row”
overlays on top of already downsampled summary history.
That same hot path now also owns dashboard freshness discipline. Supported
unified-resource dashboard reads may hydrate from REST for first paint, but
once websocket state.resources is available they must consume that canonical
live snapshot directly instead of turning each websocket update into a second
REST fetch. Route-owned trend loading must also key off stable target identity
and selected range only; reconciled resource snapshots that do not change the
effective target set must not trigger duplicate infrastructure or storage chart
requests.
Infrastructure route first paint belongs to that same freshness discipline:
when websocket state.resources already carries the connected-system snapshot,
the route must keep that model visible immediately and revalidate richer REST
details only after the first-paint settle window instead of making the operator
wait on a blocking resource fetch before Pulse admits what is connected, or
forcing a second resource-shape transition while the summary/table shell is
still mounting.
That same protected metrics-store boundary now also owns selected-series batch
queries. Compact route consumers that request only CPU/memory or only storage
used/avail capacity must keep that metric-type filter all the way through
pkg/metrics/store.go instead of fetching every series for every resource and
discarding the extra payload in higher layers.
That same protected workload-chart hot path now also owns rendered-metric
budgeting. internal/api/chartapi/service.go may parallelize VM, container,
pod, and docker-container workload batch reads, but /api/charts/workloads
must request only the metric set it serializes for each workload type (the
guest sparkline set for VMs and system containers, the infrastructure set for
app containers, the five-metric set for Kubernetes pods) instead of widening
back to fetch-all history queries.
That same chart-batch hot path now also owns long-range in-memory coverage.
internal/monitoring/monitor_metrics.go may skip SQLite for guest and node
chart batches when metrics_history can prove the requested window is
already covered in memory, and performance work must preserve that
coverage-gated fast path rather than treating every long-duration request as
store-backed by default.
That same hot path now also covers mock-mode cache warmth: live mock sampler
ticks prewarm only the Workloads guest-chart cache. The retired aggregate
/api/charts/storage-summary trend is no longer synthesized or prewarmed, so
no sampler tick pays for an aggregate nothing reads.
That same chart-client hot path also owns canonical Kubernetes target typing.
frontend-modern/src/api/charts.ts may normalize Kubernetes history requests
onto the shared backend resourceType=k8s transport, but it must preserve the
canonical frontend target types for clusters, nodes, pods, and deployments so
the workloads and drawer hot paths do not silently drop deployment history or
split Kubernetes charts across incompatible cache keys.
That same protected metrics-store boundary also owns tiered history range
parsing as pre-query work. Day-based ranges such as 14d, longer day ranges,
and equivalent duration syntax must be normalized and checked against the
licensed max_history_days before the store read is planned, so denied history
windows fail without widening DB scans or letting duration strings bypass the
Relay 14-day and Pro 90-day budgets.
That same protected metrics-store boundary also owns write-path churn on local
instances. pkg/metrics/store.go must prefer fewer, larger SQLite write
transactions over tiny frequent commits: the default write buffer should stay
large enough to absorb one poll cycle on modest multi-node installs, queued
flush batches should coalesce before commit when the worker is already behind,
and WAL auto-checkpointing should avoid tiny segment rewrite loops that keep
rewriting metrics.db on SSD-backed systems. Duplicate samples for the same
resource type, resource id, metric type, timestamp, and tier must be treated as
idempotent writes against the metrics table's unique key rather than as noisy
SQLite constraint failures; for raw writes, the latest buffered value wins and
aggregate-only min/max columns stay unset. Rollups must not be hard-coded to a
5-minute disk-write cadence: the default cadence should favor set-based
transactions, remain bounded by raw retention so data is aggregated before
pruning, and stay overrideable for operators who deliberately trade freshness
for lower write frequency. Startup cleanup, rollup, and retention must run on a
lifecycle-owned maintenance worker separate from the worker draining the
bounded live-ingestion queue. SQLite remains the serialization boundary for
their transactions, but maintenance CPU or read work must not stop buffered
writes or Flush barriers from progressing; shutdown must join both workers
before closing their shared database. pkg/metrics/store_additional_test.go
must prove ingestion remains live while startup maintenance is blocked.
Synchronous platform-poller batches must also enter SQLite through that single
ingestion worker rather than opening one write transaction per caller. A busy
WAL writer may delay the worker, but it must not let concurrent pollers consume
the shared reader pool, starve /api/state history reads, or multiply slow
BEGIN waits; the concurrent-poller regression proof must keep database use
bounded to the existing writer plus one ingestion-worker connection. Rollup
transactions must also keep a bounded
time-window working set and resume from checkpoints across invocations instead
of aggregating every pending series and bucket in one global SQLite GROUP BY
that can spike RSS on agent-heavy installs. The runtime must also allow an explicit
metrics database path so SSD-sensitive Docker/LXC installs can place only the
metrics SQLite store on tmpfs while keeping secrets and general configuration on
durable storage. Any future change that reduces that batching headroom, makes
WAL checkpoints more aggressive again, reopens duplicate-write failures,
removes the bounded rollup-window checkpointing, or removes the metrics DB
path/cadence controls must re-prove the metrics-store hot path with the owned
store tests rather than assuming the earlier vacuum fixes are sufficient.
Metric identity, stored values and every range read share the time-major
PRIMARY KEY(resource_type, resource_id, tier, timestamp, metric_type) of
metrics WITHOUT ROWID. The primary table itself supplies the samples; a
separate rowid-table lookup per observation is no longer required. Its only
secondary tree is the (tier, timestamp) retention index. Legacy rowid stores
continue to use idx_metrics_query_all until deferred migration commits.
Reintroducing a second full-width identity index is a
write-amplification regression even when retained metrics.db size looks small:
every sample would dirty both trees in the WAL and every checkpoint would copy
both sets of pages back into the main file. The column order is part of the
invariant. A metric-major tree such as the retired
idx_metrics_lookup(resource_type, resource_id, metric_type, tier, timestamp)
gives every series its own insertion point once it retains history, so each
commit rewrites one leaf page per series; the time-major order lets one poll's
samples for a resource share pages. With one hour of retained history for 480
series, 30 polls write 25,310 WAL frames under the metric-major layout and 6,022
under the time-major one (TestMetricsIdentityIndexSteadyStateWrites requires
at most 35%), consistent with a production install measuring about 10.6 KB of
WAL and checkpoint writes per ~60-byte sample before the change (#1966). The
accepted cost is on metric-filtered reads, which now scan a resource's other
metrics in the window: a single-metric 500-node query moved from 45 to 59
microseconds and the 24-hour 50-disk smart_temp batch from about 0.25 to 0.49
s, while all-metric dashboard reads are unchanged. Ungrouped retained reads,
including multi-metric filters, must consume that time-major index order
without a temporary metric sort. Interleaved metric rows must preserve every
series' timestamp order, tier precedence, values and extrema. Streaming
display-bucket aggregation retains its required series grouping. The query
plan guard covers filtered and unfiltered reads across retained windows and
single/fleet scopes; tier-coverage tests compare filtered results with the
unfiltered reconciliation contract. Non-aggregated rows preserve nullable
extrema across the SQLite driver boundary; decoding applies each missing
bound's value fallback per observation while retaining explicit bounds,
including zero. SQL display aggregation applies the same fallback before
MIN/MAX, and streamed buckets receive normalized bounds. Avoid materializing
the same float three times for observations without stored extrema. Mixed
nullable-bound tests cover single/fleet reads, metric filters and display
buckets. Value-only consumers must use the same retained read engine's
QueryMetricValues / QueryMetricValuesBatch projection, returning the
canonical models.MetricPoint timestamp/value type. That SQL form omits
extrema columns and avoids materializing full points only to copy them into
value points afterward. Full and value projections share scope normalization,
filters, tier reconciliation, time ordering, display buckets and Docker
observation provenance; their distinct SQL column shapes must have distinct
keys within the existing bounded query cache. Neither mode caches results or
tier presence. Full readers continue to preserve extrema. At the application row-decoding
boundary, native int64 ordinals/timestamps and float64 values are assigned
without reflective per-observation numeric conversion. Atypical numeric text,
blobs and integer-valued observations retain database/sql's ordinary conversion;
NULL, malformed and overflowing values must still fail rather than manufacture
zeroes. This changes neither SQL nor driver behaviour. The compatibility control
TestRetainedNumericScansMatchDatabaseSQL compares both decoders bit-for-bit,
including signed zero, large integers and conversion failures; the native scan
allocation control and existing full/value, tier, scope and detached-read tests
remain required. Legacy databases keep
their existing unique index authoritative while deferred startup maintenance
copies the eight observation columns into the clustered table. BEGIN IMMEDIATE
serializes writers and independent Store migrations before inspection. Copy,
old-table removal, rename and retention-index creation commit in one WAL
transaction; cancellation, crash, insufficient disk space or a conflicting
replacement table leaves the installed table and observations intact. Readers
retain their old SQLite snapshots during the copy; queued writes resume after
commit. The migration checks free filesystem space for three times the used
database pages plus 16 MiB before copying. Layout migration and auto-vacuum
share the existing 30-minute rewrite context, canceled when the Store closes.
There is no redundant legacy index rebuild before the copy. A database with
no unique identity index still deduplicates and establishes identity
synchronously before ingestion starts.
Each retained read fixes its index choice for its snapshot. A stale legacy
index error may retry once with a new snapshot only after inspecting the
clustered primary key. This covers another Store committing the upgrade while
prepared SQL is cached. Layout participates in the bounded SQL-template key;
results and tier presence remain uncached. Raw multi-resource reads bind one
bounded request table and return statement-local resource numbers across the
SQLite row boundary. Resolve each number against that statement's normalized
resource list; never persist or expose it as resource identity. With multiple
requested metrics, return one series number instead of repeatedly decoding the
metric name too. Resolve both dimensions against the current bound resource
and metric lists, including on a SQL-template cache hit or a new chunk. Metric
names remain bound data in the projection, not interpolated SQL. Accumulate
filtered raw observations directly by series number, resolving names once per
nonempty series after the read instead of flushing interleaved nested maps for
every point. Empty resources and metrics stay absent. At most 4,096 slice
headers are reserved per chunk; wider sparse filters retain the map assembler.
Both paths return detached observations and restore stable timestamp order
before Docker projection, with no new sampling or source-selection policy.
TestRetainedNumberedAssemblyMatchesSingleResourceReads compares compact,
reordered and wide-sparse fleets with single-resource reads on both layouts,
including interleaved series, overlap exclusion, zero and nullable extrema.
Full and value-only raw projections share this shape; unfiltered, single-resource and
ordered display-bucket reads keep their existing row dimensions.
TestRetainedRawFleetSeriesNumbersBindCurrentMetrics checks both layouts and
projections, parameter-like identities, reordered metric bindings and exact
observation ownership; the resource-number regression covers filtered chunk
boundaries and mixed-tier chronology. Tier discovery,
coverage probes and value ranges retain the same scoped snapshot and index
bounds. These detached raw series explicitly restore stable timestamp order in
Go before Docker observation projection, without a fleet-wide SQLite sort or
merge by repeated identity strings. Ordered streamed display buckets retain
their existing SQL path and allocation bound. The row shape follows the same
resource-count, step and grouping inputs as the bounded SQL-template cache.
Restart recognizes the primary key
without recreating the legacy index. If an older executable reopens the
row-compatible table and recreates its legacy identity index, deferred
maintenance removes only the known redundant trees after verifying the primary
key. clustered_layout_test.go covers fresh/reopened schemas, exact stored
nullable bounds and all tiers, metadata, concurrent old snapshots and queued
writes, cross-Store cached reads, cancellation after swap, crash before commit,
conflicting replacement tables and primary-table range plans. Historical write
profiles reconstruct their original rowid tables; clustered profiles exercise
the current production schema. Clustered rollups first discover resource
identities within the bounded source window through the covering tier/time
index, then read each resource through its primary-key time range. They must
not seek the primary table once per source observation through the secondary
index. Discovery and value reads share the same bound source tier and time
window. Reuse the ordinary aggregate's binding slots so constructing that
indexed query does not duplicate argument arrays or boxing per window.
A statement-local resource number gives the aggregate an integer group
key without changing stored resource identity, bucket boundaries, nullable
extrema fallback or INSERT OR IGNORE idempotence. It is neither persisted nor
cached. Legacy rowid databases retain their existing aggregate query until
physical migration. The clustered rollup plan must preserve covering discovery
and bounded primary ranges; full-table scans and extra write indexes are not
accepted substitutes. The
deterministic issue-1124 profile must continue to attribute writes by logical
payload, table/index dbstat pages, page-cache writes/spills, WAL frames,
checkpoint frames, process write bytes where the host exposes them, and traced
sync calls rather than treating final file size as a proxy. Its checked
invariant persists 157,452 samples across 2,197 mixed provider resources and
caps the no-auto-checkpoint workload at 23,000 WAL frames; the v6.1.1 four-index
schema produces 50,516 frames, the metric-major lookup schema 36,308, and the
time-major identity schema 20,223. Checkpoint-threshold changes must also prove
physical writes, WAL allocation, write latency, restart, and the four-connection
concurrent-read case; a no-reader byte reduction alone is not sufficient to
widen the production WAL bound.
Retention must also return freed SQLite pages to the OS
proportionally to the current freelist, bounded per cycle, and on every
retention cycle rather than only when that cycle deleted rows: a fixed small
incremental-vacuum batch lets the freelist outpace reclaim on busy instances,
so metrics.db bloats to GBs of free pages over tens of MB of live data even
while row retention works correctly. The reclaim stays a once-per-cycle bounded
operation (it skips the checkpoint entirely when the freelist is empty) so WAL
cadence is not made more aggressive, and TestStoreRetentionReclaimsFreePages
guards that a pre-existing backlog drains and the file shrinks.
Commercial history reduction is a second, delayed ceiling on this same store
boundary. Entitlement access narrows immediately, but pkg/metrics/store.go
must not tighten physical retention until the durable downgrade state reaches
its governed day-60 purge timestamp. Re-upgrade clears that ceiling before the
next retention run. The ceiling may only reduce configured retention; it must
never expand an operator's shorter storage policy.
That same hot-path ownership forbids hover-driven table movement on the
workloads and storage tables. Row hover may highlight the matching row in
place, but the hot path must not auto-scroll the page or rebuild the table
into a one-row filtered view on transient hover; only a deliberate row focus
may reveal an off-screen row, through the shared summary-table focus bridge.
The bridge measures row position only inside that deliberate reveal. It must
not keep window-level scroll or resize listeners, or re-measure the hovered
row on every hover change and scroll frame, for an off-screen affordance that
nothing renders: the retired Jump to row visibility check did exactly that,
costing 128 getComputedStyle calls across eight row hovers and 320 across
ten scroll steps on the 12-node mock storage table, and none once removed.
That same hot-path contract also owns the row-emphasis paint. Workload guest
rows and storage pool, group, and disk rows must expose
summary-linked activity through the shared data-summary-row-active marker and let the shared frontend
primitive render the emphasis, instead of layering lane-local row-fill classes
that diverge across pages or wash out inline metric bars.
frontend-modern/src/components/Workloads/useWorkloadSelectionState.ts keeps
workload selection local and never writes it back into the route; an inbound
resource link only hydrates it. Local row focus keeps the scroll position
through preserveScrollableAncestorVerticalOffset in
frontend-modern/src/components/shared/contextualFocus.ts and reveals the
opened detail through summaryTableFocus.ts, so opening a focused workload
does not look like a full page reload. The root frontend-modern/src/App.tsx
shell applies a pending frontend-modern/src/utils/appShellScrollRestoration.ts
restore on the next route change, whatever caused it, so only the shared
same-path route-state scheduler may stage one, from the shell position at the
moment it navigates. Local row focus stages none: a position staged without a
navigation waits for an unrelated one, and before this rule a Type filter
change made at the top of the Proxmox overview jumped the shell back down to
the row toggled earlier, because the scheduler stages nothing from scrollTop 0.
The shared same-path scheduler must also own cleanup
for every deferred scroll-restore timeout and animation frame it creates, so
route-state cleanup cannot leave hot-path replay work running after the owning
surface unmounts.
That same hot-path rule now also covers infrastructure drawer hydration. Row
focus may mount drawer-local facet and intelligence fetches, but those
requests must retain the mounted page shell through the shared non-suspending
query helper instead of bubbling a transient Loading view... fallback through
AppLayout.tsx when an inline infrastructure drawer opens.
That same hot-path rule now has one shared runtime boundary. Local
scroll-preserving row focus and inline-detail reveal must extend
frontend-modern/src/components/shared/contextualFocus.ts, and active-series
derivation must stay in
frontend-modern/src/components/shared/summaryCardInteraction.ts behind
summaryTableFocus.ts, instead of rebuilding page-local Set scans or scroll
repair logic in workloads, storage, or platform-table hot paths.
That same hot-path ownership now also covers deliberate inline-detail reveal.
When a focused workload or infrastructure row opens its inline detail, the hot
path may preserve scroll across same-route state writes, but the actual reveal
must still flow through the shared contextual-focus and summary-table helpers.
Direct row toggles that already have the row in view stay anchored through
that contextual-focus offset preservation, not through a staged app-shell
restore, so the interaction does not look like a full refresh. Once the drawer is mounted, the shared reveal
helper must still take over whenever the opened detail would land below the
fold, marking that movement as deliberate so route-state restore does not
replay over it and then scrolling only enough to keep the row header plus the
top of the detail visible instead of hard-centering every expansion.
That same hot-path ownership now includes summary cache invalidation. A
summary history cache that hydrates fast remounts, today the storage page's
module-scoped frontend-modern/src/utils/storageSummaryCache.ts behind the
pool Growth column and its sort, must
carry the chart contract version in its key and advance it when the summary
chart timeline contract changes, so a hot-reloaded or long-lived browser tab
cannot rehydrate an older series set before the next live fetch completes.
The table history reader keeps no summary cache of its own:
useWorkloadTableMetricHistory.ts holds the infrastructure and workloads
summaries only in the query layer's retained cache, which expires entries after
five minutes and clears on org switch. A new persistent summary cache needs a
reader in the same change: after their readers were deleted, the infrastructure
and workloads summary caches kept serializing every polled response on the main
thread (on the 50-node, 929-guest mock estate at the 1h range, about 9.6 MB of
workloads and 0.9 MB of infrastructure JSON per 30-second poll) only to write
it to browser storage, or drop it when over the size cap, with nothing reading
it.
That same protected hot path keeps storage trend loading route-owned after the
dashboard overview retirement. The compact /api/charts/storage-summary route
is retired after its last reader was deleted, and no deleted dashboard trend hook may
reopen it, the full storage-page /api/storage-charts payload, or an N+1
per-pool /api/metrics-store/history fan-out.
That same Workloads shell boundary also owns empty-state action routing in
frontend-modern/src/components/Workloads/WorkloadsStateCards.tsx. When the
Workloads route has no connected infrastructure sources, the CTA must hand
operators directly to the canonical source picker through
buildInfrastructureOnboardingPath('pick') instead of bouncing through a generic
settings landing page. When canonical unified-resource source presence shows
that infrastructure exists but no workload inventory is available, the route
must not reuse the first-run no-source state; it must send operators to the
canonical infrastructure workspace through buildInfrastructureWorkspacePath()
so credential, permission, and collection status can be reviewed from the source
of truth.
That workload route now also treats readiness as a route-owned contract instead
of a raw websocket proxy signal: frontend-modern/src/components/Workloads/WorkloadsSurface.tsx
and frontend-modern/src/components/Workloads/useWorkloadsState.ts must keep
filters, stats, and table visibility driven by the workload route's own
REST-backed health so websocket churn does not hide already-fetched workloads
or swap the protected hot path into a false disconnected shell. The first
websocket connect on that route is not a reconnect and must not trigger an
extra workload REST refetch; only later false-to-true recoveries may pay that
refresh cost.
The same performance ownership now applies to the downsampled
pkg/metrics/store.go batched query path. QueryAllBatch may drop the global
SQLite ORDER BY resource_id, metric_type, bucket_ts sort from the grouped
query only if the runtime preserves ascending timestamps plus correct
avg/min/max bucket aggregates within every returned resource/metric series, and
the hot-path proof keeps latency, ordering, and aggregate correctness guarded
together in the explicit metrics SLO surface. That protected surface should
stay on one ordered index scan plus Go-side bucket aggregation rather than
forcing SQLite to GROUP BY computed buckets through a temp B-tree on the
fleet-scale workload path.
That runtime is now intentionally split by concern:
frontend-modern/src/components/Workloads/useWorkloadsState.ts owns
top-level Workloads orchestration, workload loading, and composition across
the canonical Workloads owners, while
frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts
owns persistent control defaults, keyboard-reset semantics, sort/search/tag
behavior, column visibility, and summary display preferences, while
frontend-modern/src/components/Workloads/useWorkloadsDerivedState.ts
owns grouped workload derivation, summary fallbacks, parent-node mapping,
and grouped/windowed table math, while
frontend-modern/src/components/Workloads/useWorkloadViewportSync.ts
owns grouped workload viewport synchronization and the scroll/resize listener
lifecycle, while
frontend-modern/src/components/Workloads/useWorkloadGuestMetadataState.ts
owns mounted guest metadata, optimistic custom-URL updates,
org-scope switching, and metadata refresh, and
frontend-modern/src/components/Workloads/useWorkloadRouteState.ts
owns workload-route synchronization, deep-link normalization, and route-scoped
filter contracts. Future workload hot-path changes must extend through those
owners within the Workloads surface, and new overview-route work must not
accrete back into frontend-modern/src/components/Workloads/WorkloadsSurface.tsx.
Docker-managed app-container saved web-interface URLs are a metadata identity
exception inside that owner boundary: Workloads must derive their metadata key
from Docker host plus normalized container name, read stable-first with legacy
runtime-key fallback, and keep intentional empty stable records so stale
runtime-key URLs do not reappear after a user clears the link. This must not
change the canonical workload ID used for selection, routing, charts, actions,
or hover correlation.
That same route-owned filter contract now also includes canonical workload
platform scoping for API-backed runtimes. Workloads URL-sync, filter-option
assembly, and workload drill-down routes must preserve
platform=<owned-source-key> for surfaces such as TrueNAS app-containers,
while treating host or cluster identity as secondary scope instead of
collapsing those routes back to generic agent-only semantics. The derived
workload hot path must also tolerate transient async route/data gaps by
treating missing filtered-workload collections as empty until the route and
resource snapshots converge, rather than crashing Workloads between sync
phases.
That same workload hot path also owns the split between canonical
app-container routing and Docker-only actions. frontend-modern/src/hooks/useWorkloads.ts,
frontend-modern/src/components/Workloads/workloadTopology.ts, and
frontend-modern/src/components/Workloads/useGuestRowState.ts must preserve a
canonical app-container navigation path while keeping Docker runtime action
identifiers explicit. Agent resource context follows backend-authored
discoveryTarget coordinates. TrueNAS app-containers may reuse image and
runtime metadata, while Docker-only update actions remain scoped to
Docker-managed workloads.
That same row-and-selection boundary also requires canonical app-container
identity to stay intact on the workload surface. Workload rows, deep links,
drawer selection, anomaly correlation, and route-state filters must key on the
unified resource ID such as app-container:truenas-main:nextcloud, while
Docker-native runtime IDs stay in a separate action-only field for Docker
controls like image updates. Performance work must not collapse API-backed
platforms back onto runtime-native container IDs or derive fake node scopes
from typed canonical resource IDs.
That same summary hot path must also keep workload hover identity canonical
across provider-backed history. Row hover and focus plus top-card isolation on
workload surfaces must resolve against the same canonical workload ID even
when the backing history is stored under a provider metrics target, so
provider-backed VM rows do not silently drop out of summary emphasis.
Platform-table hot paths treat operator-facing resource identity as a
protected boundary: sorting, searching, summary-series matching, and row
titles must use the canonical local instance identity (the resource's own name or
getPreferredInfrastructureDisplayName(...)) rather than governed AI-summary
text, so performance work cannot “optimize” a table into ambiguous labels that
collapse multiple resources into the same visible name.
A visible system column is identity-first presentation over canonical
merged-source data. The Docker hosts table's System column is the live
instance: frontend-modern/src/features/docker/DockerHostsTable.tsx sorts and
renders the same getDockerHostSystemBadge(...) result, and the render path
may keep full merged-source detail in tooltips. When a row contains both
agent and a provider/API platform such as Proxmox, the system badge must show
the provider platform rather than adding extra Agent badge width or sorting
primarily by the telemetry method. When a row is only known through an agent or
container runtime, the shared resolver prefers reported OS/appliance identity
before falling back to Docker/runtime capability labels; the Docker hosts
column drops that runtime-only fallback, since every row there is a Docker
host, and shows — instead.
A surface that shows source badges beside a versioned system badge must not
spend extra badge/title budget repeating that same platform as an unversioned
source; it may keep non-duplicate collection context such as Pulse Agent. The
resource drawer header avoids the repeat by showing system identity badges in
place of source badges.
That derived workload owner now also routes grouped row windowing through
frontend-modern/src/components/Workloads/useGroupedTableWindowing.ts, which
owns row-window thresholds, overscan behavior, reveal-index clamping, and
per-group visible-slice derivation. Future Workloads table windowing changes
must extend through that hook instead of rebuilding scroll math or mounted-row
budgets inline inside frontend-modern/src/components/Workloads/useWorkloadsDerivedState.ts.
Viewport-driven grouped table synchronization now also routes through
frontend-modern/src/components/Workloads/useWorkloadViewportSync.ts,
which owns the Workloads table body measurement and the scroll/resize listener
lifecycle. Future viewport sync changes must extend through that hook rather
than rebuilding browser-event wiring or table-body geometry reads inside
frontend-modern/src/components/Workloads/useWorkloadsDerivedState.ts.
Its wheel prewarm and scroll-position listeners are all passive: the window
tops its runway up in bounded dead-band batches, so the compositor never waits
on windowing work and a busy main thread degrades to a briefly delayed top-up
instead of a frozen wheel. This preserves continuous rapid scrolling without
increasing the bounded mounted-row budget.
The canonical public demo intentionally exercises this production hot path:
its default Proxmox estate contains 50 nodes and more than 900 guests, crossing
the mounted-row threshold while retaining the hook's 140-row desktop and
36-row phone mounted-window budgets. The demo
curation integration proof must assert both the 800-plus guest total and the
bounded mounted-row count. That same default estate produces more than 500
backup coverage targets and recoverable artifacts; the coverage and By date
tables must route through PlatformWindowedRows, retain full-set
filter/sort/count semantics, and mount at most 140 desktop or 36 phone row or day-header items
without pagination chrome. internal/mock/demo_scenarios_benchmark_test.go
records the corresponding graph-build, recurring sampler-update, and unified
resource projection costs, and the mock storage topology must stay linear in
node count so a realistic multi-cluster fixture cannot reintroduce quadratic
projection work.
All platform-native tables and long card lists use
PlatformWindowedRows, PlatformWindowedList, and
usePlatformWindowedItems over the same useTableWindowing controller. Those
owners preserve native scrollbar geometry with measured spacers, project wheel
and vertical touch movement before native scroll advances, and retain a
directional runway around the viewport. A feature may choose a smaller bounded
budget, but it must not restore an unbounded <For> over estate-sized data or
show a blank viewport while the keyed window catches up. PlatformWindowedRows
also reconciles unique string/number resource IDs into stable row proxies, so
sparse live snapshots update fields without remounting an open inline drawer
or discarding its tab and form state. Rows without a unique logical ID retain
reference-keyed rendering rather than paying for guessed index identity.
Spacer geometry and the inverse scroll-to-index mapping must share one
representative item height. The controller samples several leading siblings and
keeps the tallest, because a short leading group header sampled alone collapses
the estimate and lets the mounted window outrun the real scroll position,
turning a small scroll into many rows of unmounting and making an estate appear
to lose rows.
The workload guest-row path now follows the same pattern: the render shell
stays in frontend-modern/src/components/Workloads/GuestRow.tsx, tooltip-backed
cell presentation lives in frontend-modern/src/components/Workloads/GuestRowCells.tsx,
and the canonical row contract and per-row hot-path derivations live in
frontend-modern/src/components/Workloads/guestRowModel.tsx and
frontend-modern/src/components/Workloads/useGuestRowState.ts. Future row
identity, column, cell-tooltip, anomaly-correlation, and link-state changes
must extend through those owners instead of rebuilding row-local state inside
the shell.
That per-row link state now also consumes the shared
frontend-modern/src/routing/resourceLinks.ts workload-to-infrastructure
helper instead of a workload-local routing shim. Future infrastructure-link
changes for workload rows must extend through the shared routing owner rather
than recreating feature-local path builders.
That shell now also routes tag-dot rendering through the shared
frontend-modern/src/components/shared/TagBadges.tsx primitive instead of
keeping a workload-local badge helper. Future guest-row tag presentation
changes must extend through that shared owner rather than reintroducing a
workload-only tag-badge variant.
Guest rows may pass the already-loaded WorkloadGuest.instance value into that
primitive so per-instance Proxmox tag styles render correctly, but the workload
hot path must not add tag-color API calls, websocket lookups beyond the shared
store read inside TagBadges, per-row color-map normalization, or scans across
other workloads just to color a tag dot.
The Workloads guest drawer now follows that same ownership rule: the shell
stays in frontend-modern/src/components/Workloads/GuestDrawer.tsx, the
overview card surface lives in
frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx, and
drawer-local normalization, backup/tag formatting, discovery identity wiring,
and workload-derived navigation state live in
frontend-modern/src/components/Workloads/guestDrawerModel.ts and
frontend-modern/src/components/Workloads/useGuestDrawerState.ts. Future
drawer runtime and overview-surface changes must extend through those owners
instead of adding more mixed state and helper drift back into the shell.
Compact drawer technical sections in GuestDrawerOverview.tsx and
NodeDrawerOverview.tsx are a frontend-primitives dependency: the Workloads
hot path owns which sections and rows render and what data they show, while row
compaction, table rendering, and tone classes must compose
TechnicalDetailsSection, DetailSectionTable, and detailSectionModel.ts
instead of workload-local card frames or detail loops. Non-technical secondary
cards still compose InfoCardFrame where a framed interactive surface is
genuinely required.
Filesystem rows preserve their compact percentage, used/total, and type text
and supplement known utilization with the threshold-colored progress metadata
derived by diskListModel.ts. GuestDrawerOverview.tsx passes that metadata
to the shared detail-row primitive; it does not parse display strings, create
local bar geometry, or render a bar for the negative unknown-usage sentinel.
GuestDrawerOverview.tsx renders the Filesystems section on its own, in
front of the collapsed Details, so the mount-point list never shares a card
row with shorter sections; tags render as chips in the Overview facts strip
rather than as a Tags detail section. The guest and node drawers chart
history on Overview itself: GuestDrawerOverview.tsx and
NodeDrawerOverview.tsx lazy-load GuestDrawerHistory out of the
WorkloadsSurface chunk, open it on the 24h GUEST_DRAWER_HISTORY_DEFAULT_RANGE
and pass enabled={false} while Manage shows, so one query from
guestDrawerHistoryQuery.ts polls only while the charts are visible. These
drawers have no History tab, so there is no second read of the same resource
at another range (the deleted DrawerTrendCards.tsx and the History tab each
held one). The Docker host drawer and the shared resource-detail drawer
(agents, containers, PBS, TrueNAS, Kubernetes and other platform rows) follow
the same rule: DockerHostDrawerOverview.tsx and
ResourceDetailDrawerOverviewTab.tsx render GuestDrawerHistory on Overview
on the same 24h default and pass enabled={false} while another tab shows.
Panel width alone does not make mount paths readable. Filesystem disk rows must
opt into the shared layout: 'stacked' presentation so their full mount path
wraps above usage and progress at desktop and phone widths. Shared-prefix paths
must remain distinguishable without hover. Workloads supplies this row metadata,
not local table CSS or a duplicate renderer; non-filesystem rows keep the compact
default. Verification covers the opt-in at this composition boundary and actual
long-path wrapping in the shared renderer's browser proof.
A guest's linked Pulse Agent can stop reporting while Proxmox keeps polling the
VM. useWorkloads copies resource.agent.stale onto the row as agentStale,
and sets disksFromAgent when Proxmox reported no guest filesystems and the
agent's own disks filled in. When that agent is stale, GuestDrawerOverview.tsx
reads the Guest RAID card as last known through the shared RaidCard
lastKnownReason prop with HOST_AGENT_STOPPED_REPORTING_REASON, puts a status
line over muted Network rows, reads agent-supplied Filesystems rows through the
existing last-known disk read state, and marks the Pulse Agent row as stopped
reporting. Agent-supplied filesystem rows follow the agent's freshness rather
than the Proxmox diskStatusReason, which describes Proxmox's own guest reads,
so a live agent's rows keep their usage and bars. Those rows read as
unavailable once the guest is stopped, whether its status or the Proxmox
vm-stopped reason says so, and Proxmox's own guest filesystems keep their
Proxmox read state. The two flags ride the existing row mapping and
add no query or poll; GuestDrawer.test.tsx and useWorkloads.test.ts pin
both sources. The workload table's disk cell (useGuestRowState.ts,
GuestRow.tsx) and the drawer History (guestDrawerModel.ts) judge the same
guest through the drawer rows' rule, getWorkloadGuestDiskRead in
workloadGuestPresentation.ts: a silent agent's bars carry the Last known
label, a live agent's bars stay current under Proxmox agent-not-running, and
History reads the aggregate disk metric as current, last known or unavailable
the same way. The rule covers the aggregate because Proxmox records no guest
disk usage without guest filesystems, so a manually linked guest then keeps the
agent's disk metric, and the poller no longer carries that agent reading
forward as Proxmox's own prev- read (see the monitoring contract).
TestResourceRegistry_ManualGuestAgentLinkDiskMetricFollowsProxmoxGuestFilesystems
pins that merge; GuestRow.test.tsx and GuestDrawer.test.tsx pin the cell and
History. On the websocket path (resourceStateAdapters.ts) a native Proxmox VM
facet's new guest-read outcome drops filesystems it no longer reports, a native
agent facet without disks drops the agent's, and the agent facet always
carries stale, so the rows switch source and lose the Last known label when
the agent resumes, without a reload. A stale Proxmox source
can still lose the aggregate to a live agent while its own filesystem rows
remain; such a guest stays on the Proxmox rule. The agent's OS, addresses and
physical disk health carry no stale cue yet.
Realtime resource rows carry canonical source delivery status so an open
browser observes a server restart without a REST enrichment race. An explicit
pending agent delivery with unknown resource status withdraws that row's
previous current metrics and agent telemetry, while retaining identity and
the existing history target. The same full-snapshot and delta merge enforce
this boundary; unrelated rows retain their usual incremental update path.
Guest, node, and Docker-host drawer headers follow the same frontend-primitives dependency
boundary for collapse: the owning table (Workloads for guests, the Proxmox
nodes table for nodes, the Docker hosts table for Docker hosts) owns which
inline row is selected and the close handler, while
frontend-modern/src/components/shared/ObjectDrawerHeader.tsx owns the
full-width semantic header button, phone target height, focus treatment, and
collapse chevron. ProxmoxNodesTable must pass its node close handler into
NodeDrawer, the Docker hosts table must pass its close handler into
DockerHostDrawer, and those shells must not fall back to a small icon-only
collapse target or wrap interactive header actions inside a local button.
That drawer state now also consumes the same shared
frontend-modern/src/routing/resourceLinks.ts workload-to-infrastructure
helper, so row and drawer navigation stay aligned without a second
workload-local link-mapping file.
The shared infrastructure mapper hot path now stays intentionally narrow:
frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts
continues to own sensor-label presentation and hot-path host/agent projection,
while canonical drawer discovery-target derivation now lives in
frontend-modern/src/components/Infrastructure/resourceDetailDiscoveryModel.ts
under unified-resources. Future discovery-config or target-resolution
changes must extend through that unified-resource owner instead of
re-accumulating discovery heuristics back into the performance hot-path mapper.
That mapper may add simple host-agent thermals rows from already-loaded sensor
metadata, including thermalState, but it must not perform additional resource
lookups, history reads, or polling work to decorate the drawer.
The Workloads disk list now follows the same pattern: the shell stays in
frontend-modern/src/components/Workloads/DiskList.tsx, while disk-row
presentation derivations and fallback tooltip/runtime wiring live in
frontend-modern/src/components/Workloads/diskListModel.ts and
frontend-modern/src/components/Workloads/useDiskListState.ts. Future disk
usage math, threshold-color routing, and fallback handling must extend
through those owners instead of accreting back into the shell.
The Workloads filter now follows that same ownership rule: the shell
stays in frontend-modern/src/components/Workloads/WorkloadsFilter.tsx, which
composes the shared FilterBar primitive, while toolbar defaults,
active-filter counting, and reset semantics live in
frontend-modern/src/components/Workloads/workloadsFilterModel.ts. The legacy
useWorkloadsFilterState.ts hook retired with the FilterBar migration; its
countActiveWorkloadsFilters and hasActiveWorkloadsFilters helpers stay on
workloadsFilterModel.ts.
Workloads table-mode controls must also keep their accessible group name aligned
with the shared table presentation contract by using Group by for the
grouped/list selector instead of reintroducing local Group By casing or
platform-specific cluster wording. Dense workload toolbar variants must keep
the filter and presentation rails wrap-capable instead of forcing a single
no-wrap row that clips trailing actions. The workload shell leaves Type,
Status, dynamic scope, and contextual Clear filters actions on
the primary filter rail. Durable presentation choices — grouped/list mode,
bars/trends, Guest/Host memory basis, and Columns — pass
their panel content through FilterBar.viewOptions instead of importing or
wrapping ViewOptionsDisclosure in the workload feature or rendering as
equally prominent filter toggles. The shared FilterBar owns the inline View
disclosure across desktop and mobile layouts, including the mobile action-row
placement. Its compact desktop tracks use one shared width and control height,
wrap without stretching to fill the toolbar, and become one full-width column
on phones. Segmented choices divide their track evenly; the Guest/Host memory
basis keeps its visible labels concise so it does not widen the hot toolbar
path.
Contextual Clear, leading actions, and View stay in
one non-breaking mobile action cluster; trailing analytical controls and result
counts wrap independently so a narrow toolbar cannot strand View on a line by
itself or force page-level horizontal overflow. The compact Add filter control
joins that cluster only in the default state where no active menu chip,
contextual Clear action, or leading action needs its own filter row; active
scope editing keeps Add filter beside the chips. The sparkline range is a
trailing inline control, not a View option, because it is the frequently
changed analytical window. WorkloadsFilter renders it whenever the metric
mode is Trends, and in Bars only at desktop widths while Row hover is History
(the default); Bars with Details hover, or Bars below the 768px isMobile
breakpoint, hides it. Its compact control carries the visible History label
so the values are not an orphaned set of durations. Columns must expand
as a full-width responsive checkbox row inside the View disclosure instead of
opening a nested absolute panel or a tall single-column desktop list. On
Proxmox, the non-default Host basis must remain visible in the workload memory
column header after the View disclosure closes. No workload summary chart
section renders today, and WorkloadsFilter carries no chart-visibility
control or onChartsToggle / chartsCollapsed props. A summary section that
returns through a governed product decision must bring its own visibility
control with explicit Show charts / Hide charts pressed state, and hiding
charts must remove the summary section rather than leaving an empty collapsed
summary band on screen.
The Workloads-owned filter-config assembly now lives in
frontend-modern/src/components/Workloads/useWorkloadsState.ts, so future
filter runtime changes must extend through those owners instead of
reintroducing workload-local state, reset drift, or inline config assembly
into the shell.
Workload type option labels are part of that filter-config model ownership:
WorkloadsFilter.tsx must render the exported workload type option catalog
instead of embedding its own System containers / App containers wording in
the shell, with platform-first presentation allowed to narrow or relabel that
catalog only when the owning platform scope makes the broader v6 options
inapplicable. Proxmox narrowing must resolve the forced platform through the
canonical sourcePlatformScopeMatchesFilter helper against proxmox-pve, so
both the PVE scope and the proxmox-all aggregate expose only All, VMs, and
LXCs; the global Pods option must not leak into that platform-owned surface.
The Type and Status filters must remain one-click inline FilterBar controls
because they are the high-frequency workload narrowing path; dynamic scope
filters such as node, platform, namespace, and runtime stay menu-backed.
Once every menu-backed filter is active or lacks a selectable non-default
option, the shared FilterBar must remove the exhausted Add filter control;
clearing an active filter must restore it from the same catalog-derived state.
Consumers must not add page-local availability scans or disabled placeholder
controls to reproduce that behavior.
The dashboard threshold slider now follows that same pattern: the shell stays
in frontend-modern/src/components/Workloads/ThresholdSlider.tsx, while
metric-type text and fill presentation live in
frontend-modern/src/utils/thresholdSliderPresentation.ts, while
slider bounds math, thumb-position transforms, and title/label derivations
live in frontend-modern/src/components/Workloads/thresholdSliderModel.ts
and drag scroll-lock lifecycle lives in
frontend-modern/src/components/Workloads/useThresholdSliderState.ts.
Future slider runtime changes must extend through those owners instead of
reintroducing mixed drag state, type-color formatting, and presentation logic
into the shell.
The dashboard stacked disk bar now follows that same pattern: the shell stays
in frontend-modern/src/components/Workloads/StackedDiskBar.tsx, while
disk-capacity math, segment and tooltip derivation, max-disk labeling, and
mode-specific presentation live in
frontend-modern/src/components/Workloads/stackedDiskBarModel.ts and
resize-observer plus tooltip lifecycle live in
frontend-modern/src/components/Workloads/useStackedDiskBarState.ts.
Future disk-bar runtime changes must extend through those owners instead of
reintroducing mixed resize state and presentation branching into the shell.
The multi-disk vertical-bars mode (Proxmox nodes, Machines, and Docker
hosts with more than one agent-reported disk) draws one equal-weight micro-bar
per disk and labels the cell with the fullest disk's usage percentage, derived
in the model from the existing max-disk summary, so a multi-disk host answers
"how close is this host to running out of space?" at a glance in Bars mode
instead of only on hover or in Trends mode. The label names no disk in the
row; the mount and the per-disk breakdown stay in the title and tooltip.
A compact Proxmox node cell has no room for the micro-bars and draws the
aggregate bar with summaryStrategy="max", sized and coloured by the
fullest measured disk, so a nearly full disk is not averaged away on a phone.
The dashboard stacked memory bar now follows that same pattern: the shell
stays in frontend-modern/src/components/Workloads/StackedMemoryBar.tsx,
while memory-capacity math, balloon/swap tooltip derivation, anomaly label
presentation, and sublabel-fit logic live in
frontend-modern/src/components/Workloads/stackedMemoryBarModel.ts and
resize-observer plus tooltip lifecycle live in
frontend-modern/src/components/Workloads/useStackedMemoryBarState.ts.
Future memory-bar runtime changes must extend through those owners instead of
reintroducing mixed resize state, balloon branching, and tooltip shaping into
the shell. The model must also short-circuit explicit usage-unavailable input:
it may retain total capacity for explanatory copy, but it emits no numeric
memory segments, percentage, or fit calculation that could make unknown usage
look like zero. Platform tables and resource-detail mappers consume the same
canonical unavailable state instead of recomputing total - free in render
hot paths. The shell keeps its fitted percentage/capacity label on a
semi-opaque surface scrim with base-content contrast so segment colors cannot
make the small readout illegible; this remains CSS presentation only and adds
no measurement or per-row runtime work.
The Workloads memory bar consumes the same already-classified observation as
the row's freshness cue (memoryObservation.ts), without deriving freshness
from capacity, Last seen, another metric or a host-relative denominator.
Only a current observation may colour memory as live pressure or show its
anomaly badge. Last-known and unknown observations keep their percentage,
composition, balloon and swap geometry for inspection, in a neutral tone;
their composition tooltip carries the original source/time caveat. A current
linked-agent memory observation remains current while QEMU disk reads defer.
A current cache-inclusive Proxmox reading still reaches the row presentation,
so the VM row can say May include cache once the guest's own memory meets
its warning threshold (below it the caveat is title and assistive text only);
rows whose reading is current and cache-aware keep returning no presentation
without formatting a date or source label (memoryObservation.test.ts pins
both paths).
Tooltip headings, numeric values and neutral labels use theme-aware text so
the source caveat and composition remain readable on both light and dark surfaces.
An unavailable reading, including the shared bar's explicit unavailable input,
emits no swap indicator, swap usage tooltip or anomaly badge even when retained
numeric carriers are present. Known capacity may still explain that absence.
Unannotated unrelated-platform callers keep current behaviour and measured
zero remains zero. Alert records, thresholds, evaluation and historical series
are unchanged: withholding a live decoration neither dismisses an alert nor
establishes guest recovery. stackedMemoryBarModel.test.ts,
StackedMemoryBar.test.tsx and GuestRow.test.tsx verify neutral retention,
unavailable carriers, current controls, host/percentage-only paths and reactive
same-guest replacement. Browser acceptance uses the canonical Workloads mapper
and surface at desktop and phone widths, with source-owned memory independent
of QEMU disk deferral; it is not native guest or installed acceptance.
The dashboard metric bar now follows that same pattern: the shell stays in
frontend-modern/src/components/Workloads/MetricBar.tsx, while width,
show-label, sublabel-fit, and threshold-color derivation live in
frontend-modern/src/components/Workloads/metricBarModel.ts and
resize-observer lifecycle lives in
frontend-modern/src/components/Workloads/useMetricBarState.ts. Future
metric-bar runtime changes must extend through those owners instead of
reintroducing mixed resize state and label-fit logic into the shell.
Label fit in the metric, stacked memory, and stacked disk bar models goes
through estimateTextWidth in frontend-modern/src/utils/format.ts, which
sums per-glyph advances rather than multiplying a character count. The
advances come from one hidden probe of about 200 nodes carrying the label's
type classes, read once per page load and again only if the device pixel
ratio changes; that is the estimator's only layout read. It is never per bar,
the bars still take their width from the resize observer alone, and each
estimate after the probe is arithmetic over the label's characters. Each model
adds the padding its own label sits in, the stacked bars count the anomaly
marker that shares the label's line, and inline disk slots are sized after the
gap between them. Measured in Chrome on the 429-bar Proxmox overview on
2026-10-03: 1.7 ms for the probe and about 110 ns per estimate. Where layout
is unavailable the estimator uses the advances measured for the macOS system
font. formatExtra.test.ts verifies the single probe read and the fallback;
useMetricBarState.test.tsx and useStackedMemoryBarState.test.tsx verify
that the long label appears only at an observed width that fits it.
The dashboard enhanced CPU bar now follows that same pattern: the shell stays
in frontend-modern/src/components/Workloads/EnhancedCPUBar.tsx, while usage
formatting, anomaly presentation, tooltip load-average formatting, and
threshold-driven label state live in
frontend-modern/src/components/Workloads/enhancedCpuBarModel.ts and
tooltip lifecycle lives in
frontend-modern/src/components/Workloads/useEnhancedCPUBarState.ts. Future
CPU-bar runtime changes must extend through those owners instead of
reintroducing mixed tooltip state and formatting logic into the shell.
The Workloads CPU unit boundary is shared across rows, sorting, filtering, and
drawer history fallback. Canonical unified-resource APIs supply percent values;
frontend-modern/src/hooks/useWorkloads.ts converts that value exactly once
into the WorkloadGuest.cpu ratio, and
frontend-modern/src/utils/workloads.ts owns the inverse ratio-to-percent
projection used by GuestRow.tsx, workloadSelectors.ts,
frontend-modern/src/utils/searchQuery.ts, and guestDrawerModel.ts.
WorkloadGuest.cpus is allocated-core metadata only and must never divide or
multiply the CPU observation. Workloads consumers must not infer source
precedence, reinterpret ratios above an arbitrary threshold, or replace an
established provider history series; source authority and canonical identity
convergence belong upstream in the unified-resource and monitoring contracts.
Workloads disk selection follows the same guest-read freshness rule as the
row and drawer in frontend-modern/src/utils/workloadGuestPresentation.ts.
workloadSelectors.ts sorts current available readings before unavailable or
last-known readings in both directions; retaining a labelled number for
inspection does not promote it to a current capacity observation.
frontend-modern/src/utils/searchQuery.ts must not match a numeric disk
condition from absent, explicitly unavailable, negative-sentinel or non-finite
usage, or from a non-current guest filesystem read. An actually reported zero
still matches zero. The Workloads wrapper recognises the shared parser's
existing numeric equality syntax instead of treating it as a name query.
Linked Pulse Agent filesystems follow that agent's lease
and stopped-guest boundary, not a failed Proxmox read; unrelated stale agent
metadata must not suppress a current platform reading. Text/OR searches and
unfiltered inventory remain available. These are selection rules, not health,
thaw, collection-recovery or alert-policy verdicts. The selector and search
regressions cover refusal/retention, same-identity fresh withdrawal, linked-agent
precedence, both sort directions and unknown-versus-zero controls.
Resource table rows that surface policy posture must show at most a single
inline summary chip for blocking local-only/restricted posture; non-blocking sensitive +
local-first and redaction-only metadata belongs in Data Handling, detail, and
AI/governance surfaces instead of spending default row visual budget.
Agentless availability evidence belongs on the bounded row path.
Any resource row carrying an AvailabilityData facet—whether a standalone
network-endpoint or a known guest that inherited the facet through explicit
link or IP correlation—may replace otherwise empty host metric slots with one
compact inline target/result readout, while the System column owns the
protocol identity badge (ICMP, TCP, or HTTP). Recent check timing,
latency history, and fuller failure context may stay in bounded tooltip or
drawer detail, but the table must not duplicate the same probe protocol and
result text across the resource identity cell and metric cells.
That text must derive from the existing resource payload and shared
presentation helper instead of adding a per-row fetch, extra hydration pass, or
unbounded badge stack.
The canonical payload may carry multiple attached checks in
availabilityChecks; availability remains the bounded compatibility summary
selected from that already-hydrated set. Resource rows render one compact
summary and detail surfaces iterate the bounded attached set from the same
payload. Neither plural presentation nor freshness evaluation may issue a
check-specific request, reconstruct the set from the settings API, or add a
second websocket hydration path.
The infrastructure summary API (/api/charts/infrastructure, shaped in
internal/api/chartapi/service.go) must normalize mixed-resolution history into
equal-time summary buckets before it reaches its consumers, today the Proxmox
nodes table's Trends sparklines (frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx,
reading through useWorkloadTableMetricHistory with series: 'nodes'), so
long-range series do not bunch recent higher-resolution samples at the right
edge. On the frontend,
useWorkloadTableMetricHistory.ts owns polling for both estate summaries and
workloadMetricHistoryModel.ts owns series folding and chart-key matching;
table rows must not grow their own summary polling or series math.
Compact resource-facet summary chips render through the shared
ResourceFacetSummary component, whose only production consumer is the
detail drawer's change history, so it renders every chip. A table-row use must
first give that shared component a visible chip limit with overflow disclosure
instead of letting mock-rich rows wrap an unbounded badge list, and must stay
within the table's bounded windowing and mounted-row budget rather than forking
separate table-only presentation logic. That component now also
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 consistent without adding extra hot-path branching.
The same infrastructure hot path now also depends on the shared
frontend-modern/src/components/shared/ProgressBar.tsx primitive for metric
fill rendering. Performance-sensitive metric bars may vary by value and color,
but they must render width through shared attribute-driven progress geometry
instead of per-row inline width styles that break the hosted demo CSP.
Those summary chips are scoped to timeline and change-provenance badges only.
Generic capability and relationship badges stay off the default surface until
the underlying data is proven populated, so no surface spends visual budget on
model nouns that do not yet clear the product bar.
Facet summaries fall back to canonical facetCounts on each resource when no
fetched facet counts are available, reading totals from the shared resource
contract. The drawer history
surface reuses the same governed resource route helpers for relationship and
related-resource links, so cross-resource navigation stays within the existing
infrastructure surface rather than branching into custom detail-only routing.
Relationship-map detail now stays on that same drawer-only path: canonical
relationships come from the bundled resource facet payload when a resource is
opened, not from additional table-row hydration or a second all-resources pass.
The detail drawer now follows the same default posture by collapsing its
history overview down to timeline counts and timeline-summary chips, so the
performance-sensitive shared presentation path stays aligned with the
investigation-first product contract instead of rendering low-signal generic
facet sections by default.
Governance metadata such as sensitivity and routing scope shown in a table
must remain on the same bounded row-windowing and mounted-row budget rather
than creating a separate unbounded rendering path for policy-rich fleets.
The detail drawer's governance summary resolves governed resources through the
canonical policy-aware getResourcePolicyGovernedSummary(...) helper. That
keeps the policy-aware label path inside the same rendering budget instead of
adding a second display branch for redacted fleets.
Platform tables pass the canonical resource-label resolver into the detail
drawer through PlatformResourceDetailTableRow so related-resource chips in
the timeline/history path can resolve through the canonical catalog without adding a separate
detail-only lookup branch to the hot-row path.
The same detail drawer also uses that resolver for correlation dependency and
dependent chips, so the investigation path shows catalog labels in the drawer
and keeps the raw ID only when the catalog cannot resolve one.
The workload projection and the resource drawer share the canonical
cluster-name helpers in frontend-modern/src/utils/agentResources.ts, so pod
grouping and the drawer's cluster-name fetch keys keep using the same source
of truth instead of rebuilding the clusterName/context/clusterId prefix
locally.
A platform table that adds policy chips to row chrome must suppress the
default Internal + Cloud Summary policy pair. That baseline posture still
belongs to the canonical policy contract, but repeating it on every row burns
row-density budget without adding operator-grade signal. No platform table
renders policy chips today.
The shared node adapter (nodeFromResource in
frontend-modern/src/utils/resourceStateAdapters.ts) also uses that same
cluster-name helper for the node's clusterName, so the Proxmox host drawer
(frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx) shows the
same canonical cluster label instead of a raw adapter-local cluster string.
The drawer's Kubernetes namespace/deployment tabs use the canonical
cluster-name helper for fetch keys, so the visible navigation label stays
separate from the backend cluster lookup contract.
The workloads projection in useWorkloads also uses that same helper for pod
context labels, keeping the dashboard's Kubernetes grouping aligned with the
same canonical cluster-name boundary.
The drawer's discovery mapper also reuses that helper for pod fallback agent
IDs, so the resource-detail hot path and the dashboard selector path stay
aligned on the same cluster-name source of truth.
The unified-resource projection also uses that same helper for Kubernetes
clusterId, so the shared store, dashboard grouping, and detail-navigation
surfaces all see the same cluster-context prefix before any surface-specific
fallback applies.
The infrastructure summary and per-workload chart endpoints may keep a short
backend response cache for identical org/range/metric-scope or
org/range/node/point-count requests, but only as presentation hot-path
protection for repeated polling and remounts. The cached payloads must still be built from the canonical
store-backed/read-state sources, must remain isolated by organization and
explicit chart scope, and must not become telemetry freshness, lifecycle,
recovery, or persistence authority.
The infrastructure summary cache and the per-workload chart cache share one
process-local retention budget of 64 payloads and 16 MiB. Every insert sweeps expired query
variants and evicts oldest payloads at either bound, so raw range, node,
metric-order, or point-count variants cannot turn a short TTL into unbounded
steady-state memory. Responses larger than the byte budget remain uncached
after singleflight completion rather than displacing the whole cache.
Those budgets also assume Kubernetes pod history lookups hit one canonical
series key. Pod chart and history consumers must normalize bare pod IDs onto
k8s:<cluster>:pod:<uid> before lookup; otherwise demo and mock workloads pay
repeated empty-store misses and redundant refetch churn even while the shared
workload charts already hold the same pod metrics in memory.
Resource detail mappers now also use the shared
frontend-modern/src/utils/textPresentation.ts title-case helper for sensor
labels, so the canonical presentation layer owns that wording instead of the
mapper carrying its own title-casing branch.
Org-scoped cache-key paths (frontend-modern/src/hooks/useWorkloads.ts,
frontend-modern/src/hooks/useUnifiedResources.ts, and
frontend-modern/src/utils/storageSummaryCache.ts) normalize org scope through
the shared frontend-modern/src/utils/orgScope.ts helper instead of each file
carrying its own getOrgID() || 'default' fallback. That keeps cache isolation
and multi-tenant row-scoping aligned across the resource and storage-summary hot
paths. Readers on createNonSuspendingQuery need no org key: on org_switched
the query layer clears retained and live values, then re-reads every reader
with a non-null source; a disabled reader fetches when it is enabled.
GitHub-hosted runner proof for the API performance surface now intentionally uses a looser budget envelope than local/staging benchmark runs for the mixed-endpoint load test and the infrastructure/workload chart p95 checks. Those CI targets remain regression guardrails, but they are calibrated to the observed contention and CPU variability of the public release workflow rather than to workstation-class latency.
The store-backed metrics-history proof separates absolute latency from
concurrency degradation. Its load fixture waits for deferred metrics-store
startup maintenance, executes fixed concurrent work, and compares throughput
with a serial baseline measured in the same process immediately beforehand;
it must not use a fixed-duration request-count floor tied to one hosted-runner
or SQLite-driver generation. The absolute concurrent p95 ceiling remains in
force, while TestSLO_MetricsHistoryStore measures the fast single-request
path in small amortized batches so isolated scheduler or GC pauses cannot
decide a release without a sustained endpoint regression. The strict local
store-backed target remains 5ms; the hosted-runner envelope is 15ms after the
2026-08-09 exact-SHA rehearsal sustained an 11.98ms median and 12.23ms p95 on
the public runner. The mixed-endpoint proof must likewise execute fixed work
per endpoint group and use its absolute p95 budgets rather than racing
minimum request counts against a fixed wall-clock launch window.
The metrics store write boundary now fails closed on malformed samples. Empty
resource identifiers, empty metric names, unsupported tiers, and legacy
resource-type writes must be dropped before they reach SQLite so the governed
hot-path query surface cannot silently accumulate unqueryable garbage rows that
inflate store size and distort downstream performance evidence.
Canonical metrics resource types now also normalize case at the store boundary.
agent, vm, and other governed resource-type keys must not drift into
uppercase or mixed-case variants that write successfully but fragment the
metrics hot path into effectively separate query spaces.
The query boundary must use the same canonicalization rules. Resource
identifiers and metric names passed back into Query, QueryAll, and
QueryAllBatch must be normalized the same way writes are, so whitespace- or
case-polluted callers cannot manufacture false "missing metrics" results,
split one governed metric stream into mixed-case query buckets, or trigger
redundant batch work against otherwise valid stored samples.
That same metrics-store boundary also owns the persistent DB file path. The
runtime must normalize the owned metrics directory and resolve the selected DB
filename through the shared storage-path helper before it creates directories
or opens SQLite, instead of trusting raw caller-built paths.
That same ownership includes local SQLite artifact permissions. The metrics
store must create or re-harden the selected database directory as owner-only
and must reject symlink or non-regular database targets before opening SQLite;
the .db, .db-wal, and .db-shm artifacts must be chmodded owner-only even
under a permissive process umask.
That hardening must never chmod a filesystem root, sticky shared directory, or
directory owned by another account. Unsafe parents such as direct
/tmp/metrics.db placement must fail with dedicated-subdirectory guidance;
external systemd mounts must remain explicit ReadWritePaths grants rather
than weakening the default service sandbox.
That same metrics hot path must also keep startup maintenance off the
constructor critical path. NewStore may initialize schema and return a usable
store, but restart-time retention cleanup and one-time auto-vacuum migration
must run through the background worker so large historical databases do not
block application startup before the metrics store is even available.
That same metrics hot path now also owns compact physical-disk drawer charts.
Thirty-minute storage detail charts must query the same in-memory plus
store-backed disk history path as longer-term disk charts, with the backend
doing range selection and fallback. Feature-local polling loops or browser-side
disk ring buffers are forbidden because they duplicate live sampling work and
drift out of sync with the governed history timeline.
Categorical availability history shares that metrics-store lifecycle without
being encoded as numeric metric samples. Raw observations enter through the
single writer queue, compact into exact-duration minute/hour/day buckets, and
prune on the existing entitlement-aware retention worker. A fleet read accepts
at most 200 target IDs and 120 output buckets and completes with three bounded
queries for rollups, live tails, and revision boundaries, never one query per
tile. Target/timeline, tier/retention, and revision/time indexes are part of
the hot-path contract and are pinned by the metrics-store query-plan proof.
That same hot-path ownership now also requires lazy-load-safe websocket
consumption. frontend-modern/src/components/Workloads/useWorkloadsState.ts
may read connection and alert state only through
frontend-modern/src/contexts/appRuntime.ts; it must not import @/App or
create a reverse dependency into the root shell just to read websocket state.
The same hot-path discipline now applies to public-demo commercial reads.
Shared shells may consume the small /api/license/runtime-capabilities
contract for feature truth, but commercial demo routes stay hidden and the
browser must not keep retrying /api/license/commercial-posture,
/api/license/entitlements, /auth/license-purchase-start,
/api/upgrade-metrics/*, /api/admin/upgrade-metrics-funnel, or other hidden
commercial endpoints from performance-sensitive settings or route shells. The
retired local commercial analytics routes must not become route-shell polling
fallbacks or background bootstrap work after their normal product API removal.
Paid-runtime block records are allowed on that same small
runtime-capabilities response, but route shells must treat them as already
loaded runtime identity facts. They must not start polling billing
entitlements, checkout, or commercial posture endpoints just to decide whether
a community runtime should show private Pulse Pro download guidance.
Workloads consumers now also keep null-tolerant read models on the shared hot
path. Guest rows, stacked bars, anomaly summaries, and
resource detail mappers may accept partial platform metadata or undefined
ratios, but they must normalize those values once in the shared model layer
instead of scattering non-null assertions or per-component count coercion
through the Workloads runtime.
That same workload-table hot path now also owns a single width contract.
frontend-modern/src/components/Workloads/WorkloadsTable.tsx,
WorkloadTableHeader.tsx, GuestRow.tsx, and guestRowModel.tsx must remain
the canonical owners for desktop and mobile workload column sizing. Global CSS
must not reintroduce competing .workload-table [data-workload-col=…] width
rules or min-width: max-content fallbacks that can blow the table out
horizontally on Firefox or other desktop browsers.
Operator-pinned widths remain part of that same contract: the header owns the
pointer gesture, workloadColumnWidths.ts owns clamping, snapshots and totals,
workloadColumnLayoutUrl.ts owns the bounded URL projection, and
useWorkloadsControlsState.ts owns persistence plus reset. Manual mode must
publish the exact sum of visible pinned widths to the existing table scroll
shell, while narrow, phone, and mobile layouts ignore both stored and linked
widths and expose no resize handles.
The mixed Workloads Info/compact ID column must also remain sortable by the
exact scalar rendered for each workload kind. guestRowModel.tsx owns that
projection and workloadSelectors.ts owns its natural ordering, including
numeric VM IDs, text fallbacks for images and namespaces, and empty values
remaining last. Header code must consume the column model's sortKey instead
of adding a second display-specific sorting path.
The same internal/api/router.go payload boundary also keeps the
will_fix_later remind-at deadline scoped to a single optional pointer
(*time.Time) per finding on both API write paths, so adding the
operational-commitment field does not regress the unified-findings hot
path with a per-row allocation when the dismissal reason is anything
other than will_fix_later. The newer AutoResolved attribution flag
on the same UnifiedFinding shape stays a fixed-size bool in the same
struct, so the operator-vs-Pulse closure attribution adds no per-row
allocation pressure on the same hot path.
The canonical Workloads table mobile floor is 36rem. The mobile table branch
must preserve that intrinsic width inside its existing scroll shell instead of
combining it with min-w-full, which allows the operational columns to
compress into unreadable phone-width fragments. guestRowModel.tsx owns the
phone priority projection: retain workload identity and availability once,
then prefer the already-loaded CPU, memory, disk, and age signals over type or
provider context that the identity cell already communicates. Wider mobile and
desktop projections may restore those secondary fields through the same column
model. This is a layout-only contract: priority changes must remain static
model/class work and must not add row-time measurement, duplicate tables,
viewport listeners, or per-row responsive signals to the Workloads rendering
hot path.
The router owns exactly one in-process Patrol action transition publisher. Publication remains an O(1) wakeup keyed by org and action id; reconciliation and read-time recovery use indexed action-audit lookups rather than scanning findings or audit history. SQLite keeps dedicated state and valid-origin JSON indexes for pending queues and missed-callback hydration.
The action.completed projection reads the already-loaded
ActionAuditRecord and derives canonical ActionResultV2 plus the bounded
legacy compatibility fields in process. Projection adds no action-store
lookup, polling loop, provider call, or evidence fetch. Canonical evidence and
reference counts, text, and identity fields remain bounded by the
unified-resource-owned ActionResultV2 contract, so event publication cannot
turn terminal action evidence into an unbounded payload or hot-path query.
Patrol Autopilot config mutation cost and serialization
Acknowledgement creation, revocation, and activation reuse the Task 04
in-process policy-mutation coordinator and perform one load, pure validation,
and atomic SaveAIConfig replacement. Existing acknowledgement and revocation
history is compared as an exact immutable prefix, so stale writers cannot
replace prior authority facts. Activation and requested mode are committed in
the same write; runtime publication occurs before releasing the same mutation
boundary. Exact retries do not append evidence or rewrite timestamps.
This is a per-tenant, single-process serialized config boundary, not a claim of distributed multi-writer CAS. Provider-wide inheritance, distributed budgets, and cross-process policy mutation remain outside this backend prerequisite.
The authenticated app bootstrap performs one bounded Patrol attention summary read and stores only low-cardinality counts. Queue list reads are paginated to at most 200 items, posture joins batch at 200 subjects, and the summary path does not scan recovery history or perform per-resource reads.
Phase 5 action enrichment preserves that bound. It runs only after attention
pagination (or for one selected detail), builds the resource registry once,
opens the action store once, evaluates actor authority once, and performs one
latest-action batch read for at most 200 operational record IDs. SQLite uses
the indexed origin_json operational-record expression; MemoryStore performs
one bounded pass. The summary path performs no registry, action-store,
executor-readiness, or action-origin work. Readiness checks remain local to
the already-bounded visible page and do not issue browser requests per row.
Operational Trust rollout bounds
The completed Operational Trust path preserves these explicit bounds:
- active-count and summary evaluation use the in-memory canonical projection;
- attention pages are capped at 200 items and a 10,000-record projection has a five-second shared-CI ceiling;
- recovery posture joins batch at 200 subjects and platform tables issue one bounded request rather than one request per row;
- action enrichment occurs after pagination and uses one registry, authority, and latest-origin batch;
- evidence and recovery retention remain store-owned, indexed, bounded, and covered by query-plan and retention tests;
- Operational Trust telemetry uses bounded enumerated labels only and never introduces resource-cardinality labels.
Workload URL persistence remains lookup-only on the hot path. Docker and Kubernetes stable metadata candidates are derived synchronously from platform identity already present on each workload; the workload hook may carry the cluster scope needed for that calculation, but must not add per-row requests, runtime-UID scans, or a second metadata cache. Kubernetes persistence uses the fully scoped cluster, kind, namespace, and name identity; runtime pod UIDs are legacy fallback coordinates only.
The public agent-version reconciliation path on internal/api/router.go
remains an O(1) target projection. Cache-prevention headers and the
agent-supplied non-secret cache key add no inventory scan, persistence read,
metrics fan-out, or background work to GET /api/agent/version.
Canonical request-origin resolution on internal/api/router.go stays O(1)
resolveRequestOrigin, requestOriginBaseURL, and
resolveConfiguredPublicBaseURL in internal/api/router.go perform bounded
trusted-peer lookup, header selection, strict authority parsing, and constant-
size configuration precedence on the request already in hand. Reuse by
public-URL capture, SSO responses, config-owned PVE/PBS install commands,
setup-script artifacts, deployment payloads, onboarding, and security status
adds no inventory scan, persistence read, metrics fan-out, or background work.
The trusted-proxy CIDR cache remains process-local, and the resolver's request
cost is bounded by the small authority/header inputs.
Hosted config-owned callers add one constant-size configured-URL validation
before any token mutation. Missing, auto-detected, or invalid hosted
configuration exits before API-token persistence, setup-token insertion, PBS
network I/O, or instance persistence; successful PVE/PBS command and
setup-artifact generation performs no additional scan or fan-out. The
diagnostics Docker/Podman migration route performs the same O(1) resolution
before token generation and adds no persistence read on its hosted failure
path. Router-level proof lives in
TestContract_HostedInstallerOriginsFailClosedAtRouter and
TestContract_HostedDiagnosticsDockerPrepareTokenValidatesOriginBeforeMutation,
while the self-hosted request-origin matrix remains in those diagnostics cases
and TestContract_RequestOriginCannotRetargetTokenBearingCommands.
Hosted returning-user and Stripe checkout magic-link paths likewise perform one
O(1) configured-URL resolution before account lookup or token persistence.
Unavailable configuration adds no token-store write or cleanup scan: the public
route returns its bounded generic response and the Stripe path completes its
existing billing/index/deduper work while skipping only optional email
delivery. In-memory and SQLite proof plus duplicate-event coverage lives in
TestContract_HostedMagicLinkRequestValidatesOriginBeforeMutation and
TestStripeWebhook_CheckoutMagicLinkValidatesOriginBeforeMutation.
Runtime branding remains a bounded bootstrap read
Authenticated application branding is loaded once alongside the existing
system-settings and layout bootstrap work. useAppRuntimeState.ts must keep
that request in the same parallel bootstrap group rather than serializing it
ahead of state hydration, organization startup, or WebSocket connection.
GET /api/runtime/branding performs one cached entitlement decision and at
most one tenant-local system-settings read; it must not scan tenants, read
external logo files, call a licensing network service, or add per-route and
per-component refetches. The response remains bounded to an enabled flag, one
120-character display name, and the already size-limited inline image.
Workloads empty-state capability gating adds no request
The workloads no-inventory empty state gates its Settings handoff on the
session's infrastructureRead capability. That capability must be read from
the already-published session store in
frontend-modern/src/stores/sessionSettingsCapabilities.ts, which is filled by
the single /api/security/status resolve useAppRuntimeState.ts already
performs on mount — the same response that feeds the session presentation
policy and session capabilities. The gate must not add a fetch of its own, must
not poll, and must not be resolved by mounting Settings or by calling
/api/security/status a second time from a workload surface.
Cost on the hot path stays a signal read inside the existing
workloadsNoInventoryState memo in useWorkloadsState.ts: no extra query, no
per-row work, and no additional pass over the workload set. The memo already
recomputes only when its inputs change, so a session whose capabilities never
change re-renders the empty state no more often than before. WorkloadsSurface
resolves the same value through the shared presentation helper rather than a
local literal, so the gate costs one accessor call on the empty-state path and
nothing at all when workload rows are present.
Per-tenant resource stores are released on offboarding and shutdown
Tenant offboarding and process shutdown use the API store-lifecycle contract, including its source controls and qualification limits.
Report-ack version echo adds no steady-state work
The serverVersion field on unified-agent report acks is a constant string
echo per report. Agents queue an update check only when the ack version is
strictly newer than the running agent, and at most once per distinct version
(TestNudgeVersionNudgesEachDistinctVersionOnce), so steady-state report
traffic — equal versions on every cycle — never wakes the update loop and adds
no recurring work on either side.
Runtime display load preserves the bootstrap request budget
The authenticated bootstrap in frontend-modern/src/useAppRuntimeState.ts
replaces its one GET /api/system/settings request with one
GET /api/runtime/display request. It remains concurrent with runtime branding,
runs once per authenticated page bootstrap, and adds no poll or serial round
trip. Non-admin sessions also stop producing the refused admin request and its
fallback path.
Workloads polls only the bounded runtime inventory projection
useWorkloadsState.ts retains one non-suspending source-health query on mount,
one background refresh every 15 seconds, and one refresh when the surface
reconnects. That query now uses RuntimeInventorySourcesAPI.list() exclusively;
the Workloads owner contains neither ConnectionsAPI.list() nor the
workloads-connections cache key, so the polling loop cannot regress to the
admin ledger. WorkloadsSurface.performance.contract.test.tsx mounts the real
state owner, observes the runtime request, and proves the mocked admin client is
never called; its raw-source ratchet pins the same invariant for every future
interval refetch.
The server work remains one cached buildConnections aggregation with no
probing, persistence, grouped-system construction, or command-session
enrichment. It filters disabled, coverage-free, and healthy sources with no
collection-completeness issue before serialization, so the response is no
larger than actionable blocker or degraded-completeness input. Client
presentation is a single pass over that bounded list and performs no per-source
fetch or detail lookup. Platform pages that need the same snapshot must inject
the owning query into embedded Workloads state so they do not create a second
poll.
Resource policy reads stay outside the Workloads hot path
The Proxmox guest drawer mounts ResourceOperatorStateSection only for the
currently expanded workload. Its non-suspending query performs one canonical
operator-state read for that selected resource and does not add table-row,
hover-preview, interval, or websocket work. Saving monitoring or lifecycle
policy performs one mutation and one selected-resource refetch. The Workloads
list, selectors, windowing, and polling budgets remain unchanged.
The same selected-guest boundary may read Unified Agent physical disks for an
open, agent-linked VM drawer. GuestPhysicalDisks uses the canonical guest
resource ID as an exact parent filter with type=physical_disk, and checks
each returned row's type and parent again before rendering SMART details. It
must not expand the Proxmox Overview's VM-only resource query, fetch for
uninstrumented or unopened guests, or add per-row, hover, interval, or
whole-estate physical-disk work to Workloads. The guest's existing agent RAID
snapshot remains local to the opened drawer; an empty or failed child query
must not imply that host disks belong to the guest. Focused hook and drawer
tests pin the query and no-data/error presentations.
The drawer judges those disks' heat under the guest agent's alert overrides:
its agentId, which useWorkloads copies from resource.agent.agentId onto
the workload row, then the guest's own override keys. That reads the alert
configuration already loaded and adds no query, poll or per-row work.
While Manage hides the Overview, the drawer's historyEnabled also pauses
these disks: an expanded disk's charts stop polling (they polled every 10-30
seconds behind the hidden tab) and the list's realtime refresh is held
through useUnifiedResources' realtimeEnabled; returning to Overview reads
once and resumes. browser-tests/guest-storage-2263.cjs counts the reads.
Configuration transfer authorization stays off persistence hot paths
Persisted and environment-backed SSO state is loaded into the router's auth snapshot during construction. Export/import authorization then uses in-memory configuration, session, token-context, organization-context, and hosted-state checks before handing the request to either body-decoding handler. Denied requests perform no configuration export loads, import transaction work, metadata replacement, or runtime reload. Authorized archive encryption, decryption, transactional persistence, and reload costs are unchanged.
Proxmox node network inventory uses a bounded refresh cadence
Configured node interfaces are slow-changing provider inventory, not a hot
metric. Each online node may perform one bounded PVE network read on initial
observation and at most once per five-minute wall-clock window thereafter;
ordinary node polls within the same window reuse the deep-copied last-known
inventory. Offline nodes perform no network read. The call uses the existing
poll context and cluster failover boundary, adds no goroutine or frontend
request, and a failed read retains the previous bounded slice.
internal/monitoring/node_memory_sources_test.go pins both failure continuity
and the within-window no-call path.
Mobile alert severity routing stays off persistence hot paths
The router loads the persisted Relay alert-severity floor when it constructs or
refreshes the Relay client and caches the normalized value under the same
relayMu boundary. Dispatching an incident performs one in-memory eligibility
comparison before the existing asynchronous push call; it does not read system
settings, open storage, enumerate paired devices, add a poll, or create a new
goroutine per destination. Updating Relay settings atomically replaces the
cached client and floor, so the next incident observes the new policy without
turning alert fan-out into configuration I/O. The hosted Relay runtime tests
pin persistence and cache replacement together.
Alert readiness is published with its alerts
commitActiveAlertsTruth sets activeAlertsHydrationStatus to ready and
applies the alert map in one batch, for socket snapshots, socket deltas and
REST recovery alike, so a reader that sees ready also sees the alerts it
vouches for. Alert History relies on this before deciding a linked alert is
not firing; the batch adds no work, it only defers effects to one flush
(websocket-resilience.test.ts, websocket-unified.test.ts).
Mock alert timelines reuse the canonical fixture graph
Mock alert incidents are built once with the canonical fixture graph and read
under its existing lock. An occurrence lookup is a bounded scan of that
in-memory fixture slice; a resource lookup performs one scan, clones only the
matching incidents, sorts them newest-first, and applies the requested limit
before transport. Reads add no persistence access, provider request, polling
loop, or per-row frontend fetch. Notes mutate the matching in-memory fixture
under the same graph lock and advance the fixture data version without
rebuilding the estate. internal/mock/alert_incidents_test.go proves bounded
resource results and defensive-copy isolation, while
internal/api/alerting/alerts_test.go proves that mock transport does not need
the production incident store. Converting the graph's active alerts to
models.Alert copies Summary beside Message as one more string field; it
adds no lookup, allocation per row beyond that string, or transport request.
Synthetic linked-host machine identities and Docker machine/agent identities
are derived from stable fixture host identity when constructing the graph.
Rebuilding the same estate therefore preserves canonical agent IDs and the
resource policy attached to them. internal/mock/generator_test.go verifies
nonempty machine and agent IDs and canonical identity across fixture rebuilds.
This changes fixture generation only, without relaxing production identity
resolution or adding work to the recurring update path.
Mock linked fixture builds use the live resource generation
The fixture graph delegates snapshot and supplemental resource assembly to MonitorAdapter.PopulateSnapshotAndSupplemental. It shares the live monitor's source ordering, deferred operator-link boundary, availability projection and final freshness verdict. Storeless generations retain explicit links without adding persistence. The fixture data and link cache boundaries remain unchanged.
The graph obtains resources and metrics targets together through GetAllWithMetricsTargets, which indexes source mappings once. It does not materialize an unrelated VM view to warm a cache or scan all mappings for each resource. Generation cost is paid when a fixture view rebuilds, not on every alert target lookup. No performance measurement is claimed for this change. TestFixtureGraphAppliesManualLinksAtTheRebuildsBoundary and TestFixtureGraphMatchesMonitorSupplementalFreshness in internal/mock/platform_fixtures_test.go pin the generation behavior.
vSphere workload groups follow canonical parent identity
The workload adapter copies resource.parentId into parentResourceId. vSphere workload groups use that server parent identity while cluster, connection and host display labels are enriched. A metadata update therefore keeps the row and its drawer mounted, including its selected tab. The workload instance fallback uses an explicit cluster and never the workload's own name. Legacy rows without a canonical parent retain the existing scoped fallback.
The snapshot-enrichment case in hooks/tests/useWorkloads.test.ts and the parent-identity cases in Workloads/tests/workloadSelectors.test.ts preserve group stability, updated display labels and separation of equal host labels belonging to different canonical parents.
Alert passes resolve metrics targets without materializing the estate
An alert pass makes one Monitor.MetricsTargetForResource call per resource
and windowed metric, so that call has to be a lookup, not a view build. In mock
mode it reads the targets the cached view captured and keeps reading them across
metric ticks (see "Mock-mode metrics-target lookups ride the fixture structure
revision" in the monitoring contract). On pulse-dev,
BenchmarkMockMetricsTargetResolutionAfterTick measured a pass of 4,731
lookups against the default estate, after a tick, at 1.8 ms and 151 KB. The
data-version key made the first lookup after every tick build the estate, and
made every lookup of a pass build it once a build outlasted the 2-second tick,
which stalled startup under CPU starvation. Real mode did not show this cost in
steady state: the store is itself the read state, and a one-off measurement
with a temporary counter (not asserted by a test) found a full
updateResourceStore pass over 1,694 resources (populate, metric syncs and
alert sync) taking 108 ms with 121 registry resolutions that fell back to the
full-mapping scan, because the registry's typed views are built before the
alert loop runs. BenchmarkLiveRegistryMetricsTargetResolution records only
the lookup cost of a registry whose views are unbuilt against one whose views
are built (136 ms against 5 ms per 5,079 lookups); it controls the warming
itself, so it cannot detect production failing to warm the views before the
alert loop, which is what the one-off measurement above showed. Run both
benchmarks with -benchtime=3x, since the registry case rebuilds its ingest
outside the timer. TestMockMetricsTargetLookupsDoNotRebuildTheViewAfterFixtureTicks
is the guard that fails on a rebuild per lookup. The remaining startup cost
under starvation was the monitor's repeated full resource-store passes (one per
supplemental provider registration, 19 before the listener answered) and the
other consumers of the shared view, which rebuilt it whenever they found it
stale. A start now makes one pass and one estate build, and a mock-mode process
with no client connected no longer builds the estate on every monitor tick (the
data-version consumers, broadcast and /api/state, still rebuild it after a
tick for a connected client). The callers that read
identity and topology only share the view built for the current fixture
structure, and the connection-degraded alert feed no longer asks the monitor for
hosts or PBS instances it throws away (see "Mock-mode metrics-target lookups
ride the fixture structure revision" in the monitoring contract for the callers
and the measurements).
The mock lookup benchmark keeps the fixture logger quiet through setup, calibration and cleanup, then restores it. Untimed fixture logs otherwise split Go's result line and leave benchstat without that sample. The measured lookup work and reported lookup count stay unchanged.
Update evidence reuses the bounded node observation
Package evidence adds only one bounded status, one bounded reason, and the existing count and timestamp to each Proxmox node facet. It introduces no new poll loop, websocket channel, history series, or per-render scan: collection retains the existing 30-minute cache and frontend projection/presentation is constant work per rendered node. Failed refreshes reuse the single cached successful observation rather than accumulating attempts or provider errors.
Container collection mode adds no Workloads hot-path work
The optional Docker collectionMode value is copied through the existing host
resource and Workloads projections in constant work per resource. It adds no
poll, query, websocket subscription, history series, cache, per-row scan, or
responsive signal. The Docker drawer evaluates the one bounded string only for
the selected host, and summary-only helper collection omits the existing
stats-dependent and secondary-inventory work at the agent.
Patrol digest schedule runs are bounded reads
A patrol_digest run performs the same bounded reads as
GET /api/ai/patrol/digest (retained run history, in-memory findings, a
capped action-audit page, and cost events for the window) once per weekly
occurrence, under the existing schedule run mutex. It adds no polling, no
per-resource fan-out, and no new persistence.
Reconnect admission uses constant-time snapshot evidence
Runtime resource resolution uses a store signal recording resource snapshot receipt, or an already populated resource array, rather than alert payload presence. Reconnect must not add an estate fetch or scan to recover navigation. The signal survives transport loss and resets on organisation URL changes.
On admission-request failure retain the existing facet without extra retries, polling or full-estate reads. A later successful refresh replaces that facet.
ASCII route-label classification
HTTP metric route normalization classifies numeric IDs and UUID-like labels using ASCII byte checks. Unicode decoding is unnecessary for this alphabet. Preserve numeric-before-token precedence and ordinary Unicode or invalid UTF-8 names while optimizing this shared path. Qualification compares exact base and candidate on the same worker with alternating samples, and retains full-route and middleware controls. Identical source or instruction sequences alone do not prove identical timing. The recorded final ten-pair check passes the unchanged time/bytes/allocation gate with no adjacent request-path regression.
The disconnected incident recorder and its fleet metrics adapter are retired. Router initialization no longer launches their five-second cached-metrics loop or allocates per-resource pre-incident buffers. Explicit legacy archive reads are lazy and bounded to the existing 16 MiB file limit. Canonical resource history supplies current diagnostic evidence without a second sampling loop.
Metrics-store operational statistics use one dedicated read-only connection,
separate from the bounded history/write pool. Saturating history connections
must not prevent GetStats from reading current committed tier counts. This
is connection-capacity isolation, not cached or estimated statistics. The
statistics pool belongs to the store and closes on normal or timed-out shutdown.
The existing 500-node mixed-endpoint workload and latency budgets remain intact.
pkg/metrics/store_additional_test.go holds every history connection to
prove availability without relying on favourable scheduling, and covers
committed-data visibility, write rejection, clear and pool shutdown.
Metrics-store shutdown never closes the ingestion channel
The metrics store's ingestion worker must not close its write channel on
shutdown. A concurrent writer that passed the stopping check before Close,
and the WriteBatchSync/WriteBatchBounded paths that do not consult
stopping at all, may still send to that channel. Closing it races those sends
and panics the process during shutdown. The worker instead drains already-queued
requests without closing the channel; a late write lands in the buffered channel
and is discarded with the store. pkg/metrics/store_additional_test.go pins the
post-shutdown enqueue and the concurrent-close race.
Metrics-store rollup checkpoints never leap source gaps
A tier rollup must not advance its checkpoint past a window that has no source
rows. The previous implementation jumped the checkpoint to the rollup cutoff
whenever a source gap followed already-processed windows, so a lower tier that
backfilled the gap later (for example after a transient raw-to-minute failure)
had its rows stranded below the upper tier's checkpoint and eventually purged by
retention. rollupTier now stops at the gap, leaving the checkpoint at the gap
start; the next invocation skips the gap once it is confirmed empty. The
nextSourceRollupBucket prefix skip still runs only before the first source
window of an invocation, preserving bounded catch-up. pkg/metrics/store_additional_test.go
pins the interspersed-gap backfill in
TestStoreRollupTierBackfillsInterspersedGap and keeps
TestStoreRollupTierEmptyWindowPreservesCheckpoint.
Metrics-store retries match the SQLite driver error code
Transient write and read retries must classify SQLite lock errors by the
modernc.org/sqlite result code rather than by an exact message. The driver
reports database is locked (5) (SQLITE_BUSY), which an equality check against
database is locked never matched, so a busy writer dropped its batch without
retrying. isRetryableWriteError matches the BUSY/LOCKED code family with a
substring fallback for closed-pool errors. A direct aggregate-tier write also
preserves an existing rollup row's min_value/max_value via COALESCE rather
than nulling the stored spread. pkg/metrics/store_additional_test.go pins both in
TestIsRetryableWriteErrorMatchesDriverBusyCode and
TestStoreWriteBatchPreservesRollupSpread.
One-time auto-vacuum conversion runs on one connection
migrateAutoVacuum must run PRAGMA auto_vacuum = INCREMENTAL and the
follow-up VACUUM on the same SQLite connection, because the pragma is only a
per-connection setting until that connection's VACUUM rewrites the file
header. Running them on separate pool connections could leave the file at NONE
and repeat the full-file VACUUM on every restart. The migration now pins a
connection, verifies the persisted mode, and leaves the conversion for a later
restart if verification fails. pkg/metrics/store_additional_test.go pins the persisted
mode in TestStoreAutoVacuumPersistsAcrossRestart.
Metrics-store writes survive the one-time startup write-lock hold
The deferred clustered-table migration and the auto-vacuum VACUUM can hold the
SQLite write lock for minutes on a large legacy database. BEGIN is deferred,
so the lock is contended at the first INSERT or at COMMIT, not at Begin;
a retry loop around Begin alone skipped rows and committed an empty
transaction. writeBatch now retries the whole transaction on a retryable lock
error, and while startup maintenance is active it uses an extended budget
(startupMaintenanceBeginAttempts) instead of the steady-state
writeBatchBeginAttempts, so an upgrade does not silently discard history. The
startupMaintenanceActive signal is set for the duration of
runStartupMaintenance and cleared on completion; the stopping check still
bounds shutdown. pkg/metrics/store_additional_test.go pins the signal in
TestStoreStartupMaintenanceSignalsWriteRetryBudget and the extended retry in
TestStoreWriteBatchExtendsRetryDuringStartupMaintenance.
Metrics-store legacy host migration is probed before it writes
migrateLegacyHostResourceType must not open a write transaction on every boot
when there are no legacy rows. It probes with an indexed
SELECT EXISTS(... WHERE resource_type = 'host' LIMIT 1) and returns without
writing when the table has no legacy rows, so an already-migrated store does
not dirty the WAL on startup.
Metrics-store QueryAll preallocation is capped
QueryAll must not reserve a MetricPoint slice sized by the caller's
requested step when the selected tier returns far fewer rows. A 90-day range at
a 5-second step previously reserved over a million slots per series; the
preallocation is now capped at maxQueryAllSeriesCapacity and append still
grows the slice for genuinely dense series. pkg/metrics/store_additional_test.go
pins the cap in TestEstimateQueryAllBatchSeriesCapacityCapsPreallocation.
Large-estate browser work stays bounded by changed resources
The Proxmox overview's canonical Workloads projection consumes the same
committed resource snapshot as its owning platform page. A consecutive delta
now carries the changed resource IDs through useUnifiedResources to
useWorkloads, so unchanged resource projections and workload rows retain
their identity. A full REST refresh, missed version, organisation change, or
unknown delta falls back to a complete projection. The all-resources cache
captures its previous generation before publication so it can take this
bounded path too. Hook tests pin both the incremental and fallback boundaries.
The 50-node, 1,508-resource synthetic browser fixture exposed a separate
quadratic Storage navigation cost: each record row included its entire group,
and windowed row reconciliation traversed that group for every record. The
record rows now carry only their own storage record, while group headers retain
the group. At 390px with 4x CPU throttling, the measured Storage click's
longest task fell from 5.9s to 1.75s, and final route navigation recorded
0.66-1.65s Storage long tasks. The fixture uses random metric updates, so
these are bounded browser observations, not an installed-fleet latency claim.
The roughly 4MB initial resource payload remains the separately tracked
resource-payload-static-metadata gap and still dominates cold hydration.
Workload-chart benchmark signal at audit landing
The #2259 CI Benchmarks job reported HandleWorkloadCharts_StoreBacked-4
at 168.7µs on its base and 189.1µs on its candidate (+12.13%, p=0.009,
ten samples). The chart handler, store query and benchmark body were unchanged
between those revisions. Two exact-base/candidate runs on pulse-dev
alternated ten 500ms samples each. The first, starting at load 5.63, measured
mean 426.3µs base versus 386.4µs candidate. The second, at load 1.26-1.54,
measured 391.8µs base versus 396.0µs candidate (+1.1%), with wide per-pair
variation. Both compiled benchmark binaries used pinned Go 1.26.8; the
system go version outside the repository reports 1.26.5 but the module's
toolchain directive selected 1.26.8 for compilation. Neither worker run
reproduced the CI magnitude or establishes an improvement. Keep the signal
open as an environment-bound observation under the existing
performance-post-rc-headroom follow-up. The later #3052 legacy-recorder
signal has the same unresolved historical status. Its investigation identified
response-buffer allocation and absent cold-service coverage in the benchmark.
The corrected measurement boundaries are defined above and in
scripts/BENCHMARK_EVIDENCE.md. docs/release-control/v6/internal/records/workload-chart-benchmark-reliability-2026-10-18.md
retains the original comparison and the controlled diagnostic evidence. Neither legacy
signal alone justifies a chart-runtime change.
Shared drawer History window calculation
The drawer model computes bounds from the requested API interval and supplied valid observation timestamps. The renderer derives one envelope per fulfilled query from its configured metric groups and shares it across all panels; it does not synthesize, resample or fetch extra points to fill an empty window. Invalid dates cannot enter the labelled geometry, and returned edge buckets remain inside the common envelope. The existing 240-point request cap per metric, 30-second poll and retained-query cache limits are unchanged. No backend, metrics-store, performance threshold or latency claim changes here.
GuestDrawer.test.tsx verifies requested, expanded, invalid and absent bounds;
GuestDrawerHistory.window.test.tsx verifies the mounted query and geometry,
including selection retention while a same-source window advances. Browser
receipts exercise the actual PBS table/drawer renderer with synthetic APIs,
not installed collection or a performance benchmark.
Stored drawer History segmentation stays bounded
Missing-observation rendering uses the existing normalized, configured-group
timestamps and the unchanged maximum of 240 requested points per metric. The
segment builder indexes those timestamps once per series and walks its stored
points without nested nearest-point searches. It adds no request, polling timer,
collector or synthetic reading. Separate singletons/segments retain the source
data and shared time window; live updates cannot fill absent stored evidence.
The mounted GuestDrawerHistory.gaps.test.tsx controls pin one initial read and
only explicit matching refreshes; the full GuestDrawer.test.tsx pins the
unchanged cap and no live-recovery read. guestHistorySegments.test.ts pins
complete point preservation at the existing request bound. Neither claims a
timing benchmark, fleet CPU attribution or native incident relief.
Round dot markers (zero-length round-capped strokes) and the in-place
no reading readout change presentation only: they add no read, timer or DOM
node per observation beyond the marker's two paths, and the readout no longer
inserts or removes a line as the inspected time changes.
Numeric gridline labels are computed from the scale the panel already holds;
the compact "Worth checking" list reuses rows already derived, and an alert's
dashed trigger line reuses the alert the drawer already holds. The min-max band
reads the min/max each stored bucket already carries: one extra path per
series with any spread (none for flat data). Range picker option labels come
from one lookup table (formatHistoryRangeOptionLabel). The phone collapse of
later chart panels is a CSS class below sm on panels that stay mounted: it
hides nothing from the shared history read and adds no read or timer. The
removed "Refresh history" button took no read away: the 30-second poll is
unchanged and "Retry history" still appears for a failed read. Its focus
handoff reads document.activeElement once, as the Retry branch is disposed.
Repeated gridline labels are blanked from the three labels each panel already
formats, and the canvas chart measures the time labels it already draws to
choose how many fit. None adds a read or timer. The disk detail's phone fold
removes reads rather than adding them: folded charts stay paused until opened. The readout and notice
naming a reply's source read the source field the reply already carries.
The default stored-history legend resolves one latest timestamp from that same bounded, normalized panel index, then looks up each configured series at that time. It does not join unrelated latest or live values, add collection or fetch missing siblings. The 240-point cap, 30-second poll, query coordinates, cache and segment geometry remain unchanged. Mounted readout, pointer and sparse controls verify only explicit query refreshes and correctly qualified empty-panel fallback; this is not a timing or native-recovery claim.
Accessible Workloads backup evidence
Both the Backup column badge and its hidden-column name indicator are native read-only disclosure buttons. Keyboard activation and an ordinary first touch open the same named-guest completion evidence that fine-pointer hover shows. Exact time and age use readable theme text rather than colour alone. The shared Dialog owns focus, Escape/backdrop dismissal and background isolation, and returns focus to the originating disclosure. Nested evidence activation must not trigger the enclosing guest row. The Backup column badge keeps a touch target of at least 44px. The name indicator keeps 24px (the WCAG 2.2 AA minimum): on phones the whole guest row is the disclosure target and the expand chevron is screen-reader only, so a 44px box covered the lower left of every row's tap area and grew phone rows from about 34px to 64px. On phones that target overhangs the shield rather than setting the row height. Compact desktop shields and the existing status colours remain.
The Backup column badge does not truncate. Running (73px with its shield) and
Unknown (79px) need about 95px with cell padding, so the compact layout weights
give Backup 10 against Type 5.4 and CPU 9.6, and the wide column is 96px with
the extra 24px taken from CPU (116px). Type still fits its VM/LXC badge and
sorted header, and CPU its percentage and core count, while Name, ID, Uptime,
Net I/O, Disk I/O and the memory and disk bars keep their widths and used/total
sublabels; views without a Backup column (pods, Docker) give them slightly more.
Before this, Running was cut inside its pill at every width up to 1600px, and
None and month ages up to about 1500px.
WorkloadsSurface.performance.contract.test.tsx checks the narrowest compact
table and the wide width.
The evidence content is reactive to the same guest identity: running is not
completion, malformed/future times are unknown, and only the existing absence
sentinels mean no completion time reported in current inventory, not that no
backup exists. A removed row unmounts its disclosure and
restores dialog isolation. Opening details adds no API/history read, collector,
permission, backup/guest operation or polling timer. Dialog machinery and
content are mounted only when opened; existing freshness thresholds and source
projection are unchanged. GuestRow.test.tsx covers both nested row paths and
BackupStatusAccess.test.tsx covers semantics, focus and observation changes.
Browser proof exercises production rows with synthetic data, not native backup
or guest-recovery acceptance.
Bounded rolling-alert window copies
The existing persistent-window cache is one optional working set per metrics history. It admits at most 1,024 entries and 16 MiB of charged storage, including keys, conservative entry bookkeeping and copied timestamp/value points. Admission precedes the copy. Expired entries release their charge; expiry sweeps follow the earliest retained expiry rather than scanning the cache on every live miss. Replacement and Reset release old storage and accounting. Readers receive independently owned points, and the existing 30-second hit expiry is unchanged.
At either ceiling an uncached request still returns its complete source window; the query, live-tail authority, interval merge, alert calculation and persistent history are unchanged. This bounds optional retention, not query allocations or whole-process RSS. Overflow can increase query work: no installed CPU or memory relief, or attribution of a reporter's memory sample, follows from the bound.
metric_window_cache_bounds_test.go checks live-entry and dense/key byte bounds,
oversized admission, replacement, zero/empty points, independent ownership,
staggered expiry, re-admission and concurrent readers/writers/Reset without a
database or collector. metric_window_provider_test.go retains cache Reset,
request-scoped history ownership and fresh in-memory duplicate authority.
Its connected monitor control fills each ceiling independently and checks
complete stored/live windows, measured zero, unchanged original times, reader
ownership and renewed admission after Reset. It uses an ordinary temporary
history store, not an installed workload or process-memory measurement.
Mounted health consumes the existing bounded clock (10 October 2026)
Availability tables/fleet/cards and held guest/node/gateway metric attention subscribe to the existing 30-second shared clock and release their subscription with their owner. Usable metric status reads a supplied accessor; non-metric attention copy does not read it. No per-row timer, new poll, probe, retry or notification is introduced. Current snapshot/delta fast paths retain their existing scope; only availability complete-record replacement changes, never other partial provider facets or independent metric updates. This is truthful presentation and scoped invalidation, not a measured whole-fleet CPU saving.
Open guest drawers age completed backups passively (12 October 2026)
useGuestDrawerState derives completed-backup age and policy tone from the
existing shared 30-second clock, not just a new guest snapshot. This adds a
clock subscription for the mounted drawer, not a timer per row, network read,
refresh, guest probe or alert evaluation. Disposal releases the subscription.
The supplied completed timestamp is immutable under ticks and backup activity;
only replacement completion evidence changes it. Configured fresh/stale hours
retain their existing inclusive boundaries and unknown/absent distinctions.
GuestDrawer.backup-clock.test.tsx covers passive default/custom policy
crossings, unchanged completion time, tab round trips, later completion,
future/backwards-clock uncertainty and timer disposal. Connected
GuestDrawer.test.tsx and guestDrawerModel.branchcov2.test.ts retain existing
backup-activity, configured policy and caution/absence controls. Browser proof
uses the real read-only AlertsAPI/store and existing drawer/table badge with
synthetic timestamps, not native backup safety, guest recovery or availability.
Backup time formatting stays disclosure-local (12 October 2026)
The existing Workloads backup evidence uses a shared, explicit UTC completion formatter instead of reparsing the timestamp separately for the ISO attribute, local date and unlabelled local time. A closed row does not call the formatter; it is an accessor consumed only by mounted hover/dialog evidence. The drawer uses the same formatter after existing completed-evidence admission. No new poll, per-row timer, history read, retained cache, alert evaluation or guest operation is introduced, and saved freshness thresholds remain unchanged.
BackupCompletionTime.test.tsx checks mounted same-guest updates, activity,
shared-clock ticks and disposed timers; existing backup-clock tests retain
policy-boundary coverage. backupCompletionTime.test.ts checks equivalent
offset/numeric/Date inputs and unusable timestamp safety. Browser proof checks
that disclosures and passive ticks add no API requests while production
table/drawer times agree in opposing non-UTC contexts. This is not whole-fleet
CPU/RSS relief or native guest/backup recovery.
Filesystem summaries admit only usable byte readings
The shared stacked-disk model uses the same finite byte/capacity admission as the host drawer rows. Unknown sentinels, invalid used bytes and unmeasured capacity stay in tooltip identity/capacity evidence, without entering byte sums, utilization segments or severity. Mixed summaries count only accepted filesystem byte rows; all-unknown lists render N/A unless an independent accepted aggregate is available. True zero and source-owned last-known states remain distinct. The existing aggregate-only percentage fallback is unchanged.
stackedDiskBarModel.branchcov0712b.test.ts covers mixed partial byte lists,
invalid values, all-unknown admission and explicit independent aggregate
controls. browser-tests/host-disk-usage.cjs exercises the actual resource
HTTP/table/summary/drawer flow at desktop and touch widths. Disclosure adds no
measurement or storage operation. This is truthful presentation, not native
collector recovery or an installed performance result.
Windowed platform tables keep their spacer rows to the visible columns:
PlatformWindowedRows spacers span the header's visible cells
(components/shared/tableVisibleColumnSpan.ts, re-measured on resize and
header changes) instead of colspan={100}, which created phantom fixed-layout
columns and left rows and drawers short of the table edge on phones. The
windowing budget, runway and mounted-row counts are unchanged. The Docker host
drawer loads its history charts lazily inside Suspense like the node and
guest drawers, keeping them out of the table chunk, and its action history is
fetched only when Manage opens.
The app shell lost its largest globally mounted consumer on 2026-10-22, when
the browser Assistant chat window was retired: the drawer, its launcher, and
its lazily loaded Chat and vendor-highlight chunks are gone, and the
production build ships roughly 100 kB less gzipped JavaScript than the main it
branched from. useAppRuntimeState.ts now seeds AI availability through
frontend-modern/src/stores/aiAvailability.ts, and the Workloads keyboard
handler in useWorkloadsControlsState.ts no longer checks for a focused chat
composer. .bundlesize.json drops the retired chunks; useUnifiedResources
grew to about 10 kB gzipped because Rollup moved the shared filter toolbar
modules into it once the Chat chunk stopped sharing them.
Hosted workload-chart observations keep three distinct outcomes
The optional hosted job reports an invalidated measurement as inconclusive:
exit 78 is neutral, not a passed 90 ms budget. Valid capacity still requires a
single executed passing test at that budget. A contended FAIL can be neutral
only when its sole test diagnostic is the budget violation; skips, missing or
duplicate reports, wrong budgets, cleanup and child errors remain failures.
The private disposable-worker route continues to reject every nonzero exit,
including 78. Raw return codes, logs, digests and competing-capacity evidence
remain intact; invalid timings do not demonstrate absence of regression.
The registered API CLI and installtest workflow controls execute synthetic
children/telemetry and the actual evidence/writer shells, not a latency
workload. See workload-chart-reporting-completion-2026-10-21.md in ../records/
for the source proposal, adverse governance result and available hosted sample.
Measured backup evidence windows
The Coverage and By date tables now share the canonical measured row renderer.
Their stable workload and artifact/day keys preserve an open evidence panel
through live inventory replacements. A tall inline panel contributes to its
summary item's extent, both in the scroll-to-index mapping and in offscreen
spacers, so reading its lower sections does not replace it with unrelated rows.
The existing 140 desktop / 36 phone item budgets and full-result counts, filters
and sorts remain unchanged. ProxmoxCoverageTable.test.tsx exercises both
consumers' measurement, poll identity, departure/return and column spans;
consuming desktop/narrow browser proof must check real geometry and native scroll.
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.
Workloads aggregate disk summaries do not re-sum device aliases
Compact aggregate bars consume a usable producer aggregate for utilization and
byte totals, without duplicating the capacity of aliases retained in the mount
breakdown. Source-owned freshness, unknown readings, per-mount severity and
explicit maximum summaries keep their existing semantics. Other rendering modes
retain their geometry. Percentage-only aggregates cannot borrow mount bytes;
missing/invalid aggregates retain measured-row fallback. The normal
StackedDiskBar.test.tsx suite covers aliases, reorder, zero, fallback,
percentage-only evidence, severity and live current/retained/unavailable changes.
Desktop/narrow consuming proof uses production poll/broadcast frames through
canonical resource and Workloads projection. No collection, query, resource
identity, read cadence or native guest operation changes.
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.
Sign-out confirms local withdrawal before provider navigation
The existing app runtime starts one bounded, cookie/CSRF-bearing application
request to POST /api/logout before clearing saved authentication and the
existing legacy metadata keys, stopping
its runtime and following any configured proxy/SSO destination. The canonical
global WebSocket shutdown ends this tab's current connection/request owner
even if storage cleanup fails or provider navigation never occurs; clearing
the local accessor alone is not teardown. Auth-clear and shutdown errors still
allow the remaining cleanup and leave an explicit close-tab warning. It requires the
endpoint's successful JSON acknowledgement; rejection, a redirect, malformed
reply, lost response or timeout stays visibly uncertain and allows deliberate
retry. This disables application/API-client retries, not native transport
retransmission: it is not an exactly-once wire guarantee. The existing endpoint
withdraws only the addressed cookie session. The API client must not turn a logout 401 into a success-looking login
redirect. Token-only browsers keep the normal authenticated transport; this
ends only the cookie session, not independent API tokens or other sessions.
Provider navigation still owns upstream sign-out. A browser cleanup failure
remains explicit, does not skip remaining cleanup and does not redirect.
The actual Layout control is busy/disabled during withdrawal. Disposing its runtime aborts pending transport and prevents late cleanup/navigation. No new route, polling, grant, provider protocol, server invalidation rule or recovery operation is introduced. Registered runtime, API-client auth and AppLayout tests cover order, uncertainty, transport, duplicate attempts, retry, timeout, disposal and storage failure. Desktop/narrow browser proof exercises the actual consumer with synthetic independent sessions and inspected pixels; it is not live IdP or original administrator recovery. The proxy guide and shipped mirror must describe the same sequence without claiming upstream revocation.
Workloads metadata now lives only in its mounted authenticated owner. Each mount keeps the existing server read; no org-only disk or module cache is read, written or scheduled for idle persistence. Disposal (including the app shell's confirmed-sign-out gate) clears that owner's signal and excludes late reads and edits. Organisation switches clear outgoing metadata before refreshing, and a revision excludes old responses even after switching back to the same org. Confirmed sign-out also removes the legacy flat key and every dot-prefixed org metadata key, snapshotting names before removal and attempting each separately. Enumeration/removal failures retain the existing explicit cleanup warning and do not prevent shell teardown. Unrelated local preferences, server metadata, API-token authority and independent sessions are unchanged. A pending or denied fresh metadata read cannot reuse another credential's browser copy; this can withhold saved links until the read succeeds. It is not erasure of every copy already held elsewhere, live IdP or original administrator recovery. Registered metadata-lifetime, Workloads consumer and runtime tests cover the boundaries; desktop/narrow browser proof must exercise the actual platform consumer.