Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Keep guest coverage truthful during backup read deferrals

pulse-triage[bot]8f9a9a6a1e54
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 4c20fd1e17..c6951e64ab 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -20,6 +20,37 @@
## Purpose
+### Guest-agent coverage is not inferred from metadata
+
+The existing workload drawer distinguishes assigned Pulse Agent action ownership,
+observed agent version metadata and Proxmox-reported guest-read state. Neither a
+version string nor a parent-node Discovery target may be called **connected**.
+Reported available, deferred, expected-unreachable, not-running, disabled and
+unknown states remain visible even before a version or filesystem sample exists.
+A current operation lock/backup takes precedence over a cached available flag.
+QEMU read state remains separate from Pulse Agent metadata/assignment and does
+not appear for an unrelated vSphere VM or a system container from version alone.
+Unknown raw provider states/reasons are not printed in the new state explanation.
+
+During a fixed guest-read deferral or uncertain completion, a visible, wrapping
+precaution remains outside the drawer tabs. It links the existing backup-safety
+guide, cautions against live diagnostics or restarting QGA during backup, and
+requires independent thaw and writes to covered filesystems. Running power
+state, an OK backup or reported agent availability establishes none of those.
+Fresh same-guest evidence withdraws the precaution without a new diagnostic or
+collector request. Existing filesystem provenance, metric values, History,
+Discovery/action permissions and monitoring policy are unchanged. No disk-read
+reason is used to invent memory provenance that the workload API does not expose.
+
+Verification: `GuestDrawerOverview.agent-state.test.tsx` covers each current state
+with/without cached version, unknown private fields, action ownership, platform
+separation, lock/uncertainty/recovery and unchanged measurements. Mounted
+`GuestDrawer.test.tsx` covers the notice across Overview/History/Manage and the
+shipped-doc link without a guest check. `browser-tests/guest-agent-coverage.cjs`
+uses production row/drawer/router/docs and CSS, keyboard/touch, light/dark and
+320px/390px/desktop, with synthetic responses. Source/render proof is not native
+thaw, safe writes, installed acceptance or a containing published release.
+
### Backup inventory ownership is source-scoped and unambiguous
The existing Backups Coverage and By date views do not select a workload from
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
index ea2c7509ac..0ce5bfa2c4 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -15,6 +15,22 @@
## Purpose
+### 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
diff --git a/frontend-modern/browser-tests/guest-agent-coverage.cjs b/frontend-modern/browser-tests/guest-agent-coverage.cjs
new file mode 100644
index 0000000000..15c9afb745
--- /dev/null
+++ b/frontend-modern/browser-tests/guest-agent-coverage.cjs
@@ -0,0 +1,309 @@
+const assert = require('node:assert/strict');
+const fs = require('node:fs');
+const path = require('node:path');
+const crypto = require('node:crypto');
+const { chromium, webkit } = require('playwright');
+const root = '/workspace/frontend-modern';
+const output = '/workspace/tmp/guest-agent-coverage-final-proof';
+const runtime = [
+ 'frontend-modern/src/components/Workloads/GuestDrawer.tsx',
+ 'frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx',
+ 'frontend-modern/src/components/Workloads/guestDrawerModel.ts',
+ 'frontend-modern/src/components/Workloads/workloadAgentReadiness.ts',
+];
+const hash = (file) => crypto.createHash('sha256').update(fs.readFileSync(file)).digest('hex');
+const initial = {
+ state: 'deferred',
+ reason: 'prev-vm-locked',
+ lock: 'backup',
+ backup: true,
+ version: '6.4.5',
+ assignment: false,
+ diskUsed: 5 * 1024 ** 3,
+};
+(async () => {
+ fs.mkdirSync(output, { recursive: true });
+ const playwrightVersion = require('playwright/package.json').version;
+ assert.equal(
+ playwrightVersion,
+ JSON.parse(fs.readFileSync('/workspace/tests/integration/package-lock.json')).packages[
+ 'node_modules/@playwright/test'
+ ].version,
+ );
+ const hashes = Object.fromEntries(runtime.map((p) => [p, hash(path.join('/workspace', p))]));
+ process.chdir(root);
+ const { createServer } = await import(path.join(root, 'node_modules/vite/dist/node/index.js'));
+ const server = await createServer({
+ root,
+ configFile: path.join(root, 'vite.config.ts'),
+ cacheDir: path.join(output, 'vite-cache'),
+ server: { host: '127.0.0.1', port: 5296, strictPort: true, watch: null },
+ });
+ const origin = 'http://127.0.0.1:5296';
+ const results = [],
+ screenshots = [];
+ let browser,
+ phase = 'server';
+ try {
+ await server.listen();
+ for (const [name, engine, width, dark] of [
+ ['chromium-desktop-light', chromium, 1365, false],
+ ['chromium-desktop-dark', chromium, 1365, true],
+ ['webkit-phone-dark', webkit, 390, true],
+ ['webkit-narrow-light', webkit, 320, false],
+ ]) {
+ phase = name;
+ browser = await engine.launch(
+ engine === chromium
+ ? { headless: true, channel: 'chromium', args: ['--no-sandbox'] }
+ : { headless: true },
+ );
+ const page = await browser.newPage({
+ viewport: { width, height: width < 500 ? 844 : 900 },
+ isMobile: width < 500,
+ hasTouch: width < 500,
+ locale: 'en-GB',
+ timezoneId: 'UTC',
+ });
+ page.setDefaultTimeout(10000);
+ page.setDefaultNavigationTimeout(60000);
+ const errors = [],
+ requests = [],
+ offOrigin = [],
+ checks = [];
+ page.on('pageerror', (error) => errors.push(error.message));
+ await page.addInitScript((dark) => {
+ const apply = () => document.documentElement.classList.toggle('dark', dark);
+ if (document.documentElement) apply();
+ else document.addEventListener('DOMContentLoaded', apply, { once: true });
+ }, dark);
+ await page.routeWebSocket('**/ws', (ws) => ws.close());
+ await page.route('**/*', async (route) => {
+ const req = route.request(),
+ url = new URL(req.url());
+ if (url.origin !== origin) {
+ offOrigin.push(url.origin);
+ return route.abort();
+ }
+ if (!url.pathname.startsWith('/api/')) return route.continue();
+ requests.push({ path: url.pathname, query: url.search, method: req.method() });
+ assert.equal(req.method(), 'GET');
+ if (url.pathname.includes('metrics-store/history'))
+ return route.fulfill({
+ json: {
+ resourceType: 'vm',
+ resourceId: url.searchParams.get('resourceId'),
+ range: '24h',
+ start: Date.UTC(2026, 9, 3, 14),
+ end: Date.UTC(2026, 9, 4, 14),
+ metrics: {},
+ source: 'store',
+ },
+ });
+ if (url.pathname === '/api/resources')
+ return route.fulfill({ json: { data: [], total: 0, page: 1, limit: 500 } });
+ if (url.pathname.includes('license'))
+ return route.fulfill({ json: { capabilities: [], limits: [], max_history_days: 90 } });
+ if (url.pathname.includes('metadata')) return route.fulfill({ json: {} });
+ return route.fulfill({
+ json: { success: true, data: [], alerts: [], anomalies: [], config: null },
+ });
+ });
+ await page.goto(`${origin}/browser-tests/guest-agent-coverage.html`, {
+ waitUntil: 'domcontentloaded',
+ });
+ await page.waitForFunction(() => Boolean(window.__guestAgentCoverage));
+ const row = page.locator('[data-guest-id]').first();
+ if (width > 500) {
+ await row.getByRole('button', { name: 'Expand backup-guest', exact: true }).focus();
+ await page.keyboard.press('Enter');
+ } else await row.tap();
+ const drawer = page.getByRole('region', { name: 'Guest details' });
+ await drawer.waitFor({ state: 'visible' });
+ const precaution = page.getByTestId('guest-read-precaution');
+ const overview = page.getByTestId('guest-technical-details');
+ const stateCell = () =>
+ overview.getByText('Guest-agent reads', { exact: true }).locator('..');
+ const update = async (value) => {
+ await page.evaluate((v) => window.__guestAgentCoverage.update(v), value);
+ };
+ const capture = async (state) => {
+ const filename = `${name}-${state}.png`,
+ file = path.join(output, filename);
+ await page.screenshot({ path: file, fullPage: true });
+ screenshots.push({ filename, sha256: hash(file) });
+ };
+ const checkLayout = async (locator) => {
+ const box = await locator.boundingBox();
+ assert(box && box.x >= 0 && box.x + box.width <= width + 1);
+ assert(await locator.evaluate((el) => el.scrollWidth <= el.clientWidth + 1));
+ assert(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1));
+ };
+ await precaution.waitFor();
+ assert((await precaution.innerText()).includes('does not prove thaw'));
+ assert((await precaution.innerText()).includes('filesystems covered by the backup'));
+ assert((await stateCell().innerText()).includes('Deferred'));
+ assert((await overview.innerText()).includes('Pulse Agent observed'));
+ assert(!(await overview.innerText()).includes('Pulse Agent connected'));
+ await checkLayout(precaution);
+ await checkLayout(stateCell());
+ const coverage = overview.getByText('Pulse Agent observed', { exact: true });
+ assert(await coverage.evaluate((el) => el.scrollWidth <= el.clientWidth + 1));
+ await capture('deferred-overview');
+ checks.push(
+ 'Current QGA deferral independent of observed Pulse version; readable safety and covered-write guidance',
+ );
+ await page.evaluate(() => {
+ window.__originalCoverageDrawer = document.querySelector('[aria-label="Guest details"]');
+ });
+ for (const [state, label] of [
+ ['expected-unreachable', 'Unreachable'],
+ ['not-running', 'Not running'],
+ ['disabled', 'Disabled'],
+ ['available', 'Reported available'],
+ ['private-provider-raw', 'Unknown'],
+ ]) {
+ await update({ ...initial, state, reason: '', lock: '', backup: false });
+ await page.waitForFunction(
+ (label) =>
+ document
+ .querySelector('[data-testid="guest-technical-details"]')
+ .textContent.includes(label),
+ label,
+ );
+ assert((await stateCell().innerText()).includes(label));
+ assert.equal(await precaution.count(), 0);
+ assert(!(await overview.innerText()).includes('private-provider-raw'));
+ await update({ ...initial, state, reason: '', lock: '', backup: false, version: '' });
+ assert((await stateCell().innerText()).includes(label));
+ assert(!(await overview.innerText()).includes('Pulse 6.4.5'));
+ }
+ checks.push(
+ 'Every declared/unknown state stays visible without a version; no raw provider text or fabricated connection',
+ );
+ await update({ ...initial, version: '', assignment: true });
+ assert((await overview.innerText()).includes('Node agent assigned'));
+ assert((await stateCell().innerText()).includes('Deferred'));
+ await page.getByRole('tab', { name: 'History', exact: true }).click();
+ await precaution.waitFor();
+ await page.getByText('No stored history in this range', { exact: true }).first().waitFor();
+ await update({
+ ...initial,
+ state: 'expected-unreachable',
+ reason: 'agent-timeout',
+ lock: '',
+ backup: false,
+ assignment: true,
+ });
+ assert((await precaution.innerText()).includes('Completion is uncertain'));
+ await checkLayout(precaution);
+ await capture('uncertain-history');
+ await page.getByRole('tab', { name: 'Manage', exact: true }).click();
+ assert(await precaution.isVisible());
+ assert.equal(
+ await page.evaluate(
+ () =>
+ document.querySelector('[aria-label="Guest details"]') ===
+ window.__originalCoverageDrawer,
+ ),
+ true,
+ );
+ checks.push(
+ 'Same guest retains drawer/tab identity; precaution persists across History/Manage; assignment is not connectivity',
+ );
+ await update({
+ ...initial,
+ state: 'available',
+ reason: '',
+ lock: '',
+ backup: false,
+ diskUsed: 7.5 * 1024 ** 3,
+ });
+ await page.getByRole('tab', { name: 'Overview', exact: true }).click();
+ assert.equal(await precaution.count(), 0);
+ assert((await stateCell().innerText()).includes('Reported available'));
+ assert(
+ (await stateCell().getByText('Reported available').getAttribute('title')).includes(
+ 'does not independently confirm thaw',
+ ),
+ );
+ assert((await row.locator('[data-workload-col="disk"]').innerText()).includes('75%'));
+ await checkLayout(stateCell());
+ await capture('reported-available');
+ checks.push(
+ 'Fresh replacement withdraws precaution and resumes ordinary existing values, without asserting thaw',
+ );
+ await update(initial);
+ await precaution.waitFor();
+ const link = precaution.getByRole('link', { name: 'Backup safety guidance' });
+ assert.equal(await link.getAttribute('href'), '/docs/VM_DISK_MONITORING');
+ await link.focus();
+ assert.equal(await link.evaluate((el) => document.activeElement === el), true);
+ if (width > 500) await page.keyboard.press('Enter');
+ else await link.tap();
+ await page.getByRole('heading', { name: /VM Disk Monitoring/ }).waitFor();
+ const article = page.locator('article');
+ assert(
+ (await article.innerText()).includes(
+ 'Pulse monitoring and alerts are unavailable while stopped',
+ ),
+ );
+ assert((await article.innerText()).includes('filesystems covered by the backup'));
+ if (width === 320) await capture('safety-guide');
+ assert.equal(
+ requests.filter((r) => r.path.includes('diagnostics') || r.method !== 'GET').length,
+ 0,
+ );
+ assert.equal(offOrigin.length, 0);
+ assert.deepEqual(errors, []);
+ assert.deepEqual(
+ Object.fromEntries(runtime.map((p) => [p, hash(path.join('/workspace', p))])),
+ hashes,
+ );
+ checks.push(
+ 'Keyboard/touch guidance opens real shipped Docs; no diagnostic/guest mutation or off-origin request',
+ );
+ results.push({ name, width, dark, browser: await browser.version(), requests, checks });
+ await browser.close();
+ browser = null;
+ }
+ fs.writeFileSync(
+ path.join(output, 'result.json'),
+ JSON.stringify(
+ {
+ result: 'passed',
+ verifiedAt: new Date().toISOString(),
+ playwrightVersion,
+ content_sha256: hashes,
+ results,
+ screenshots,
+ limitations: [
+ 'Synthetic production-component proof, not native QGA availability, thaw, covered writes, installed acceptance or release qualification.',
+ 'No memory provenance inferred from filesystem state; current Resource API exposes no memory source.',
+ ],
+ },
+ null,
+ 2,
+ ) + '\n',
+ );
+ process.stdout.write(
+ JSON.stringify({
+ result: 'passed',
+ groups: results.length,
+ screenshots: screenshots.length,
+ }) + '\n',
+ );
+ } catch (error) {
+ fs.writeFileSync(
+ path.join(output, 'failure.json'),
+ JSON.stringify({ phase, error: String(error), results, screenshots }, null, 2) + '\n',
+ );
+ throw error;
+ } finally {
+ if (browser) await browser.close();
+ await server.close();
+ }
+})().catch((error) => {
+ process.stderr.write(String(error.stack || error) + '\n');
+ process.exitCode = 1;
+});
diff --git a/frontend-modern/browser-tests/guest-agent-coverage.html b/frontend-modern/browser-tests/guest-agent-coverage.html
new file mode 100644
index 0000000000..0e10184050
--- /dev/null
+++ b/frontend-modern/browser-tests/guest-agent-coverage.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Guest-agent coverage verification</title>
+ </head>
+ <body>
+ <div id="root"></div>
+ <script type="module" src="./guest-agent-coverage.tsx"></script>
+ </body>
+</html>
diff --git a/frontend-modern/browser-tests/guest-agent-coverage.tsx b/frontend-modern/browser-tests/guest-agent-coverage.tsx
new file mode 100644
index 0000000000..2936821b86
--- /dev/null
+++ b/frontend-modern/browser-tests/guest-agent-coverage.tsx
@@ -0,0 +1,126 @@
+// Production canonical resource projection, row, drawer, router and Docs.
+// Synthetic observations only; no native QGA, diagnostic or backup operation.
+import { createSignal, Show } from 'solid-js';
+import { render } from 'solid-js/web';
+import { Router, Route } from '@solidjs/router';
+import { useWorkloads } from '../src/hooks/useWorkloads';
+import { mergeCanonicalResourceSnapshot } from '../src/utils/resourceStateAdapters';
+import { GuestRow } from '../src/components/Workloads/GuestRow';
+import { GuestDrawer } from '../src/components/Workloads/GuestDrawer';
+import { DarkModeContext } from '../src/contexts/appRuntime';
+import { syncAIRuntimeSettings } from '../src/stores/aiRuntimeState';
+import Docs from '../src/pages/Docs';
+import type { Resource } from '../src/types/resource';
+import '../src/index.css';
+
+syncAIRuntimeSettings({ discovery_enabled: false });
+interface Observation {
+ state?: string;
+ reason?: string;
+ lock?: string;
+ backup?: boolean;
+ version?: string;
+ assignment?: boolean;
+ diskUsed?: number;
+}
+const initial: Observation = {
+ state: 'deferred',
+ reason: 'prev-vm-locked',
+ lock: 'backup',
+ backup: true,
+ version: '6.4.5',
+ assignment: false,
+ diskUsed: 5 * 1024 ** 3,
+};
+const nativeResource = (value: Observation): Resource => ({
+ id: 'fixture-pve:pve-a:101',
+ type: 'vm',
+ name: 'backup-guest',
+ displayName: 'backup-guest',
+ platformType: 'proxmox-pve',
+ platformScopes: ['proxmox-pve'],
+ sourceType: 'api',
+ status: 'online',
+ sources: ['proxmox', 'agent'],
+ lastSeen: Date.UTC(2026, 9, 4, 14),
+ cpu: { current: 10 },
+ memory: { current: 25, used: 1024 ** 3 / 4, total: 1024 ** 3 },
+ disk: {
+ current: ((value.diskUsed ?? 0) / (10 * 1024 ** 3)) * 100,
+ used: value.diskUsed,
+ total: 10 * 1024 ** 3,
+ },
+ proxmox: {
+ instance: 'fixture-pve',
+ nodeName: 'pve-a',
+ vmid: 101,
+ runtimeStatus: 'running',
+ template: false,
+ guestAgentStatus: value.state,
+ diskStatusReason: value.reason,
+ lock: value.lock,
+ guestAgentExpected: true,
+ backupInProgress: value.backup ?? false,
+ lastBackup: '2026-10-04T06:00:00Z',
+ disks: [],
+ },
+ agent: {
+ agentId: 'fixture-pulse-agent',
+ agentVersion: value.version || '',
+ hostname: 'backup-guest',
+ osName: 'Linux',
+ },
+ discoveryTarget: value.assignment
+ ? { resourceType: 'vm', agentId: 'fixture-node-agent', resourceId: '101' }
+ : undefined,
+});
+function Fixture() {
+ const [observation, setObservation] = createSignal(initial);
+ const [snapshot, setSnapshot] = createSignal<Resource[]>([nativeResource(initial)]);
+ const state = useWorkloads(() => true, { resourceSnapshot: snapshot });
+ const guest = () => state.workloads()[0]!;
+ const [expanded, setExpanded] = createSignal(false);
+ (window as any).__guestAgentCoverage = {
+ update: (next: Observation) => {
+ setObservation(next);
+ setSnapshot((previous) => mergeCanonicalResourceSnapshot([nativeResource(next)], previous));
+ },
+ observation,
+ identity: () => guest().id,
+ };
+ return (
+ <main class="mx-auto min-h-screen max-w-5xl space-y-3 bg-surface p-3 text-base-content">
+ <h1 class="text-base font-semibold">Guest coverage evidence</h1>
+ <p class="text-xs text-muted">Synthetic observations. No guest check is sent.</p>
+ <Show when={Boolean(guest())}>
+ <table class="w-full table-fixed">
+ <tbody>
+ <GuestRow
+ guest={guest()}
+ visibleColumnIds={['name', 'disk']}
+ isExpanded={expanded()}
+ onClick={() => setExpanded(!expanded())}
+ workloadTableLayoutMode={window.innerWidth <= 768 ? 'phone' : 'wide'}
+ />
+ </tbody>
+ </table>
+ <Show when={expanded()}>
+ <section aria-label="Guest details">
+ <GuestDrawer guest={guest()} onClose={() => setExpanded(false)} />
+ </section>
+ </Show>
+ </Show>
+ </main>
+ );
+}
+render(
+ () => (
+ <DarkModeContext.Provider value={() => document.documentElement.classList.contains('dark')}>
+ <Router>
+ <Route path="/docs/*docPath" component={Docs} />
+ <Route path="/*" component={Fixture} />
+ </Router>
+ </DarkModeContext.Provider>
+ ),
+ document.getElementById('root')!,
+);
diff --git a/frontend-modern/browser-verification/1fdcebe0d69c8a67.json b/frontend-modern/browser-verification/1fdcebe0d69c8a67.json
new file mode 100644
index 0000000000..ec7d9321d0
--- /dev/null
+++ b/frontend-modern/browser-verification/1fdcebe0d69c8a67.json
@@ -0,0 +1,53 @@
+{
+ "version": 1,
+ "result": "passed",
+ "base_sha": "ba3e2d2c1c1cc3c2fa07d1c3372080082121f1f2",
+ "content_sha256": {
+ "frontend-modern/src/components/Workloads/GuestDrawer.tsx": "1c299b74082c37769c672931c5f99e666fa0585d6453c8ba61c38332d72d6cea",
+ "frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx": "c70baf65a3b1027a76043f57a72e9807fa1b6791ad6efaae2547a2e7e328b441",
+ "frontend-modern/src/components/Workloads/guestDrawerModel.ts": "9c3e42b1381a37309148e43617aa875c3ba00f97df184d920fdec8d1ca5a8b8c",
+ "frontend-modern/src/components/Workloads/workloadAgentReadiness.ts": "55f61246e581696aea67d6f7edf330e9f472ecdabf34728f42ef3e4cf7fe43c8"
+ },
+ "changed_paths": [
+ "frontend-modern/src/components/Workloads/GuestDrawer.tsx",
+ "frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx",
+ "frontend-modern/src/components/Workloads/guestDrawerModel.ts",
+ "frontend-modern/src/components/Workloads/workloadAgentReadiness.ts"
+ ],
+ "routes": [
+ "/browser-tests/guest-agent-coverage.html",
+ "/docs/VM_DISK_MONITORING"
+ ],
+ "states": [
+ "Current QGA deferral/unreachability/not-running/disabled/available/unknown independently of Pulse version metadata",
+ "Lock overrides cached availability",
+ "No version; parent-node assignment; fresh same-guest recovery"
+ ],
+ "interactions": [
+ "Keyboard disclosure on desktop and touch row on phones",
+ "Overview/History/Manage retain visible precaution and drawer identity",
+ "Keyboard/touch navigation into actual shipped backup-safety Docs; no diagnostic/mutation request"
+ ],
+ "viewports": [
+ {
+ "width": 1365,
+ "height": 900
+ },
+ {
+ "width": 390,
+ "height": 844
+ },
+ {
+ "width": 320,
+ "height": 844
+ }
+ ],
+ "verified_at": "2026-10-04T14:27:17.008Z",
+ "command": "pulse-worker-browser frontend-modern/browser-tests/guest-agent-coverage.cjs",
+ "playwright_version": "1.56.1",
+ "limitations": [
+ "Synthetic production-component proof, not native QGA availability, thaw, covered writes, installed acceptance or release qualification.",
+ "No memory provenance inferred from filesystem state; current Resource API exposes no memory source.",
+ "Synthetic preview emits localhost WebSocket proxy ECONNREFUSED warnings with no backend service; warnings retained, not native collection or transport acceptance."
+ ]
+}
diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
index 16d9ec2e5d..edbbc40bed 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawer.test.tsx
@@ -233,7 +233,7 @@ describe('GuestDrawer', () => {
const precaution = () => screen.getByTestId('guest-read-precaution');
expect(precaution()).toBeVisible();
expect(precaution()).toHaveTextContent(
- 'Do not run live diagnostics or restart the guest agent during a backup.',
+ 'Do not run live diagnostics or restart the guest agent during a backup, freeze/thaw or an unresponsive-guest incident.',
);
expect(precaution()).toHaveTextContent('does not prove thaw');
expect(precaution()).toHaveTextContent('filesystems covered by the backup');
@@ -1053,9 +1053,9 @@ describe('GuestDrawer', () => {
));
expect(screen.getByText('Pulse coverage')).toBeInTheDocument();
- expect(technicalDetails().getByText('Node agent connected')).toHaveAttribute(
+ expect(technicalDetails().getByText('Node agent assigned')).toHaveAttribute(
'title',
- 'Discovery and governed actions use the Pulse Agent connected to delly.',
+ 'Discovery and governed actions are assigned to the Pulse Agent on delly. Assignment is not a current connection check.',
);
expect(screen.queryByRole('link', { name: 'Add agent for AI actions' })).toBeNull();
});
diff --git a/frontend-modern/src/components/Workloads/GuestDrawer.tsx b/frontend-modern/src/components/Workloads/GuestDrawer.tsx
index 9a6165a1ca..3d8a975510 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawer.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawer.tsx
@@ -7,12 +7,15 @@ import { ObjectDrawerHeader } from '@/components/shared/ObjectDrawerHeader';
import { Subtabs, type SubtabOption } from '@/components/shared/Subtabs';
import { getSimpleStatusIndicator } from '@/utils/status';
import {
+ GUEST_DRAWER_BACKUP_PRECAUTION,
+ getGuestDrawerGuestReadPrecaution,
getGuestDrawerCurrentMetrics,
getGuestDrawerDeferredMetrics,
type GuestDrawerProps,
} from './guestDrawerModel';
import { getCanonicalWorkloadId } from '@/utils/workloads';
import { InlineNotice } from '@/components/shared/InlineNotice';
+import { getShippedDocUrl } from '@/utils/docsLinks';
import { useGuestDrawerState } from './useGuestDrawerState';
import { GuestDrawerHistory, GuestDrawerHistoryRangeSelect } from './GuestDrawerHistory';
import { GuestDrawerOverview } from './GuestDrawerOverview';
@@ -61,6 +64,8 @@ const GuestDrawerContent: Component<GuestDrawerProps> = (props) => {
const historyCurrentMetrics = createMemo(() => getGuestDrawerCurrentMetrics(props.guest));
const historyDeferredMetrics = createMemo(() => getGuestDrawerDeferredMetrics(props.guest));
+ const guestReadPrecaution = createMemo(() => getGuestDrawerGuestReadPrecaution(props.guest));
+
const headerIndicator = createMemo(() => getSimpleStatusIndicator(props.guest.status));
return (
@@ -100,6 +105,20 @@ const GuestDrawerContent: Component<GuestDrawerProps> = (props) => {
</InlineNotice>
)}
</Show>
+ <Show when={guestReadPrecaution()}>
+ {(message) => (
+ <InlineNotice
+ tone="warning"
+ role="status"
+ data-testid="guest-read-precaution"
+ actionHref={getShippedDocUrl('VM_DISK_MONITORING.md')}
+ actionLabel="Backup safety guidance"
+ >
+ <p>{message()}</p>
+ <p>{GUEST_DRAWER_BACKUP_PRECAUTION}</p>
+ </InlineNotice>
+ )}
+ </Show>
<Subtabs
class="mb-1"
ariaLabel="Guest drawer sections"
diff --git a/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx b/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx
index fd5d76f240..a118a6cd1e 100644
--- a/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx
+++ b/frontend-modern/src/components/Workloads/GuestDrawerOverview.tsx
@@ -23,6 +23,7 @@ import { buildWorkloadsDiskPresentation } from './diskListModel';
import {
getGuestDrawerAlertMessage,
getGuestDrawerMemoryRows,
+ getGuestDrawerGuestReadPresentation,
isGuestDrawerVM,
} from './guestDrawerModel';
import type { NestedWorkloadContext } from './nestedWorkloadContext';
@@ -67,9 +68,10 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {
ageLabel: props.backupPresentation?.ageLabel,
ageClass: props.backupPresentation?.ageClass,
});
+ const guestReadPresentation = () => getGuestDrawerGuestReadPresentation(props.guest);
const coverageLabel = () => {
if (props.hasWorkloadActionAgent) return WORKLOAD_ACTION_AGENT_LABEL;
- if (props.hasAgentInfo) return `${props.agentHeading} connected`;
+ if (props.hasAgentInfo) return `${props.agentHeading} observed`;
if (props.showInGuestAgentInstallCue) return 'Agent recommended';
return null;
};
@@ -85,6 +87,12 @@ export function GuestDrawerOverview(props: GuestDrawerOverviewProps) {
: props.hasAgentInfo
? props.agentTitle
: undefined,
+ wrap: true,
+ }),
+ makeDetailRow('Guest-agent reads', guestReadPresentation()?.label, {
+ title: guestReadPresentation()?.detail,
+ tone: guestReadPresentation()?.tone,
+ wrap: true,
}),
makeDetailRow('Primary IP', props.ipAddresses[0]),
// Starting or ending an operation is not evidence of a completed
diff --git a/frontend-modern/src/components/Workloads/__tests__/GuestDrawerOverview.agent-state.test.tsx b/frontend-modern/src/components/Workloads/__tests__/GuestDrawerOverview.agent-state.test.tsx
index 8d08002a53..9aa92b9d06 100644
--- a/frontend-modern/src/components/Workloads/__tests__/GuestDrawerOverview.agent-state.test.tsx
+++ b/frontend-modern/src/components/Workloads/__tests__/GuestDrawerOverview.agent-state.test.tsx
@@ -3,6 +3,11 @@ import { createSignal, type ComponentProps } from 'solid-js';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { GuestDrawerOverview } from '../GuestDrawerOverview';
import type { WorkloadGuest } from '@/types/workloads';
+import {
+ GUEST_DRAWER_BACKUP_PRECAUTION,
+ getGuestDrawerGuestReadPresentation,
+ getGuestDrawerGuestReadPrecaution,
+} from '../guestDrawerModel';
vi.mock('../GuestPhysicalDisks', () => ({ GuestPhysicalDisks: () => null }));
@@ -161,3 +166,95 @@ describe('guest agent coverage requires current state, not cached metadata', ()
expect(screen.queryByText('Guest-agent reads')).not.toBeInTheDocument();
});
});
+
+describe('fixed guest read state and precaution evidence', () => {
+ it.each([
+ 'vm-locked',
+ 'lock-unverified',
+ 'agent-busy',
+ 'agent-cooldown',
+ 'agent-response-incomplete',
+ 'agent-capacity',
+ 'invalid-guest-key',
+ 'agent-timeout',
+ ])('uses %s without a probe or installation diagnosis', (reason) => {
+ for (const prefix of ['', 'prev-']) {
+ const value = guest({ diskStatusReason: prefix + reason });
+ expect(getGuestDrawerGuestReadPresentation(value)).toMatchObject({
+ label: 'Deferred',
+ precaution: true,
+ });
+ const message = getGuestDrawerGuestReadPrecaution(value)!;
+ expect(message).not.toMatch(/Using last known|may not be installed|may need to be restarted/);
+ expect(message).not.toContain('prev-');
+ }
+ });
+
+ it('does not turn a reported available flag into completed read or thaw evidence', () => {
+ const value = guest({ guestAgentStatus: 'available', diskStatusReason: 'agent-timeout' });
+ expect(getGuestDrawerGuestReadPresentation(value)?.label).toBe('Reported available');
+ expect(getGuestDrawerGuestReadPrecaution(value)).toContain('Completion is uncertain');
+ expect(getGuestDrawerGuestReadPresentation(value)?.detail).toContain(
+ 'does not independently confirm thaw',
+ );
+ expect(GUEST_DRAWER_BACKUP_PRECAUTION).toContain('running VM does not prove thaw');
+ });
+
+ it('unknown private fields do not become an explanation or an installation recommendation', () => {
+ const value = guest({
+ guestAgentStatus: 'https://private.invalid/token=secret',
+ diskStatusReason: 'raw-private-body',
+ });
+ const presentation = getGuestDrawerGuestReadPresentation(value)!;
+ expect(presentation.label).toBe('Unknown');
+ expect(JSON.stringify(presentation)).not.toMatch(
+ /private|token=|secret|raw-private-body|Install/,
+ );
+ expect(getGuestDrawerGuestReadPrecaution(value)).toBeNull();
+ });
+
+ it('keeps a lock precaution despite absent version, status or disk data', () => {
+ const value = guest({ lock: 'backup', disks: [], agentVersion: '', guestAgentStatus: '' });
+ expect(getGuestDrawerGuestReadPresentation(value)).toMatchObject({
+ label: 'Deferred',
+ precaution: true,
+ });
+ expect(getGuestDrawerGuestReadPrecaution(value)).toContain('VM operation lock');
+ });
+
+ it('keeps state and current measurements independent; it does not relabel memory using a disk reason', () => {
+ const value = guest({ guestAgentStatus: 'deferred', diskStatusReason: 'prev-vm-locked' });
+ const original = structuredClone(value);
+ getGuestDrawerGuestReadPresentation(value);
+ getGuestDrawerGuestReadPrecaution(value);
+ expect(value).toEqual(original);
+ });
+
+ it('does not treat a vSphere operation or container backup as QEMU state', () => {
+ expect(
+ getGuestDrawerGuestReadPresentation(
+ guest({
+ type: 'vm',
+ platformType: 'vmware-vsphere',
+ platformScopes: ['vmware-vsphere'],
+ lock: 'snapshot',
+ }),
+ ),
+ ).toBeNull();
+ expect(
+ getGuestDrawerGuestReadPresentation(
+ guest({ type: 'lxc', lock: 'backup', guestAgentStatus: 'deferred' }),
+ ),
+ ).toBeNull();
+ });
+});
+
+describe('backup activity is not a confirmed VM lock', () => {
+ it('warns about a reported backup without inventing a lock or changing the reported flag', () => {
+ const value = guest({ backupInProgress: true, guestAgentStatus: 'available', lock: '' });
+ expect(getGuestDrawerGuestReadPresentation(value)?.label).toBe('Backup in progress');
+ expect(getGuestDrawerGuestReadPrecaution(value)).toContain('A backup is reported in progress');
+ expect(getGuestDrawerGuestReadPrecaution(value)).not.toContain('VM operation lock');
+ expect(value.guestAgentStatus).toBe('available');
+ });
+});
diff --git a/frontend-modern/src/components/Workloads/__tests__/workloadAgentReadiness.branchcov0712.test.ts b/frontend-modern/src/components/Workloads/__tests__/workloadAgentReadiness.branchcov0712.test.ts
index c1d4271419..6b7cad759d 100644
--- a/frontend-modern/src/components/Workloads/__tests__/workloadAgentReadiness.branchcov0712.test.ts
+++ b/frontend-modern/src/components/Workloads/__tests__/workloadAgentReadiness.branchcov0712.test.ts
@@ -134,35 +134,35 @@ describe('workloadAgentReadiness (branch coverage)', () => {
it('interpolates the node when node is a non-empty string (truthy ternary arm)', () => {
const guest = makeGuest({ node: 'pve' });
expect(getWorkloadActionAgentTitle(guest)).toBe(
- 'Discovery and governed actions use the Pulse Agent connected to pve.',
+ 'Discovery and governed actions are assigned to the Pulse Agent on pve. Assignment is not a current connection check.',
);
});
it('trims surrounding whitespace from node before interpolating', () => {
const guest = makeGuest({ node: ' pve-node ' });
expect(getWorkloadActionAgentTitle(guest)).toBe(
- 'Discovery and governed actions use the Pulse Agent connected to pve-node.',
+ 'Discovery and governed actions are assigned to the Pulse Agent on pve-node. Assignment is not a current connection check.',
);
});
it('falls back to the parent-node title when node is an empty string (falsy ternary arm)', () => {
const guest = makeGuest({ node: '' });
expect(getWorkloadActionAgentTitle(guest)).toBe(
- 'Discovery and governed actions use the connected parent node Pulse Agent.',
+ 'Discovery and governed actions are assigned to the parent node Pulse Agent. Assignment is not a current connection check.',
);
});
it('falls back to the parent-node title when node is whitespace-only (trim -> empty)', () => {
const guest = makeGuest({ node: ' ' });
expect(getWorkloadActionAgentTitle(guest)).toBe(
- 'Discovery and governed actions use the connected parent node Pulse Agent.',
+ 'Discovery and governed actions are assigned to the parent node Pulse Agent. Assignment is not a current connection check.',
);
});
it('falls back to the parent-node title when node is undefined (|| "" coalesce arm)', () => {
const guest = makeGuest({ node: undefined });
expect(getWorkloadActionAgentTitle(guest)).toBe(
- 'Discovery and governed actions use the connected parent node Pulse Agent.',
+ 'Discovery and governed actions are assigned to the parent node Pulse Agent. Assignment is not a current connection check.',
);
});
});
diff --git a/frontend-modern/src/components/Workloads/guestDrawerModel.ts b/frontend-modern/src/components/Workloads/guestDrawerModel.ts
index 127f8dd28b..04514a3075 100644
--- a/frontend-modern/src/components/Workloads/guestDrawerModel.ts
+++ b/frontend-modern/src/components/Workloads/guestDrawerModel.ts
@@ -359,6 +359,128 @@ export const getGuestDrawerAgentTitle = (guest: Guest): string => {
export const getGuestDrawerAgentHeading = (guest: Guest): string =>
guest.agentKind === 'pulse' ? 'Pulse Agent' : 'Guest agent';
+export interface GuestDrawerGuestReadPresentation {
+ label: string;
+ detail: string;
+ tone: 'muted' | 'warning';
+ precaution: boolean;
+}
+
+export const GUEST_DRAWER_BACKUP_PRECAUTION =
+ 'Do not run live diagnostics or restart the guest agent during a backup, freeze/thaw or an unresponsive-guest incident. An OK backup or a running VM does not prove thaw. Confirm thaw and writes to the filesystems covered by the backup independently.';
+
+const guestReadDeferrals = new Set([
+ 'vm-locked',
+ 'lock-unverified',
+ 'agent-busy',
+ 'agent-cooldown',
+ 'agent-response-incomplete',
+ 'agent-capacity',
+ 'invalid-guest-key',
+ 'agent-timeout',
+]);
+
+// Version/OS metadata can survive a lock or failed read. Neither it nor a
+// parent-agent action target establishes QGA liveness. Use only the current
+// provider state and fixed read reasons; never print an unknown raw value.
+export const getGuestDrawerGuestReadPresentation = (
+ guest: Guest,
+): GuestDrawerGuestReadPresentation | null => {
+ if (!isGuestDrawerVM(guest)) return null;
+ const hasProxmoxEvidence =
+ guest.type === 'qemu' ||
+ guest.agentKind === 'qemu-guest' ||
+ guest.platformType === 'proxmox-pve' ||
+ guest.platformScopes?.includes('proxmox-pve') ||
+ Boolean(guest.guestAgentStatus || guest.diskStatusReason);
+ if (!hasProxmoxEvidence) return null;
+
+ const reason = (guest.diskStatusReason || '').replace(/^prev-/, '');
+ const readDeferred = guestReadDeferrals.has(reason);
+ const state = (guest.guestAgentStatus || '').trim().toLowerCase();
+ if ((guest.lock || '').trim()) {
+ return {
+ label: 'Deferred',
+ tone: 'warning',
+ precaution: true,
+ detail: getWorkloadGuestDiskStatusMessage('vm-locked'),
+ };
+ }
+ if (guest.backupInProgress) {
+ return {
+ label: 'Backup in progress',
+ tone: 'warning',
+ precaution: true,
+ detail:
+ 'A backup is reported in progress. Guest-agent availability does not establish safe live checks during the backup.',
+ };
+ }
+ if (state === 'deferred' || (!state && readDeferred)) {
+ return {
+ label: 'Deferred',
+ tone: 'warning',
+ precaution: true,
+ detail: readDeferred
+ ? getWorkloadGuestDiskStatusMessage(reason)
+ : 'Guest reads are deferred. Previously observed details do not prove a current connection.',
+ };
+ }
+ const precaution = readDeferred;
+ switch (state) {
+ case 'available':
+ return {
+ label: 'Reported available',
+ tone: 'muted',
+ precaution,
+ detail:
+ 'Proxmox reports guest-agent availability. This does not independently confirm thaw or filesystem writes.',
+ };
+ case 'expected-unreachable':
+ return {
+ label: 'Unreachable',
+ tone: 'warning',
+ precaution,
+ detail:
+ 'Proxmox expects the guest agent but cannot reach it. Previously observed details do not prove a current connection.',
+ };
+ case 'not-running':
+ return {
+ label: 'Not running',
+ tone: 'warning',
+ precaution,
+ detail:
+ 'Proxmox reports that the guest agent is not running. Previously observed details do not prove a current connection.',
+ };
+ case 'disabled':
+ return {
+ label: 'Disabled',
+ tone: 'muted',
+ precaution,
+ detail:
+ 'Proxmox reports that the guest agent is disabled. Previously observed details do not prove a current connection.',
+ };
+ default:
+ return {
+ label: 'Unknown',
+ tone: 'muted',
+ precaution,
+ detail:
+ 'Pulse has no recognised current guest-agent state. Previously observed details do not prove a current connection.',
+ };
+ }
+};
+
+// A read-specific precaution is independent of the reported availability flag.
+// For example Proxmox can report QGA enabled while its last request timed out.
+export const getGuestDrawerGuestReadPrecaution = (guest: Guest): string | null => {
+ const presentation = getGuestDrawerGuestReadPresentation(guest);
+ if (!presentation?.precaution) return null;
+ const reason = (guest.diskStatusReason || '').replace(/^prev-/, '');
+ return guestReadDeferrals.has(reason)
+ ? getWorkloadGuestDiskStatusMessage(reason)
+ : presentation.detail;
+};
+
export interface GuestDrawerMemoryRow {
label: string;
value: string;
diff --git a/frontend-modern/src/components/Workloads/workloadAgentReadiness.ts b/frontend-modern/src/components/Workloads/workloadAgentReadiness.ts
index 7d8d98affc..fde0ae2bb8 100644
--- a/frontend-modern/src/components/Workloads/workloadAgentReadiness.ts
+++ b/frontend-modern/src/components/Workloads/workloadAgentReadiness.ts
@@ -42,10 +42,10 @@ export const IN_GUEST_AGENT_INSTALL_SUMMARY_LABEL = 'Install agent';
export const IN_GUEST_AGENT_INSTALL_ACTION_LABEL = 'Add agent for AI actions';
export const IN_GUEST_AGENT_INSTALL_TITLE =
'Install Pulse Agent for this workload path to unlock deep telemetry and AI actions.';
-export const WORKLOAD_ACTION_AGENT_LABEL = 'Node agent connected';
+export const WORKLOAD_ACTION_AGENT_LABEL = 'Node agent assigned';
export const getWorkloadActionAgentTitle = (guest: WorkloadGuest): string => {
const node = (guest.node || '').trim();
return node
- ? `Discovery and governed actions use the Pulse Agent connected to ${node}.`
- : 'Discovery and governed actions use the connected parent node Pulse Agent.';
+ ? `Discovery and governed actions are assigned to the Pulse Agent on ${node}. Assignment is not a current connection check.`
+ : 'Discovery and governed actions are assigned to the parent node Pulse Agent. Assignment is not a current connection check.';
};