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
Keep Patrol calm-day queue plain
rcourtmanc2729327c039
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex b4a7bc135e..aeb83b763f 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -7268,7 +7268,7 @@},{"id": "protection-posture-attention-queue",- "summary": "Pulse now has a durable strong-version product direction, but the current lane map does not yet model the simple user-facing shape as one governed surface: authenticated launch stays monitor-first on platform and dashboard surfaces, Patrol remains the named checking-loop destination for findings, approvals, and explain-act-verify work, Assistant explains selected context, and protection posture or coverage signals appear in the relevant monitor and Patrol contexts instead of a generic Home front door. Without an explicit lane-expansion record, work can drift into Home-first surfaces, Patrol renames, generic Assistant polish, or read-only object-browser copies instead of proving simple monitor-first operations.",+ "summary": "Pulse now has a durable strong-version product direction, but the current lane map does not yet model the simple user-facing shape as one governed surface: authenticated launch stays monitor-first on platform and dashboard surfaces, Patrol remains the named checking-loop destination for findings, approvals, and explain-act-verify work, Assistant explains selected context, and coverage signals appear only when attached to relevant monitor or Patrol context instead of becoming a generic Home front door or calm-day proof strip. Without an explicit lane-expansion record, work can drift into Home-first surfaces, Patrol renames, generic Assistant polish, or read-only object-browser copies instead of proving simple monitor-first operations.","owner": "project-owner","status": "planned","recorded_at": "2026-06-25",@@ -7375,7 +7375,7 @@{"id": "protection-posture-attention-queue","name": "Monitor-First Patrol Workbench",- "summary": "Promote the corrected strong-version operator workbench into a governed lane expansion covering monitor-first launch, Patrol as the visible checking-loop surface, contextual Assistant demotion, safe action and verification flows, calm-day coverage posture in context, dashboard Explore boundaries, explicit autonomy and trust scaffolding, and browser proof for both active-work and calm-day states.",+ "summary": "Promote the corrected strong-version operator workbench into a governed lane expansion covering monitor-first launch, Patrol as the visible checking-loop surface, contextual Assistant demotion, safe action and verification flows, plain calm-day empty queues without proof strips, dashboard Explore boundaries, explicit autonomy and trust scaffolding, and browser proof for both active-work and calm-day states.","status": "planned","recorded_at": "2026-06-25","target_id": "v6-product-lane-expansion",diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 46e3aaac19..499200cde0 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -1882,7 +1882,9 @@ a new API state machine, queue contract, or verification-accounting field.turn API-owned Patrol status, run history, approval state, orfinding-composition facts into a protection-current, coverage,schedule-freshness, drift-history, verification-waiting, trust, or proof- strip after current work has been ruled out+ strip after current work has been ruled out. Latest coverage may appear only+ as bounded empty-state copy inside the current-findings surface, not as a+ separate calm-day posture listwhile keeping the learning counters backend-only coverage, so Patrol keeps health and findings primary and renders timeline, correlation, and policy-posture data as selected-item investigation context rather than as a separate headline product metricand that secondary investigation context remains explanatory API evidence,not a default workspace mode: the Patrol page may expand recent-change,diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 9610961950..36a30cc9ff 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1395,14 +1395,13 @@ settings`, and candidate review when discovered sources are waiting. It mustdefinition-list and muted text primitives to show problem, affectedresource, checked evidence, next step, and verification state inside therow, but that scaffold must not become a nested card, status strip, trust- strip, or page-level proof block. Calm-day protection posture may use the- shared compact list and badge primitives inside that empty Open work- context only after current findings, approvals, failed checks, running- checks, setup failures, and overdue scheduled protection are ruled out; it- must stay subordinate to the empty queue and must not become a generic Home,- dashboard, trust, or proof strip. Monitor-context Patrol coverage posture- must not use the shared compact list and badge primitives as a generic- Proxmox overview or monitor-first launch-page proof strip. A future scoped+ strip, or page-level proof block. A calm Patrol queue must not use shared+ compact-list or badge primitives to create protection-current,+ verification-waiting, schedule-freshness, drift, trust, or proof strips;+ empty work belongs to the plain empty-state and deliberate History affordance.+ Monitor-context Patrol coverage posture must not use the shared compact list+ and badge primitives as a generic Proxmox overview or monitor-first+ launch-page proof strip. A future scopedmonitor affordance may use these primitives only when it is attached to anoperator action or selected Patrol context, uses distinct monitor labels,and does not become a nested card, generic dashboard strip, trust summary,diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 9c5d3175a1..b1378150e8 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -94,20 +94,17 @@ or historical proof/counting for resolved-only work.current finding composition; it must not become a status strip, trust strip,health summary, generic proof counter, or replacement for the issue row'saction, evidence, approval, verification, and Assistant handoff controls.- A compact calm-day protection posture may appear inside that same `Open- work` workspace only when Patrol has no current findings, pending approvals,- failed/latest check, running check, overdue scheduled protection, or setup- failure to show. It may summarize protection-current, coverage, freshness,- drift-history, and verification-waiting facts from Patrol status, run- history, and finding composition, but it must stay contextual to Patrol's- empty queue and must not render on monitor-first launch pages, become a Home- summary, or promote trust/history counters into current work.+ A calm Patrol queue must stay plain: the Open work description and the+ current-findings empty state may say that there are no current issues and+ may point to History for past outcomes, but the workspace must not render a+ calm-day protection-posture, verification-waiting, schedule-freshness, drift,+ trust, or proof strip just to restate that no current work exists.Monitor-context coverage posture is a separate presentation boundary, but itmust not render as a generic proof strip on Proxmox overview or othermonitor-first launch pages. A future monitor-specific Patrol affordance mustbe scoped to an operator action or selected Patrol context, point active work- back to Patrol, omit drift/trust proof counters, and must not reuse the- `Patrol protection posture` list as a launch-page strip or generic Home+ back to Patrol, omit drift/trust proof counters, and must not introduce a+ Patrol-page protection-posture list as a launch-page strip or generic Homesummary.Runtime/setup findings are still active Patrol work, but setup-only runtimefailures must read as one setup task rather than an infrastructure issuediff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsxindex 9fb0e031ee..612e0ac72e 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceWorkspace.tsx@@ -25,7 +25,6 @@ import {getPatrolProInvestigationHandoff,getPatrolQueueBadgeLabel,getPatrolQueueWorkspaceDescription,- getPatrolWorkspaceProtectionPosture,getPatrolWorkspaceWorkGroups,getPatrolSetupIssueReason,PATROL_WORKSPACE_HISTORY_DESCRIPTION,@@ -129,23 +128,8 @@ export function PatrolIntelligenceWorkspace(props: { state: PatrolIntelligenceStworkTypeComposition: workTypeComposition(),}),);- const protectionPostureSummaries = createMemo(() =>- getPatrolWorkspaceProtectionPosture({- findingCount: queueIssueCount(),- historicalRegressionCount: state.historicalRegressionCount(),- latestRun: latestCompletedRun(),- patrolStatus: state.patrolStatus(),- pendingApprovalCount: state.patrolPendingApprovalCount(),- workTypeComposition: workTypeComposition(),- }),- );const shouldShowWorkGroups = () =>!isHistoryOpen() && !isSetupOnly() && !state.selectedRun() && workGroupSummaries().length > 0;- const shouldShowProtectionPosture = () =>- !isHistoryOpen() &&- !isSetupOnly() &&- !state.selectedRun() &&- protectionPostureSummaries().length > 0;return (<>@@ -224,30 +208,6 @@ export function PatrolIntelligenceWorkspace(props: { state: PatrolIntelligenceSt</div></Show>- <Show when={shouldShowProtectionPosture()}>- <div- role="list"- aria-label="Patrol protection posture"- class="grid gap-2 sm:grid-cols-2 xl:grid-cols-3"- >- <For each={protectionPostureSummaries()}>- {(item) => (- <div- role="listitem"- class="rounded-md border border-border-subtle bg-surface-alt/50 px-3 py-2"- >- <div class="flex min-w-0 flex-wrap items-center gap-2">- <MetadataBadge tone={item.tone} size="xs" shape="rounded">- {item.label}- </MetadataBadge>- </div>- <p class="mt-1 text-xs leading-5 text-muted">{item.detail}</p>- </div>- )}- </For>- </div>- </Show>-<Show when={state.activeTab() === 'findings'}><Show when={state.selectedRun()}>{(run) => (diff --git a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceWorkspace.test.ts b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceWorkspace.test.tsindex b255c00be1..fb634ad57e 100644--- a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceWorkspace.test.ts+++ b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceWorkspace.test.ts@@ -52,9 +52,9 @@ describe('PatrolIntelligenceWorkspace trust strip', () => {expect(workspaceSource).toContain('getPatrolQueueWorkspaceDescription');expect(workspaceSource).toContain('getPatrolWorkspaceWorkGroups');expect(workspaceSource).toContain('Patrol work groups');- expect(workspaceSource).toContain('getPatrolWorkspaceProtectionPosture');- expect(workspaceSource).toContain('Patrol protection posture');- expect(workspaceSource).toContain('protectionPostureSummaries');+ expect(workspaceSource).not.toContain('getPatrolWorkspaceProtectionPosture');+ expect(workspaceSource).not.toContain('Patrol protection posture');+ expect(workspaceSource).not.toContain('protectionPostureSummaries');expect(workspaceSource).toContain('autonomyLevel: state.autonomyLevel()');expect(workspaceSource).toContain('autonomyLocked: state.autoFixLocked()');expect(workspaceSource).toContain('Boolean(queueBadgeLabel())');diff --git a/frontend-modern/src/features/patrol/__tests__/patrolControlPresentation.test.ts b/frontend-modern/src/features/patrol/__tests__/patrolControlPresentation.test.tsindex 9c027f393c..4d6d7f857d 100644--- a/frontend-modern/src/features/patrol/__tests__/patrolControlPresentation.test.ts+++ b/frontend-modern/src/features/patrol/__tests__/patrolControlPresentation.test.ts@@ -8,7 +8,6 @@ import {getMonitorContextPatrolProtectionPosture,getPatrolReadyWorkDetail,getPatrolSetupIssueReason,- getPatrolWorkspaceProtectionPosture,getPatrolWorkspaceWorkGroups,PATROL_AUTONOMY_POLICY_PRESENTATION,PATROL_WORKSPACE_QUEUE_TITLE,@@ -47,22 +46,22 @@ describe('patrolControlPresentation', () => {['monitor','Patrol is ready to check infrastructure and list current issues.',- 'Patrol lists current issues here after each check. History keeps past outcomes.',+ 'Current Patrol issues appear here.',],['approval','Patrol is ready to check, investigate, and ask before any change.',- 'Patrol lists investigations, approvals, and verification results here.',+ 'Current issues, investigations, and approvals appear here.',],['assisted','Patrol is ready to check, investigate, and fix safe issues when policy allows it.',- 'Patrol lists issues it can fix, approvals it needs, and verification results here.',+ 'Current issues, fixes, and approvals appear here.',],['full','Patrol is ready to check, investigate, and act automatically within your policy.',- 'Patrol lists automatic work, policy approvals, and verification results here.',+ 'Current issues, automatic work, and approvals appear here.',],] satisfies Array<[PatrolAutonomyLevel, string, string]>)('describes %s mode without generic control-level wording',@@ -82,7 +81,7 @@ describe('patrolControlPresentation', () => {autonomyLevel: 'full',autonomyLocked: true,}),- ).toBe('Patrol lists current issues here after each check. History keeps past outcomes.');+ ).toBe('Current Patrol issues appear here.');});it('summarizes the open queue by affected resource instead of raw findings', () => {@@ -271,156 +270,6 @@ describe('patrolControlPresentation', () => {).toEqual([]);});- it('surfaces calm-day protection posture from Patrol run and status facts', () => {- expect(- getPatrolWorkspaceProtectionPosture({- findingCount: 0,- historicalRegressionCount: 0,- latestRun: {- error_count: 0,- resources_checked: 4,- status: 'healthy',- },- nowMs: Date.parse('2026-06-30T13:00:00Z'),- patrolStatus: {- enabled: true,- error_count: 0,- findings_count: 0,- healthy: true,- next_patrol_at: '2026-06-30T14:05:00Z',- resources_checked: 4,- running: false,- runtime_state: 'active',- },- pendingApprovalCount: 0,- workTypeComposition: {- total: 0,- approval: 0,- failed: 0,- inProgress: 0,- recurring: 0,- newIssues: 0,- },- }),- ).toEqual([- {- detail: 'No current issue or approval is waiting in Patrol.',- id: 'protection',- label: 'Protection current',- tone: 'success',- },- {- detail: 'Coverage came from the latest Patrol check.',- id: 'coverage',- label: 'Checked 4 resources',- tone: 'success',- },- {- detail: 'Patrol is scheduled to check again.',- id: 'freshness',- label: 'Schedule active',- tone: 'info',- },- {- detail: 'No current issue is marked as reappeared after earlier resolution.',- id: 'drift',- label: 'No recurring issues',- tone: 'success',- },- {- detail: 'No approval, failed action, or follow-up result is waiting for review.',- id: 'verification',- label: 'No verification waiting',- tone: 'success',- },- ]);- });-- it('keeps past drift as history in calm-day protection posture', () => {- expect(- getPatrolWorkspaceProtectionPosture({- historicalRegressionCount: 2,- latestRun: {- effective_scope_resource_ids: ['resource-a', 'resource-b'],- error_count: 0,- resources_checked: 1,- scope_resource_ids: ['resource-a'],- status: 'healthy',- },- nowMs: Date.parse('2026-06-30T13:00:00Z'),- patrolStatus: {- enabled: true,- error_count: 0,- findings_count: 0,- healthy: true,- next_patrol_at: '2026-06-30T14:05:00Z',- resources_checked: 1,- running: false,- runtime_state: 'active',- },- }),- ).toContainEqual({- detail: 'History keeps the drift record; no recurring issue is current.',- id: 'drift',- label: '2 past regressions',- tone: 'info',- });- });-- it('does not render calm-day posture for current work, failed checks, or overdue protection', () => {- expect(- getPatrolWorkspaceProtectionPosture({- findingCount: 1,- latestRun: {- error_count: 0,- resources_checked: 4,- status: 'issues_found',- },- }),- ).toEqual([]);-- expect(- getPatrolWorkspaceProtectionPosture({- latestRun: {- error_count: 1,- resources_checked: 4,- status: 'error',- },- patrolStatus: {- enabled: true,- error_count: 1,- findings_count: 0,- healthy: false,- next_patrol_at: '2026-06-30T14:05:00Z',- resources_checked: 4,- running: false,- runtime_state: 'active',- },- }),- ).toEqual([]);-- expect(- getPatrolWorkspaceProtectionPosture({- latestRun: {- error_count: 0,- resources_checked: 4,- status: 'healthy',- },- nowMs: Date.parse('2026-06-30T15:00:00Z'),- patrolStatus: {- enabled: true,- error_count: 0,- findings_count: 0,- healthy: true,- next_patrol_at: '2026-06-30T14:05:00Z',- resources_checked: 4,- running: false,- runtime_state: 'active',- },- }),- ).toEqual([]);- });-it('surfaces monitor-context posture without reusing the Patrol empty-work labels', () => {expect(getMonitorContextPatrolProtectionPosture({@@ -516,6 +365,18 @@ describe('patrolControlPresentation', () => {pendingApprovalCount: 1,}),).toEqual([]);++ expect(+ getMonitorContextPatrolProtectionPosture({+ ...baseInput,+ latestRun: {+ error_count: 1,+ resources_checked: 4,+ status: 'error',+ },+ monitoredResourceCount: 4,+ }),+ ).toEqual([]);});it('keeps setup-only issue reasons short and actionable', () => {diff --git a/frontend-modern/src/features/patrol/patrolControlPresentation.ts b/frontend-modern/src/features/patrol/patrolControlPresentation.tsindex 0164a7cddc..b820d6da7a 100644--- a/frontend-modern/src/features/patrol/patrolControlPresentation.ts+++ b/frontend-modern/src/features/patrol/patrolControlPresentation.ts@@ -66,13 +66,6 @@ export interface PatrolWorkspaceWorkGroupSummary {tone: MetadataBadgeTone;}-export interface PatrolWorkspaceProtectionPostureSummary {- detail: string;- id: 'coverage' | 'drift' | 'freshness' | 'protection' | 'verification';- label: string;- tone: MetadataBadgeTone;-}-export interface MonitorContextPatrolPostureSummary {detail: string;id: 'coverage' | 'open-work' | 'schedule';@@ -88,9 +81,8 @@ interface PatrolWorkspaceWorkGroupsInput {workTypeComposition?: PatrolWorkTypeComposition;}-interface PatrolWorkspaceProtectionPostureInput {+interface MonitorContextPatrolPostureInput {findingCount?: number;- historicalRegressionCount?: number;latestRun?: Pick<PatrolRunRecord,| 'effective_scope_resource_ids'@@ -113,9 +105,6 @@ interface PatrolWorkspaceProtectionPostureInput {> | null;pendingApprovalCount?: number;workTypeComposition?: PatrolWorkTypeComposition;-}--interface MonitorContextPatrolPostureInput extends PatrolWorkspaceProtectionPostureInput {monitoredResourceCount?: number;}@@ -278,19 +267,19 @@ export function getPatrolQueueWorkspaceDescription(}if (input.autonomyLocked) {- return 'Patrol lists current issues here after each check. History keeps past outcomes.';+ return 'Current Patrol issues appear here.';}switch (input.autonomyLevel) {case 'approval':- return 'Patrol lists investigations, approvals, and verification results here.';+ return 'Current issues, investigations, and approvals appear here.';case 'assisted':- return 'Patrol lists issues it can fix, approvals it needs, and verification results here.';+ return 'Current issues, fixes, and approvals appear here.';case 'full':- return 'Patrol lists automatic work, policy approvals, and verification results here.';+ return 'Current issues, automatic work, and approvals appear here.';case 'monitor':default:- return 'Patrol lists current issues here after each check. History keeps past outcomes.';+ return 'Current Patrol issues appear here.';}}@@ -358,9 +347,7 @@ export function getPatrolWorkspaceWorkGroups(return groups;}-export function getPatrolWorkspaceProtectionPosture(- input: PatrolWorkspaceProtectionPostureInput,-): PatrolWorkspaceProtectionPostureSummary[] {+function shouldSuppressMonitorContextPatrolPosture(input: MonitorContextPatrolPostureInput): boolean {const composition = input.workTypeComposition;const pendingApprovalCount = normalizeCount(input.pendingApprovalCount);const findingCount = normalizeCount(input.findingCount);@@ -373,7 +360,7 @@ export function getPatrolWorkspaceProtectionPosture(const statusErrorCount = normalizeCount(patrolStatus?.error_count);const statusFindingCount = normalizeCount(patrolStatus?.findings_count);- if (+ return (findingCount > 0 ||pendingApprovalCount > 0 ||failedActionCount > 0 ||@@ -386,90 +373,7 @@ export function getPatrolWorkspaceProtectionPosture(hasFailedPatrolCheck(latestRun) ||!isActivePatrolRuntime(patrolStatus) ||isScheduledPatrolOverdue(patrolStatus, input.nowMs ?? Date.now())- ) {- return [];- }-- if (!latestRun && !patrolStatus) {- return [];- }-- const coverageLabel = getPatrolCoverageLabel(latestRun, patrolStatus);- const historicalRegressionCount = normalizeCount(input.historicalRegressionCount);- const healthyTone: MetadataBadgeTone = patrolStatus?.healthy === false ? 'warning' : 'success';-- const posture: PatrolWorkspaceProtectionPostureSummary[] = [- {- id: 'protection',- label: 'Protection current',- detail: 'No current issue or approval is waiting in Patrol.',- tone: healthyTone,- },- ];-- posture.push(- coverageLabel- ? {- id: 'coverage',- label: coverageLabel,- detail: 'Coverage came from the latest Patrol check.',- tone: healthyTone,- }- : {- id: 'coverage',- label: 'Coverage needs refresh',- detail: 'Run Patrol to record current coverage.',- tone: 'warning',- },- );-- if (patrolStatus?.enabled === false) {- posture.push({- id: 'freshness',- label: 'Scheduled checks paused',- detail: 'Run Patrol manually or enable scheduled checks to keep coverage fresh.',- tone: 'warning',- });- } else if (patrolStatus?.next_patrol_at) {- posture.push({- id: 'freshness',- label: 'Schedule active',- detail: 'Patrol is scheduled to check again.',- tone: 'info',- });- } else {- posture.push({- id: 'freshness',- label: 'Ready to check',- detail: 'Run Patrol any time to refresh current coverage.',- tone: 'info',- });- }-- posture.push(- historicalRegressionCount > 0- ? {- id: 'drift',- label: `${formatCount(historicalRegressionCount, 'past regression')}`,- detail: 'History keeps the drift record; no recurring issue is current.',- tone: 'info',- }- : {- id: 'drift',- label: 'No recurring issues',- detail: 'No current issue is marked as reappeared after earlier resolution.',- tone: healthyTone,- },);-- posture.push({- id: 'verification',- label: 'No verification waiting',- detail: 'No approval, failed action, or follow-up result is waiting for review.',- tone: healthyTone,- });-- return posture;}export function getMonitorContextPatrolProtectionPosture(@@ -479,12 +383,11 @@ export function getMonitorContextPatrolProtectionPosture(return [];}- const patrolPosture = getPatrolWorkspaceProtectionPosture(input);- if (patrolPosture.length === 0) {+ const patrolStatus = input.patrolStatus ?? null;+ if ((!input.latestRun && !patrolStatus) || shouldSuppressMonitorContextPatrolPosture(input)) {return [];}- const patrolStatus = input.patrolStatus ?? null;const healthyTone: MetadataBadgeTone = patrolStatus?.healthy === false ? 'warning' : 'success';const coverageLabel = getPatrolCoverageLabel(input.latestRun ?? null, patrolStatus);const summaries: MonitorContextPatrolPostureSummary[] = [diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex 0cd7ef1c7b..768c3e23ee 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -673,9 +673,7 @@ describe('AIIntelligence entitlement gating', () => {expect(screen.queryByRole('link', { name: 'View plans' })).not.toBeInTheDocument();expect(operationsLoopAnchor?.parentElement).toBe(patrolControlAnchor);expect(screen.queryByTestId('patrol-current-work')).not.toBeInTheDocument();- expect(- screen.getByText('Patrol lists current issues here after each check. History keeps past outcomes.'),- ).toBeInTheDocument();+ expect(screen.getByText('Current Patrol issues appear here.')).toBeInTheDocument();expect(screen.queryByText('Issues Patrol found. Infrastructure stays unchanged.'),).not.toBeInTheDocument();diff --git a/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.tsindex e432924504..7971c41dd6 100644--- a/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolEmptyStatePresentation.test.ts@@ -176,7 +176,6 @@ describe('patrolEmptyStatePresentation', () => {}),).toEqual({title: 'No current issues',- body: 'No action needed from the latest Patrol check. Run Patrol any time to check again.',tone: 'success',});});@@ -267,8 +266,7 @@ describe('patrolEmptyStatePresentation', () => {],});expect(result.title).toBe('No current issues');- expect(result.body).toContain('Checked 42 resources');- expect(result.body).toContain('No action needed');+ expect(result.body).toBe('Checked 42 resources.');expect(result.tone).toBe('success');});@@ -284,8 +282,6 @@ describe('patrolEmptyStatePresentation', () => {},runtimeState: 'active',});- expect(result.body).toBe(- 'No action needed from the latest Patrol check. Run Patrol any time to check again.',- );+ expect(result.body).toBeUndefined();});});diff --git a/frontend-modern/src/utils/patrolEmptyStatePresentation.ts b/frontend-modern/src/utils/patrolEmptyStatePresentation.tsindex b0a4e39da2..13994e0cfb 100644--- a/frontend-modern/src/utils/patrolEmptyStatePresentation.ts+++ b/frontend-modern/src/utils/patrolEmptyStatePresentation.ts@@ -71,8 +71,6 @@ type PatrolRunSnapshotEmptyStateArgs = Pick<| 'error_count'>;-const HEALTHY_PATROL_EMPTY_STATE_BODY =- 'No action needed from the latest Patrol check. Run Patrol any time to check again.';const DEGRADED_COVERAGE_EMPTY_STATE_BODY ='Run Patrol to check everything and refresh open work.';const DEGRADED_HEALTH_EMPTY_STATE_BODY =@@ -254,9 +252,7 @@ export function getPatrolFindingsEmptyState(args: {const coverageContext = getLatestRunCoverageContext(args.runs);return {title: PATROL_QUEUE_CLEAR_TITLE,- body: coverageContext- ? `${coverageContext} ${HEALTHY_PATROL_EMPTY_STATE_BODY}`- : HEALTHY_PATROL_EMPTY_STATE_BODY,+ body: coverageContext,tone: 'success',};}diff --git a/tests/integration/tests/78-monitor-first-patrol-workbench.spec.ts b/tests/integration/tests/78-monitor-first-patrol-workbench.spec.tsindex 17ee705b8c..1f2dd424c1 100644--- a/tests/integration/tests/78-monitor-first-patrol-workbench.spec.ts+++ b/tests/integration/tests/78-monitor-first-patrol-workbench.spec.ts@@ -511,7 +511,7 @@ test.describe("Monitor-first Patrol workbench browser contract", () => {).toHaveCount(0);});- test("calm-day Patrol coverage stays on Patrol after infrastructure launch", async ({+ test("calm-day Patrol empty queue stays plain after infrastructure launch", async ({page,}, testInfo) => {test.skip(@@ -555,15 +555,12 @@ test.describe("Monitor-first Patrol workbench browser contract", () => {).toBeVisible();await expect(page.getByText("No current issues").first()).toBeVisible();await expect(page.getByText("Checked 1 resource.")).toBeVisible();- const protectionPosture = page.getByRole("list", {- name: "Patrol protection posture",- });- await expect(protectionPosture).toBeVisible();- await expect(protectionPosture.getByText("Protection current")).toBeVisible();- await expect(protectionPosture.getByText("Checked 1 resource")).toBeVisible();- await expect(protectionPosture.getByText("Schedule active")).toBeVisible();- await expect(protectionPosture.getByText("No recurring issues")).toBeVisible();- await expect(protectionPosture.getByText("No verification waiting")).toBeVisible();+ await expect(+ page.getByRole("list", { name: "Patrol protection posture" }),+ ).toHaveCount(0);+ await expect(page.getByText("Protection current")).toHaveCount(0);+ await expect(page.getByText("No recurring issues")).toHaveCount(0);+ await expect(page.getByText("No verification waiting")).toHaveCount(0);await expect(page.getByRole("button", { name: "Ask Pulse Assistant about Patrol" }),).toBeVisible();