From 82125815d577c76df13e72664899cd49e66d39c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Wed, 11 Nov 2026 22:17:07 +0100 Subject: [PATCH] test: settle the parity snapshot and the size ratchet An unreadable provider key is now reported once: the empty-chain fallback no longer opens the same key a second time. Two files shrank, so the size baseline steps down. --- src/__tests__/baselines/source-file-lines.json | 8 ++++---- .../insights-generate.P09-unreadable-key.json.snap | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/__tests__/baselines/source-file-lines.json b/src/__tests__/baselines/source-file-lines.json index 7579b4981..f9771fe85 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": 84, - "total": 93880, + "total": 93834, "entries": { "app/medications/page-client.tsx": 839, "components/charts/mood-chart.tsx": 1166, @@ -25,7 +25,7 @@ "lib/ai/coach/coach-prose-grounding.ts": 1091, "lib/ai/coach/persistence.ts": 1218, "lib/ai/coach/results/metric-table-tool.ts": 1102, - "lib/ai/coach/snapshot.ts": 1346, + "lib/ai/coach/snapshot.ts": 1331, "lib/ai/coach/stream-events.ts": 811, "lib/ai/coach/types.ts": 1008, "lib/ai/codex-client.ts": 907, @@ -41,7 +41,7 @@ "lib/daily/today-overview.ts": 838, "lib/dashboard-layout.ts": 977, "lib/dashboard/snapshot.ts": 1550, - "lib/day/records.ts": 1174, + "lib/day/records.ts": 1172, "lib/export/backup-plan.ts": 838, "lib/export/coach-backup.ts": 1070, "lib/export/profile-backup.ts": 1019, @@ -86,6 +86,6 @@ "lib/validations/inbound-documents.ts": 1018, "lib/withings/sync-sleep.ts": 884, "lib/withings/sync.ts": 933, - "proxy.ts": 846 + "proxy.ts": 845 } } diff --git a/tests/integration/routes/parity/__snapshots__/insights-generate.P09-unreadable-key.json.snap b/tests/integration/routes/parity/__snapshots__/insights-generate.P09-unreadable-key.json.snap index 6e6417972..7ef5f7537 100644 --- a/tests/integration/routes/parity/__snapshots__/insights-generate.P09-unreadable-key.json.snap +++ b/tests/integration/routes/parity/__snapshots__/insights-generate.P09-unreadable-key.json.snap @@ -14,7 +14,6 @@ "action": null, "meta": null, "warnings": [ - "ai: a stored provider key could not be opened", "ai: a stored provider key could not be opened" ], "error": null