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 misleading incident learning metric

rcourtmane9dbe3fddb18
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 1e5aa3215c..c715ff6fcb 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -77,7 +77,7 @@ Own canonical runtime payload shapes between backend and frontend.
5. Route unified-resource action, lifecycle, and export audit reads through `internal/api/activity_audit_handlers.go`, `internal/api/router_routes_licensing.go`, and `internal/api/contract_test.go` together so the control-plane execution trail stays on a governed API contract instead of a store-only shape
6. Route dedicated unified-resource timeline and facet-bundle reads through `frontend-modern/src/api/resources.ts`, `internal/api/resources.go`, and `internal/api/contract_test.go` together so the backend facet contract and the frontend client stay aligned on one timeline-first surface, while capability and relationship detail stays backend-owned for AI correlation and change detection
7. Route canonical AI intelligence summary and resource-intelligence reads through `frontend-modern/src/api/ai.ts`, `frontend-modern/src/stores/aiIntelligence.ts`, `frontend-modern/src/pages/AIIntelligence.tsx`, `internal/api/ai_handlers.go`, and `internal/api/contract_test.go` together so the summary card, store state, and backend payload stay aligned on one governed surface, including the canonical recent-changes slice
- and the derived signal coverage block beneath it, so the summary page keeps the timeline and learned-correlation story primary rather than presenting the supporting counts as a separate product metric
+ and the derived signal coverage block beneath it, so the summary page keeps the timeline and learned-correlation story primary rather than presenting the supporting counts as a separate product metric or a fake incident counter
and the shared `frontend-modern/src/components/Infrastructure/ResourceChangeSummary.tsx` card, so canonical recent-change timelines stay rendered through one governed frontend card instead of separate page-local list loops
and the shared `frontend-modern/src/utils/resourceChangePresentation.ts` formatter used by the summary page and resource drawer, so canonical change wording does not drift across surfaces
and the `/api/ai/intelligence/changes` route plus `internal/api/contract_test.go`, so the canonical recent-changes endpoint stays on the same intelligence facade and contract snapshot instead of bypassing the shared timeline source
diff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
index 27d8fc5327..1f0f9b7d67 100644
--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md
@@ -117,7 +117,8 @@ through the governed AI client and store, so the visible page summary and the
resource/timeline sections stay aligned on the same shared backend slice.
That same summary card now keeps the learning block framed as derived signal
coverage beneath the timeline and learned-correlation sections, so the page
-does not present the supporting counts as the main intelligence story.
+does not present the supporting counts as the main intelligence story or
+surface incident tracking as a pretend learning metric.
That Patrol summary card now also includes the canonical data-governance
posture snapshot from the shared AI summary payload, so the visible page can
show the same sensitivity, routing, and redaction distribution that the
diff --git a/frontend-modern/src/pages/AIIntelligence.tsx b/frontend-modern/src/pages/AIIntelligence.tsx
index 1a144f25b1..1991baefaf 100644
--- a/frontend-modern/src/pages/AIIntelligence.tsx
+++ b/frontend-modern/src/pages/AIIntelligence.tsx
@@ -1289,8 +1289,8 @@ export function AIIntelligence() {
</span>
</div>
<p class="mt-1 text-xs text-muted">
- Coverage from baselines, knowledge, patterns, learned correlations,
- incidents, and predictions.
+ Coverage from baselines, knowledge, patterns, learned correlations, and
+ predictions.
</p>
<dl class="mt-3 grid grid-cols-2 gap-2 text-sm">
@@ -1318,12 +1318,6 @@ export function AIIntelligence() {
{summary().learning.correlations_learned}
</dd>
</div>
- <div class="rounded-md bg-surface px-3 py-2">
- <dt class="text-xs uppercase tracking-wide text-muted">Incidents</dt>
- <dd class="mt-1 font-semibold text-base-content">
- {summary().learning.incidents_tracked}
- </dd>
- </div>
<div class="rounded-md bg-surface px-3 py-2">
<dt class="text-xs uppercase tracking-wide text-muted">Predictions</dt>
<dd class="mt-1 font-semibold text-base-content">
diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx
index 6d63e8242c..b31dd918dd 100644
--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx
+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx
@@ -599,7 +599,7 @@ describe('AIIntelligence entitlement gating', () => {
expect(screen.getByText('Derived signal coverage')).toBeInTheDocument();
expect(
screen.getByText(
- /Coverage from baselines, knowledge, patterns, learned correlations, incidents, and predictions\./,
+ /Coverage from baselines, knowledge, patterns, learned correlations, and predictions\./,
),
).toBeInTheDocument();
expect(screen.getByText('Data Governance')).toBeInTheDocument();