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
patrol: surface plan-locked modes via opt-in disclosure
rcourtman8fab6e6e020a
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex 46179c90c5..732ec25bab 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -8019,6 +8019,18 @@"L9","L12"]+ },+ {+ "id": "patrol-plan-locked-mode-discovery",+ "summary": "Resolved the patrol-intelligence contract conflict over plan-locked Patrol mode discoverability: plan-locked (free) installs keep a positive Watch-only default header and must not render a default disabled paid-mode matrix or default Pro badges, but the four Patrol modes may be revealed through an explicit opt-in disclosure affordance (such as 'See what Patrol can do') beside the mode controls, with paid modes disabled and compact Pro badges plus a 'Plans & Billing' handoff appearing there only when upgrade prompts are allowed. Runtime-locked Pro installs may still show explicit blocking copy. This reconciles the prior permissive and prohibitive contract statements.",+ "kind": "contract",+ "decided_at": "2026-06-24",+ "subsystem_ids": [+ "patrol-intelligence"+ ],+ "lane_ids": [+ "L6"+ ]}]}diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex c32f880b6f..d7a788e3ac 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -1763,12 +1763,14 @@ payload shape change when the portal presents compact client rows.and the Patrol findings empty-state behavior, so `0 active findings` only renders as a healthy frontend conclusion when the same governed AI summary contract still reports healthy overall health; degraded or not-fully-verified health predictions must flow through to the Patrol findings surface instead of being replaced by page-local "looks healthy" copyand the Patrol control presentation boundary, so the always-visible Patrolcontrol selector owns the selected autonomy level, plan-locked installs keep- watch-only as the current capability while disabled paid-level buttons may- stay visible. Compact Pro badges and a `Plans & Billing` action may appear- only when upgrade prompts are allowed; that billing action stays a compact- handoff beside the selector rather than a separate upsell panel, and the- selector must still avoid Limits controls, hard-limit matrices, or- absent-feature explainers.+ watch-only as the current capability and must not render a default disabled+ paid-level matrix in the default view. The paid levels may be revealed only+ through an explicit opt-in disclosure affordance beside the selector, behind+ which they may appear as disabled buttons, and compact Pro badges and a+ `Plans & Billing` action may appear there only when upgrade prompts are+ allowed; that billing action stays a compact handoff rather than a separate+ upsell panel, and the selector must still avoid Limits controls, hard-limit+ matrices, or absent-feature explainers.Compact control labels remain understandable decisions such as `Ask first`,`Safe auto-fix`, and`Autopilot` rather than transport shorthand or Pro-matrix labels, the Patroldiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 5e2b59a5b4..2b6623a80e 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -1331,13 +1331,13 @@ settings`, and candidate review when discovered sources are waiting. It mustAPI names remain hidden from operators and compact controls do not collapseinto unexplained shorthand. Patrol run-history rows must lead with whatPatrol did or could not do before exposing trigger, token, tool-call, or raw- trace details. Plan-locked Patrol controls may badge paid levels as Pro and- may show one compact `Plans & Billing` handoff beside the selector when- upgrade prompts are allowed, but the default watch-only surface must not- render a Pro-absence explainer. Visible product copy calls the selector `Patrol mode`; compatibility route and wire identifiers may keep stable names- such as `patrol_control` and `patrolControl*`. Plan-locked Patrol controls- may keep paid levels visible as disabled buttons, and may badge them as Pro- only when upgrade prompts are allowed. The always-visible Patrol mode selector must stay on+ trace details. Plan-locked Patrol controls must keep the default watch-only+ surface positive and must not render a default Pro-absence explainer or a+ default disabled paid-level matrix. The paid levels may be revealed only+ through an explicit opt-in disclosure affordance beside the selector, behind+ which they may appear as disabled buttons, badged as Pro, with one compact+ `Plans & Billing` handoff, only when upgrade prompts are allowed. Visible product copy calls the selector `Patrol mode`; compatibility route and wire identifiers may keep stable names+ such as `patrol_control` and `patrolControl*`. The always-visible Patrol mode selector must stay onthe selected mode and one plain summary, without a separate `Limits`disclosure or hard-limit matrix beside the picker. Shared feature shells must not invent their own Patrol safetythresholds, policy labels, or disabled-control explanations. The Patrol pagediff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 6f147ddc7d..9f44ebdcea 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -99,12 +99,17 @@ Patrol-specific presentation helpers.must stay short operator choices (`Ask first`, `Safe auto-fix`,`Autopilot`) and must not reintroduce Pro-matrix labels such as`Ask before changes`, `Auto-fix safe issues`, or `Policy autopilot`.- Plan-locked Patrol controls may keep the paid choices visible as disabled- buttons; compact Pro badges and a `Plans & Billing` action may appear only- when upgrade prompts are allowed. That billing action is a compact handoff- beside the mode controls, not a separate upsell panel. The selected mode must- remain Watch only and the default copy must not become a feature-matrix or- absence explainer.+ Plan-locked Patrol controls must keep the default (closed) header on the+ positive Watch-only capability and must not render a default entitlement+ matrix or disabled paid-mode buttons in that default view. The paid choices+ may be revealed only through an explicit opt-in disclosure affordance (such+ as `See what Patrol can do`) beside the mode controls; behind that disclosure+ the four modes appear with the paid choices disabled, and compact Pro badges+ plus a `Plans & Billing` action may appear there only when upgrade prompts+ are allowed. That billing action is a compact handoff inside the disclosure,+ not a separate default upsell panel. The selected mode must remain Watch only+ and the default (closed) copy must not become a feature-matrix or absence+ explainer.Paid Patrol control handoffs that start or continue the samejourney must reach Patrol through the route-backed`/patrol?patrolControlStarter=patrol_control#patrol-control` affordance.@@ -213,9 +218,10 @@ attention`, `approval needed`, `outcome verified`, `no active work`) insteadstatus strip.Plan-locked Patrol mode copy must present the effective Watch onlycapability as the current product state: Patrol watches resources, detects- issues, and records findings. It must not render a default entitlement- matrix, disabled paid-mode buttons, or compact Pro badges that tell ordinary- free users what this install cannot do. Runtime-locked Pro installs may still+ issues, and records findings. The default (closed) view must not render a+ disabled paid-mode matrix or compact Pro badges that tell ordinary free users+ what this install cannot do; those paid modes may appear only behind an+ explicit opt-in disclosure affordance. Runtime-locked Pro installs may stillshow explicit blocking copy because the operator already has the entitlementand needs the correct runtime.User-facing copy names this choice `Patrol mode`; stable route markers,@@ -372,7 +378,9 @@ attention`, `approval needed`, `outcome verified`, `no active work`) insteadselected-mode sentence belongs in `patrolControlPresentation.ts`, not inlineheader markup, so the paid operator contract stays testable and does notdrift into another activation/proof checklist. Plan-locked watch-only installs- must not render that boundary as a Pro absence explainer. Watch-only copy in+ must not render that boundary as a default Pro absence explainer; the paid+ modes may be revealed only through an explicit opt-in disclosure affordance,+ never as a default disabled matrix. Watch-only copy in`patrolPagePresentation.ts`, `patrolControlPresentation.ts`, and`patrolAutonomyAvailability.ts` must describe Watch only in positive,capability-first language: Patrol watches infrastructure, records currentdiff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsxindex 5c051f5b11..0ae58fab9b 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx@@ -1,4 +1,4 @@-import { createMemo, Show } from 'solid-js';+import { createMemo, createSignal, Show } from 'solid-js';import { A } from '@solidjs/router';import PlayIcon from 'lucide-solid/icons/play';import SettingsIcon from 'lucide-solid/icons/settings';@@ -128,6 +128,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState);const upgradePromptsHidden = createMemo(() => presentationPolicyHidesUpgradePrompts());const commercialSurfacesHidden = createMemo(() => presentationPolicyHidesCommercialSurfaces());+ const [modeDiscoveryOpen, setModeDiscoveryOpen] = createSignal(false);const canChooseAutonomyLevel = createMemo(() => !state.autoFixLocked());const autonomyAvailability = createMemo(() =>getPatrolAutonomyAvailabilityPresentation({@@ -157,6 +158,9 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceStateconst shouldShowAutonomyActionColumn = createMemo(() => shouldShowAutonomyOptions() || showAutonomyPlanBillingAction(),);+ const showModeDiscoveryAffordance = createMemo(+ () => state.autoFixLocked() && autonomyAvailability().kind === 'plan_locked',+ );const showAutonomyAvailabilityPrompt = createMemo(() =>state.autoFixLocked() &&@@ -268,6 +272,29 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState</Show></div></Show>+ <Show when={showModeDiscoveryAffordance()}>+ <div class="mt-1">+ <button+ type="button"+ onClick={() => setModeDiscoveryOpen((open) => !open)}+ aria-expanded={modeDiscoveryOpen()}+ class="text-xs font-medium text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300"+ >+ {modeDiscoveryOpen() ? 'Hide Patrol modes' : 'See what Patrol can do'}+ </button>+ <Show when={modeDiscoveryOpen()}>+ <FilterButtonGroup+ ariaLabel="Patrol modes"+ class="mt-2 w-full"+ disabled={!state.patrolEnabledLocal()}+ options={autonomyLevelOptions()}+ value={effectiveAutonomyLevel()}+ onChange={(level) => state.handleAutonomyChange(level)}+ variant="segmented"+ />+ </Show>+ </div>+ </Show><Show when={state.isUpdatingAutonomy()}><div role="status" class="sr-only">Saving Patrol modediff --git a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceHeader.test.ts b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceHeader.test.tsindex fd7f3b0adf..754227f4e8 100644--- a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceHeader.test.ts+++ b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceHeader.test.ts@@ -91,7 +91,7 @@ describe('PatrolIntelligenceHeader', () => {expect(headerSource).not.toContain('Refresh Patrol');});- it('makes Patrol mode a simple four-level choice without rendering plan-locked paid modes', () => {+ it('makes Patrol mode a simple four-level choice with paid modes disabled when locked', () => {expect(PATROL_AUTONOMY_POLICY_PRESENTATION).toEqual({monitor: {label: 'Watch only',@@ -287,4 +287,24 @@ describe('PatrolIntelligenceHeader', () => {expect(headerSource).not.toContain('trust.regressed_at_least_once');expect(headerSource).not.toContain('trust.fix_verified');});++ it('reveals plan-locked paid modes through an opt-in disclosure, not a default matrix', () => {+ // The default plan-locked header stays on positive Watch-only copy and does+ // not render a disabled paid-mode matrix. Operators discover the four modes+ // only by opening an explicit affordance.+ expect(headerSource).toContain('modeDiscoveryOpen');+ expect(headerSource).toContain('setModeDiscoveryOpen');+ expect(headerSource).toContain('showModeDiscoveryAffordance');+ expect(headerSource).toContain(+ "state.autoFixLocked() && autonomyAvailability().kind === 'plan_locked'",+ );+ expect(headerSource).toContain('<Show when={showModeDiscoveryAffordance()}>');+ expect(headerSource).toContain('aria-expanded={modeDiscoveryOpen()}');+ expect(headerSource).toContain('See what Patrol can do');+ expect(headerSource).toContain('Hide Patrol modes');+ // The disclosed modes reuse the canonical four-level selector so paid modes+ // stay disabled and Pro-badged by the same lockedPaidMode logic.+ expect(headerSource).toContain('<Show when={modeDiscoveryOpen()}>');+ expect(headerSource).toContain('ariaLabel="Patrol modes"');+ });});