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",