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.

Remove self-hosted monitoring upsell copy

rcourtmane0c4533fb4ba
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index cf30b0e763..e3b7d01b33 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -337,12 +337,15 @@
"src/stores/__tests__/sessionPresentationPolicy.test.ts",
"src/stores/__tests__/license.test.ts",
"src/components/Settings/__tests__/ProLicensePanel.test.tsx",
+ "src/utils/__tests__/licensePresentation.test.ts",
"src/components/Settings/__tests__/RBACPaywallPanels.test.tsx",
"src/components/Settings/__tests__/settingsNavigation.integration.test.tsx",
"src/components/Settings/__tests__/AISettings.test.tsx",
"src/components/Settings/__tests__/ReportingPanel.test.tsx",
"src/components/Settings/__tests__/RelaySettingsPanel.runtime.test.tsx",
"src/components/Settings/__tests__/AgentProfilesPanel.test.tsx",
+ "src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx",
+ "src/utils/__tests__/deployStatusPresentation.test.ts",
"src/components/shared/__tests__/HistoryChart.test.tsx",
"src/components/shared/__tests__/MonitoredSystemLimitWarningBanner.test.tsx",
"src/components/shared/__tests__/TrialBanner.test.tsx",
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
index cbbeca57af..27335a5afa 100644
--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md
@@ -662,6 +662,12 @@ the manifest's support-floor row.
## Current State
+Deploy selection and retry capacity feedback now follows the API/cloud-paid
+workspace-capacity terminology boundary. Lifecycle-owned deploy surfaces keep
+stable backend compatibility identifiers, but the user-facing confirmation,
+preflight, retry, and status labels must not revive license-slot or plan-upgrade
+wording for monitored-system capacity.
+
The infrastructure workspace collapsed to a single `/settings/infrastructure`
route. `buildInfrastructureWorkspacePath()` always returns the base path;
`deriveAddStepFromLegacyPath()` maps legacy sub-paths to in-page panel state.
@@ -2217,6 +2223,10 @@ installer contract. That fallback surface must consume the shared validated
`NodesAPI.getAgentInstallCommand` response, so malformed backend payloads fail
closed and the raw backend install token stays inside the shared client
boundary rather than leaking into deploy UI state.
+Deploy selection and retry capacity feedback may consume the monitored-system
+capacity boundary owned by API/cloud-paid, but lifecycle UI must label that
+state as workspace capacity and must not reintroduce legacy license-slot or
+plan-upgrade language in deploy confirmation, preflight, or retry surfaces.
That same `ResultsStep` boundary must also stay on the direct
`deploy-fallback-install-surface` proof path, rather than relying only on the
shared install helper or downstream deploy tests to catch lifecycle drift in
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index dfe63c0f26..f28865fb18 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -702,6 +702,11 @@ the canonical monitored-system blocked payload.
## Current State
+Deploy-job monitored-system denials now keep compatibility wire identifiers
+such as `skipped_license` and `license_limit`, while user-visible retry errors
+and frontend deploy labels must describe the state as monitored-system or
+workspace capacity rather than license slots or plan-upgrade pressure.
+
`useInfrastructureDiscoveryRuntimeState.ts` no longer gates `/api/discover`
polling on a settings tab name; polling is mount-scoped. The tab guard was
removed when the infrastructure nav collapsed to one `infrastructure-systems`
@@ -1759,6 +1764,10 @@ monitored-system ledger endpoint, and TrueNAS/API-backed registration must all
reflect deduped top-level monitored systems rather than agent-only
installation count, and `legacy_connections` / `has_migration_gap` may not
imply that API-backed monitoring sits outside the commercial cap.
+Deploy-job compatibility enums such as `skipped_license` and `license_limit`
+may remain stable wire identifiers, but human-readable retry errors and
+frontend deploy labels must describe the condition as monitored-system or
+workspace capacity rather than as license slots or a plan upgrade prompt.
That same contract now also owns prospective admission and replacement
projection. Config-backed PVE/PBS/PMG, TrueNAS, VMware, and other API-backed
registration or update routes must project candidates or preview records
diff --git a/docs/release-control/v6/internal/subsystems/cloud-paid.md b/docs/release-control/v6/internal/subsystems/cloud-paid.md
index c5f942ec42..3a0c0c82ab 100644
--- a/docs/release-control/v6/internal/subsystems/cloud-paid.md
+++ b/docs/release-control/v6/internal/subsystems/cloud-paid.md
@@ -1469,7 +1469,10 @@ Only bounded legacy fallback migrations may render the base plan limit, the
effective monitored-system limit, any grandfathered floor, and whether
continuity capture is still pending. When monitored-system usage is
unavailable during fallback continuity verification, the shell must present a
-verification state rather than implying `0 / limit`.
+verification state rather than implying `0 / limit`. If the effective
+monitored-system limit is `0`/unlimited, the self-hosted fallback continuity is
+audit-only and must not render plan-limit, finite-policy, or grandfathered-floor
+copy to ordinary self-hosted users.
That same pricing boundary now also owns the shared frontend plan-definition
models. `frontend-modern/src/utils/cloudPlans.ts` and
`frontend-modern/src/utils/selfHostedPlans.ts` are the canonical frontend
diff --git a/docs/release-control/v6/internal/subsystems/storage-recovery.md b/docs/release-control/v6/internal/subsystems/storage-recovery.md
index 6152a1e761..5fe29cf5b2 100644
--- a/docs/release-control/v6/internal/subsystems/storage-recovery.md
+++ b/docs/release-control/v6/internal/subsystems/storage-recovery.md
@@ -720,9 +720,10 @@ operator-facing protection state.
That same shared `internal/api/` dependency now also expects replacement-aware
monitored-system admission and fail-closed usage availability. Storage- or
recovery-adjacent setup, deploy, and API-backed update helpers may reuse the
-canonical monitored-system cap boundary, but they must preserve remaining
-grouped sources on a counted host and must not reinterpret unavailable usage as
-an empty estate.
+canonical monitored-system capacity boundary, but they must preserve remaining
+grouped sources on a counted host, must not reinterpret unavailable usage as
+an empty estate, and must not surface that adjacent boundary as license-slot or
+upgrade-plan copy inside storage or recovery-adjacent flows.
Configured Proxmox, PBS, and PMG node replacements on that adjacent API
boundary must identify the replaced source-owned surface through the shared
monitored-system replacement selector, not storage- or recovery-local matching
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/DeployStatusBadge.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/DeployStatusBadge.test.tsx
index ce634e8317..9fcb444ed7 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/DeployStatusBadge.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/DeployStatusBadge.test.tsx
@@ -18,7 +18,7 @@ describe('DeployStatusBadge', () => {
['failed_retryable', 'Failed'],
['failed_permanent', 'Failed'],
['skipped_already_agent', 'Already monitored'],
- ['skipped_license', 'License limit'],
+ ['skipped_license', 'Workspace capacity'],
['canceled', 'Canceled'],
];
@@ -58,7 +58,7 @@ describe('DeployStatusBadge', () => {
['failed_retryable', 'Failed'],
['failed_permanent', 'Failed'],
['skipped_already_agent', 'Already monitored'],
- ['skipped_license', 'License limit'],
+ ['skipped_license', 'Workspace capacity'],
['canceled', 'Canceled'],
];
for (const [status, label] of nonProgress) {
@@ -103,7 +103,7 @@ describe('DeployStatusBadge', () => {
it('applies amber classes to skipped statuses', () => {
for (const status of ['skipped_already_agent', 'skipped_license'] as DeployTargetStatus[]) {
const { unmount } = render(() => <DeployStatusBadge status={status} />);
- const label = status === 'skipped_already_agent' ? 'Already monitored' : 'License limit';
+ const label = status === 'skipped_already_agent' ? 'Already monitored' : 'Workspace capacity';
const badge = screen.getByText(label);
expect(badge.className).toContain('bg-amber-100');
expect(badge.className).toContain('text-amber-700');
diff --git a/frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx
index 58eeb9c287..ba79485890 100644
--- a/frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/__tests__/DeployStepComponents.test.tsx
@@ -277,24 +277,28 @@ describe('ConfirmStep', () => {
expect(screen.getByText('SSH failed')).toBeInTheDocument();
});
- it('shows license slot info when limit exists', () => {
+ it('shows workspace capacity info when limit exists', () => {
const wizard = createMockWizard({
maxAgentSlots: 5,
confirmSelectedNodeIds: new Set(['n1', 'n2']),
readyNodes: [],
});
render(() => <ConfirmStep wizard={wizard} />);
- expect(screen.getByText(/5 license slots available, 2 nodes selected/)).toBeInTheDocument();
+ expect(
+ screen.getByText(/Workspace capacity: 5 monitored systems, 2 nodes selected/),
+ ).toBeInTheDocument();
});
- it('shows license warning when exceeding limit', () => {
+ it('shows capacity warning when exceeding limit', () => {
const wizard = createMockWizard({
maxAgentSlots: 2,
confirmSelectedNodeIds: new Set(['n1', 'n2', 'n3']),
readyNodes: [],
});
render(() => <ConfirmStep wizard={wizard} />);
- expect(screen.getByText(/Only 2 nodes can be deployed/)).toBeInTheDocument();
+ expect(
+ screen.getByText(/This workspace can deploy 2 nodes at its current capacity/),
+ ).toBeInTheDocument();
});
it('calls toggleConfirmNode on row click', () => {
diff --git a/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx b/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx
index d7773ae1c0..3ff35812d0 100644
--- a/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx
+++ b/frontend-modern/src/components/Infrastructure/deploy/ConfirmStep.tsx
@@ -12,27 +12,29 @@ export const ConfirmStep: Component<ConfirmStepProps> = (props) => {
const selectedCount = createMemo(() => w.confirmSelectedNodeIds().size);
const maxSlots = createMemo(() => w.maxAgentSlots());
- const exceedsLicense = createMemo(() => maxSlots() > 0 && selectedCount() > maxSlots());
+ const exceedsCapacity = createMemo(() => maxSlots() > 0 && selectedCount() > maxSlots());
+ const excessNodeCount = createMemo(() => Math.max(0, selectedCount() - maxSlots()));
+ const excessNodeLabel = createMemo(() => (excessNodeCount() === 1 ? 'node' : 'nodes'));
return (
<div class="space-y-4">
- {/* License slot summary */}
+ {/* Workspace capacity summary */}
<Show when={maxSlots() > 0}>
<div
role="status"
class={`rounded-md p-3 text-sm flex items-start gap-2 ${
- exceedsLicense()
+ exceedsCapacity()
? 'bg-amber-50 dark:bg-amber-900/20 text-amber-700 dark:text-amber-300'
: 'bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300'
}`}
>
<AlertCircleIcon class="w-4 h-4 mt-0.5 shrink-0" />
<span>
- {maxSlots()} license slots available, {selectedCount()} nodes selected.
- <Show when={exceedsLicense()}>
+ Workspace capacity: {maxSlots()} monitored systems, {selectedCount()} nodes selected.
+ <Show when={exceedsCapacity()}>
{' '}
- Only {maxSlots()} nodes can be deployed. Remove {selectedCount() - maxSlots()} nodes
- or upgrade your plan.
+ This workspace can deploy {maxSlots()} nodes at its current capacity. Remove{' '}
+ {excessNodeCount()} {excessNodeLabel()} before continuing.
</Show>
</span>
</div>
diff --git a/frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx b/frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx
index b3e21acc52..ff196ef5a4 100644
--- a/frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/deploy/__tests__/ConfirmStep.test.tsx
@@ -66,12 +66,12 @@ describe('ConfirmStep', () => {
cleanup();
});
- // --- License slot summary ---
+ // --- Workspace capacity summary ---
- describe('license slot summary', () => {
- it('does not show license info when maxAgentSlots is 0', () => {
+ describe('workspace capacity summary', () => {
+ it('does not show capacity info when maxAgentSlots is 0', () => {
renderConfirm({ maxAgentSlots: 0, readyNodes: [makeTarget()] });
- expect(screen.queryByText(/license slots available/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/Workspace capacity/)).not.toBeInTheDocument();
});
it('shows slot count and selected count when maxSlots > 0', () => {
@@ -80,10 +80,12 @@ describe('ConfirmStep', () => {
confirmSelectedNodeIds: new Set(['a', 'b']),
readyNodes: [makeTarget({ nodeId: 'a' }), makeTarget({ nodeId: 'b' })],
});
- expect(screen.getByText(/5 license slots available, 2 nodes selected/)).toBeInTheDocument();
+ expect(
+ screen.getByText(/Workspace capacity: 5 monitored systems, 2 nodes selected/),
+ ).toBeInTheDocument();
});
- it('shows warning when selection exceeds license slots', () => {
+ it('shows warning when selection exceeds workspace capacity', () => {
renderConfirm({
maxAgentSlots: 2,
confirmSelectedNodeIds: new Set(['a', 'b', 'c']),
@@ -93,8 +95,10 @@ describe('ConfirmStep', () => {
makeTarget({ nodeId: 'c' }),
],
});
- expect(screen.getByText(/Only 2 nodes can be deployed/)).toBeInTheDocument();
- expect(screen.getByText(/Remove 1 nodes/)).toBeInTheDocument();
+ expect(
+ screen.getByText(/This workspace can deploy 2 nodes at its current capacity/),
+ ).toBeInTheDocument();
+ expect(screen.getByText(/Remove 1 node before continuing/)).toBeInTheDocument();
});
it('does not show exceeds warning when selection is within limit', () => {
@@ -103,7 +107,7 @@ describe('ConfirmStep', () => {
confirmSelectedNodeIds: new Set(['a', 'b']),
readyNodes: [makeTarget({ nodeId: 'a' }), makeTarget({ nodeId: 'b' })],
});
- expect(screen.queryByText(/Only \d+ nodes can be deployed/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/current capacity/)).not.toBeInTheDocument();
});
it('does not show exceeds warning when selection equals limit exactly', () => {
@@ -112,20 +116,22 @@ describe('ConfirmStep', () => {
confirmSelectedNodeIds: new Set(['a', 'b']),
readyNodes: [makeTarget({ nodeId: 'a' }), makeTarget({ nodeId: 'b' })],
});
- expect(screen.queryByText(/Only \d+ nodes can be deployed/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/current capacity/)).not.toBeInTheDocument();
});
- it('shows license banner with 0 selected when maxSlots > 0 and nothing selected', () => {
+ it('shows capacity banner with 0 selected when maxSlots > 0 and nothing selected', () => {
renderConfirm({
maxAgentSlots: 10,
confirmSelectedNodeIds: new Set(),
readyNodes: [],
});
- expect(screen.getByText(/10 license slots available, 0 nodes selected/)).toBeInTheDocument();
- expect(screen.queryByText(/Only \d+ nodes can be deployed/)).not.toBeInTheDocument();
+ expect(
+ screen.getByText(/Workspace capacity: 10 monitored systems, 0 nodes selected/),
+ ).toBeInTheDocument();
+ expect(screen.queryByText(/current capacity/)).not.toBeInTheDocument();
});
- it('applies amber styling when exceeding license slots', () => {
+ it('applies amber styling when exceeding workspace capacity', () => {
const { container } = renderConfirm({
maxAgentSlots: 1,
confirmSelectedNodeIds: new Set(['a', 'b']),
@@ -135,7 +141,7 @@ describe('ConfirmStep', () => {
expect(banner).toBeInTheDocument();
});
- it('applies blue styling when within license slots', () => {
+ it('applies blue styling when within workspace capacity', () => {
const { container } = renderConfirm({
maxAgentSlots: 5,
confirmSelectedNodeIds: new Set(['a']),
@@ -343,7 +349,7 @@ describe('ConfirmStep', () => {
// Only the outer wrapper div exists, with no visible child content
expect(screen.queryByText(/Ready to deploy/)).not.toBeInTheDocument();
expect(screen.queryByText(/Cannot deploy/)).not.toBeInTheDocument();
- expect(screen.queryByText(/license slots/)).not.toBeInTheDocument();
+ expect(screen.queryByText(/Workspace capacity/)).not.toBeInTheDocument();
});
});
diff --git a/frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx b/frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx
index 160250c6af..b364b1cb0d 100644
--- a/frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx
+++ b/frontend-modern/src/components/Infrastructure/deploy/__tests__/PreflightStep.test.tsx
@@ -370,13 +370,13 @@ describe('PreflightStep', () => {
expect(screen.getByText('Already monitored')).toBeInTheDocument();
});
- it('shows "License limit" badge for skipped_license targets', () => {
+ it('shows "Workspace capacity" badge for skipped_license targets', () => {
const wizard = createMockWizard({
preflightTargets: [makeTarget({ status: 'skipped_license' })],
});
render(() => <PreflightStep wizard={wizard} />);
- expect(screen.getByText('License limit')).toBeInTheDocument();
+ expect(screen.getByText('Workspace capacity')).toBeInTheDocument();
});
});
diff --git a/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.test.tsx b/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.test.tsx
index 132d0b5038..33ae789e69 100644
--- a/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/useTrueNASSettingsPanelState.test.tsx
@@ -348,7 +348,7 @@ describe('useTrueNASSettingsPanelState', () => {
vi.mocked(TrueNASAPI.listConnections).mockResolvedValueOnce([] as never);
vi.mocked(TrueNASAPI.previewConnection).mockResolvedValueOnce(safeTrueNASPreview() as never);
vi.mocked(TrueNASAPI.createConnection).mockRejectedValueOnce(
- Object.assign(new Error('Monitored-system limit reached (10/9)'), {
+ Object.assign(new Error('Monitored-system capacity reached (10/9)'), {
status: 402,
feature: 'max_monitored_systems',
monitored_system_preview: {
@@ -384,7 +384,7 @@ describe('useTrueNASSettingsPanelState', () => {
await result.previewCurrentForm();
await result.saveCurrentForm();
- expect(notificationStore.error).toHaveBeenCalledWith('Monitored-system limit reached (10/9)');
+ expect(notificationStore.error).toHaveBeenCalledWith('Monitored-system capacity reached (10/9)');
expect(result.monitoredSystemPreview()).toMatchObject({
would_exceed_limit: true,
projected_count: 10,
diff --git a/frontend-modern/src/components/Settings/__tests__/useVMwareSettingsPanelState.test.tsx b/frontend-modern/src/components/Settings/__tests__/useVMwareSettingsPanelState.test.tsx
index 5dd16a45c4..60fd8b5ef5 100644
--- a/frontend-modern/src/components/Settings/__tests__/useVMwareSettingsPanelState.test.tsx
+++ b/frontend-modern/src/components/Settings/__tests__/useVMwareSettingsPanelState.test.tsx
@@ -508,7 +508,7 @@ describe('useVMwareSettingsPanelState', () => {
vi.mocked(VMwareAPI.listConnections).mockResolvedValueOnce([] as never);
vi.mocked(VMwareAPI.previewConnection).mockResolvedValueOnce(safeVMwarePreview() as never);
vi.mocked(VMwareAPI.createConnection).mockRejectedValueOnce(
- Object.assign(new Error('Monitored-system limit reached (7/6)'), {
+ Object.assign(new Error('Monitored-system capacity reached (7/6)'), {
status: 402,
feature: 'max_monitored_systems',
monitored_system_preview: {
@@ -558,7 +558,7 @@ describe('useVMwareSettingsPanelState', () => {
await result.previewCurrentForm();
await result.saveCurrentForm();
- expect(notificationStore.error).toHaveBeenCalledWith('Monitored-system limit reached (7/6)');
+ expect(notificationStore.error).toHaveBeenCalledWith('Monitored-system capacity reached (7/6)');
expect(result.monitoredSystemPreview()).toMatchObject({
would_exceed_limit: true,
projected_count: 7,
diff --git a/frontend-modern/src/hooks/__tests__/useDeployWizard.test.ts b/frontend-modern/src/hooks/__tests__/useDeployWizard.test.ts
index 1593eb2636..2797edbf2b 100644
--- a/frontend-modern/src/hooks/__tests__/useDeployWizard.test.ts
+++ b/frontend-modern/src/hooks/__tests__/useDeployWizard.test.ts
@@ -490,7 +490,7 @@ describe('useDeployWizard', () => {
dispose();
});
- it('maxAgentSlots returns limit from license store', async () => {
+ it('maxAgentSlots returns monitored-system capacity from runtime limits', async () => {
getLimitMock.mockReturnValue({ limit: 10 });
apiMock.getCandidates.mockResolvedValue({ nodes: [], sourceAgents: [] });
@@ -501,7 +501,7 @@ describe('useDeployWizard', () => {
dispose();
});
- it('maxAgentSlots returns 0 when no license limit', async () => {
+ it('maxAgentSlots returns 0 when no monitored-system capacity limit exists', async () => {
getLimitMock.mockReturnValue(null);
apiMock.getCandidates.mockResolvedValue({ nodes: [], sourceAgents: [] });
diff --git a/frontend-modern/src/utils/__tests__/apiClient.error.test.ts b/frontend-modern/src/utils/__tests__/apiClient.error.test.ts
index b062a7aad8..3c7de00d29 100644
--- a/frontend-modern/src/utils/__tests__/apiClient.error.test.ts
+++ b/frontend-modern/src/utils/__tests__/apiClient.error.test.ts
@@ -57,7 +57,7 @@ describe('apiClient structured error extraction', () => {
new Response(
JSON.stringify({
error: 'license_required',
- message: 'Monitored-system limit reached (6/5)',
+ message: 'Monitored-system capacity reached (6/5)',
feature: 'max_monitored_systems',
monitored_system_preview: {
current_count: 5,
@@ -88,7 +88,7 @@ describe('apiClient structured error extraction', () => {
);
expect(error).toMatchObject({
- message: 'Monitored-system limit reached (6/5)',
+ message: 'Monitored-system capacity reached (6/5)',
status: 402,
feature: 'max_monitored_systems',
monitored_system_preview: {
diff --git a/frontend-modern/src/utils/__tests__/apiClient.org.test.ts b/frontend-modern/src/utils/__tests__/apiClient.org.test.ts
index 8faafc2f5a..68b7f432f9 100644
--- a/frontend-modern/src/utils/__tests__/apiClient.org.test.ts
+++ b/frontend-modern/src/utils/__tests__/apiClient.org.test.ts
@@ -72,7 +72,7 @@ describe('apiClient org context', () => {
new Response(
JSON.stringify({
error: 'license_required',
- message: 'Monitored-system limit reached (6/5)',
+ message: 'Monitored-system capacity reached (6/5)',
feature: 'max_monitored_systems',
monitored_system_preview: {
current_count: 5,
@@ -105,7 +105,7 @@ describe('apiClient org context', () => {
await expect(
apiFetchJSON('/api/truenas/connections', { method: 'POST', body: '{}' }),
).rejects.toMatchObject({
- message: 'Monitored-system limit reached (6/5)',
+ message: 'Monitored-system capacity reached (6/5)',
status: 402,
feature: 'max_monitored_systems',
monitored_system_preview: {
diff --git a/frontend-modern/src/utils/__tests__/deployStatusPresentation.test.ts b/frontend-modern/src/utils/__tests__/deployStatusPresentation.test.ts
index 19eedc7dd0..6e125e3dd8 100644
--- a/frontend-modern/src/utils/__tests__/deployStatusPresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/deployStatusPresentation.test.ts
@@ -15,7 +15,7 @@ describe('deployStatusPresentation', () => {
['failed_retryable', 'Failed'],
['failed_permanent', 'Failed'],
['skipped_already_agent', 'Already monitored'],
- ['skipped_license', 'License limit'],
+ ['skipped_license', 'Workspace capacity'],
['canceled', 'Canceled'],
];
diff --git a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
index b7b2ff87e6..db6d1b67e8 100644
--- a/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/licensePresentation.test.ts
@@ -17,6 +17,7 @@ import {
getLicenseSubscriptionStatusPresentation,
getSelfHostedPlanLabel,
getLicenseTierLabel,
+ getDisplayableMonitoredSystemContinuity,
getMonitoredSystemContinuityNotice,
getNoActiveProLicenseState,
getOrganizationBillingLicenseStatusLabel,
@@ -220,6 +221,21 @@ describe('licensePresentation', () => {
).toBeNull();
});
+ it('hides monitored-system continuity when self-hosted effective capacity is uncapped', () => {
+ expect(
+ getDisplayableMonitoredSystemContinuity({
+ continuity: {
+ plan_limit: 10,
+ effective_limit: 0,
+ capture_pending: true,
+ },
+ planVersion: 'legacy_migration_fallback',
+ isLifetime: false,
+ subscriptionState: 'active',
+ }),
+ ).toBeNull();
+ });
+
it('builds entitlement-first current-plan presentation for community, paid, and grandfathered installs', () => {
expect(
getSelfHostedCurrentPlanPresentation({
diff --git a/frontend-modern/src/utils/deployStatusPresentation.ts b/frontend-modern/src/utils/deployStatusPresentation.ts
index ee266b5169..ddbd62a9ba 100644
--- a/frontend-modern/src/utils/deployStatusPresentation.ts
+++ b/frontend-modern/src/utils/deployStatusPresentation.ts
@@ -44,7 +44,7 @@ const DEPLOY_STATUS_PRESENTATION: Record<DeployTargetStatus, DeployStatusPresent
className: 'bg-amber-100 text-amber-700 dark:bg-amber-900 dark:text-amber-300',
},
skipped_license: {
- label: 'License limit',
+ label: 'Workspace capacity',
className: 'bg-amber-100 text-amber-700 dark:bg-amber-900 dark:text-amber-300',
},
canceled: { label: 'Canceled', className: 'bg-surface-alt text-muted' },
diff --git a/frontend-modern/src/utils/licensePresentation.ts b/frontend-modern/src/utils/licensePresentation.ts
index 169f85a12c..51949c5d9c 100644
--- a/frontend-modern/src/utils/licensePresentation.ts
+++ b/frontend-modern/src/utils/licensePresentation.ts
@@ -186,6 +186,9 @@ export const getDisplayableMonitoredSystemContinuity = ({
if (hasActiveUncappedSelfHostedContinuity({ planVersion, isLifetime, subscriptionState })) {
return null;
}
+ if (typeof continuity.effective_limit === 'number' && continuity.effective_limit <= 0) {
+ return null;
+ }
return continuity;
};
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 85c08cc282..9c5c70607f 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -12006,6 +12006,20 @@ func TestContract_BootstrapTokenValidationRateLimitsPerClient(t *testing.T) {
}
}
+func TestContract_DeployCapacityDenialUsesWorkspaceCapacityCopy(t *testing.T) {
+ source, err := os.ReadFile("deploy_handlers.go")
+ if err != nil {
+ t.Fatalf("read deploy handlers: %v", err)
+ }
+ text := string(source)
+ if !strings.Contains(text, `"No workspace capacity available for retry"`) {
+ t.Fatal("deploy retry capacity denial must use workspace-capacity copy")
+ }
+ if strings.Contains(text, "No license slots available") {
+ t.Fatal("deploy retry capacity denial must not surface legacy license-slot copy")
+ }
+}
+
func mustStreamEvent(t *testing.T, eventType string, data interface{}) chat.StreamEvent {
t.Helper()
diff --git a/internal/api/deploy_handlers.go b/internal/api/deploy_handlers.go
index 4db02451b6..a7fabfba37 100644
--- a/internal/api/deploy_handlers.go
+++ b/internal/api/deploy_handlers.go
@@ -1090,7 +1090,7 @@ func (h *DeployHandlers) HandleCreateJob(w http.ResponseWriter, r *http.Request)
acceptedPfTargets = append(acceptedPfTargets, pfTgt)
}
- // License slot check.
+ // Workspace capacity check.
maxLimit := maxMonitoredSystemsLimitForContext(ctx)
if maxLimit > 0 {
decision := monitoredSystemLimitDecisionForAdditionalSlots(ctx, h.monitor, 0)
@@ -1222,10 +1222,10 @@ func (h *DeployHandlers) HandleCreateJob(w http.ResponseWriter, r *http.Request)
return
}
- // Reserve license slots based on actual dispatched target count.
+ // Reserve workspace capacity based on actual dispatched target count.
if err := h.reservation.Reserve(jobID, orgID, len(installTargets), 1*time.Hour); err != nil {
- log.Error().Err(err).Str("job_id", jobID).Msg("Failed to reserve license slots")
- // Non-fatal — continue. The reservation is for proactive slot tracking.
+ log.Error().Err(err).Str("job_id", jobID).Msg("Failed to reserve workspace capacity")
+ // Non-fatal — continue. The reservation is for proactive capacity tracking.
}
// Transition to running.
@@ -1590,7 +1590,7 @@ func (h *DeployHandlers) HandleRetryJob(w http.ResponseWriter, r *http.Request)
return
}
- // License slot re-check.
+ // Workspace capacity re-check.
maxLimit := maxMonitoredSystemsLimitForContext(ctx)
if maxLimit > 0 {
decision := monitoredSystemLimitDecisionForAdditionalSlots(ctx, h.monitor, 0)
@@ -1607,7 +1607,7 @@ func (h *DeployHandlers) HandleRetryJob(w http.ResponseWriter, r *http.Request)
}
if len(retryTargets) == 0 {
writeErrorResponse(w, http.StatusConflict, "license_limit",
- "No license slots available for retry", nil)
+ "No workspace capacity available for retry", nil)
return
}
}
@@ -1685,9 +1685,9 @@ func (h *DeployHandlers) HandleRetryJob(w http.ResponseWriter, r *http.Request)
return
}
- // Reserve license slots based on actual dispatch count (after token minting).
+ // Reserve workspace capacity based on actual dispatch count (after token minting).
if err := h.reservation.Reserve(jobID+"-retry", orgID, len(installTargets), 1*time.Hour); err != nil {
- log.Warn().Err(err).Str("job_id", jobID).Msg("Failed to reserve license slots for retry")
+ log.Warn().Err(err).Str("job_id", jobID).Msg("Failed to reserve workspace capacity for retry")
}
// Append retry event.
diff --git a/internal/api/deploy_handlers_test.go b/internal/api/deploy_handlers_test.go
index 1ec01de309..765f8150c1 100644
--- a/internal/api/deploy_handlers_test.go
+++ b/internal/api/deploy_handlers_test.go
@@ -1035,7 +1035,7 @@ func TestHandleCreateJob_Success(t *testing.T) {
t.Fatalf("expected 0 skipped targets, got %d", len(resp.SkippedTargets))
}
if resp.ReservedLicenseSlots != 2 {
- t.Fatalf("expected 2 reserved license slots, got %d", resp.ReservedLicenseSlots)
+ t.Fatalf("expected 2 reserved workspace capacity slots, got %d", resp.ReservedLicenseSlots)
}
if resp.EventsURL == "" {
t.Fatal("expected non-empty eventsUrl")
@@ -1224,7 +1224,7 @@ func TestHandleCreateJob_TruncatesTargetsToAvailableLicenseSlots(t *testing.T) {
t.Fatalf("expected deterministic accepted node_pve-b, got %q", resp.AcceptedTargets[0])
}
if resp.ReservedLicenseSlots != 1 {
- t.Fatalf("expected 1 reserved license slot, got %d", resp.ReservedLicenseSlots)
+ t.Fatalf("expected 1 reserved workspace capacity slot, got %d", resp.ReservedLicenseSlots)
}
if len(resp.SkippedTargets) != 1 {
t.Fatalf("expected 1 skipped target, got %d", len(resp.SkippedTargets))
diff --git a/internal/deploy/reservation.go b/internal/deploy/reservation.go
index 32eaf5b90e..eea1c79636 100644
--- a/internal/deploy/reservation.go
+++ b/internal/deploy/reservation.go
@@ -6,13 +6,13 @@ import (
"time"
)
-// ReservationManager tracks license slot reservations for in-flight deployments.
+// ReservationManager tracks monitored-system capacity reservations for in-flight deployments.
type ReservationManager struct {
mu sync.Mutex
reservations map[string]*Reservation
}
-// Reservation represents a set of license slots reserved for a deployment job.
+// Reservation represents capacity reserved for a deployment job.
type Reservation struct {
JobID string
OrgID string
@@ -28,7 +28,7 @@ func NewReservationManager() *ReservationManager {
}
}
-// Reserve allocates license slots for a deployment job. Returns an error if
+// Reserve allocates monitored-system capacity for a deployment job. Returns an error if
// the job already has a reservation.
func (rm *ReservationManager) Reserve(jobID, orgID string, slots int, ttl time.Duration) error {
rm.mu.Lock()
diff --git a/pkg/licensing/host_lifecycle.go b/pkg/licensing/host_lifecycle.go
index 54d48050f1..d3f6bcbc58 100644
--- a/pkg/licensing/host_lifecycle.go
+++ b/pkg/licensing/host_lifecycle.go
@@ -2,14 +2,14 @@
//
// HostLifecycleTracker implements the v6 host counting rules:
//
-// - H2: A host is only counted toward the license limit after 10+ minutes
-// of stable heartbeat (prevents transient connections from consuming slots).
+// - H2: A host is only counted toward monitored-system capacity after 10+
+// minutes of stable heartbeat (prevents transient connections from consuming capacity).
// - H3: A host slot is released after 72 hours of inactivity (no heartbeat).
//
// Wiring instructions:
//
// - node_limit.go should call tracker.StableActiveHosts() to filter which
-// hosts count toward the license limit, instead of counting all hosts
+// hosts count toward monitored-system capacity, instead of counting all hosts
// unconditionally.
// - The monitor's update loop (where host heartbeats arrive) should call
// tracker.RecordHeartbeat(hostID) on every heartbeat.
@@ -31,7 +31,7 @@ import (
const (
// HostStabilizationPeriod is the minimum duration of heartbeats before a
- // host is considered "stable" and counted toward the license limit.
+ // host is considered "stable" and counted toward monitored-system capacity.
HostStabilizationPeriod = 10 * time.Minute
// HostInactivityTimeout is the duration after which a host with no
diff --git a/pkg/licensing/host_lifecycle_test.go b/pkg/licensing/host_lifecycle_test.go
index 40dfcb39bb..e2ac7317b0 100644
--- a/pkg/licensing/host_lifecycle_test.go
+++ b/pkg/licensing/host_lifecycle_test.go
@@ -55,7 +55,7 @@ func TestNewHostIsNotStable(t *testing.T) {
}
}
-func TestHostBecomesStableAfter10Min(t *testing.T) {
+func TestHostBecomesCapacityEligibleAfter10Min(t *testing.T) {
clock := newTestClock(time.Date(2026, 1, 1, 0, 0, 0, 0, time.UTC))
tracker := newTestTracker(clock)
diff --git a/pkg/licensing/monitored_system_limit.go b/pkg/licensing/monitored_system_limit.go
index 7b9f9bab29..1ed6a117d6 100644
--- a/pkg/licensing/monitored_system_limit.go
+++ b/pkg/licensing/monitored_system_limit.go
@@ -22,7 +22,7 @@ func ExceedsMonitoredSystemLimit(current, additions, limit int) bool {
}
func MonitoredSystemLimitExceededMessage(current, limit int) string {
- return fmt.Sprintf("Monitored system limit reached (%d/%d). Remove a monitored system or upgrade your plan.", current, limit)
+ return fmt.Sprintf("Monitored-system capacity reached (%d/%d). Remove a monitored system before adding more.", current, limit)
}
// InstalledUnifiedAgentCount returns the number of installed Pulse Unified
diff --git a/pkg/licensing/monitored_system_limit_test.go b/pkg/licensing/monitored_system_limit_test.go
index cce9d64be2..e924c03144 100644
--- a/pkg/licensing/monitored_system_limit_test.go
+++ b/pkg/licensing/monitored_system_limit_test.go
@@ -35,7 +35,7 @@ func TestExceedsMonitoredSystemLimit(t *testing.T) {
func TestMonitoredSystemLimitExceededMessage(t *testing.T) {
got := MonitoredSystemLimitExceededMessage(6, 5)
- want := "Monitored system limit reached (6/5). Remove a monitored system or upgrade your plan."
+ want := "Monitored-system capacity reached (6/5). Remove a monitored system before adding more."
if got != want {
t.Fatalf("expected %q, got %q", want, got)
}
diff --git a/tests/integration/tests/21-truenas-settings-platform-connections.spec.ts b/tests/integration/tests/21-truenas-settings-platform-connections.spec.ts
index 52ad47df60..351bd8dfff 100644
--- a/tests/integration/tests/21-truenas-settings-platform-connections.spec.ts
+++ b/tests/integration/tests/21-truenas-settings-platform-connections.spec.ts
@@ -826,7 +826,7 @@ test.describe("TrueNAS platform connections settings", () => {
contentType: "application/json",
body: JSON.stringify({
error: "license_required",
- message: "Monitored-system limit reached (10/9)",
+ message: "Monitored-system capacity reached (10/9)",
feature: "max_monitored_systems",
monitored_system_preview: {
current_count: 9,
diff --git a/tests/integration/tests/22-vmware-settings-platform-connections.spec.ts b/tests/integration/tests/22-vmware-settings-platform-connections.spec.ts
index 4898cd7f21..e7a70eb459 100644
--- a/tests/integration/tests/22-vmware-settings-platform-connections.spec.ts
+++ b/tests/integration/tests/22-vmware-settings-platform-connections.spec.ts
@@ -1136,7 +1136,7 @@ test.describe("VMware platform connections settings", () => {
contentType: "application/json",
body: JSON.stringify({
error: "license_required",
- message: "Monitored-system limit reached (7/6)",
+ message: "Monitored-system capacity reached (7/6)",
feature: "max_monitored_systems",
monitored_system_preview: {
current_count: 5,