From cc67df9e61de5fe3407ef860d3ab810fe9f855bf Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Thu, 25 Jun 2026 22:22:42 -0700 Subject: [PATCH] FN-7046: re-ratchet core line-count baselines Repair the scoped core store/type baseline drift without broadening unrelated line-count debt. - Add the FN-7046 CI note explaining the scoped re-ratchet for store.ts and types.ts. - Raise only the core store.ts and types.ts grandfathered ceilings to their current generated sizes. Files changed: scripts/check-file-line-count.mjs | 3 +++ scripts/line-count-baseline.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) Fusion-Task-Id: FN-7046 Fusion-Task-Lineage: 1c64b426-9c51-427d-bacc-e527dffa9d90 --- scripts/check-file-line-count.mjs | 3 +++ scripts/line-count-baseline.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/check-file-line-count.mjs b/scripts/check-file-line-count.mjs index b153696adf..5c607c43d7 100644 --- a/scripts/check-file-line-count.mjs +++ b/scripts/check-file-line-count.mjs @@ -28,6 +28,9 @@ FN-7013 re-confirms the `pnpm test`-blocking premise is stale: FN-5048 removed t FNXC:CI 2026-06-25-17:44: FN-7035 split the two new hard-cap crossers (`ChatView.core.test.tsx` and `notifier.test.ts`) into focused sibling suites rather than grandfathering them. Six existing grandfathered entries were re-ratcheted to current counts after organic test and feature growth; `store.ts` and `types.ts` drift was left out of scope for a follow-up. Wholesale god-file shrink remains long-term deferred work for dedicated refactors. + +FNXC:CI 2026-06-25-22:08: +FN-7046 repaired the deferred `store.ts`/`types.ts` line-count drift by re-ratcheting only those two baseline ceilings after organic Code Review workflow-step and MCP configuration growth. Wholesale god-file shrink remains long-term deferred work for dedicated refactors, and unrelated line-count violations must not be bundled into this scoped repair. */ // Repo-wide guard: hand-written source files may not exceed a hard line-count // cap (MAX_LINES). This stops the next god-file from being born while leaving diff --git a/scripts/line-count-baseline.json b/scripts/line-count-baseline.json index 17f3d9c0ad..c61328b001 100644 --- a/scripts/line-count-baseline.json +++ b/scripts/line-count-baseline.json @@ -17,8 +17,8 @@ "packages/core/src/central-core.ts": 3854, "packages/core/src/db.ts": 5924, "packages/core/src/mission-store.ts": 4390, - "packages/core/src/store.ts": 17358, - "packages/core/src/types.ts": 7415, + "packages/core/src/store.ts": 17371, + "packages/core/src/types.ts": 7522, "packages/dashboard/app/api/legacy.ts": 10865, "packages/dashboard/app/components/AgentDetailView.tsx": 5400, "packages/dashboard/app/components/AgentsView.tsx": 2147,