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.

patrol: keep free working surface clean of paid-feature surfacing

rcourtman7e54d2e95c7f
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index 732ec25bab..ccbc6f5b0d 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -8022,7 +8022,7 @@
},
{
"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.",
+ "summary": "Resolved the patrol-intelligence contract conflict over plan-locked Patrol mode discoverability in favor of a clean free product: plan-locked (free) Patrol working surfaces must not surface paid modes, disabled paid-mode buttons, compact Pro badges, or any paid-mode disclosure. The free Patrol surface stays a complete monitoring tool with no mention of paid Patrol capabilities; Pro discovery belongs in Settings, the website/docs, and contextual at-need prompts, not in the daily-use control surface. This drops the prior permissive carve-out and the interim opt-in disclosure approach entirely. Runtime-locked Pro installs may still show explicit blocking copy because the operator already holds the entitlement.",
"kind": "contract",
"decided_at": "2026-06-24",
"subsystem_ids": [
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index d7a788e3ac..fe61c9e727 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -1763,14 +1763,12 @@ 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" copy
and the Patrol control presentation boundary, so the always-visible Patrol
control selector owns the selected autonomy level, plan-locked installs keep
- 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.
+ watch-only as the current capability and the free Patrol working surface must
+ not render a disabled paid-level matrix, compact Pro badges, or any paid-mode
+ disclosure. The free surface stays clean of paid-feature surfacing; Pro
+ discovery belongs in Settings, website/docs, and contextual at-need prompts,
+ not in the daily-use control surface, 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 Patrol
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 2b6623a80e..dbe01cb2a3 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1331,12 +1331,12 @@ settings`, and candidate review when discovered sources are waiting. It must
API names remain hidden from operators and compact controls do not collapse
into unexplained shorthand. Patrol run-history rows must lead with what
Patrol did or could not do before exposing trigger, token, tool-call, or raw
- 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
+ trace details. Plan-locked Patrol controls must keep the free watch-only
+ surface clean and must not render a Pro-absence explainer, a disabled
+ paid-level matrix, compact Pro badges, or any paid-mode disclosure. The free
+ Patrol working surface stays clear of paid-feature surfacing entirely; Pro
+ discovery belongs in Settings, website/docs, and contextual at-need prompts,
+ not beside the daily-use selector. 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 on
the 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 safety
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index 9f44ebdcea..95dd428ff3 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -99,17 +99,14 @@ 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 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.
+ Plan-locked Patrol controls must keep the working surface on the positive
+ Watch-only capability and must not surface paid modes, disabled paid-mode
+ buttons, compact Pro badges, a paid-mode matrix, or any paid-mode disclosure.
+ The free Patrol surface stays a complete, clean monitoring tool with no
+ mention of paid Patrol capabilities; Pro discovery belongs in Settings, the
+ website/docs, and contextual at-need prompts, not in the daily-use Patrol
+ control surface. The selected mode must remain Watch only and the copy must
+ not become a feature-matrix or absence explainer.
Paid Patrol control handoffs that start or continue the same
journey must reach Patrol through the route-backed
`/patrol?patrolControlStarter=patrol_control#patrol-control` affordance.
@@ -218,10 +215,9 @@ attention`, `approval needed`, `outcome verified`, `no active work`) instead
status strip.
Plan-locked Patrol mode copy must present the effective Watch only
capability as the current product state: Patrol watches resources, detects
- 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 still
+ issues, and records findings. The free Patrol working surface must not render
+ a disabled paid-mode matrix, compact Pro badges, or any paid-mode disclosure;
+ it stays clean of paid-feature surfacing entirely. Runtime-locked Pro installs may still
show explicit blocking copy because the operator already has the entitlement
and needs the correct runtime.
User-facing copy names this choice `Patrol mode`; stable route markers,
@@ -378,9 +374,9 @@ attention`, `approval needed`, `outcome verified`, `no active work`) instead
selected-mode sentence belongs in `patrolControlPresentation.ts`, not inline
header markup, so the paid operator contract stays testable and does not
drift into another activation/proof checklist. Plan-locked watch-only installs
- 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
+ must keep the working surface clean of paid-feature surfacing — no disabled
+ paid-mode matrix, no Pro badges, and no paid-mode disclosure — because Pro
+ discovery belongs outside the daily-use Patrol surface. Watch-only copy in
`patrolPagePresentation.ts`, `patrolControlPresentation.ts`, and
`patrolAutonomyAvailability.ts` must describe Watch only in positive,
capability-first language: Patrol watches infrastructure, records current
diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
index 0ae58fab9b..5c051f5b11 100644
--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
@@ -1,4 +1,4 @@
-import { createMemo, createSignal, Show } from 'solid-js';
+import { createMemo, Show } from 'solid-js';
import { A } from '@solidjs/router';
import PlayIcon from 'lucide-solid/icons/play';
import SettingsIcon from 'lucide-solid/icons/settings';
@@ -128,7 +128,6 @@ 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({
@@ -158,9 +157,6 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState
const shouldShowAutonomyActionColumn = createMemo(
() => shouldShowAutonomyOptions() || showAutonomyPlanBillingAction(),
);
- const showModeDiscoveryAffordance = createMemo(
- () => state.autoFixLocked() && autonomyAvailability().kind === 'plan_locked',
- );
const showAutonomyAvailabilityPrompt = createMemo(
() =>
state.autoFixLocked() &&
@@ -272,29 +268,6 @@ 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 mode
diff --git a/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceHeader.test.ts b/frontend-modern/src/features/patrol/__tests__/PatrolIntelligenceHeader.test.ts
index 754227f4e8..fd7f3b0adf 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 with paid modes disabled when locked', () => {
+ it('makes Patrol mode a simple four-level choice without rendering plan-locked paid modes', () => {
expect(PATROL_AUTONOMY_POLICY_PRESENTATION).toEqual({
monitor: {
label: 'Watch only',
@@ -287,24 +287,4 @@ 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"');
- });
});