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.

Reframe Patrol page copy as proactive intelligence, not runtime control

rcourtman1088ffe12643
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 1e86d7bbc9..7ba091103a 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -1049,7 +1049,16 @@ the canonical monitored-system blocked payload.
you" instead of generic auto-detection copy, while keeping Patrol's
own fix outcomes (`fix_verified`, `fix_executed`, `resolved`)
priority because those describe Pulse's actual remediation rather
- than mere auto-detection
+ than mere auto-detection.
+ The canonical Patrol page header copy is owned by the
+ patrol-intelligence subsystem and must consume from
+ `frontend-modern/src/utils/patrolPagePresentation.ts`. The
+ `PatrolIntelligenceHeader` shell on the Patrol API surface reads
+ the title, description, and title tooltip from
+ `getPatrolPageHeaderMeta()` rather than carrying inline copy, so the
+ operator-facing framing of what Patrol does (proactive
+ investigation, evidence capture, governed action) stays tied to the
+ contract instead of drifting between hover and inline
and the Assistant finding-context request contract, so `/api/ai/chat`
payloads carrying `finding_id` may hydrate a structured investigation
summary from the unified finding, but raw proposed-fix commands must stay
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 593487d3da..488c81c169 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -1247,6 +1247,14 @@ prompt explain the same operator-facing priority.
## Current State
+The Patrol page header copy lives in a single canonical helper at
+`frontend-modern/src/utils/patrolPagePresentation.ts`. The page-title
+tooltip on `PatrolIntelligenceHeader.tsx` must read from
+`PATROL_PAGE_TITLE_TOOLTIP` exported alongside the description rather
+than carrying an inline copy, so hover and inline never drift apart on
+what Patrol actually does (proactive investigation, evidence capture,
+governed action under operator approval).
+
`frontend-modern/src/utils/discoveryPresentation.ts` owns resource discovery
command guidance targets. Discovery surfaces that need to tell operators where
to enable command execution or verify `agent:exec` scope must use that helper's
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index 5ee919e8a0..65b54a0236 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -1133,3 +1133,14 @@ than "auto-resolved" when the operator clicked Mark resolved
themselves. Patrol-driven fix outcomes keep their existing copy because
those describe Pulse's actual remediation, which is more specific than
mere auto-detection.
+The Patrol page header copy must also name the trust loop the surface
+owns end-to-end, not the runtime controls it happens to embed. The
+canonical `PATROL_PAGE_DESCRIPTION` (and the matching
+`PATROL_PAGE_TITLE_TOOLTIP`) state that "Pulse investigates your
+infrastructure, gathers evidence for every finding, and proposes safe
+fixes under your approval policy" — the proactive-intelligence framing
+described in the Pulse Intelligence vision (investigation +
+explanation + governed action). The tooltip on the page-header title
+must read the same string from the canonical helper rather than
+maintaining a parallel copy, so hover and inline never tell different
+stories about what Patrol does.
diff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
index 52fa0ba87e..d44cac904c 100644
--- a/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceHeader.tsx
@@ -72,10 +72,7 @@ export function PatrolIntelligenceHeader(props: { state: PatrolIntelligenceState
id="patrol-title"
description={headerMeta.description}
title={
- <span
- class="inline-flex items-center gap-3"
- title="Pulse Patrol continuously verifies your infrastructure, surfaces actionable findings, and can automatically fix issues based on your autonomy settings."
- >
+ <span class="inline-flex items-center gap-3" title={headerMeta.titleTooltip}>
<PulsePatrolLogo class="w-6 h-6 text-base-content" decorative />
<span>{headerMeta.title}</span>
</span>
diff --git a/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts b/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts
index 03d01ccecb..a15628314a 100644
--- a/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts
+++ b/frontend-modern/src/features/patrol/__tests__/patrolInvestigationContextModel.test.ts
@@ -1625,3 +1625,27 @@ describe('patrolInvestigationContextModel', () => {
});
});
});
+
+describe('Patrol page header IA framing', () => {
+ it('names the proactive trust loop on the canonical Patrol surface', async () => {
+ // The Patrol page header is the most visible piece of operator-facing
+ // copy on the canonical Patrol surface. The IA reframe replaces the
+ // prior passive "verify, review, control" framing with one that names
+ // the loop the page actually owns: investigate, capture evidence,
+ // propose safe fixes under approval. Pin the wording on the canonical
+ // helper from the patrol-intelligence subsystem so a refactor cannot
+ // silently drop the framing or split the tooltip from the description.
+ const { getPatrolPageHeaderMeta, PATROL_PAGE_DESCRIPTION, PATROL_PAGE_TITLE_TOOLTIP } =
+ await import('@/utils/patrolPagePresentation');
+ expect(PATROL_PAGE_DESCRIPTION).toContain('Pulse investigates your infrastructure');
+ expect(PATROL_PAGE_DESCRIPTION).toContain('gathers evidence');
+ expect(PATROL_PAGE_DESCRIPTION).toContain('proposes safe fixes');
+ expect(PATROL_PAGE_DESCRIPTION).toContain('approval policy');
+ expect(PATROL_PAGE_TITLE_TOOLTIP).toBe(PATROL_PAGE_DESCRIPTION);
+ expect(getPatrolPageHeaderMeta()).toMatchObject({
+ title: 'Patrol',
+ description: PATROL_PAGE_DESCRIPTION,
+ titleTooltip: PATROL_PAGE_DESCRIPTION,
+ });
+ });
+});
diff --git a/frontend-modern/src/utils/__tests__/patrolPagePresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolPagePresentation.test.ts
index ace1d7c49a..eccf7d037b 100644
--- a/frontend-modern/src/utils/__tests__/patrolPagePresentation.test.ts
+++ b/frontend-modern/src/utils/__tests__/patrolPagePresentation.test.ts
@@ -2,19 +2,30 @@ import { describe, expect, it } from 'vitest';
import {
PATROL_PAGE_DESCRIPTION,
PATROL_PAGE_TITLE,
+ PATROL_PAGE_TITLE_TOOLTIP,
getPatrolPageHeaderMeta,
} from '@/utils/patrolPagePresentation';
describe('patrolPagePresentation', () => {
- it('returns canonical Patrol page header metadata', () => {
+ it('returns canonical Patrol page header metadata that names the proactive trust loop', () => {
+ // The page header is the most visible piece of operator-facing copy on
+ // the Patrol surface. It must name the loop the page actually owns —
+ // investigation, evidence capture, governed action — instead of the
+ // prior passive "verify, review, control" framing. Pin the exact
+ // wording so the IA reframe doesn't silently regress.
expect(PATROL_PAGE_TITLE).toBe('Patrol');
expect(PATROL_PAGE_DESCRIPTION).toBe(
- 'Continuously verify infrastructure health, review findings, and control Patrol runtime behavior.',
+ 'Pulse investigates your infrastructure, gathers evidence for every finding, and proposes safe fixes under your approval policy.',
);
+ // Tooltip must share the same framing so hover and inline don't tell
+ // different stories about what Patrol does.
+ expect(PATROL_PAGE_TITLE_TOOLTIP).toBe(PATROL_PAGE_DESCRIPTION);
expect(getPatrolPageHeaderMeta()).toEqual({
title: 'Patrol',
description:
- 'Continuously verify infrastructure health, review findings, and control Patrol runtime behavior.',
+ 'Pulse investigates your infrastructure, gathers evidence for every finding, and proposes safe fixes under your approval policy.',
+ titleTooltip:
+ 'Pulse investigates your infrastructure, gathers evidence for every finding, and proposes safe fixes under your approval policy.',
});
});
});
diff --git a/frontend-modern/src/utils/patrolPagePresentation.ts b/frontend-modern/src/utils/patrolPagePresentation.ts
index adf8d5bb6f..a6d4e133c5 100644
--- a/frontend-modern/src/utils/patrolPagePresentation.ts
+++ b/frontend-modern/src/utils/patrolPagePresentation.ts
@@ -1,10 +1,21 @@
export const PATROL_PAGE_TITLE = 'Patrol';
+// Page description names the trust loop the surface owns end-to-end:
+// investigate the infrastructure, capture evidence, propose safe fixes
+// under operator approval. Replaces the prior "verify health, review
+// findings, control runtime" copy, which framed the page as a passive
+// monitoring console rather than the proactive-intelligence engine
+// described in the Pulse Intelligence vision (investigation +
+// explanation + governed action).
export const PATROL_PAGE_DESCRIPTION =
- 'Continuously verify infrastructure health, review findings, and control Patrol runtime behavior.';
+ 'Pulse investigates your infrastructure, gathers evidence for every finding, and proposes safe fixes under your approval policy.';
+// Tooltip on the page title; shares the same framing as the description so
+// hover and inline copy don't tell different stories about what Patrol does.
+export const PATROL_PAGE_TITLE_TOOLTIP = PATROL_PAGE_DESCRIPTION;
export function getPatrolPageHeaderMeta() {
return {
title: PATROL_PAGE_TITLE,
description: PATROL_PAGE_DESCRIPTION,
+ titleTooltip: PATROL_PAGE_TITLE_TOOLTIP,
} as const;
}