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
Refine Patrol assessment card shell
rcourtmanf19574f8b3cf
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex 662717164d..d6461b56e9 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -140,6 +140,7 @@ Own canonical runtime payload shapes between backend and frontend.while keeping the learning counters backend-only coverage, so the summary page keeps Patrol health and findings primary and renders timeline, correlation, and policy-posture data as secondary investigation context rather than as a separate headline product metricand the Patrol findings empty-state behavior, so `0 active findings` only renders as a healthy frontend conclusion when the same governed AI summary contract still reports healthy overall health; degraded or not-fully-verified health predictions must flow through to the Patrol findings surface instead of being replaced by page-local "looks healthy" copyand the Patrol assessment headline plus compact summary-strip behavior, so the same governed AI summary contract decides whether the page leads with verified health, issues detected, coverage incomplete, or another attention state instead of letting count-only page fragments emit a stale `No issues found` conclusion+ and the Patrol summary shell treatment itself, so the same governed summary contract still lands inside the shared neutral page-card base while severity travels through compact header accents and icon badges instead of a page-local full-width semantic backgroundand the Patrol verification summary derived from run history, so the page also states whether recent Patrol evidence came from a successful full patrol or only from scoped/erroring runs instead of leaving verification scope implicitand the same-day activity-mix explanation derived from that governed run history, so when a recent full patrol is followed by alert-triggered or anomaly-triggered scoped work the verification surface can explain the mix directly instead of reconstructing it from page-local timing heuristicsand the Patrol status recency split, so `last_patrol_at` remains reserved for completed full Patrol sweeps while scoped runs and verification checks advance `last_activity_at` without claiming a fresh full-estate verification pass@@ -172,19 +173,6 @@ Own canonical runtime payload shapes between backend and frontend.20. Keep hosted billing-state quickstart payload fields on the shared API contract: `internal/api/hosted_entitlement_refresh.go`, `internal/api/subscription_state_handlers.go`, and `internal/api/contract_test.go` must preserve `quickstart_credits_granted`, `quickstart_credits_used`, and `quickstart_credits_granted_at` through hosted signup, hosted lease refresh, and billing-state reads instead of letting lease rewrites silently erase seeded quickstart inventory.21. Keep hosted AI settings bootstrap on the shared API contract: `internal/api/ai_hosted_runtime.go`, `internal/api/ai_handlers.go`, `internal/api/ai_handler.go`, and `internal/api/contract_test.go` must treat a missing `ai.enc` in hosted mode as a canonical bootstrap condition, persist one machine-owned quickstart-backed AI config when hosted entitlements grant AI capability, and preserve that configured settings payload as the same public contract that Chat, Patrol, and AI Settings consume.22. Keep post-boot AI enablement contract-backed on the shared AI/mobile approval surface: `internal/api/ai_handler.go`, `internal/api/ai_handlers.go`, `internal/api/router_routes_ai_relay.go`, and `internal/api/contract_test.go` must turn the governed approvals-list API into the canonical empty-list payload as soon as settings-driven AI enablement succeeds, rather than leaving that surface on `503 Approval store not initialized` until some separate startup-only side effect happens.-23. Keep legacy top-level TrueNAS compatibility on the shared frontend resource- adapters only. Frontend API consumers may accept a raw `truenas` payload- only through shared compatibility normalization that rewrites it to a- canonical `agent` resource with `platformType: 'truenas'`; API-backed- settings surfaces such as token management must not branch on- `resource.type === 'truenas'` as a second runtime contract.-24. Keep AI transport compatibility-only TrueNAS aliases normalized at the- handler boundary. `internal/api/ai_handler.go` and- `internal/api/ai_handlers.go` may accept legacy `truenas` mention or- `resource_type` inputs only by collapsing them immediately to the- canonical `agent` host type; downstream runtime requests, tests, and- frontend clients must not treat raw `truenas` as a second AI transport- contract.## Forbidden Paths@@ -231,7 +219,6 @@ Own canonical runtime payload shapes between backend and frontend.14. Keep recovery platform-query vocabulary canonical across that same `/api/recovery/*` surface: operator-facing transport must emit `platform` as the canonical query field, accepted legacy `provider` aliases must remain compatibility-only input, and `internal/api/contract_test.go` must pin that fallback behavior in the same slice as any handler change15. Keep recovery payload platform vocabulary canonical across that same `/api/recovery/*` surface: point payloads must expose `platform`, rollup payloads must expose `platforms`, and any compatibility `provider` / `providers` aliases must remain secondary fallback fields rather than replacing the shared response model16. Keep recovery linked-resource vocabulary canonical across that same `/api/recovery/*` surface: points and rollups must expose `itemResourceId` as the canonical linked-resource field, accepted legacy `subjectResourceId` aliases must remain compatibility-only input or secondary payload fields, and the shared proof surface must pin that normalization in the same slice as any handler change-17. Keep Patrol run-history payload taxonomy canonical across `/api/ai/patrol/runs` and `/api/ai/patrol/runs/:id`: run records must expose `truenas_checked` as a first-class count when API-backed TrueNAS systems were scanned, and the frontend Patrol client may only coerce missing historical values to `0` as compatibility normalization for older persisted runs, not as a replacement for the canonical backend field.17. Keep recovery external item-reference vocabulary canonical across that same `/api/recovery/*` surface: point and rollup payloads must expose `itemRef` as the canonical external item-reference field, accepted legacy `subjectRef` aliases must remain compatibility-only secondary payload fields, and the shared proof surface must pin that normalization in the same slice as any handler change18. Keep first-host lookup completion explicit on the shared install-state APIboundary: when@@ -299,13 +286,6 @@ Own canonical runtime payload shapes between backend and frontend.`bootstrapTokenPath`, and allows browser-owned first-session proof tore-enter the real setup wizard instead of silently falling back to anauthenticated dashboard state.-25. Keep platform transport vocabulary aligned with- `docs/release-control/v6/internal/PLATFORM_SUPPORT_MODEL.md`. Presentation- keys, future-label helpers, recovery provider strings, and- connected-infrastructure surface kinds may carry forward-compatible- vocabulary, but they must not be treated as admitting a new first-class- platform until that model, the owning contracts, and the applicable proof- surfaces change together.22. Keep shared SSO test and metadata-preview transport fail-closed: SAMLmetadata URLs and OIDC issuer URLs must reject non-HTTP or userinfo-bearinginputs before any outbound request is attempted, and OIDC discovery mustdiff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex cbbf71fa79..bd9b9d56b9 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -448,6 +448,10 @@ The same hierarchy also applies inside the Patrol summary shell: once theprimary summary card states Patrol's assessment and verification basis,supporting metric strips under that card must stay metric-oriented and mustnot repeat assessment or verification labels as a second compact verdict row.+That same summary shell should also keep the shared page-card base neutral:+severity belongs in compact header accents, icon chips, and badges rather+than turning the entire full-width summary into a tinted warning banner that+breaks the surrounding Pulse surface language.That same summary-shell rule also applies to timing metadata: if the header,verification card, or findings footer already presents the governed Patrolactivity timestamp, the summary chip row must not add another recency badgediff --git a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md b/docs/release-control/v6/internal/subsystems/patrol-intelligence.mdindex 827fb1a537..23d976208b 100644--- a/docs/release-control/v6/internal/subsystems/patrol-intelligence.md+++ b/docs/release-control/v6/internal/subsystems/patrol-intelligence.md@@ -137,6 +137,11 @@ supporting evidence. Secondary metric strips must not render `No issues found`when the same governed overall-health summary says coverage is incomplete orhealth still requires attention; that compact summary state now belongs to theshared `frontend-modern/src/utils/patrolSummaryPresentation.ts` helper.+That primary assessment shell must also stay inside the shared Pulse card+language. The top summary should use the same neutral `bg-surface` page-card+base as adjacent Pulse surfaces, carrying severity through compact header+accents, icon treatments, and badges instead of tinting the entire full-width+assessment panel as a one-off warning banner.That supporting score chip must also avoid overstating infrastructure truth.When the current state is dominated by incomplete coverage or Patrol-ownedruntime failures, the chip should read as an `Assessment` grade rather than andiff --git a/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsx b/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsxindex e210749111..83e058f640 100644--- a/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsx+++ b/frontend-modern/src/features/patrol/PatrolIntelligenceSummary.tsx@@ -6,6 +6,7 @@ import AlertCircleIcon from 'lucide-solid/icons/alert-circle';import AlertTriangleIcon from 'lucide-solid/icons/alert-triangle';import {getPatrolAssessmentAction,+ getPatrolAssessmentShellPresentation,getPatrolAssessmentPresentation,getPatrolRecencyPresentation,getPatrolScoreChipLabel,@@ -14,7 +15,6 @@ import {getPatrolSummaryPresentation,} from '@/utils/patrolSummaryPresentation';import { getPatrolRuntimePresentation } from '@/utils/patrolRuntimePresentation';-import { getSemanticTonePresentation } from '@/utils/semanticTonePresentation';import { formatRelativeTime } from '@/utils/format';import type { PatrolIntelligenceState } from './usePatrolIntelligenceState';@@ -36,8 +36,8 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatconst runtimePresentation = createMemo(() =>getPatrolRuntimePresentation(state.runtimeState(), state.blockedReason()),);- const runtimeTonePresentation = createMemo(() =>- getSemanticTonePresentation(runtimePresentation().tone),+ const runtimeShellPresentation = createMemo(() =>+ getPatrolAssessmentShellPresentation(runtimePresentation().tone),);const showRuntimeSummary = createMemo(() => {const runtimeState = state.runtimeState();@@ -55,8 +55,8 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStatactiveFindings: state.activePatrolFindings(),}),);- const assessmentTonePresentation = createMemo(() =>- getSemanticTonePresentation(assessment().tone),+ const assessmentShellPresentation = createMemo(() =>+ getPatrolAssessmentShellPresentation(assessment().tone),);const activeFindingsSummaryPresentation = createMemo(() =>getPatrolSummaryPresentation(metricState().primarySeverity, metricState().primaryValue > 0),@@ -90,32 +90,58 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat}),);+ const renderAssessmentIcon = () => {+ const iconClass = `w-5 h-5 ${assessmentShellPresentation().iconClass}`;+ switch (assessment().tone) {+ case 'success':+ return <CheckCircleIcon class={iconClass} />;+ case 'error':+ return <ShieldAlertIcon class={iconClass} />;+ case 'warning':+ return <AlertTriangleIcon class={iconClass} />;+ default:+ return <AlertCircleIcon class={iconClass} />;+ }+ };+return (<><Show when={showRuntimeSummary()}>- <section class={`rounded-md border p-4 ${runtimeTonePresentation().panelClass}`}>- <div class="flex items-start gap-3">- <div class="flex-shrink-0 rounded-md bg-base/70 p-2">- <AlertCircleIcon class={`w-5 h-5 ${runtimeTonePresentation().iconClass}`} />- </div>- <div>- <p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">- {runtimePresentation().title}+ <section class="overflow-hidden rounded-md border border-border bg-surface shadow-sm">+ <div+ class={`flex flex-wrap items-center justify-between gap-3 border-b border-border-subtle px-4 py-3 ${runtimeShellPresentation().headerClass}`}+ >+ <span+ class={`inline-flex items-center rounded-full border px-2.5 py-1 text-[11px] font-semibold uppercase tracking-[0.16em] ${runtimeShellPresentation().badgeClass}`}+ >+ Patrol runtime+ </span>+ <Show when={recency().timestamp}>+ <p class="text-xs font-medium text-muted">+ {recency().label}{' '}+ {formatRelativeTime(recency().timestamp!, {+ compact: true,+ emptyText: 'never',+ })}</p>- <h2 class="mt-1 text-lg font-semibold text-base-content">- {runtimePresentation().label}- </h2>- <p class="mt-1 text-sm text-base-content">{runtimePresentation().description}</p>- <Show when={recency().timestamp}>- <p class="mt-2 text-xs text-muted">- {recency().label}{' '}- {formatRelativeTime(recency().timestamp!, {- compact: true,- emptyText: 'never',- })}- .+ </Show>+ </div>++ <div class="px-4 py-4 sm:px-5 sm:py-5">+ <div class="flex items-start gap-3">+ <div+ class={`flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-md border ${runtimeShellPresentation().iconContainerClass}`}+ >+ <AlertCircleIcon class={`w-5 h-5 ${runtimeShellPresentation().iconClass}`} />+ </div>+ <div class="min-w-0">+ <h2 class="text-lg font-semibold tracking-tight text-base-content">+ {runtimePresentation().label}+ </h2>+ <p class="mt-1.5 max-w-3xl text-sm leading-6 text-muted">+ {runtimePresentation().description}</p>- </Show>+ </div></div></div></section>@@ -124,95 +150,75 @@ export function PatrolIntelligenceSummary(props: { state: PatrolIntelligenceStat<Show when={!showRuntimeSummary()}><Show when={state.intelligenceSummary()}>{(summary) => (- <section class={`rounded-md border p-4 ${assessmentTonePresentation().panelClass}`}>- <div class="flex flex-wrap items-start justify-between gap-4">+ <section class="overflow-hidden rounded-md border border-border bg-surface shadow-sm">+ <div+ class={`flex flex-wrap items-center justify-between gap-3 border-b border-border-subtle px-4 py-3 ${assessmentShellPresentation().headerClass}`}+ >+ <span+ class={`inline-flex items-center rounded-full border px-2.5 py-1 text-[11px] font-semibold uppercase tracking-[0.16em] ${assessmentShellPresentation().badgeClass}`}+ >+ {assessment().eyebrow}+ </span>+ <span class="inline-flex items-center rounded-full border border-border bg-surface px-3 py-1 text-xs font-semibold text-base-content shadow-sm">+ {scoreChipLabel()} {summary().overall_health.grade} ·{' '}+ {Math.round(summary().overall_health.score)}/100+ </span>+ </div>++ <div class="px-4 py-4 sm:px-5 sm:py-5"><div class="flex items-start gap-3">- <div class="flex-shrink-0 rounded-md bg-base/70 p-2">- <Show- when={assessment().tone === 'success'}- fallback={- <Show- when={assessment().tone === 'error'}- fallback={- <Show- when={assessment().tone === 'warning'}- fallback={- <AlertCircleIcon- class={`w-5 h-5 ${assessmentTonePresentation().iconClass}`}- />- }- >- <AlertTriangleIcon- class={`w-5 h-5 ${assessmentTonePresentation().iconClass}`}- />- </Show>- }- >- <ShieldAlertIcon- class={`w-5 h-5 ${assessmentTonePresentation().iconClass}`}- />- </Show>- }- >- <CheckCircleIcon- class={`w-5 h-5 ${assessmentTonePresentation().iconClass}`}- />- </Show>+ <div+ class={`flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-md border ${assessmentShellPresentation().iconContainerClass}`}+ >+ {renderAssessmentIcon()}</div>- <div>- <p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">- {assessment().eyebrow}- </p>- <h2 class="mt-1 text-lg font-semibold text-base-content">+ <div class="min-w-0 flex-1">+ <h2 class="text-lg font-semibold tracking-tight text-base-content">{assessment().title}</h2>- <p class="mt-1 text-sm text-base-content">{assessment().description}</p>+ <p class="mt-1.5 max-w-3xl text-sm leading-6 text-muted">+ {assessment().description}+ </p><Show when={assessmentAction()}>{(action) => (- <div class="mt-3">+ <div class="mt-4"><ahref={action().href}- class="inline-flex items-center rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-semibold text-base-content transition-colors hover:bg-surface-hover"+ class="inline-flex items-center rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-semibold text-base-content shadow-sm transition-colors hover:bg-surface-hover">{action().label}</a></div>)}</Show>- <div class="mt-3 flex flex-wrap items-center gap-2">- <span class="rounded-full border border-border-subtle bg-base px-2.5 py-1 text-xs font-medium text-base-content">- {scoreChipLabel()} {summary().overall_health.grade} ·{' '}- {Math.round(summary().overall_health.score)}/100- </span>- </div>-- <div class="mt-4 rounded-md border border-border-subtle bg-base/90 p-3">- <p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">- Verification- </p>- <p class="mt-1 text-sm font-medium text-base-content">- {verification().title}- <Show when={verification().lastFullRunAt}>- <span class="text-muted">- {' '}- ·{' '}- {formatRelativeTime(verification().lastFullRunAt!, {- compact: true,- emptyText: 'never',- })}- </span>- </Show>- </p>- <p class="mt-1 text-sm text-muted">{verification().description}</p>- <Show when={verification().activityMixLabel}>- <p class="mt-2 text-xs font-medium text-base-content">- Recent activity mix: {verification().activityMixLabel}- </p>- </Show>- </div></div></div>++ <div class="mt-5 rounded-md border border-border-subtle bg-surface-alt/60 p-3">+ <p class="text-xs font-semibold uppercase tracking-[0.16em] text-muted">+ Verification+ </p>+ <p class="mt-1 text-sm font-medium text-base-content">+ {verification().title}+ <Show when={verification().lastFullRunAt}>+ <span class="text-muted">+ {' '}+ ·{' '}+ {formatRelativeTime(verification().lastFullRunAt!, {+ compact: true,+ emptyText: 'never',+ })}+ </span>+ </Show>+ </p>+ <p class="mt-1 text-sm text-muted">{verification().description}</p>+ <Show when={verification().activityMixLabel}>+ <p class="mt-2 text-xs font-medium text-base-content">+ Recent activity mix: {verification().activityMixLabel}+ </p>+ </Show>+ </div></div></section>)}diff --git a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsxindex 2de681a404..c210ca9c68 100644--- a/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx+++ b/frontend-modern/src/pages/__tests__/AIIntelligence.test.tsx@@ -1020,6 +1020,10 @@ describe('AIIntelligence entitlement gating', () => {'href','/settings/system-ai',);+ const assessmentShell = screen.getByText('Patrol assessment').closest('section');+ expect(assessmentShell).not.toBeNull();+ expect(assessmentShell!.className).toContain('bg-surface');+ expect(assessmentShell!.className).not.toContain('bg-amber-50');expect(screen.queryByText('Warnings')).not.toBeInTheDocument();expect(screen.getByRole('button', { name: 'Findings' }).textContent).toBe('Findings 1');diff --git a/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts b/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.tsindex 96cfab0ee1..aea9cad3e0 100644--- a/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/patrolSummaryPresentation.test.ts@@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest';import {getPatrolAssessmentPresentation,getPatrolAssessmentAction,+ getPatrolAssessmentShellPresentation,getPatrolRecencyPresentation,getPatrolScoreChipLabel,getPatrolSummaryMetricState,@@ -198,6 +199,28 @@ describe('getPatrolSummaryPresentation', () => {});});+ it('uses the shared neutral shell with a warning accent for degraded patrol summaries', () => {+ expect(getPatrolAssessmentShellPresentation('warning')).toEqual({+ headerClass: 'bg-amber-50/70 dark:bg-amber-950/30',+ badgeClass:+ 'border-amber-200 bg-amber-100/80 text-amber-700 dark:border-amber-800 dark:bg-amber-900/40 dark:text-amber-200',+ iconClass: 'text-amber-600 dark:text-amber-300',+ iconContainerClass:+ 'border-amber-200 bg-amber-50 dark:border-amber-800 dark:bg-amber-950/40',+ });+ });++ it('defaults patrol shell styling to the informational accent', () => {+ expect(getPatrolAssessmentShellPresentation()).toEqual({+ headerClass: 'bg-blue-50/70 dark:bg-blue-950/30',+ badgeClass:+ 'border-blue-200 bg-blue-100/80 text-blue-700 dark:border-blue-800 dark:bg-blue-900/40 dark:text-blue-200',+ iconClass: 'text-blue-600 dark:text-blue-300',+ iconContainerClass:+ 'border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950/40',+ });+ });+it('does not offer an AI settings action for infrastructure findings', () => {expect(getPatrolAssessmentAction({diff --git a/frontend-modern/src/utils/patrolSummaryPresentation.ts b/frontend-modern/src/utils/patrolSummaryPresentation.tsindex 36d6838865..fc4eef9ecf 100644--- a/frontend-modern/src/utils/patrolSummaryPresentation.ts+++ b/frontend-modern/src/utils/patrolSummaryPresentation.ts@@ -30,6 +30,13 @@ export interface PatrolAssessmentPresentation {tone: SemanticTone;}+export interface PatrolAssessmentShellPresentation {+ headerClass: string;+ badgeClass: string;+ iconClass: string;+ iconContainerClass: string;+}+export interface PatrolAssessmentAction {label: string;href: string;@@ -91,6 +98,41 @@ const ACTIVE_PRESENTATION: Record<PatrolSummaryTone, PatrolSummaryPresentation>},};+const ASSESSMENT_SHELL_PRESENTATION: Record<SemanticTone, PatrolAssessmentShellPresentation> = {+ success: {+ headerClass: 'bg-emerald-50/60 dark:bg-emerald-950/30',+ badgeClass:+ 'border-emerald-200 bg-emerald-100/80 text-emerald-700 dark:border-emerald-800 dark:bg-emerald-900/40 dark:text-emerald-200',+ iconClass: 'text-emerald-600 dark:text-emerald-300',+ iconContainerClass:+ 'border-emerald-200 bg-emerald-50 dark:border-emerald-800 dark:bg-emerald-950/40',+ },+ warning: {+ headerClass: 'bg-amber-50/70 dark:bg-amber-950/30',+ badgeClass:+ 'border-amber-200 bg-amber-100/80 text-amber-700 dark:border-amber-800 dark:bg-amber-900/40 dark:text-amber-200',+ iconClass: 'text-amber-600 dark:text-amber-300',+ iconContainerClass:+ 'border-amber-200 bg-amber-50 dark:border-amber-800 dark:bg-amber-950/40',+ },+ error: {+ headerClass: 'bg-red-50/70 dark:bg-red-950/30',+ badgeClass:+ 'border-red-200 bg-red-100/80 text-red-700 dark:border-red-800 dark:bg-red-900/40 dark:text-red-200',+ iconClass: 'text-red-600 dark:text-red-300',+ iconContainerClass:+ 'border-red-200 bg-red-50 dark:border-red-800 dark:bg-red-950/40',+ },+ info: {+ headerClass: 'bg-blue-50/70 dark:bg-blue-950/30',+ badgeClass:+ 'border-blue-200 bg-blue-100/80 text-blue-700 dark:border-blue-800 dark:bg-blue-900/40 dark:text-blue-200',+ iconClass: 'text-blue-600 dark:text-blue-300',+ iconContainerClass:+ 'border-blue-200 bg-blue-50 dark:border-blue-800 dark:bg-blue-950/40',+ },+};+export function getPatrolSummaryPresentation(tone: PatrolSummaryTone,active: boolean,@@ -105,6 +147,12 @@ export function getPatrolSummaryPresentation(return ACTIVE_PRESENTATION[tone];}+export function getPatrolAssessmentShellPresentation(+ tone: SemanticTone = 'info',+): PatrolAssessmentShellPresentation {+ return ASSESSMENT_SHELL_PRESENTATION[tone] || ASSESSMENT_SHELL_PRESENTATION.info;+}+function getHealthSummaryTone(overallHealth: IntelligenceHealthScore): SemanticTone {return overallHealth.grade === 'D' || overallHealth.grade === 'F' ? 'error' : 'warning';}diff --git a/scripts/release_control/subsystem_lookup_test.py b/scripts/release_control/subsystem_lookup_test.pyindex adb5106e5f..a27c816ca4 100644--- a/scripts/release_control/subsystem_lookup_test.py+++ b/scripts/release_control/subsystem_lookup_test.py@@ -4666,13 +4666,13 @@ class SubsystemLookupTest(unittest.TestCase):{"heading": "## Extension Points","path": "internal/api/ai_handler.go",- "line": 173,+ "line": 174,"heading_line": 131,},{"heading": "## Extension Points","path": "internal/api/ai_handler.go",- "line": 174,+ "line": 175,"heading_line": 131,},],@@ -4695,7 +4695,7 @@ class SubsystemLookupTest(unittest.TestCase):self.assertIn("paid-feature-entitlement-gating", api_match["lane_context"]["release_gate_ids"])self.assertEqual([reference["line"] for reference in api_match["matched_contract_references"]],- [111, 173, 174],+ [111, 174, 175],)def test_render_pretty_shows_contract_focus_for_lean_lookup(self) -> None: