Remove unused CorrelationsResponse type (#2710)

CorrelationsResponse described the `/api/ai/intelligence/correlations`
payload. #2674 removed its uses in the Patrol investigation context
model and that model's tests, and #2677 removed the last ones
(`AIAPI.getCorrelations` and the aiIntelligence store's correlation
loader). This deletes the now-unreferenced interface from
`frontend-modern/src/types/aiIntelligence.ts`.

`ResourceCorrelation` stays: `ResourceIntelligence.correlations`, the
resource drawer's relationship map (`ResourceCorrelationSummary.tsx`)
and `resourceCorrelationPresentation.ts` still use it.

Proof:
- `git grep CorrelationsResponse` over the whole repository at the base
commit finds only the definition.
- `npx tsc --noEmit` in frontend-modern (tsconfig includes all of `src`,
tests too) passes.
- `vitest run src/types src/api src/stores src/features/patrol
src/utils`: 7295 passed. The only failures are 6 tests in
`agentInstallCommand.test.ts` that need a TTY (`termios.error:
Inappropriate ioctl for device`); they fail identically on the unchanged
base tree.
- `npm run build` before and after emitted the same 187 dist files with
identical SHA-256 sums, so the shipped bundle is byte-identical.
- Browser receipt
`frontend-modern/browser-verification/71a0ce6b24830582.json`: embedded
build in a demo-mode mock stack, `/patrol` and the `/kubernetes`
deployment drawer at 1280x800 and 390x844, no console or page errors.

No contract prose mentions the type, so the commit carries a
`Contract-Neutral:` trailer instead of a patrol-intelligence contract
note.
This commit is contained in:
rcourtman
2026-10-07 23:16:20 +01:00
committed by GitHub
2 changed files with 39 additions and 8 deletions
@@ -0,0 +1,39 @@
{
"version": 1,
"base_sha": "48c2d6cdce8d019151e3567873de88e21b76bb22",
"verified_at": "2026-10-07T19:05:33Z",
"result": "passed",
"changed_paths": [
"frontend-modern/src/types/aiIntelligence.ts"
],
"content_sha256": {
"frontend-modern/src/types/aiIntelligence.ts": "d9287de8171cee10d72c5df0a898c28e47e649be3f9dee8fa791a7406c0adc51"
},
"routes": [
"/patrol",
"/kubernetes"
],
"viewports": [
{
"width": 1280,
"height": 800
},
{
"width": 390,
"height": 844
}
],
"states": [
"Type-only deletion: TypeScript erases CorrelationsResponse, and npm run build before and after the change emitted the same 187 dist files with identical SHA-256 sums, so the shipped bundle is byte-identical",
"Embedded production build in a private demo-mode mock stack (port 7763, fresh data dir)",
"Patrol inbox: Patrol heading and 5 attention rows render at 1280x800 and 390x844",
"Kubernetes deployment account-portal drawer opens with header, technical summary, runtime context and identity sections at both widths",
"No console errors and no page errors on either route at either width; no /api/ai/intelligence/correlations request",
"Relationship map (ResourceCorrelationSummary, the surviving ResourceCorrelation consumer) not rendered in this pass: table-row drawers do not fetch per-resource facets or resource intelligence (enableRemoteHistory is off for table-row presentation); its code ships unchanged in the byte-identical bundle"
],
"interactions": [
"Demo sign-in, then navigate to /patrol and wait for the Patrol heading",
"Navigate to /kubernetes and click the account-portal deployment row to open its inline resource drawer",
"Repeat the same pass at 1280x800 and 390x844"
]
}
@@ -109,14 +109,6 @@ export interface ResourceCorrelation {
description: string;
}
export interface CorrelationsResponse {
correlations: ResourceCorrelation[];
count: number;
message?: string;
license_required?: boolean;
upgrade_url?: string;
}
export interface IntelligenceSummary {
timestamp: string;
overall_health: IntelligenceHealthScore;