From d99456138bad7034c87362d359e9c5b85bc1742f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 12 Nov 2026 13:16:22 +0100 Subject: [PATCH] test: classify the Insights presence read in the route inventories The presence read is data, never AI, and spans every module: each flag whose page a switched-off module hides answers false without reading the rows. Both inventories now say so. --- src/app/api/__tests__/ai-route-inventory.ts | 2 ++ src/app/api/__tests__/module-route-gate-inventory.test.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/app/api/__tests__/ai-route-inventory.ts b/src/app/api/__tests__/ai-route-inventory.ts index ce1c0d90d..282910819 100644 --- a/src/app/api/__tests__/ai-route-inventory.ts +++ b/src/app/api/__tests__/ai-route-inventory.ts @@ -240,6 +240,8 @@ export const DATA_ROUTES: Readonly> = { "Lab deltas, owned by the labs module.", "src/app/api/insights/health-status/route.ts": "Baseline drift, computed over core vitals.", + "src/app/api/insights/presence/route.ts": + "Which Insights pages have data: counts and flags, no model text.", "src/app/api/insights/pulse/intraday/route.ts": "The day's pulse shape, a core vital.", "src/app/api/insights/patterns/route.ts": "Stored correlation statistics.", diff --git a/src/app/api/__tests__/module-route-gate-inventory.test.ts b/src/app/api/__tests__/module-route-gate-inventory.test.ts index 5c0dff21e..dce76d978 100644 --- a/src/app/api/__tests__/module-route-gate-inventory.test.ts +++ b/src/app/api/__tests__/module-route-gate-inventory.test.ts @@ -350,6 +350,9 @@ const EXEMPT_ROUTES: ReadonlyArray = [ "src/app/api/insights/correlations/route.ts", "src/app/api/insights/coach-read/route.ts", "src/app/api/insights/health-status/route.ts", + // The tab strip's gate spans every module: each flag whose page a + // switched-off module hides answers false and its rows are not read. + "src/app/api/insights/presence/route.ts", "src/app/api/insights/pulse/intraday/route.ts", "src/app/api/insights/patterns/route.ts", "src/app/api/insights/patterns/[id]/route.ts",