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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
make patrol copy product-first
rcourtmana8f061367159
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex d8cca2d75e..82154fffc2 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -123,8 +123,11 @@ hook-local fallback logic.That same Patrol hook boundary now consumes shared AI settings/model truththrough `frontend-modern/src/stores/aiRuntimeState.ts` instead of mounting itsown `/api/settings/ai` or `/api/ai/models` reads. Patrol-specific state still-owns local toggle optimism, run-status orchestration, and Patrol-only copy, but-the underlying AI runtime catalog must stay shared with chat and AI settings.+owns local toggle optimism, run-status orchestration, and Patrol-only copy,+including quickstart exhaustion and runtime-availability messaging that stays+Patrol-first in operator-facing shells and uses provider/API-key wording only+for the actual configuration boundary, but the underlying AI runtime catalog+must stay shared with chat and AI settings.The Patrol page now also treats Patrol runtime availability as a first-classrender contract: the header chip, primary summary card, and status bar mustall route through the shared `frontend-modern/src/utils/patrolRuntimePresentation.ts`diff --git a/frontend-modern/src/api/__tests__/patrol.test.ts b/frontend-modern/src/api/__tests__/patrol.test.tsindex 3e2f2b668c..d797513117 100644--- a/frontend-modern/src/api/__tests__/patrol.test.ts+++ b/frontend-modern/src/api/__tests__/patrol.test.ts@@ -63,14 +63,14 @@ describe('patrol api', () => {apiFetchJSONMock.mockResolvedValueOnce({runtime_state: 'blocked',blocked_reason:- 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.',+ 'Quickstart credits exhausted. Connect your API key to continue using Patrol.',healthy: false,} as any);await expect(getPatrolStatus()).resolves.toMatchObject({runtime_state: 'blocked',blocked_reason:- 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.',+ 'Quickstart credits exhausted. Connect your API key to continue using Patrol.',healthy: false,});});@@ -79,14 +79,14 @@ describe('patrol api', () => {apiFetchJSONMock.mockResolvedValueOnce({runtime_state: 'blocked',blocked_reason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',healthy: false,} as any);await expect(getPatrolStatus()).resolves.toMatchObject({runtime_state: 'blocked',blocked_reason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',healthy: false,});});@@ -95,7 +95,7 @@ describe('patrol api', () => {apiFetchJSONMock.mockResolvedValueOnce({runtime_state: 'blocked',blocked_reason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',healthy: false,quickstart_credits_total: 0,quickstart_credits_remaining: 0,@@ -105,7 +105,7 @@ describe('patrol api', () => {await expect(getPatrolStatus()).resolves.toMatchObject({runtime_state: 'blocked',blocked_reason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',healthy: false,quickstart_credits_total: 0,quickstart_credits_remaining: 0,diff --git a/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx b/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsxindex ad9b543e67..48c47902d3 100644--- a/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx+++ b/frontend-modern/src/components/Settings/__tests__/AISettings.test.tsx@@ -490,7 +490,7 @@ describe('AISettings quickstart enablement flow', () => {quickstart_credits_remaining: 0,quickstart_credits_available: false,quickstart_blocked_reason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',});renderComponent();@@ -507,7 +507,7 @@ describe('AISettings quickstart enablement flow', () => {).toBeInTheDocument();expect(screen.getAllByText(- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',),).toHaveLength(2);expect(screen.getByRole('button', { name: /start trial/i })).toBeInTheDocument();diff --git a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsxindex fce4bd0108..0b0dd8730f 100644--- a/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx+++ b/frontend-modern/src/components/patrol/__tests__/PatrolStatusBar.test.tsx@@ -148,7 +148,7 @@ describe('PatrolStatusBar', () => {<PatrolStatusBarrefreshTrigger={1}runtimeState="blocked"- blockedReason="Quickstart credits exhausted. Connect your API key to continue using AI Patrol."+ blockedReason="Quickstart credits exhausted. Connect your API key to continue using Patrol."/>));diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex cdd69566f0..e5bef981cd 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -660,7 +660,7 @@ describe('AIIntelligence entitlement gating', () => {quickstart_credits_total: 25,quickstart_credits_remaining: 0,blocked_reason:- 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.',+ 'Quickstart credits exhausted. Connect your API key to continue using Patrol.',last_patrol_at: '2026-03-12T09:57:00Z',}),);@@ -703,7 +703,7 @@ describe('AIIntelligence entitlement gating', () => {expect(screen.getAllByText('Patrol paused').length).toBeGreaterThan(0);expect(screen.getAllByText(- 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.',+ 'Quickstart credits exhausted. Connect your API key to continue using Patrol.',).length,).toBeGreaterThan(0);expect(screen.queryByText(/Health A · 100\/100/)).not.toBeInTheDocument();@@ -770,7 +770,7 @@ describe('AIIntelligence entitlement gating', () => {quickstart_credits_total: 25,quickstart_credits_remaining: 0,blocked_reason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',}),);@@ -780,7 +780,7 @@ describe('AIIntelligence entitlement gating', () => {expect(getPatrolStatusMock).toHaveBeenCalled();expect(screen.getAllByText(- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',).length,).toBeGreaterThan(0);});diff --git a/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.ts b/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.tsindex cb78b3ef5c..320a34fc20 100644--- a/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.ts@@ -18,7 +18,7 @@ describe('getAIQuickstartCreditsPresentation', () => {'bg-amber-50 dark:bg-amber-950 border-amber-200 dark:border-amber-800 text-amber-700 dark:text-amber-300',summary: 'Patrol quickstart exhausted',title:- 'Patrol quickstart on this activated or trial-backed install is exhausted. Connect your API key to continue using AI Patrol.',+ 'Patrol quickstart on this activated or trial-backed install is exhausted. Connect your API key to continue using Patrol.',});});});diff --git a/frontend-modern/src/utils/__tests__/aiSettingsPresentation.test.ts b/frontend-modern/src/utils/__tests__/aiSettingsPresentation.test.tsindex 3f8c0d6f98..9c1dcbc9db 100644--- a/frontend-modern/src/utils/__tests__/aiSettingsPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/aiSettingsPresentation.test.ts@@ -65,13 +65,13 @@ describe('aiSettingsPresentation', () => {quickstartCreditsRemaining: 0,quickstartCreditsTotal: 0,quickstartBlockedReason:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',}),).toEqual({containerClassName: 'bg-amber-50 dark:bg-amber-900 text-amber-800 dark:text-amber-200',dotClassName: 'bg-amber-400',summary:- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.',});});diff --git a/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.tsindex 31ba5dbe2e..06c641c9e6 100644--- a/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.ts@@ -96,11 +96,11 @@ describe('patrolEmptyStatePresentation', () => {getPatrolFindingsEmptyState({filter: 'active',runtimeState: 'blocked',- blockedReason: 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.',+ blockedReason: 'Quickstart credits exhausted. Connect your API key to continue using Patrol.',}),).toEqual({title: 'Patrol paused',- body: 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.',+ body: 'Quickstart credits exhausted. Connect your API key to continue using Patrol.',tone: 'warning',});});diff --git a/frontend-modern/src/utils/aiQuickstartContract.ts b/frontend-modern/src/utils/aiQuickstartContract.tsindex 998979e984..2e0b2cb0cb 100644--- a/frontend-modern/src/utils/aiQuickstartContract.ts+++ b/frontend-modern/src/utils/aiQuickstartContract.ts@@ -1,11 +1,11 @@export const AI_QUICKSTART_EXHAUSTED_REASON =- 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.';+ 'Quickstart credits exhausted. Connect your API key to continue using Patrol.';export const AI_QUICKSTART_ACTIVATION_REQUIRED_REASON =- 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.';+ 'Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.';export const AI_QUICKSTART_UNAVAILABLE_REASON =- 'Quickstart credits require internet access. Connect your API key for offline AI Patrol.';+ 'Quickstart credits require internet access. Connect your API key to use Patrol offline.';export function normalizeQuickstartReason(reason?: string | null): string {return (reason ?? '').trim();diff --git a/frontend-modern/src/utils/aiQuickstartPresentation.ts b/frontend-modern/src/utils/aiQuickstartPresentation.tsindex 135504552a..2faa36cc09 100644--- a/frontend-modern/src/utils/aiQuickstartPresentation.ts+++ b/frontend-modern/src/utils/aiQuickstartPresentation.ts@@ -5,7 +5,7 @@ export interface AIQuickstartCreditsPresentation {}export const PATROL_QUICKSTART_EXHAUSTED_REASON =- 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.';+ 'Quickstart credits exhausted. Connect your API key to continue using Patrol.';export function isPatrolQuickstartExhaustedReason(reason?: string | null): boolean {return reason?.trim() === PATROL_QUICKSTART_EXHAUSTED_REASON;@@ -29,6 +29,6 @@ export function getAIQuickstartCreditsPresentation('bg-amber-50 dark:bg-amber-950 border-amber-200 dark:border-amber-800 text-amber-700 dark:text-amber-300',summary: 'Patrol quickstart exhausted',title:- 'Patrol quickstart on this activated or trial-backed install is exhausted. Connect your API key to continue using AI Patrol.',+ 'Patrol quickstart on this activated or trial-backed install is exhausted. Connect your API key to continue using Patrol.',};}diff --git a/frontend-modern/src/utils/patrolRuntimePresentation.ts b/frontend-modern/src/utils/patrolRuntimePresentation.tsindex c147c6fc46..aaf2bb08f5 100644--- a/frontend-modern/src/utils/patrolRuntimePresentation.ts+++ b/frontend-modern/src/utils/patrolRuntimePresentation.ts@@ -19,28 +19,28 @@ export function getPatrolRuntimePresentation(title: 'Patrol paused',description:blockedReason?.trim() ||- 'Pulse Patrol cannot start new analysis until the blocking condition is cleared.',+ 'Pulse Patrol cannot start new verification until the blocking condition is cleared.',tone: 'warning',};case 'disabled':return {label: 'Patrol Disabled',title: 'Patrol disabled',- description: 'Enable Patrol to resume monitoring and analysis.',+ description: 'Enable Patrol to resume continuous verification.',tone: 'info',};case 'running':return {label: 'Patrol Running',title: 'Patrol running',- description: 'Pulse Patrol is actively analyzing your infrastructure.',+ description: 'Pulse Patrol is actively verifying your infrastructure.',tone: 'info',};case 'unavailable':return {label: 'Patrol Unavailable',title: 'Patrol unavailable',- description: 'Pulse Patrol is not ready yet. Check AI settings and runtime availability.',+ description: 'Pulse Patrol is not ready yet. Check Patrol provider settings and runtime availability.',tone: 'error',};case 'active':@@ -48,7 +48,7 @@ export function getPatrolRuntimePresentation(return {label: 'Patrol enabled',title: 'Patrol enabled',- description: 'Pulse Patrol is available to monitor and analyze your infrastructure.',+ description: 'Pulse Patrol is ready to continuously verify your infrastructure.',tone: 'info',};}diff --git a/tests/integration/tests/18-patrol-runtime-state.spec.ts b/tests/integration/tests/18-patrol-runtime-state.spec.tsindex f3a741a339..3ef772cd00 100644--- a/tests/integration/tests/18-patrol-runtime-state.spec.ts+++ b/tests/integration/tests/18-patrol-runtime-state.spec.ts@@ -3,7 +3,7 @@ import { expect, test, type Page } from "@playwright/test";import { ensureAuthenticated, trackBrowserRequests } from "./helpers";const PATROL_BLOCK_REASON =- "Quickstart credits exhausted. Connect your API key to continue using AI Patrol.";+ "Quickstart credits exhausted. Connect your API key to continue using Patrol.";function todayAt(hours: number, minutes: number): string {const value = new Date();diff --git a/tests/integration/tests/51-quickstart-cross-surface.spec.ts b/tests/integration/tests/51-quickstart-cross-surface.spec.tsindex 6476defd78..83d31463d2 100644--- a/tests/integration/tests/51-quickstart-cross-surface.spec.ts+++ b/tests/integration/tests/51-quickstart-cross-surface.spec.ts@@ -3,11 +3,11 @@ import { expect, test, type Page } from "@playwright/test";import { ensureAuthenticated } from "./helpers";const QUICKSTART_EXHAUSTED_REASON =- "Quickstart credits exhausted. Connect your API key to continue using AI Patrol.";+ "Quickstart credits exhausted. Connect your API key to continue using Patrol.";const QUICKSTART_ACTIVATION_REQUIRED_REASON =- "Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.";+ "Activate this install or start a trial to use Patrol quickstart. Otherwise connect your API key.";const QUICKSTART_OFFLINE_REASON =- "Quickstart credits require internet access. Connect your API key for offline AI Patrol.";+ "Quickstart credits require internet access. Connect your API key to use Patrol offline.";type AISettingsPayload = {enabled: boolean;diff --git a/tests/integration/tests/journeys/07-ai-patrol-finding-lifecycle.spec.ts b/tests/integration/tests/journeys/07-ai-patrol-finding-lifecycle.spec.tsindex 5ddc9a822c..331cbb2198 100644--- a/tests/integration/tests/journeys/07-ai-patrol-finding-lifecycle.spec.ts+++ b/tests/integration/tests/journeys/07-ai-patrol-finding-lifecycle.spec.ts@@ -1,9 +1,9 @@/**- * Journey 07: AI Patrol → Finding → Approval → Fix → Verify Resolved+ * Journey 07: Patrol → Finding → Approval → Fix → Verify Resolved** L12 score-7 criterion: closed-loop patrol lifecycle.*- * Validates the full AI Patrol journey:+ * Validates the full Patrol journey:* 1. Patrol status endpoint is healthy* 2. Patrol findings endpoint returns data* 3. Force patrol run triggers and completes@@ -13,7 +13,7 @@* 7. Investigation endpoint responds for finding* 8. Finding lifecycle: acknowledge → resolve (closed-loop)* 9. Suppression and dismissed findings endpoints respond- * 10. AI patrol page renders in UI+ * 10. Patrol page renders in UI** Environment: local dev (localhost:7655) with mock mode enabled.* Mock mode generates deterministic resources that patrol can inspect.@@ -31,7 +31,7 @@ import {let mockModeWasEnabled: boolean | null = null;test.describe.serial(- 'Journey: AI Patrol → Finding → Approval → Fix → Verify Resolved',+ 'Journey: Patrol → Finding → Approval → Fix → Verify Resolved',() => {test.beforeAll(async ({ browser }) => {const ctx = await browser.newContext();@@ -360,7 +360,7 @@ test.describe.serial(// Returns JSON array of dismissed findings or null when empty});- test('AI patrol page renders in UI', async ({ page }, testInfo) => {+ test('Patrol page renders in UI', async ({ page }, testInfo) => {test.skip(testInfo.project.name.startsWith('mobile-'),'Desktop journey',@@ -368,9 +368,9 @@ test.describe.serial(await ensureAuthenticated(page);await page.goto('/patrol');- await page.waitForURL('**/ai**');+ await page.waitForURL('**/patrol**');- // Wait for the AI/Intelligence page main content to render.+ // Wait for the Patrol page main content to render.// Scope to <main> to avoid false positives from nav tab labels.// Use waitForFunction (browser-context) for reliability — Playwright// locator chains can miss deeply nested elements during hydration.