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
Align quickstart copy to activated install contract
rcourtman3257ba3edfd1
diff --git a/README.md b/README.mdindex f5a27de174..87a4b2fccd 100644--- a/README.md+++ b/README.md@@ -46,7 +46,7 @@ Power-user shortcuts:### AI-Powered- **Chat Assistant (BYOK)**: Ask questions about your infrastructure in natural language-- **Patrol**: Background health checks that generate findings on a schedule. New workspaces get 25 Patrol quickstart runs with no API key; ongoing self-hosted use is BYOK.+- **Patrol**: Background health checks that generate findings on a schedule. Activated or trial-backed installs can use 25 Patrol quickstart runs with no API key for initial Patrol setup; otherwise self-hosted use is BYOK.- **Alert Analysis (Pro/Pro+/Cloud)**: Optional AI analysis when alerts fire- **Cost Tracking**: Track usage and costs per provider/model@@ -150,9 +150,11 @@ Self-hosted tiers:Pulse counts top-level monitored systems once no matter how they are collected. VMs, containers, pods, disks, backups, and other child resources under that system are included rather than counted separately.-Community includes Patrol quickstart for first-run activation: every new workspace gets 25-Patrol runs with no API key. After that, self-hosted Patrol continues with your configured-provider. Relay remains the convenience tier, and Pro/Pro+ are the paid operations tiers.+Community keeps Patrol available with BYOK. Activated or trial-backed installs can also use+Patrol quickstart for first-run activation: 25 Patrol runs with no API key on a+server-verified install. Without activation, self-hosted Patrol continues with your+configured provider. Relay remains the convenience tier, and Pro/Pro+ are the paid+operations tiers.Runtime-aligned capability summary:@@ -180,9 +182,10 @@ Pulse Patrol runs on your schedule (every 10 minutes to every 7 days, default 6- Container health check failuresOn self-hosted installs, Pulse Patrol's steady-state path uses your configured provider-(BYOK) from your Pulse server. The one hosted exception is Patrol quickstart: every new-workspace gets 25 Patrol runs through the managed quickstart proxy so you can try Patrol-before adding an API key. Chat Assistant remains BYOK.+(BYOK) from your Pulse server. The one hosted exception is Patrol quickstart: activated or+trial-backed installs get 25 Patrol runs through the managed quickstart proxy so you can+try Patrol before adding an API key. Unactivated Community installs should activate, start+a trial, or use BYOK. Chat Assistant remains BYOK.Technical highlights:- Cross-system context (nodes, VMs, backups, containers, and metrics history)diff --git a/docs/PULSE_PRO.md b/docs/PULSE_PRO.mdindex 0fa70be663..e0435da2ac 100644--- a/docs/PULSE_PRO.md+++ b/docs/PULSE_PRO.md@@ -73,7 +73,7 @@ This matrix is derived from the canonical table in `docs/architecture/ENTITLEMEN| Constant | Capability Key | Display Name | Community | Relay | Pro | Pro+ | Cloud | Primary Gating Mechanism / Notes ||---|---|---|:---:|:---:|:---:|:---:|:---:|---|-| `FeatureAIPatrol` | `ai_patrol` | Pulse Patrol (Background Health Checks) | Y | Y | Y | Y | Y | Patrol itself is available on Community with BYOK, and new workspaces get 25 Patrol quickstart runs with no API key for first-run activation. Higher-autonomy outcomes and fix execution are separately gated. |+| `FeatureAIPatrol` | `ai_patrol` | Pulse Patrol (Background Health Checks) | Y | Y | Y | Y | Y | Patrol itself is available on Community with BYOK. Activated or trial-backed installs can use 25 Patrol quickstart runs with no API key for first-run activation. Higher-autonomy outcomes and fix execution are separately gated. || `FeatureRelay` | `relay` | Remote Access (Mobile Relay) | N | Y | Y | Y | Y | API route gating via `RequireLicenseFeature(..., relay, ...)` for relay settings and onboarding endpoints. || `FeatureAIAlerts` | `ai_alerts` | Alert Analysis | N | N | Y | Y | Y | API route gating via `RequireLicenseFeature(..., ai_alerts, ...)`. || `FeatureAIAutoFix` | `ai_autofix` | Pulse Patrol Auto-Fix | N | N | Y | Y | Y | Required for fix execution and higher-autonomy actions. |@@ -108,7 +108,7 @@ Patrol and the Assistant support tiered autonomy:- Core monitoring for up to 5 monitored systems.- 7-day history.- Pulse Patrol with BYOK.-- Patrol quickstart for new workspaces: 25 Patrol runs with no API key.+- Patrol quickstart after activation or trial: 25 Patrol runs with no API key on a server-verified install.- Quickstart is Patrol-only activation support, not a general hosted chat entitlement.- Basic SSO and update alerts.diff --git a/docs/architecture/v6-pricing-and-tiering.md b/docs/architecture/v6-pricing-and-tiering.mdindex 99752f083b..4f42a11ffe 100644--- a/docs/architecture/v6-pricing-and-tiering.md+++ b/docs/architecture/v6-pricing-and-tiering.md@@ -19,9 +19,10 @@ align with this document. If there is a conflict, this document wins.1. **Free attracts, paid converts.** The free tier must be good enough to get users in thedoor, but constrained enough that serious users feel upgrade pressure naturally.2. **Gate on action, not information.** Self-hosted AI Patrol is BYOK in steady state,- with one Patrol-only quickstart allowance for first-run activation. We never cap how- many times users can run Patrol through their own API keys. The paid gate is on- auto-execution of fixes, not on analysis or suggestions.+ with one Patrol-only quickstart allowance for activated or trial-backed installs during+ first-run activation. We never cap how many times users can run Patrol through their+ own API keys. The paid gate is on auto-execution of fixes, not on analysis or+ suggestions.3. **Smooth upgrade ladder.** No large price gaps. Every step up has a clear reason.4. **Simple to understand.** A homelabber should know which tier is right for them inunder 10 seconds.@@ -100,8 +101,8 @@ long-term commercial model. The canonical v6 destination is monitored-system cou| SSO | Basic OIDC || Update notifications | Yes || Metrics history | **7 days** |-| AI Patrol | Monitor + root-cause summaries + fix suggestions (BYOK, with Patrol quickstart for new workspaces) |-| AI Quickstart Credits | **25 hosted Patrol runs** (no API key needed, Patrol only, powered by MiniMax 2.5M) |+| AI Patrol | Monitor + root-cause summaries + fix suggestions (BYOK by default, with Patrol quickstart on activated or trial-backed installs) |+| AI Quickstart Credits | **25 hosted Patrol runs** (activated or trial-backed installs only; no API key needed, Patrol only, powered by MiniMax 2.5M) || AI Auto-Fix | **No** (must apply fixes manually) || AI Alert Analysis | No || Relay | No |@@ -115,12 +116,13 @@ long-term commercial model. The canonical v6 destination is monitored-system cou**AI Patrol in free tier:** Two modes of operation:-1. **Quickstart Credits (Patrol only, no API key needed):** Every new workspace gets 25- hosted Patrol runs powered by MiniMax 2.5M. This gives users a bounded way to try- Patrol before adding a provider. After credits are exhausted, users connect their own- API key to continue self-hosted Patrol. Quickstart is activation support only: it is- not a general hosted chat entitlement and it does not replace BYOK for ongoing- self-hosted AI use.+1. **Quickstart Credits (Patrol only, no API key needed):** Activated or trial-backed+ installs with the server-verified installation identity get 25 hosted Patrol runs+ powered by MiniMax 2.5M. This gives users a bounded way to try Patrol before adding a+ provider. Unactivated Community installs start a trial, activate, or use their own API+ key instead. After credits are exhausted, users connect their own API key to continue+ self-hosted Patrol. Quickstart is activation support only: it is not a general hosted+ chat entitlement and it does not replace BYOK for ongoing self-hosted AI use.2. **BYOK (after credits or by choice):** Users provide their own API key(OpenAI/Anthropic/etc.). No commercial quota — it's their API key, their money. Only@@ -303,11 +305,11 @@ must apply manually. Pro users see the same information with an "Apply Fix" buttPatrol finding is a conversion moment.### 3. AI Quickstart Credits (25 hosted Patrol runs)-Every new workspace gets 25 Patrol runs powered by MiniMax 2.5M with no API key setup.-This gives users one bounded Patrol-first activation path. After credits run out, self-hosted-users connect their own key (BYOK, stays free). Upgrading later unlocks auto-fix, alert-analysis, and other paid operations features; it does not replace BYOK for self-hosted AI-runtime. Cost: ~$0.002–0.01 per run.+Activated or trial-backed installs get 25 Patrol runs powered by MiniMax 2.5M with no API+key setup. This gives users one bounded Patrol-first activation path. Unactivated Community+installs activate, start a trial, or connect their own key (BYOK, stays free). Upgrading+later unlocks auto-fix, alert analysis, and other paid operations features; it does not+replace BYOK for self-hosted AI runtime. Cost: ~$0.002–0.01 per run.### 4. Relay as impulse buy ($39/yr)Fills the $0 → Pro gap. Relay is not the automation tier; it is the cheap convenience anddiff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.mdindex 5a331c2933..a5184f7ed7 100644--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md@@ -77,9 +77,9 @@ runtime cost control, and shared AI transport surfaces.there instead of drifting into provider-local tools.7. Keep self-hosted Patrol quickstart messaging aligned with backend runtimetruth: the governed quickstart contract is Patrol-only first-run- acceleration with server-authoritative run inventory, not a general hosted- chat entitlement or a replacement for BYOK once Patrol leaves the- quickstart path.+ acceleration on activated or trial-backed installs with server-authoritative+ run inventory, not a general hosted chat entitlement or a replacement for+ BYOK once Patrol leaves the quickstart path.## Current State@@ -135,8 +135,9 @@ response, and invalidate the cached token on auth rejection. Explicit BYOKprovider credentials still outrank Patrol quickstart whenever both arepresent.Public-facing copy that reflects those runtime fields must therefore speak in-Patrol quickstart runs and Patrol-only no-key activation, not in generic AI-credits or a promise of full hosted chat.+Patrol quickstart runs on activated or trial-backed installs and Patrol-only+no-key activation, not in generic AI credits, anonymous Community bootstrap,+or a promise of full hosted chat.That same provider-model contract applies to the chat explore pre-pass in`internal/ai/chat/service_explore.go`: any runtime model that is valid for themain chat execution path, including `quickstart:minimax-2.5m`, must resolvediff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 99e96c01c7..a17b8c9132 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -243,8 +243,9 @@ Own canonical runtime payload shapes between backend and frontend.quickstart block reason for Patrol and AI settings enablement rather thansilently attempting anonymous bootstrapand the public interpretation rule, so those fields describe Patrol-only- quickstart inventory and active runtime source rather than a generic hosted- AI quota or full-chat entitlement+ quickstart inventory and active runtime source on activated or trial-backed+ installs rather than a generic hosted AI quota, anonymous Community+ entitlement, or full-chat entitlement7. Keep Patrol summary payload consumers aligned on one assessment hierarchy: transport-driven Patrol summary surfaces may show supporting counts and outcomes, but the canonical assessment and verification states must remain singular and not be repeated as a second compact verdict strip8. Keep Patrol verification and activity facts unified on one transport-backed secondary status area: when frontend consumers combine Patrol status payloads (`runtime_state`, `last_patrol_at`, `last_activity_at`, `trigger_status`) with run-history transport, the latest run result, activity mix, scoped-trigger state, and circuit-breaker context must read as one supporting explanation beneath the primary assessment instead of being re-expanded into a separate full-width status strip plus duplicate summary layersand the main Patrol page composition boundary, so once that governed@@ -1820,8 +1821,9 @@ force a blocked or exhausted operator presentation while Patrol is active on aconfigured non-quickstart provider path.Those same transport fields now also define the only public quickstart promise:when pricing, README, or Patrol header copy references them, it must describe-Patrol-only quickstart runs and no-key Patrol activation rather than generic-AI credits or hosted-chat access.+Patrol-only quickstart runs and no-key Patrol activation on activated or+trial-backed installs rather than generic AI credits, anonymous bootstrap, or+hosted-chat access.Hosted billing-state payloads now also carry the canonical quickstart grantmetadata used by hosted bootstrap and refresh flows. Billing reads and contractproofs must preserve `quickstart_credits_granted`,diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.mdindex eb9a4ff0e9..2bd1575c58 100644--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md@@ -254,9 +254,9 @@ cache files may memoize the returned token and counts but may not treat thosecached counts as commercial authority.That quickstart allowance is therefore activation support, not the maincommercial pitch: self-hosted pricing and docs may promise Patrol-only-quickstart runs with no API key for first use, but they must not market that-bootstrap as a general hosted chat plan while Relay and Pro carry the paid-story.+quickstart runs with no API key for activated or trial-backed installs, but+they must not market that bootstrap as anonymous Community entitlement or a+general hosted chat plan while Relay and Pro carry the paid story.The self-hosted commercial counted unit is now also locked to monitoredsystems rather than agent installs. `max_monitored_systems` is the liveruntime and UI contract, while legacy `max_agents` / `max_nodes` aliases arediff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex 6804a29660..05b5236b14 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -506,6 +506,11 @@ Patrol-scoped as well: the badge copy should talk about Patrol quickstart runsor Patrol quickstart exhaustion on activated or trial-backed installs ratherthan generic AI credits, anonymous free hosted AI, or broad hosted AIavailability.+The same shared shell rule applies to activation-gated availability copy: when+Patrol is blocked because quickstart lacks a server-verified install identity,+shared feature shells must preserve the backend activation-or-BYOK guidance+instead of translating that state into an exhausted-credit badge or a generic+hosted-AI upgrade message.That same route-owned presentation rule also governs Patrol findings emptystates: shared section shells under `frontend-modern/src/features/patrol/`must not render a green healthy empty state from `0 active findings` alonediff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex af8acff8ac..db2b79d15c 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -77,8 +77,9 @@ Patrol-specific presentation helpers.3. Update this contract whenever a new Patrol-specific page, store, helper, or presentation component becomes canonical runtime surface area4. Keep Patrol header quickstart copy Patrol-scoped and runtime-backed: thePatrol header may promise only the server-authoritative quickstart- inventory, phrase availability as Patrol runs with no API key, and avoid- implying broader hosted chat or generic AI credits.+ inventory, phrase availability as Patrol runs with no API key on activated+ or trial-backed installs, and avoid implying broader hosted chat, generic+ AI credits, or anonymous Community entitlement.## Current State@@ -403,8 +404,10 @@ exhaustion, not merely because the stored credit counter reached zero while aconfigured provider path keeps Patrol active.That same header copy must stay Patrol-only in operator-facing language:available inventory should read as free Patrol quickstart runs with no API-key for Patrol, and exhaustion should direct the operator toward BYOK for-Patrol rather than implying a broader hosted AI allowance.+key for Patrol on the current activated or trial-backed install, and+activation-required states must trust the canonical blocked reason instead of+relabeling stale counters as exhausted. Exhaustion should direct the operator+toward BYOK for Patrol rather than implying a broader hosted AI allowance.`frontend-modern/src/utils/remediationPresentation.ts` is now also thecanonical owner for remediation result badge copy and success/failure stylingused by `frontend-modern/src/components/patrol/RemediationStatus.tsx`, sodiff --git a/frontend-modern/src/api/__tests__/patrol.test.ts b/frontend-modern/src/api/__tests__/patrol.test.tsindex d394ceb14f..3e2f2b668c 100644--- a/frontend-modern/src/api/__tests__/patrol.test.ts+++ b/frontend-modern/src/api/__tests__/patrol.test.ts@@ -91,6 +91,28 @@ describe('patrol api', () => {});});+ it('preserves activation-gated quickstart status without inventing inventory', async () => {+ apiFetchJSONMock.mockResolvedValueOnce({+ runtime_state: 'blocked',+ blocked_reason:+ 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ healthy: false,+ quickstart_credits_total: 0,+ quickstart_credits_remaining: 0,+ using_quickstart: false,+ } as any);++ await expect(getPatrolStatus()).resolves.toMatchObject({+ runtime_state: 'blocked',+ blocked_reason:+ 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ healthy: false,+ quickstart_credits_total: 0,+ quickstart_credits_remaining: 0,+ using_quickstart: false,+ });+ });+it('preserves the canonical patrol quickstart transport fields', async () => {apiFetchJSONMock.mockResolvedValueOnce({runtime_state: 'active',diff --git a/frontend-modern/src/api/patrol.ts b/frontend-modern/src/api/patrol.tsindex 69b9e8fcdf..2ecc659dd4 100644--- a/frontend-modern/src/api/patrol.ts+++ b/frontend-modern/src/api/patrol.ts@@ -165,13 +165,13 @@ export interface PatrolStatus {healthy: boolean;interval_ms: number; // Patrol interval in millisecondsfixed_count: number; // Number of issues auto-fixed by Patrol- blocked_reason?: string;+ blocked_reason?: string; // Canonical server-authored Patrol block reason, including quickstart activation/exhaustion state.blocked_at?: string;license_required?: boolean;license_status?: LicenseStatus;upgrade_url?: string;summary: FindingsSummary;- // Server-authoritative Patrol quickstart inventory and runtime source.+ // Server-authoritative Patrol quickstart inventory and runtime source for activated or trial-backed installs only.quickstart_credits_remaining?: number;quickstart_credits_total?: number;using_quickstart?: boolean;diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsxindex 98bdb738cb..fb216ac9e9 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx@@ -10,7 +10,10 @@ import { Toggle, TogglePrimitive } from '@/components/shared/Toggle';import { CountdownTimer } from '@/components/patrol';import { formatRelativeTime } from '@/utils/format';import { groupModelsByProvider } from '@/utils/patrolFormat';-import { getAIQuickstartCreditsPresentation } from '@/utils/aiQuickstartPresentation';+import {+ getAIQuickstartCreditsPresentation,+ isPatrolQuickstartExhaustedReason,+} from '@/utils/aiQuickstartPresentation';import { buildPatrolScheduleOptions } from '@/utils/aiPatrolSchedulePresentation';import { getPatrolRuntimePresentation } from '@/utils/patrolRuntimePresentation';import { getPatrolRecencyPresentation } from '@/utils/patrolSummaryPresentation';@@ -44,11 +47,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceStateconst patrolStatus = state.patrolStatus();if (!patrolStatus) return false;if (patrolStatus.using_quickstart) return true;- return (- state.runtimeState() === 'blocked' &&- (patrolStatus.quickstart_credits_total ?? 0) > 0 &&- (patrolStatus.quickstart_credits_remaining ?? 0) <= 0- );+ return state.runtimeState() === 'blocked' && isPatrolQuickstartExhaustedReason(state.blockedReason());});const patrolModelStale = createMemo(() => {const model = state.patrolModel();diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex efa99167ee..73b13b0d6b 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -764,6 +764,34 @@ describe('AIIntelligence entitlement gating', () => {expect(screen.getByText(/Health A · 100\/100/)).toBeInTheDocument();});+ it('shows the activation-or-byok path from the server when quickstart is unavailable on an unactivated install', async () => {+ hasFeatureMock.mockReturnValue(true);+ licenseStatusMock.mockReturnValue({ subscription_state: 'expired' });+ getPatrolStatusMock.mockResolvedValue(+ defaultPatrolStatus({+ runtime_state: 'blocked',+ using_quickstart: false,+ quickstart_credits_total: 25,+ quickstart_credits_remaining: 0,+ blocked_reason:+ 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ }),+ );++ render(() => <AIIntelligence />);++ await waitFor(() => {+ expect(getPatrolStatusMock).toHaveBeenCalled();+ expect(+ screen.getAllByText(+ 'Activate this install or start a trial to use AI Patrol quickstart. Otherwise connect your API key.',+ ).length,+ ).toBeGreaterThan(0);+ });++ expect(screen.queryByText('Patrol quickstart exhausted')).not.toBeInTheDocument();+ });+it('shows the active Patrol quickstart chip only when runtime is actually using quickstart', async () => {hasFeatureMock.mockReturnValue(true);licenseStatusMock.mockReturnValue({ subscription_state: 'active' });@@ -810,7 +838,7 @@ describe('AIIntelligence entitlement gating', () => {expect(getPatrolStatusMock).toHaveBeenCalled();expect(screen.getByTitle(- '12 of 25 free Patrol quickstart runs remaining. No API key needed for Patrol.',+ '12 of 25 Patrol quickstart runs remaining on this activated or trial-backed install. No API key needed for initial Patrol quickstart.',),).toBeInTheDocument();});diff --git a/frontend-modern/src/pages/__tests__/PricingV6.test.tsx b/frontend-modern/src/pages/__tests__/PricingV6.test.tsxindex 4d63122502..04e1e5960c 100644--- a/frontend-modern/src/pages/__tests__/PricingV6.test.tsx+++ b/frontend-modern/src/pages/__tests__/PricingV6.test.tsx@@ -82,7 +82,9 @@ describe('PricingV6', () => {),).toBeInTheDocument();expect(screen.getByText('AI Patrol (BYOK)')).toBeInTheDocument();- expect(screen.getByText('Patrol quickstart: 25 runs, no API key')).toBeInTheDocument();+ expect(+ screen.getByText('Patrol quickstart after activation or trial: 25 runs, no API key'),+ ).toBeInTheDocument();expect(screen.getByText('8 monitored systems · 14-day history')).toBeInTheDocument();expect(screen.getByText('15 monitored systems')).toBeInTheDocument();expect(screen.getByText('50 monitored systems')).toBeInTheDocument();diff --git a/frontend-modern/src/types/ai.ts b/frontend-modern/src/types/ai.tsindex fd666e5ee8..84a163b59d 100644--- a/frontend-modern/src/types/ai.ts+++ b/frontend-modern/src/types/ai.ts@@ -54,12 +54,12 @@ export interface AISettings {discovery_enabled?: boolean;discovery_interval_hours?: number;- // Server-authoritative Patrol quickstart inventory surfaced in AI settings.+ // Server-authoritative Patrol quickstart inventory surfaced in AI settings for activated or trial-backed installs.quickstart_credits_total?: number;quickstart_credits_used?: number;quickstart_credits_remaining?: number;- quickstart_credits_available?: boolean;- using_quickstart?: boolean; // true when Patrol is currently using the quickstart provider+ quickstart_credits_available?: boolean; // true when this install can currently use Patrol quickstart without BYOK+ using_quickstart?: boolean; // true when Patrol is currently using the quickstart provider on an activated or trial-backed install}export interface AISettingsUpdateRequest {diff --git a/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.ts b/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.tsindex eb62c98660..cb78b3ef5c 100644--- a/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/aiQuickstartPresentation.test.ts@@ -7,7 +7,8 @@ describe('getAIQuickstartCreditsPresentation', () => {className:'bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800 text-blue-700 dark:text-blue-300',summary: 'Patrol quickstart: 3/10 runs left',- title: '3 of 10 free Patrol quickstart runs remaining. No API key needed for Patrol.',+ title:+ '3 of 10 Patrol quickstart runs remaining on this activated or trial-backed install. No API key needed for initial Patrol quickstart.',});});@@ -16,7 +17,8 @@ describe('getAIQuickstartCreditsPresentation', () => {className:'bg-amber-50 dark:bg-amber-950 border-amber-200 dark:border-amber-800 text-amber-700 dark:text-amber-300',summary: 'Patrol quickstart exhausted',- title: 'Patrol quickstart is exhausted. Connect your API key to continue using AI Patrol.',+ title:+ 'Patrol quickstart on this activated or trial-backed install is exhausted. Connect your API key to continue using AI Patrol.',});});});diff --git a/frontend-modern/src/utils/__tests__/quickstartCopyContract.test.ts b/frontend-modern/src/utils/__tests__/quickstartCopyContract.test.tsnew file mode 100644index 0000000000..9bbcee24d3--- /dev/null+++ b/frontend-modern/src/utils/__tests__/quickstartCopyContract.test.ts@@ -0,0 +1,39 @@+import { readFileSync } from 'node:fs';+import { dirname, resolve } from 'node:path';+import { fileURLToPath } from 'node:url';+import { describe, expect, it } from 'vitest';++const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../');+const readRepoFile = (relativePath: string) => readFileSync(resolve(repoRoot, relativePath), 'utf-8');++describe('quickstart copy contract', () => {+ it('removes anonymous Community quickstart claims from public docs', () => {+ const readme = readRepoFile('README.md');+ const pulsePro = readRepoFile('docs/PULSE_PRO.md');+ const pricingSpec = readRepoFile('docs/architecture/v6-pricing-and-tiering.md');++ expect(readme).not.toContain('every new workspace gets 25 Patrol quickstart runs');+ expect(readme).not.toContain('every new workspace gets 25 Patrol runs');+ expect(pulsePro).not.toContain('new workspaces get 25 Patrol quickstart runs');+ expect(pulsePro).not.toContain('Patrol quickstart for new workspaces: 25 Patrol runs with no API key.');+ expect(pricingSpec).not.toContain('Every new workspace gets 25');+ });++ it('describes quickstart as activation-gated Patrol-only support', () => {+ const readme = readRepoFile('README.md');+ const pulsePro = readRepoFile('docs/PULSE_PRO.md');+ const pricingSpec = readRepoFile('docs/architecture/v6-pricing-and-tiering.md');++ expect(readme).toContain('Activated or trial-backed installs can use 25 Patrol quickstart runs');+ expect(readme).toMatch(+ /Unactivated Community installs should activate, start\s+a trial, or use BYOK\./,+ );+ expect(pulsePro).toContain(+ 'Activated or trial-backed installs can use 25 Patrol quickstart runs with no API key for first-run activation.',+ );+ expect(pricingSpec).toMatch(+ /Activated or trial-backed\s+installs with the server-verified installation identity get 25 hosted Patrol runs/,+ );+ expect(pricingSpec).toMatch(/it is not a general hosted\s+chat entitlement/);+ });+});diff --git a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.tsindex cd1d29677c..9110e52827 100644--- a/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts+++ b/frontend-modern/src/utils/__tests__/selfHostedPlans.test.ts@@ -68,7 +68,13 @@ describe('selfHostedPlans', () => {it('keeps Community quickstart copy scoped to Patrol activation support', () => {expect(SELF_HOSTED_PLAN_BY_TIER.community.highlights).toEqual(- expect.arrayContaining(['AI Patrol (BYOK)', 'Patrol quickstart: 25 runs, no API key']),+ expect.arrayContaining([+ 'AI Patrol (BYOK)',+ 'Patrol quickstart after activation or trial: 25 runs, no API key',+ ]),+ );+ expect(SELF_HOSTED_PLAN_BY_TIER.community.highlights).not.toContain(+ 'Patrol quickstart: 25 runs, no API key',);});});diff --git a/frontend-modern/src/utils/aiQuickstartPresentation.ts b/frontend-modern/src/utils/aiQuickstartPresentation.tsindex 46efa36aaa..135504552a 100644--- a/frontend-modern/src/utils/aiQuickstartPresentation.ts+++ b/frontend-modern/src/utils/aiQuickstartPresentation.ts@@ -4,6 +4,13 @@ export interface AIQuickstartCreditsPresentation {title: string;}+export const PATROL_QUICKSTART_EXHAUSTED_REASON =+ 'Quickstart credits exhausted. Connect your API key to continue using AI Patrol.';++export function isPatrolQuickstartExhaustedReason(reason?: string | null): boolean {+ return reason?.trim() === PATROL_QUICKSTART_EXHAUSTED_REASON;+}+export function getAIQuickstartCreditsPresentation(remaining: number,total: number,@@ -13,7 +20,7 @@ export function getAIQuickstartCreditsPresentation(className:'bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800 text-blue-700 dark:text-blue-300',summary: `Patrol quickstart: ${remaining}/${total} runs left`,- title: `${remaining} of ${total} free Patrol quickstart runs remaining. No API key needed for Patrol.`,+ title: `${remaining} of ${total} Patrol quickstart runs remaining on this activated or trial-backed install. No API key needed for initial Patrol quickstart.`,};}@@ -21,6 +28,7 @@ export function getAIQuickstartCreditsPresentation(className:'bg-amber-50 dark:bg-amber-950 border-amber-200 dark:border-amber-800 text-amber-700 dark:text-amber-300',summary: 'Patrol quickstart exhausted',- title: 'Patrol quickstart is exhausted. Connect your API key to continue using AI Patrol.',+ title:+ 'Patrol quickstart on this activated or trial-backed install is exhausted. Connect your API key to continue using AI Patrol.',};}diff --git a/frontend-modern/src/utils/selfHostedPlans.ts b/frontend-modern/src/utils/selfHostedPlans.tsindex fa37ec5971..cbd4cc13b8 100644--- a/frontend-modern/src/utils/selfHostedPlans.ts+++ b/frontend-modern/src/utils/selfHostedPlans.ts@@ -52,7 +52,7 @@ export const SELF_HOSTED_PLAN_DEFINITIONS: readonly SelfHostedPlanDefinition[] ='Real-time monitoring','7-day metric history','AI Patrol (BYOK)',- 'Patrol quickstart: 25 runs, no API key',+ 'Patrol quickstart after activation or trial: 25 runs, no API key','Update alerts','Basic SSO (OIDC)','Community support',