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
Resolve shell navigation from the canonical admission facet
rcourtman4606b3183657
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 11c250739d..fa38365924 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -3450,6 +3450,13 @@ query...`, and `Reading storage...` before streamed tool arguments arelauncher visibility, or shared keyboard handling in`frontend-modern/src/AppLayout.tsx`.+### Platform navigation admission++Surfaces hosted in the app shell MUST take platform navigation visibility from+the shell's resolved admission rather than re-deriving it from a full-state+payload or a resource count. Admission is per-resource ownership evidence and+has a single definition in the canonical resource contract.+## Forbidden Paths1. Leaving new `internal/ai/` runtime entry points unowned under broad architecture or generic API ownershipdiff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex 74ce3cc30f..d58b52459c 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -1216,6 +1216,13 @@ hands-on Patrol modes, issue investigation, verified fixes, and longer history`.hints; it must never expose a grant, the global Relay feed credential, oranother commercial subject's event data.+### Tenant shell navigation admission++The authenticated shell bootstrap reads platform admission from the canonical+resource contract, which is tenant-scoped, so a tenant sees exactly the+platform pages its own estate admits. Navigation MUST NOT be derived from a+cross-tenant or unscoped resource set.+## Forbidden Paths1. New ad hoc plan names in runtime or UIdiff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex 8540ddaf79..6d2fd5cecc 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -972,6 +972,16 @@ shell clickable behind another overlay.input; `suppressPlatformFilter` drops the now-redundant Platform chipfrom the rendered toolbar so the user never sees a removable lock.+### 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.+## Forbidden Paths1. Speculative micro-optimizations without evidencediff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.mdindex 3cdb017982..896c58d84a 100644--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md@@ -1758,6 +1758,13 @@ Pulse-managed host in its own right. Admission is resolved by`unifiedresources.BuildPlatformAdmission`; storage surfaces MUST NOT inferhost ownership from the `agent` source count.+### TrueNAS navigation visibility++The TrueNAS platform page is admitted by the `platformAdmission` facet on the+canonical resource aggregations. A TrueNAS host admits the TrueNAS page and not+the standalone page, and the shell MUST take that answer from the facet rather+than inferring it from an agent-source count in a runtime payload.+## Forbidden Paths1. Reintroducing storage or recovery product logic as ad hoc dashboard-only summaries without a canonical page-surface ownerdiff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex fa3da018e1..9f5206dcb3 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,25 +1,29 @@{"version": 1,- "base_sha": "c6cafa6e2588050bc6acd8f3a224144a8523c9f9",- "verified_at": "2026-08-18T06:45:34Z",+ "base_sha": "ebba3c493bb4713c0954a620ed4b247c84b8d1ba",+ "verified_at": "2026-08-18T09:22:00Z","result": "passed","changed_paths": [- "frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx",- "frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx",- "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx"+ "frontend-modern/src/App.tsx",+ "frontend-modern/src/useAppRuntimeState.ts"],"content_sha256": {- "frontend-modern/src/features/patrol/PatrolAttentionWorkbench.tsx": "84e4631c4b2c651667a9bdd4b612eee6a96b053df6ac72293789f3b957868760",- "frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx": "242e527ff6379f7d38a5f0649a551c49426b2ef4bc4b8efa20ecae0b85bd7d2b",- "frontend-modern/src/features/patrol/PatrolIntelligenceSurface.tsx": "79701a9a23208d1bb6f4c1711a0aa64b12ff3b5ad12f65a8448b2de0e5e3c3aa"+ "frontend-modern/src/App.tsx": "15989cbf87c43fac8fe0701fe29adda0ff8a3642e1a8eff7925102c61a1ca8dd",+ "frontend-modern/src/useAppRuntimeState.ts": "cbed5848e77a1b0b01c82c59e651bc8e7598b74d95dcdc308ff4974d437aca68"},"routes": [- "/patrol"+ "/login",+ "/",+ "/proxmox/overview",+ "/docker/overview",+ "/kubernetes/overview",+ "/truenas/overview",+ "/vsphere/overview"],"viewports": [{- "width": 1280,- "height": 720+ "width": 1440,+ "height": 900},{"width": 390,@@ -27,17 +31,23 @@}],"states": [- "Live Watch only daily briefing with 15 current decisions, one critical item, and one governed approval waiting",- "Desktop start state with the compact Patrol toolbar, priority-ordered inbox, and recommended first-decision preview in the initial viewport",- "Selected critical item in the persistent desktop inbox-and-context workspace",- "Narrow master/detail state with the inbox hidden until explicit Back to list navigation",- "Current-coverage calm state, transport failure state, and attached availability failure without synthetic health"+ "signed-out login form",+ "authenticated shell against a backend that reports the platformAdmission facet",+ "platform navigation resolved with all six primary tabs present (Proxmox, Docker, Kubernetes, TrueNAS, vSphere, Machines)",+ "Proxmox overview populated from a 658-resource estate",+ "Docker, Kubernetes, TrueNAS and vSphere platform pages populated",+ "shell at 390x844 with the Proxmox table rendered"],"interactions": [- "Used the live in-app Browser to inspect the complete briefing start state and confirm current-work counters, Start review, approval handoff, inbox, and recommended next case",- "Activated Start review and inspected the selected desktop context with lifecycle, evidence, protection, resource, and Assistant controls",- "Passed all 18 attention-workbench scenarios across Chromium, mobile Chrome, and mobile Safari",- "Verified at 390x844 that selection hides the inbox, Back to list restores it and row focus, the deep link survives reload, and the page does not overflow",- "Passed the seven monitor-first and attached-availability browser scenarios in Chromium"+ "signed in and confirmed navigation resolves with every platform tab the estate admits, against a backend built from the commit that publishes the facet",+ "confirmed the shell reads admission from a 2172-byte /api/resources?page=1&limit=1 response rather than the 314KB /api/state payload",+ "confirmed the shipped facet equals the client classifier over the same 658-resource estate, so the handover between the two sources is not visible",+ "switched to the Docker tab and confirmed 80 rows",+ "switched to the Kubernetes tab and confirmed 180 rows",+ "switched to the TrueNAS tab and confirmed 3 rows",+ "switched to the vSphere tab and confirmed 32 rows",+ "returned to the Proxmox tab and confirmed 79 rows",+ "resized to 390x844 and confirmed the Proxmox table still renders 79 rows",+ "confirmed zero console or page errors across the whole pass"]-}+}\ No newline at end of filediff --git a/frontend-modern/src/App.tsx b/frontend-modern/src/App.tsxindex fdf5f0d0d2..bef6cf6321 100644--- a/frontend-modern/src/App.tsx+++ b/frontend-modern/src/App.tsx@@ -132,15 +132,29 @@ const PRIMARY_INFRASTRUCTURE_ROUTE_BY_ID: Record<PrimaryPlatformNavId, string> =export function resolvePlatformNavigationAdmission(resources: readonly Resource[],runtimeStateResolved: boolean,+ platformAdmission?: PlatformNavigationVisibility | null,): {resolved: boolean;visibility: PlatformNavigationVisibility;} {+ // The canonical resource contract reports which platform pages the estate+ // admits, so navigation can resolve from a one-resource request instead of+ // waiting for an estate-sized runtime payload to arrive and classifying it+ // here. Once that payload does arrive it stays authoritative, because it+ // tracks the live estate; the two agree by construction, so the handover is+ // not visible. Servers that do not report the facet keep the old behaviour.+ if (runtimeStateResolved) {+ return {+ resolved: true,+ visibility: buildPrimaryPlatformNavigationVisibility(resources),+ };+ }+ if (platformAdmission) {+ return { resolved: true, visibility: platformAdmission };+ }return {- resolved: runtimeStateResolved,- visibility: runtimeStateResolved- ? buildPrimaryPlatformNavigationVisibility(resources)- : createEmptyPlatformNavigationVisibility(),+ resolved: false,+ visibility: createEmptyPlatformNavigationVisibility(),};}@@ -321,6 +335,7 @@ function App() {resolvePlatformNavigationAdmission(runtime.state().resources || [],runtime.runtimeStateResolved(),+ runtime.platformAdmission(),),);const platformNavigationResolved = () => platformNavigationAdmission().resolved;diff --git a/frontend-modern/src/__tests__/App.architecture.test.ts b/frontend-modern/src/__tests__/App.architecture.test.tsindex f9b30bd151..80124bfb19 100644--- a/frontend-modern/src/__tests__/App.architecture.test.ts+++ b/frontend-modern/src/__tests__/App.architecture.test.ts@@ -102,6 +102,63 @@ describe('App platform navigation admission', () => {}});+ it('resolves navigation from the canonical admission facet before runtime state arrives', () => {+ // The facet is what lets the shell render navigation without first+ // downloading and classifying an estate-sized runtime payload.+ const admission = resolvePlatformNavigationAdmission([], false, {+ proxmox: true,+ docker: false,+ kubernetes: false,+ truenas: true,+ vmware: false,+ standalone: false,+ });++ expect(admission.resolved).toBe(true);+ expect(admission.visibility).toMatchObject({ proxmox: true, truenas: true, standalone: false });+ });++ it('does not admit the standalone page for a provider-owned estate', () => {+ // A TrueNAS or Proxmox host reports through the agent source, so a+ // count-based derivation would show a Machines tab for an estate that has+ // no Pulse agent in it. The facet reports ownership, so this stays hidden.+ const admission = resolvePlatformNavigationAdmission([], false, {+ proxmox: false,+ docker: false,+ kubernetes: false,+ truenas: true,+ vmware: false,+ standalone: false,+ });++ expect(admission.visibility.standalone).toBe(false);+ expect(getDefaultWorkspaceRoute(admission.visibility, true)).toBe('/truenas/overview');+ });++ it('keeps live runtime state authoritative once it arrives', () => {+ // The estate can gain a platform after the facet was read, so the live+ // payload wins rather than freezing navigation at the bootstrap answer.+ const staleFacet = {+ proxmox: false,+ docker: false,+ kubernetes: false,+ truenas: false,+ vmware: false,+ standalone: false,+ };+ const admission = resolvePlatformNavigationAdmission(authenticatedResources, true, staleFacet);++ expect(admission.resolved).toBe(true);+ expect(admission.visibility).toMatchObject({ docker: true, truenas: true, standalone: true });+ });++ it('stays unresolved when neither the facet nor runtime state is available', () => {+ const admission = resolvePlatformNavigationAdmission([], false, null);++ expect(admission.resolved).toBe(false);+ expect(Object.values(admission.visibility)).toEqual([false, false, false, false, false, false]);+ });+it('resolves an authenticated empty estate without inventing platform visibility', () => {const admission = resolvePlatformNavigationAdmission([], true);@@ -723,9 +780,19 @@ describe('App architecture', () => {});it('keeps licensed application branding inside the authenticated shell bootstrap', () => {- expect(appRuntimeStateSource).toContain(- 'await Promise.all([loadRuntimeDisplayAndLayout(), loadRuntimeBranding()]);',- );+ // Asserted on the bootstrap's contents rather than one formatted line, so+ // a prettier line-wrap cannot read as branding leaving the bootstrap.+ const authenticatedBootstrap = appRuntimeStateSource+ .slice(appRuntimeStateSource.indexOf('await Promise.all(['))+ .slice(+ 0,+ appRuntimeStateSource+ .slice(appRuntimeStateSource.indexOf('await Promise.all(['))+ .indexOf(']);') + 3,+ );+ expect(authenticatedBootstrap).toContain('loadRuntimeDisplayAndLayout()');+ expect(authenticatedBootstrap).toContain('loadRuntimeBranding()');+ expect(authenticatedBootstrap).toContain('loadPlatformAdmission()');expect(appLayoutSource).toContain("import { runtimeBranding } from '@/stores/systemSettings';");expect(appLayoutSource).toContain("const browserBrandName = createMemo(() => customBrandName() || 'Pulse');",diff --git a/frontend-modern/src/useAppRuntimeState.ts b/frontend-modern/src/useAppRuntimeState.tsindex 96a845f359..3c03cd6d61 100644--- a/frontend-modern/src/useAppRuntimeState.ts+++ b/frontend-modern/src/useAppRuntimeState.ts@@ -9,6 +9,11 @@ import {} from 'solid-js';import { getGlobalWebSocketStore } from '@/stores/websocket-global';import { logger } from '@/utils/logger';+import { apiFetchJSON } from '@/utils/apiClient';+import {+ PRIMARY_PLATFORM_NAV_IDS,+ type PlatformNavigationVisibility,+} from '@/features/platformNavigation/platformNavigationModel';import { STORAGE_KEYS } from '@/utils/localStorage';import type { VersionInfo } from '@/api/updates';import type { Organization } from '@/api/orgs';@@ -222,6 +227,11 @@ export const useAppRuntimeState = () => {} | null>(null);const [wsStore, setWsStore] = createSignal<EnhancedStore | null>(null);const [bootstrapState, setBootstrapState] = createSignal<State | null>(null);+ // Which primary platform pages this estate admits, as reported by the+ // canonical resource contract. Null means the server did not report it, in+ // which case navigation falls back to classifying the runtime state payload.+ const [platformAdmission, setPlatformAdmission] =+ createSignal<PlatformNavigationVisibility | null>(null);const [backendHealthy, setBackendHealthy] = createSignal(false);const runtimeStateResolved = (): boolean => {const store = wsStore();@@ -315,6 +325,31 @@ export const useAppRuntimeState = () => {}};+ const normalizePlatformAdmission = (value: unknown): PlatformNavigationVisibility | null => {+ if (!isRecord(value)) return null;+ const flags = PRIMARY_PLATFORM_NAV_IDS.map((navId) => [navId, value[navId]] as const);+ // Partial payloads are rejected outright: a missing flag would read as a+ // hidden platform, which is indistinguishable from a real absence.+ if (flags.some(([, flag]) => typeof flag !== 'boolean')) return null;+ return Object.fromEntries(flags) as PlatformNavigationVisibility;+ };++ const loadPlatformAdmission = async () => {+ try {+ // One resource is enough: the aggregations describe the whole set, so+ // this resolves navigation without reading an estate-sized payload.+ const payload = await apiFetchJSON<{ aggregations?: { platformAdmission?: unknown } }>(+ '/api/resources?page=1&limit=1',+ );+ setPlatformAdmission(normalizePlatformAdmission(payload?.aggregations?.platformAdmission));+ } catch (error) {+ // Older servers do not report the facet; navigation keeps its previous+ // behaviour rather than hiding platforms the estate really has.+ logger.debug('[useAppRuntimeState] platform admission unavailable', error);+ setPlatformAdmission(null);+ }+ };+const loadRuntimeDisplayAndLayout = async () => {try {// Bootstrap runs for every authenticated role. Read only the explicit@@ -373,7 +408,11 @@ export const useAppRuntimeState = () => {await loadOrganizations();setWsStore(acquireWsStore());setBackendHealthy(true);- await Promise.all([loadRuntimeDisplayAndLayout(), loadRuntimeBranding()]);+ await Promise.all([+ loadRuntimeDisplayAndLayout(),+ loadRuntimeBranding(),+ loadPlatformAdmission(),+ ]);// Shared commercial posture stays off ordinary self-hosted app shells.if (!presentationPolicyHidesUpgradePrompts()) {void loadCommercialPosture();@@ -839,6 +878,7 @@ export const useAppRuntimeState = () => {proxyAuthInfo,state,runtimeStateResolved,+ platformAdmission,connected,backendHealthy,connectionStatus,