From ef44f6357fc1de56a321ff0bf522a2be88e70875 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sun, 21 Jun 2026 12:49:28 -0700 Subject: [PATCH] FN-6871: re-ratchet line-count baselines Refresh the line-count audit baseline to match current repository drift. - Update the grandfathered large-file baseline counts for current source and test files. - Document that the line-count guard is now an opt-in audit rather than a pretest blocker. Files changed: scripts/check-file-line-count.mjs | 3 +++ scripts/line-count-baseline.json | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) Fusion-Task-Id: FN-6871 Fusion-Task-Lineage: d2fcf11e-2959-45a0-9bd1-1dc33b591ccf --- scripts/check-file-line-count.mjs | 3 +++ scripts/line-count-baseline.json | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/scripts/check-file-line-count.mjs b/scripts/check-file-line-count.mjs index 1e8d7ed5d9..c7ac3438cc 100644 --- a/scripts/check-file-line-count.mjs +++ b/scripts/check-file-line-count.mjs @@ -16,6 +16,9 @@ feature and test growth, while also tightening three entries that had already shrunk. Large-file reduction remains the intended long-term direction, but that work belongs in dedicated follow-up refactors rather than a pretest-unblock maintenance change. + +FNXC:CI 2026-06-21-12:35: +FN-6871 corrects the stale premise that line-count drift blocks `pnpm test`: FN-5048 removed this guard from pretest, so it now runs only through the opt-in `check:line-count` audit. Eleven grandfathered files were re-ratcheted to current counts after small organic feature/test growth; broad shrink/refactor work for these god-files remains the long-term direction and belongs in dedicated follow-up tasks. */ // 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 520db4288a..3688d906bb 100644 --- a/scripts/line-count-baseline.json +++ b/scripts/line-count-baseline.json @@ -18,20 +18,20 @@ "packages/core/src/db.ts": 5840, "packages/core/src/mission-store.ts": 4382, "packages/core/src/store.ts": 16755, - "packages/core/src/types.ts": 7246, - "packages/dashboard/app/App.tsx": 2293, + "packages/core/src/types.ts": 7256, + "packages/dashboard/app/App.tsx": 2298, "packages/dashboard/app/api/legacy.ts": 10568, "packages/dashboard/app/components/AgentDetailView.tsx": 5400, "packages/dashboard/app/components/AgentsView.tsx": 2101, "packages/dashboard/app/components/ChatView.tsx": 3964, "packages/dashboard/app/components/GitManagerModal.tsx": 3186, - "packages/dashboard/app/components/ListView.tsx": 2414, + "packages/dashboard/app/components/ListView.tsx": 2421, "packages/dashboard/app/components/MissionManager.tsx": 4999, "packages/dashboard/app/components/ModelOnboardingModal.tsx": 2932, "packages/dashboard/app/components/PlanningModeModal.tsx": 3319, "packages/dashboard/app/components/QuickChatFAB.tsx": 3560, "packages/dashboard/app/components/QuickEntryBox.tsx": 2207, - "packages/dashboard/app/components/SettingsModal.tsx": 3240, + "packages/dashboard/app/components/SettingsModal.tsx": 3254, "packages/dashboard/app/components/TaskCard.tsx": 2528, "packages/dashboard/app/components/TaskDetailModal.tsx": 4569, "packages/dashboard/app/components/WorkflowNodeEditor.tsx": 4457, @@ -39,19 +39,19 @@ "packages/dashboard/app/components/__tests__/App.test.tsx": 4274, "packages/dashboard/app/components/__tests__/ChatView.test.tsx": 5677, "packages/dashboard/app/components/__tests__/GitManagerModal.test.tsx": 3274, - "packages/dashboard/app/components/__tests__/ListView.test.tsx": 4247, + "packages/dashboard/app/components/__tests__/ListView.test.tsx": 4286, "packages/dashboard/app/components/__tests__/MailboxView.test.tsx": 2037, "packages/dashboard/app/components/__tests__/ModelOnboardingModal.test.tsx": 4575, "packages/dashboard/app/components/__tests__/PlanningModeModal.planning-flow.test.tsx": 2746, "packages/dashboard/app/components/__tests__/QuickChatFAB.test.tsx": 2816, "packages/dashboard/app/components/__tests__/QuickEntryBox.test.tsx": 4526, - "packages/dashboard/app/components/__tests__/SettingsModal.test.tsx": 5375, + "packages/dashboard/app/components/__tests__/SettingsModal.test.tsx": 5414, "packages/dashboard/app/components/__tests__/TaskCard.test.tsx": 5121, "packages/dashboard/app/components/__tests__/TaskChatTab.test.tsx": 2366, "packages/dashboard/app/components/__tests__/TaskDetailModal.inline-editing-and-integrations.test.tsx": 2917, "packages/dashboard/app/components/__tests__/TaskDetailModal.rendering.test.tsx": 2297, "packages/dashboard/app/components/__tests__/TerminalModal.test.tsx": 5578, - "packages/dashboard/app/components/__tests__/UsageIndicator.test.tsx": 2877, + "packages/dashboard/app/components/__tests__/UsageIndicator.test.tsx": 2905, "packages/dashboard/app/components/__tests__/WorkflowNodeEditor.test.tsx": 3174, "packages/dashboard/app/hooks/__tests__/useChat.test.ts": 4097, "packages/dashboard/app/hooks/__tests__/useQuickChat.test.ts": 2706, @@ -80,12 +80,12 @@ "packages/dashboard/src/routes/register-settings-memory-routes.ts": 2421, "packages/dashboard/src/routes/register-task-workflow-routes.ts": 3738, "packages/dashboard/src/server.ts": 2378, - "packages/engine/src/__tests__/executor-pause.test.ts": 2836, + "packages/engine/src/__tests__/executor-pause.test.ts": 2974, "packages/engine/src/__tests__/executor-prompt.test.ts": 2572, "packages/engine/src/__tests__/executor-recovery.test.ts": 3600, "packages/engine/src/__tests__/executor-step-session.test.ts": 3731, "packages/engine/src/__tests__/executor-worktree.test.ts": 2536, - "packages/engine/src/__tests__/heartbeat-executor.test.ts": 3944, + "packages/engine/src/__tests__/heartbeat-executor.test.ts": 4027, "packages/engine/src/__tests__/merger-merge-lifecycle.test.ts": 3253, "packages/engine/src/__tests__/merger-verification.test.ts": 3163, "packages/engine/src/__tests__/mission-execution-loop.test.ts": 2463, @@ -95,9 +95,9 @@ "packages/engine/src/__tests__/self-healing.test.ts": 9641, "packages/engine/src/__tests__/step-session-executor.test.ts": 2911, "packages/engine/src/__tests__/triage.test.ts": 4511, - "packages/engine/src/agent-heartbeat.ts": 4548, + "packages/engine/src/agent-heartbeat.ts": 4553, "packages/engine/src/agent-tools.ts": 3584, - "packages/engine/src/executor.ts": 15985, + "packages/engine/src/executor.ts": 16018, "packages/engine/src/merger.ts": 12643, "packages/engine/src/pi.ts": 2435, "packages/engine/src/project-engine.ts": 3663,