Skip to content

chore(quality): ratchet file-size baseline down after the combo/chatCore decompositions (rail G2) - #16070

Merged
diegosouzapw merged 3 commits into
release/v3.8.52from
chore/rail-g2-file-size-ratchet
Oct 10, 2026
Merged

diegosouzapw merged 3 commits into
release/v3.8.52from
chore/rail-g2-file-size-ratchet

Conversation

@diegosouzapw

@diegosouzapw diegosouzapw commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Rail gate G2 (3.8.52). The god-file decompositions landed (#12746/#12811 for combo.ts, #14725 for chatCore.ts), but config/quality/file-size-baseline.json still froze both at their pre-split sizes: 4080 and 6426. That left ~2.9k and ~2.5k lines of headroom for the files to grow back with no alarm. This PR runs the gate's own ratchet (check:file-size -- --update, which can only lower ceilings or drop entries that already fit under the cap) and records a note explaining the re-tightening.

What changed

Only config/quality/file-size-baseline.json.

File Before After
open-sse/services/combo.ts 4080 1211 (dropped to 1198, then regrew past the 1200 cap on the tip via #15486, so it stays frozen)
open-sse/handlers/chatCore.ts 6426 3938

Same pass:

  • 33 other frozen ceilings lowered to their measured size (largest: ApiManagerPageClient.tsx 3186 → 1318; codex.ts 1584 → 1526).
  • 5 entries removed as under cap: executors/chatgpt-web.ts (5056), executors/muse-spark-web.ts (1405), handlers/chatCore/nonStreamingResponse.ts (1212), mcp-server/server.ts (1572), proxySubscription/subscriptionService.ts (1212).
  • 6 testFrozen ceilings lowered.
  • File entries: frozen 67 → 62, testFrozen 30 → 30. The 131 nested note keys and every top-level key are unchanged.
  • New note key _rebaseline_2026_10_09_rail_g2 at the top, matching the existing notes.

Down-only, verified with a key-by-key before/after comparison: no ceiling raised, no entry added, no duplicate key lost. The diff is larger than the value changes because --update re-sorts the keys inside frozen/testFrozen; those moves are order-only.

Validation

Gate Command Result
file-size (before) npm run check:file-size OK: 180 keys frozen, 5247 files checked
ratchet npm run check:file-size -- --update 35 lowered + 5 removed (frozen), 6 lowered (testFrozen)
file-size (after) npm run check:file-size OK: 175 keys frozen, 6993 test files checked
file-size PR mode npm run check:file-size -- --base-ref origin/release/v3.8.52 OK: 5247 base files computed, 0 violations
gate unit test node --import tsx/esm --test tests/unit/check-file-size.test.ts 16/16 pass
prettier npx prettier --check config/quality/file-size-baseline.json clean
pre-commit husky (lint-staged, any-budget, tracked-artifacts, ai-attribution) pass

Measured on the fresh tip 7510677f2f (re-measured after the base advanced 125 commits; the first pass froze codex.ts at 1519 and failed CI once #15926 landed).

⚠️ base-red inherited: #15306

…ore decompositions (rail G2)

Run check:file-size --update on release/v3.8.52 @35ef635c. combo.ts drops out
of the baseline (4080 -> 1198, under the 1200 cap) and chatCore.ts tightens
6426 -> 3938 after #12746/#12811 and #14725. 29 more frozen ceilings lowered,
3 more entries removed as under cap, 6 testFrozen ceilings lowered. Down-only:
no ceiling raised, no entry added. Frozen file entries 67 -> 63.
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

CI Coverage Report

  • Coverage job: skipped
  • PR test policy: success

Coverage artifact was not available for this run.

… tip

The base advanced 125 commits after the first measurement (#15926 grew
codex.ts to 1526, #15486 regrew combo.ts to 1211), so the 1519 ceiling
failed CI. Rebuilt from the tip baseline @7510677f2f with --update:
35 frozen ceilings lowered, 5 removed, 6 testFrozen lowered, none raised.
@diegosouzapw
diegosouzapw merged commit 8c750c4 into release/v3.8.52 Oct 10, 2026
22 of 54 checks passed
diegosouzapw added a commit that referenced this pull request Oct 11, 2026
…6147)

Merged with the owner's 2026-10-10 hold/backlog wave. Reworked to keep frozen files within config/quality/file-size-baseline.json after #16070 ratcheted it down (logic extracted into new modules, no baseline raised). Validated together with #16147/#16112/#16110/#15790 on top of release/v3.8.52: typecheck:core, open-sse and API-route typecheck, eslint on changed files, complexity/cognitive ratchets, changelog-integrity green; 117/117 changed tests; only file-size overrun is the inherited executeTargetAttempt.ts. Warning: base-red inherited: #15306.
diegosouzapw added a commit that referenced this pull request Oct 11, 2026
Merged with the owner's 2026-10-10 hold/backlog wave. Reworked to keep frozen files within config/quality/file-size-baseline.json after #16070 ratcheted it down (logic extracted into new modules, no baseline raised). Validated together with #16147/#16112/#16110/#15790 on top of release/v3.8.52: typecheck:core, open-sse and API-route typecheck, eslint on changed files, complexity/cognitive ratchets, changelog-integrity green; 117/117 changed tests; only file-size overrun is the inherited executeTargetAttempt.ts. Warning: base-red inherited: #15306.
diegosouzapw added a commit that referenced this pull request Oct 11, 2026
…16110)

Merged with the owner's 2026-10-10 hold/backlog wave. Reworked to keep frozen files within config/quality/file-size-baseline.json after #16070 ratcheted it down (logic extracted into new modules, no baseline raised). Validated together with #16147/#16112/#16110/#15790 on top of release/v3.8.52: typecheck:core, open-sse and API-route typecheck, eslint on changed files, complexity/cognitive ratchets, changelog-integrity green; 117/117 changed tests; only file-size overrun is the inherited executeTargetAttempt.ts. Warning: base-red inherited: #15306.
diegosouzapw added a commit that referenced this pull request Oct 11, 2026
…overs the connection (#15790)

Merged with the owner's 2026-10-10 hold/backlog wave. Reworked to keep frozen files within config/quality/file-size-baseline.json after #16070 ratcheted it down (logic extracted into new modules, no baseline raised). Validated together with #16147/#16112/#16110/#15790 on top of release/v3.8.52: typecheck:core, open-sse and API-route typecheck, eslint on changed files, complexity/cognitive ratchets, changelog-integrity green; 117/117 changed tests; only file-size overrun is the inherited executeTargetAttempt.ts. Warning: base-red inherited: #15306.
@diegosouzapw
diegosouzapw deleted the chore/rail-g2-file-size-ratchet branch October 16, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant