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
Make Patrol recommendation prompts action-aware
rcourtman825f230decd9
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 1afe9f80c6..1e72b1210b 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -2028,7 +2028,9 @@ hrefs when the browser handoff already owns that route. Frontend-visiblePatrol assessment briefings may render those same safe recommendation fields asseparate title, reason, and route-action facts, but they must not introduce newbrowser-owned authority beyond the structured handoff metadata and bounded-chat context.+chat context. Browser-visible suggested prompts may follow the structured+recommendation action, such as provider-settings recovery for runtime+visibility failures, while remaining review prompts rather than API authority.Frontend handoff builders may send these fields for owned alert, incident,Patrol assessment, Patrol finding, or Patrol run-history context, but thebackend must notdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex d1ebd00f76..966c791b26 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -964,8 +964,10 @@ prompt explain the same operator-facing priority.available. Assessment recommendation briefings must keep the saferecommendation title, reason, and route-owned action as separate visibledrawer facts so the shared Assistant shell presents operator guidance- without parsing a compressed context sentence. Finding-level drawer opens- may also pass one bounded+ without parsing a compressed context sentence. The same feature helper owns+ recommendation-aware suggested prompts; shared drawer primitives must render+ those prompts without replacing a provider-settings recovery path with+ generic coverage wording. Finding-level drawer opens may also pass one boundedmodel-only finding context, one target resource reference, one saferoute-owned next-step action label/href, and one `handoff_actions` referencefor a live approval or proposed fix. It must not expose raw command ordiff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 3a93e1291f..343ef13ef1 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -279,7 +279,10 @@ Patrol-specific presentation helpers.use them for restored drawer copy without receiving the private model-onlyhandoff context. Assessment Assistant drawer briefings must present the saferecommended step title, reason, and route-owned action as separate operator- facts instead of compressing them into an opaque context sentence.+ facts instead of compressing them into an opaque context sentence, and the+ suggested prompts must follow the structured recommendation action so+ provider-setting/runtime-visibility failures lead with provider checks and+ post-restore verification rather than generic coverage questions.When the current Patrol assessment is coverage-incomplete with no activeinfrastructure finding, the same handoff model must frame the briefing as averification gap: the prompt leads with what scoped activity did and did notdiff --git a/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts b/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.tsindex fbdab1f2a3..0644e0b031 100644--- a/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts+++ b/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts@@ -471,6 +471,11 @@ describe('patrolInvestigationContextModel', () => {expect(handoff.context.briefing).toMatchObject({actionLabel: 'Recommended: Open Patrol provider settings',actionHref: '/settings/system-ai',+ suggestedPrompts: [+ 'Explain why Patrol visibility is blocked',+ 'What should I check in provider settings?',+ 'What should I verify after restoring Patrol?',+ ],});expect(handoff.context.briefing?.detailLines).toEqual(expect.arrayContaining([diff --git a/frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts b/frontend-modern/src/features/patrol/patrolInvestigationContextModel.tsindex 1a6c333b04..4e66bb12a9 100644--- a/frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts+++ b/frontend-modern/src/features/patrol/patrolInvestigationContextModel.ts@@ -1076,6 +1076,15 @@ function buildPatrolAssessmentSuggestedPrompts(normalized.correlations.length > 0 ||input.investigationContext?.hasContext === true;const hasGovernedAction = normalized.findings.some(assessmentFindingHasGovernedAction);+ const recommendedNextStep = normalizeAssessmentRecommendedNextStep(input.recommendedNextStep);++ if (recommendedNextStep?.actionKind === 'open_provider_settings') {+ return formatPatrolSuggestedPrompts([+ 'Explain why Patrol visibility is blocked',+ 'What should I check in provider settings?',+ 'What should I verify after restoring Patrol?',+ ]);+ }if (activeFindingCount > 0) {prompts.push('Prioritize findings and safest next step');