From b89cb6a29f8a5f5f93fbd6d35390f575a61f1cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 22 Oct 2026 15:26:38 +0200 Subject: [PATCH] test(guards): drop the raised size baselines and record the lower ones Undoes the raise from the pt-BR tables commit. After the screen banks, population-norm patterns, insights footers, settings labels and Telegram words moved into their own modules, every file that grew is below its old line count, outbound-screen.ts leaves the over-800 list and buildDoseChangeClass the over-200 list. --- src/__tests__/baselines/source-file-lines.json | 13 ++++++------- src/__tests__/baselines/source-function-lines.json | 5 ++--- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/__tests__/baselines/source-file-lines.json b/src/__tests__/baselines/source-file-lines.json index 5f191c41b..6758047d3 100644 --- a/src/__tests__/baselines/source-file-lines.json +++ b/src/__tests__/baselines/source-file-lines.json @@ -1,7 +1,7 @@ { "$comment": "Production files over 800 lines and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.", - "count": 124, - "total": 147433, + "count": 123, + "total": 145591, "entries": { "app/api/dashboard/summary/route.ts": 1032, "app/api/documents/inbound/route.ts": 811, @@ -36,12 +36,12 @@ "components/mood/mood-list.tsx": 1408, "components/records/life-circumstances-manager.tsx": 1080, "components/settings/dashboard-layout-section.tsx": 1033, - "components/settings/managed-record-settings-section.tsx": 1165, + "components/settings/managed-record-settings-section.tsx": 1071, "components/timeline/timeline-chart.tsx": 1174, "components/timeline/timeline-geometry.ts": 1395, "lib/ai/anthropic-client.ts": 804, "lib/ai/coach/about-me.ts": 1012, - "lib/ai/coach/coach-prose-grounding.ts": 1170, + "lib/ai/coach/coach-prose-grounding.ts": 1079, "lib/ai/coach/persistence.ts": 1219, "lib/ai/coach/results/metric-table-tool.ts": 1102, "lib/ai/coach/snapshot.ts": 1362, @@ -50,9 +50,8 @@ "lib/ai/coach/turn/model.ts": 820, "lib/ai/coach/types.ts": 1011, "lib/ai/codex-client.ts": 1094, - "lib/ai/prompts/insight-generator.ts": 1123, + "lib/ai/prompts/insight-generator.ts": 1110, "lib/ai/provider.ts": 1632, - "lib/ai/safety/outbound-screen.ts": 1597, "lib/analytics/score/reader.ts": 998, "lib/analytics/sleep-night.ts": 1345, "lib/analytics/summaries-slice.ts": 1248, @@ -121,7 +120,7 @@ "lib/search/search-records.ts": 996, "lib/sharing/grants.ts": 1046, "lib/support/report.ts": 905, - "lib/telegram-webhook-handlers.ts": 1388, + "lib/telegram-webhook-handlers.ts": 1341, "lib/validations/inbound-documents.ts": 1130, "lib/whoop/client.ts": 917, "lib/withings/sync-sleep.ts": 903, diff --git a/src/__tests__/baselines/source-function-lines.json b/src/__tests__/baselines/source-function-lines.json index ad2fc0991..b3ac7b5f3 100644 --- a/src/__tests__/baselines/source-function-lines.json +++ b/src/__tests__/baselines/source-function-lines.json @@ -1,7 +1,7 @@ { "$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.", - "count": 410, - "total": 148089, + "count": 409, + "total": 147774, "entries": { "app/achievements/page.tsx :: AchievementsPage": 206, "app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 314, @@ -293,7 +293,6 @@ "lib/ai/codex-client.ts :: parseResponse": 302, "lib/ai/local-client.ts :: generateCompletionStream": 288, "lib/ai/openai-client.ts :: generateCompletion": 346, - "lib/ai/safety/outbound-screen.ts :: buildDoseChangeClass": 315, "lib/analytics/bp-in-target-fast-path.ts :: computeFromRollups": 203, "lib/analytics/compliance/display.ts :: calculateCompliance": 212, "lib/analytics/correlations-fast-path.ts :: computeCorrelationHypothesesFastPath": 256,