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
Require approval mode for alert Assistant investigations
rcourtmanf177d1654516
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.mdindex 0af07d5d22..46a92d5f9c 100644--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@ -79,6 +79,7 @@ operator-facing alert routing behavior for live runtime alerts.57. `internal/alerts/tracking_cleanup.go`58. `internal/alerts/active_lifecycle.go`59. `internal/alerts/active_cleanup.go`+60. `frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx`## Shared Boundaries@@ -102,6 +103,11 @@ operator-facing alert routing behavior for live runtime alerts.`frontend-modern/src/stores/alertsActivation.ts` so browser display colorsconsume the same configured alert thresholds and override identity chain asthe alert runtime instead of hard-coded per-surface thresholds.+7. Add or change unlocked Pulse Assistant alert investigation handoffs through+ `frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx`; these+ handoffs must preserve alert context, force request-scoped approval mode,+ and must not instruct the Assistant to execute diagnostics or remediation+ without operator approval.## Forbidden Paths@@ -353,6 +359,11 @@ suppression policy: when `presentationPolicy.hideUpgrade` is true, a lockedalert-investigation action may remain visibly unavailable, but it must notshow Pro-required tooltip copy, track upgrade clicks, or open the commercialhandoff route.+Unlocked alert-investigation Assistant handoffs are contextual explanation and+triage entries, not autonomous execution grants. `InvestigateAlertButton.tsx`+must pass `autonomousMode: false` when it opens Pulse Assistant, and the seeded+prompt may ask for root-cause analysis, metrics checks, and remediation advice+only if command or change execution remains explicitly approval-bound.Alert-adjacent shared helpers also inherit the runtime-versus-commercial splitnow carried by the shared licensing stores. Alert pages may consume runtimefeature truth from `frontend-modern/src/stores/license.ts`, but anydiff --git a/frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx b/frontend-modern/src/components/Alerts/InvestigateAlertButton.tsxindex 20dec2dc43..ec4cc33a91 100644--- a/frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx+++ b/frontend-modern/src/components/Alerts/InvestigateAlertButton.tsx@@ -74,7 +74,7 @@ Please:1. Identify the root cause2. Check related metrics3. Suggest specific remediation steps-4. Execute diagnostic commands if safe`;+4. Ask for operator approval before running any diagnostic command or change`;const targetType = resolveAlertTargetType({alertType: props.alert.type,@@ -90,6 +90,7 @@ Please:aiChatStore.openWithPrompt(prompt, {targetType,targetId: props.alert.resourceId,+ autonomousMode: false,context: {alertIdentifier: getCanonicalAlertId(props.alert),alertType: props.alert.type,diff --git a/frontend-modern/src/components/Alerts/__tests__/InvestigateAlertButton.test.tsx b/frontend-modern/src/components/Alerts/__tests__/InvestigateAlertButton.test.tsxindex 2f5e7c7cc7..43d9f19ad5 100644--- a/frontend-modern/src/components/Alerts/__tests__/InvestigateAlertButton.test.tsx+++ b/frontend-modern/src/components/Alerts/__tests__/InvestigateAlertButton.test.tsx@@ -293,6 +293,7 @@ describe('InvestigateAlertButton', () => {expect(context).toMatchObject({targetType: 'vm',targetId: 'vm-101',+ autonomousMode: false,context: {alertIdentifier: 'alert-1',alertType: 'cpu',@@ -304,6 +305,21 @@ describe('InvestigateAlertButton', () => {});});+ it('keeps alert investigation handoffs approval-required and command-free', async () => {+ const alert = makeAlert();+ render(() => <InvestigateAlertButton alert={alert} />);+ await fireEvent.click(screen.getByRole('button'));++ const [prompt, context] = openWithPromptMock.mock.calls[0] as [+ string,+ Record<string, unknown>,+ ];++ expect(context.autonomousMode).toBe(false);+ expect(prompt).toContain('Ask for operator approval before running any diagnostic command');+ expect(prompt).not.toContain('Execute diagnostic commands if safe');+ });+it('does not open the upgrade destination when unlocked', async () => {render(() => <InvestigateAlertButton alert={makeAlert()} />);await fireEvent.click(screen.getByRole('button'));