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.

make patrol the canonical route

rcourtman5925f4847c69
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index bbe1631005..009189f682 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -98,6 +98,10 @@ explicit inside the current architecture lane instead of leaving those
surfaces implicit inside broad architecture or generic API ownership. A later
lane split can still promote this area into its own product lane once the
governed floor is ready.
+That backend/runtime ownership does not require the Patrol product surface to
+inherit `AI` as its canonical browser route: the customer-facing shell may use
+`/patrol` while shared AI transport, provider settings, and payload contracts
+remain the governed technical boundary behind it.
`internal/ai/` is the live backend AI engine. It owns chat execution, Patrol
orchestration, findings generation, investigation support, quickstart and
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index c650ffa2d0..a54226b863 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -186,6 +186,7 @@ when the disabled candidate no longer counts toward monitored-system capacity.
and the same shared correlation card's ordering and truncation rule, so callers pass raw correlations instead of encoding their own top-N sort behavior
and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` and `frontend-modern/src/components/Infrastructure/ResourceCorrelationSummary.tsx` cards' infrastructure resource-link default, so the Patrol page, resource drawer, and problem-resource dashboard panels inherit the canonical resource-filter path construction instead of rebuilding infrastructure URLs inline
and the Patrol runtime-remediation destination shared with `/api/settings/ai`, so summary actions and runtime-finding actions may reuse the governed provider-settings route while still presenting that destination to Patrol operators as Patrol provider configuration instead of generic `AI Settings` copy
+ and the Patrol route-shell destination itself, so the thin page shell at `frontend-modern/src/pages/AIIntelligence.tsx` may continue to bridge the shared AI-runtime payload boundary while exposing `/patrol` as the canonical product route and preserving `/ai` only as a compatibility redirect
8. Route frontend API-client parsed error propagation, API-error-status fallback handling, allowed-status handling, custom status-specific error handling, command-trigger success envelope handling, shared response parsing pipelines, missing-resource lookup handling, metadata CRUD routing, stream event consumption, response status, collection normalization, scalar payload coercion, and structured error normalization through canonical shared helpers under `frontend-modern/src/api/`
9. Add or change API token scope, assignment, and revocation presentation through `frontend-modern/src/components/Settings/APITokenManager.tsx`, `frontend-modern/src/components/Settings/apiTokenManagerModel.ts`, and `frontend-modern/src/components/Settings/useAPITokenManagerState.ts`
10. Add or change infrastructure operations token generation, lookup, assignment, the pure unified-agent inventory/install model, the split infrastructure install/reporting state owners, the split direct-node/discovery infrastructure settings owners, the shared infrastructure-operations state provider/context shell, and reporting/install presentation through `frontend-modern/src/components/Settings/InfrastructureOperationsController.tsx`, `frontend-modern/src/components/Settings/infrastructureOperationsModel.tsx`, `frontend-modern/src/components/Settings/useInfrastructureConfiguredNodesState.ts`, `frontend-modern/src/components/Settings/useInfrastructureDiscoveryRuntimeState.ts`, `frontend-modern/src/components/Settings/useInfrastructureInstallState.tsx`, `frontend-modern/src/components/Settings/useInfrastructureOperationsState.tsx`, and `frontend-modern/src/components/Settings/useInfrastructureReportingState.tsx`
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index 7f031af58a..9ae3e895d5 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -167,7 +167,11 @@ still grows monitored-system usage.
`frontend-modern/src/useAppRuntimeState.ts` must stop at the shared
login-needed state and skip `/api/state`, while protected-route arrivals
and post-login reloads still keep the canonical state probe for runtime
- detection.
+ detection. Protected Patrol entrypoints follow that same route-owned rule:
+ the canonical Patrol surface may live at `/patrol`, and any legacy `/ai`
+ browser entrypoint must remain only a thin authenticated redirect rather
+ than a second public handoff or a route that invites separate commercial
+ posture logic.
## Forbidden Paths
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index a2c9d2c0db..fc9b0d3f96 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -295,7 +295,11 @@ work extends shared components instead of creating new local variants.
active findings, or selected-run investigation makes that evidence
relevant; and use Patrol/provider wording for the shared provider settings,
provider model, and provider circuit-breaker affordances instead of
- generic AI labels inside Patrol-owned shells.
+ generic AI labels inside Patrol-owned shells. The shared app shell in
+ `frontend-modern/src/App.tsx` and `frontend-modern/src/AppLayout.tsx` must
+ likewise expose `/patrol` as the canonical route and navigation target,
+ keeping legacy `/ai` entry points as thin compatibility redirects rather
+ than a second Patrol-branded primary route.
## Forbidden Paths
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index feaabc07cc..d8cca2d75e 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -99,7 +99,9 @@ The route file `frontend-modern/src/pages/AIIntelligence.tsx` is now also a
thin shell that delegates to the feature-owned
`frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx`, so Patrol
runtime state and presentation no longer accumulate directly in the route
-component itself.
+component itself. The governed customer-facing route for that shell is now
+`/patrol`, while legacy `/ai` entry points remain compatibility redirects
+instead of the canonical product path.
That route-shell ownership does not make `AI` the customer-facing Patrol
product name. Internal file, store, and transport names may still carry the
shared AI-runtime boundary where that is the real technical ownership, but the
@@ -133,10 +135,12 @@ header chip should communicate that Patrol is enabled or available, not imply
that infrastructure health is currently good merely because the runtime is on.
That render rule now also has browser-level proof in
`tests/integration/tests/18-patrol-runtime-state.spec.ts`: when the backend
-reports `runtime_state=blocked`, the real `/ai` route must show Patrol as
+reports `runtime_state=blocked`, the real `/patrol` route must show Patrol as
paused, keep the blocked reason visible, disable manual Patrol runs, and
suppress stale healthy summary headlines such as `Health A · 100/100` even if
-the last summary payload still looks healthy.
+the last summary payload still looks healthy. Legacy `/ai` entry points must
+redirect into that same Patrol-owned shell rather than preserving a second
+canonical route.
That same Patrol-owned presentation rule also applies to the findings empty
state: `frontend-modern/src/components/AI/FindingsPanel.tsx` must not treat
`0 active findings` as equivalent to "your infrastructure looks healthy" when
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 d7caae776e..aed1e7ddb9 100644
--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md
@@ -223,6 +223,11 @@ regression protection.
or the operator is on a protected route, that shared state probe remains
the canonical runtime detector.
into another summary-fetch or org-bootstrap hot path.
+ The same protected hot path also owns Patrol route compatibility: if
+ `frontend-modern/src/App.tsx` keeps `/ai` as a legacy alias while `/patrol`
+ is canonical, that alias must stay a thin redirect and must not mount a
+ second Patrol shell or duplicate app bootstrap work before navigation
+ settles on the canonical route.
Authenticated `/login` recovery belongs to that same app-shell boundary:
`frontend-modern/src/App.tsx` must redirect that route back to the
canonical dashboard landing path instead of leaving the freshly
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 8def93bfc6..4b4e73b73b 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -244,7 +244,12 @@ querying, and the operator-facing storage health presentation layer.
`/preview/setup-complete` may remain public app-shell routes, but unrelated
commercial compatibility handoffs like `/pricing` must stay separate thin
route exits rather than borrowing storage/recovery preview framing,
- first-session copy, or page-state assumptions.
+ first-session copy, or page-state assumptions. The same route-ownership
+ rule applies to Patrol aliases on the shared app shell: `/patrol` may be
+ the authenticated canonical surface while `/ai` survives only as a thin
+ compatibility redirect, but storage/recovery route owners must not depend
+ on or borrow that Patrol redirect path for their own preview or
+ compatibility entrypoints.
Authenticated `/login` must follow that same shared app-shell contract:
once login succeeds, `frontend-modern/src/App.tsx` must hand the browser
back to the governed dashboard landing route instead of leaving
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index a191bdb8da..644d9d7297 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -883,6 +883,12 @@ workload-to-infrastructure href builder used by dashboard row and drawer
consumers. Future workload-to-resource navigation changes must extend through
that shared routing contract instead of reintroducing dashboard-local path
builders.
+That same shared routing boundary now also owns the canonical Patrol
+destination used by cross-surface findings and drill-down links. Shared
+dashboard, alert, and settings referrals may target `/patrol` through
+`frontend-modern/src/routing/resourceLinks.ts`, but legacy `/ai` route shapes
+must remain compatibility-only redirects rather than forked primary
+destinations in local link builders.
That same shared routing boundary now also owns storage deep links for unified
resources. Infrastructure drawers and other cross-surface consumers must route
storage-centric systems and exact storage resources through canonical
diff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsx
index 13f8b442ba..5341bc1267 100644
--- a/frontend-modern/src/App.tsx
+++ b/frontend-modern/src/App.tsx
@@ -32,6 +32,7 @@ import { useKeyboardShortcuts } from './hooks/useKeyboardShortcuts';
import { useKioskMode } from '@/hooks/useKioskMode';
import {
DASHBOARD_PATH,
+ PATROL_PATH,
buildRecoveryPath,
buildInfrastructurePath,
buildStoragePath,
@@ -86,6 +87,7 @@ const INFRASTRUCTURE_ROUTE_PATH = buildInfrastructurePath();
const ROOT_WORKLOADS_PATH = buildWorkloadsPath();
const STORAGE_PATH = buildStoragePath();
const RECOVERY_ROUTE_PATH = buildRecoveryPath();
+const ROOT_PATROL_PATH = PATROL_PATH;
// Helper to detect if an update is actively in progress (not just checking for updates)
function isUpdateInProgress(status: string | undefined): boolean {
@@ -182,6 +184,12 @@ function App() {
location.pathname.replace(/^\/settings\/operations(?=\/|$)/, '/operations') || '/operations';
return <Navigate href={`${canonicalPath}${location.search ?? ''}`} />;
};
+ const LegacyPatrolRouteRedirect = () => {
+ const location = useLocation();
+ const canonicalPath =
+ location.pathname.replace(/^\/ai(?=\/|$)/, ROOT_PATROL_PATH) || ROOT_PATROL_PATH;
+ return <Navigate href={`${canonicalPath}${location.search ?? ''}`} />;
+ };
const kioskMode = useKioskMode();
const TooltipRoot = createTooltipSystem();
const runtime = useAppRuntimeState();
@@ -428,7 +436,8 @@ function App() {
<Route path={INFRASTRUCTURE_ROUTE_PATH} component={InfrastructurePage} />
<Route path="/alerts/*" component={AlertsPage} />
- <Route path="/ai/*" component={AIIntelligencePage} />
+ <Route path={`${ROOT_PATROL_PATH}/*`} component={AIIntelligencePage} />
+ <Route path="/ai/*" component={LegacyPatrolRouteRedirect} />
<Route path="/settings/operations/*" component={LegacyOperationsSettingsRedirect} />
<Route path="/settings/*" component={SettingsRoute} />
<Route path="/operations/*" component={OperationsPage} />
diff --git a/frontend-modern/src/AppLayout.tsx b/frontend-modern/src/AppLayout.tsx
index c85c8a390d..429a3d0714 100644
--- a/frontend-modern/src/AppLayout.tsx
+++ b/frontend-modern/src/AppLayout.tsx
@@ -230,7 +230,7 @@ export function AppLayout(props: AppLayoutProps) {
createEffect(() => {
if (!kioskMode()) return;
const normalizedPath = location.pathname.replace(/\/+$/, '') || '/';
- const blockedPrefixes = ['/settings', '/operations', '/ai'];
+ const blockedPrefixes = ['/settings', '/operations', '/patrol', '/ai'];
const isBlocked = blockedPrefixes.some(
(prefix) => normalizedPath === prefix || normalizedPath.startsWith(prefix + '/'),
);
@@ -418,8 +418,8 @@ export function AppLayout(props: AppLayoutProps) {
{
id: 'ai',
label: 'Patrol',
- route: '/ai',
- tooltip: 'Pulse Patrol monitoring and analysis',
+ route: '/patrol',
+ tooltip: 'Continuous verification and actionable findings',
badge: null,
count: undefined,
breakdown: undefined,
diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.ts
index 981253fd89..21302a0dec 100644
--- a/frontend-modern/src/__tests__/App.architecture.test.ts
+++ b/frontend-modern/src/__tests__/App.architecture.test.ts
@@ -21,9 +21,12 @@ describe('App architecture', () => {
expect(appSource).toContain('readPendingAppShellRestoreTop');
expect(appSource).toContain('clearPendingAppShellRestoreTop');
expect(appSource).toContain('const ROOT_DASHBOARD_PATH = DASHBOARD_PATH;');
+ expect(appSource).toContain('const ROOT_PATROL_PATH = PATROL_PATH;');
expect(appSource).toContain('<Route path={ROOT_DASHBOARD_PATH} component={DashboardPage} />');
expect(appSource).toContain('<Route path="/login" component={() => <Navigate href={ROOT_DASHBOARD_PATH} />} />');
expect(appSource).toContain('<Route path="/" component={() => <Navigate href={ROOT_DASHBOARD_PATH} />} />');
+ expect(appSource).toContain('<Route path={`${ROOT_PATROL_PATH}/*`} component={AIIntelligencePage} />');
+ expect(appSource).toContain('<Route path="/ai/*" component={LegacyPatrolRouteRedirect} />');
expect(appSource).toContain(
"const PricingHandoffPage = lazy(() => import('./pages/PricingHandoff'));",
);
@@ -66,6 +69,8 @@ describe('App architecture', () => {
expect(appLayoutSource).toContain(
'<ReleaseCandidateBanner version={props.versionInfo()?.version} />',
);
+ expect(appLayoutSource).toContain("const blockedPrefixes = ['/settings', '/operations', '/patrol', '/ai'];");
+ expect(appLayoutSource).toContain("route: '/patrol',");
expect(appLayoutSource).not.toContain('props.connected()');
expect(appLayoutSource).toContain('const utilityTabs = createMemo(() =>');
expect(appLayoutSource).not.toContain("import { isMultiTenantEnabled } from '@/stores/license';");
diff --git a/frontend-modern/src/components/Settings/AISettings.tsx b/frontend-modern/src/components/Settings/AISettings.tsx
index 55d5d42ac8..d4ee0b3cc3 100644
--- a/frontend-modern/src/components/Settings/AISettings.tsx
+++ b/frontend-modern/src/components/Settings/AISettings.tsx
@@ -8,6 +8,7 @@ import { AISettingsStatusAndActions } from '@/components/Settings/AISettingsStat
import { useAISettingsState } from '@/components/Settings/useAISettingsState';
import SettingsPanel from '@/components/shared/SettingsPanel';
import { Toggle } from '@/components/shared/Toggle';
+import { PATROL_PATH } from '@/routing/resourceLinks';
import {
getAISettingsLoadingState,
getAISettingsLoadErrorMessage,
@@ -117,11 +118,11 @@ export const AISettings: Component = () => {
{state.form.patrolIntervalMinutes >= 60
? `${Math.round(state.form.patrolIntervalMinutes / 60)} hour${Math.round(state.form.patrolIntervalMinutes / 60) === 1 ? '' : 's'}`
: `${state.form.patrolIntervalMinutes} minute${state.form.patrolIntervalMinutes === 1 ? '' : 's'}`}{' '}
- to monitor your infrastructure.{' '}
+ to verify your infrastructure continuously.{' '}
<button
type="button"
class="inline-flex min-h-10 sm:min-h-9 items-center rounded-md px-1 py-1 text-sm underline hover:text-blue-800 dark:hover:text-blue-300"
- onClick={() => navigate('/ai')}
+ onClick={() => navigate(PATROL_PATH)}
>
Configure schedule & autonomy
</button>
diff --git a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
index 51754dc4ab..38fff4096f 100644
--- a/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
+++ b/frontend-modern/src/components/Settings/__tests__/settingsArchitecture.test.ts
@@ -1101,6 +1101,8 @@ describe('Settings architecture guardrails', () => {
expect(aiSettingsPanelSource).toContain('@/components/Settings/AISettingsStatusAndActions');
expect(aiSettingsPanelSource).toContain('@/components/Settings/AISettingsDialogs');
expect(aiSettingsPanelSource).toContain('@/components/Settings/useAISettingsState');
+ expect(aiSettingsPanelSource).toContain("@/routing/resourceLinks");
+ expect(aiSettingsPanelSource).toContain("navigate(PATROL_PATH)");
expect(aiSettingsPanelSource).not.toContain(
'const [loading, setLoading] = createSignal(false);',
);
diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
index 52eb842317..a57be71fe9 100644
--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
@@ -65,13 +65,13 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState
title={
<span
class="inline-flex items-center gap-3"
- title="Pulse Patrol constantly monitors your infrastructure, investigates alerts, and can automatically fix issues based on your autonomy settings."
+ title="Pulse Patrol continuously verifies your infrastructure, surfaces actionable findings, and can automatically fix issues based on your autonomy settings."
>
<PulsePatrolLogo class="w-6 h-6 text-base-content" />
<span>Patrol</span>
</span>
}
- description="Pulse Patrol monitoring and analysis"
+ description="Continuous verification and actionable findings"
class="mb-3"
actions={
<div class="flex flex-wrap items-center justify-end gap-3">
diff --git a/frontend-modern/src/pages/AIIntelligence.tsx b/frontend-modern/src/pages/AIIntelligence.tsx
index 9ea4dec149..868f2f8fbe 100644
--- a/frontend-modern/src/pages/AIIntelligence.tsx
+++ b/frontend-modern/src/pages/AIIntelligence.tsx
@@ -1,7 +1,9 @@
import { PatrolIntelligenceSurface } from '@/features/patrol/PatrolIntelligenceSurface';
-export function AIIntelligence() {
+export function PatrolIntelligencePage() {
return <PatrolIntelligenceSurface />;
}
-export default AIIntelligence;
+export const AIIntelligence = PatrolIntelligencePage;
+
+export default PatrolIntelligencePage;
diff --git a/frontend-modern/src/routing/__tests__/navigation.test.ts b/frontend-modern/src/routing/__tests__/navigation.test.ts
index c0d5152dd8..1e5b9a27df 100644
--- a/frontend-modern/src/routing/__tests__/navigation.test.ts
+++ b/frontend-modern/src/routing/__tests__/navigation.test.ts
@@ -10,6 +10,7 @@ describe('navigation routing helpers', () => {
expect(getActiveTabForPath('/ceph')).toBe('storage');
expect(getActiveTabForPath('/recovery')).toBe('recovery');
expect(getActiveTabForPath('/alerts/open')).toBe('alerts');
+ expect(getActiveTabForPath('/patrol')).toBe('ai');
expect(getActiveTabForPath('/ai')).toBe('ai');
expect(getActiveTabForPath('/operations')).toBe('operations');
expect(getActiveTabForPath('/operations/diagnostics')).toBe('operations');
diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
index 7a970582ca..f98e88788a 100644
--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts
@@ -1,7 +1,9 @@
import { describe, expect, it } from 'vitest';
import type { WorkloadGuest } from '@/types/workloads';
import {
+ AI_PATROL_PATH,
PMG_THRESHOLDS_PATH,
+ PATROL_PATH,
RECOVERY_QUERY_PARAMS,
buildInfrastructureResourceLink,
buildInfrastructureHrefForWorkload,
@@ -50,6 +52,11 @@ const baseGuest = (overrides: Partial<WorkloadGuest>): WorkloadGuest => ({
});
describe('resource link routing contract', () => {
+ it('keeps Patrol links on the canonical Patrol route', () => {
+ expect(PATROL_PATH).toBe('/patrol');
+ expect(AI_PATROL_PATH).toBe(PATROL_PATH);
+ });
+
it('builds and parses workloads query params', () => {
const href = buildWorkloadsPath({
type: 'k8s',
diff --git a/frontend-modern/src/routing/navigation.ts b/frontend-modern/src/routing/navigation.ts
index 7d57cb387d..6a9274d9d7 100644
--- a/frontend-modern/src/routing/navigation.ts
+++ b/frontend-modern/src/routing/navigation.ts
@@ -1,4 +1,4 @@
-import { INFRASTRUCTURE_PATH, WORKLOADS_PATH } from './resourceLinks';
+import { INFRASTRUCTURE_PATH, PATROL_PATH, WORKLOADS_PATH } from './resourceLinks';
export type AppTabId =
| 'dashboard'
@@ -19,7 +19,7 @@ export function getActiveTabForPath(path: string): AppTabId {
if (path.startsWith('/ceph')) return 'storage';
if (path.startsWith('/recovery')) return 'recovery';
if (path.startsWith('/alerts')) return 'alerts';
- if (path.startsWith('/ai')) return 'ai';
+ if (path.startsWith(PATROL_PATH) || path.startsWith('/ai')) return 'ai';
if (path.startsWith('/settings')) return 'settings';
if (path.startsWith('/operations')) return 'operations';
return 'infrastructure';
diff --git a/frontend-modern/src/routing/resourceLinks.ts b/frontend-modern/src/routing/resourceLinks.ts
index 2dbe89d7e9..5233b62821 100644
--- a/frontend-modern/src/routing/resourceLinks.ts
+++ b/frontend-modern/src/routing/resourceLinks.ts
@@ -40,7 +40,9 @@ export const WORKLOADS_PATH = '/workloads';
export const PMG_THRESHOLDS_PATH = '/alerts/thresholds/mail-gateway';
export const DASHBOARD_PATH = '/dashboard';
export const ALERTS_OVERVIEW_PATH = '/alerts/overview';
-export const AI_PATROL_PATH = '/ai';
+export const PATROL_PATH = '/patrol';
+// Deprecated compatibility alias while older callers migrate off `/ai`.
+export const AI_PATROL_PATH = PATROL_PATH;
// Canonical "Recovery" surface (was historically called Backups).
export const RECOVERY_PATH = '/recovery';
diff --git a/tests/integration/tests/18-patrol-runtime-state.spec.ts b/tests/integration/tests/18-patrol-runtime-state.spec.ts
index b1d944904c..f3a741a339 100644
--- a/tests/integration/tests/18-patrol-runtime-state.spec.ts
+++ b/tests/integration/tests/18-patrol-runtime-state.spec.ts
@@ -525,7 +525,7 @@ test.describe("Patrol runtime-state browser contract", () => {
await ensureAuthenticated(page);
await mockScopedTriggerPatrolRuntimeState(page);
- await page.goto("/ai", { waitUntil: "domcontentloaded" });
+ await page.goto("/patrol", { waitUntil: "domcontentloaded" });
await expect(
page.getByText(
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.ts
index a76a2bf61c..5ddc9a822c 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
@@ -367,7 +367,7 @@ test.describe.serial(
);
await ensureAuthenticated(page);
- await page.goto('/ai');
+ await page.goto('/patrol');
await page.waitForURL('**/ai**');
// Wait for the AI/Intelligence page main content to render.