Skip to content

fix(quality): reconcile inherited file-size drift on the release tip - #9554

Merged
diegosouzapw merged 5 commits into
release/v3.8.50from
fix/file-size-inherited-rebaseline
Aug 6, 2026
Merged

diegosouzapw merged 5 commits into
release/v3.8.50from
fix/file-size-inherited-rebaseline

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Problem

13 files sit above their frozen LOC on the clean tip 8180b49ce1 — the absolute-mode file-size gate (nightly-release-green, any local npm run check:file-size) is permanently red, while the PR-mode base-relative check (#8522) lets every innocent PR pass. Red stops meaning anything.

Cause

The 08-05/06 merge batch grew these files with legitimate functional changes, but the per-PR rebaselines were lost across successive conflict resolutions of config/quality/file-size-baseline.json (the hot file — same class as the CHANGELOG merge-autoresolve bullet loss).

Fix

Frozen values updated to the LOC measured by the gate on the clean tip, each annotated with the owning merged PR in the _rebaseline_2026_08_06_v3850_inherited_drift_reconcile key:

File Frozen PR
dashboard/HomePageClient.tsx 1381→1388 #9024
dashboard/providers/page.tsx 1923→1928 #9324
usage ProviderLimits/index.tsx 1109→1119 #9329
src/sse/handlers/chat.ts 1845→1857 #9193
open-sse/executors/base.ts 1623→1635 #9332
open-sse/executors/codex.ts 1534→1562 #9228
open-sse/executors/default.ts (none)→1027 #9236
open-sse/executors/kiro.ts (none)→1069 #9314
open-sse/mcp-server/server.ts 1407→1411 #9260
tests chatcore-translation-paths 2776→2876 #8934
tests combo-routing-engine 3449→3457 #9193
tests sse-auth 1600→1610 #9196
tests translator-openai-to-kiro 1250→1275 #9163

Validation

npm run check:file-size on this branch: 0 violations (was 13 on the tip). Config-only change (baseline + changelog), no production code.

Refs #8522

13 files sit above their frozen LOC on the clean tip 8180b49
(measured by the gate itself). The PR-mode base-relative check (#8522)
correctly lets innocent PRs pass, but per-PR rebaselines were lost
across successive conflict resolutions of this hot file during the
08-05/06 merge batch — so the absolute mode (nightly, local runs) is
permanently red and stops distinguishing real growth from inherited
drift.

Frozen values updated to the measured tip, each annotated with the
merged PR that grew the file (#9024 #9324 #9329 #9193 #9332 #9228
#9236 #9314 #9260 #8934 #9196 #9163); executors default.ts and kiro.ts
(above the 1000 cap with no frozen entry) join the frozen set.
…ppressed errors

The 'No new ESLint warnings' job reds the whole queue with exit 2:
'There are suppressions left that do not occur anymore' — the 08-05
merge batch removed code whose violations were frozen in
eslint-suppressions.json, leaving orphaned entries (673->670 files,
4338->4333 violations after eslint --prune-suppressions).

The full-tree run also surfaced 5 real unsuppressed errors merged with
the batch, fixed here instead of suppressed (new violations must be
fixed, per policy): 4x no-explicit-any in
tests/unit/catalog-order-contract.test.ts ((conn as any).id -> typed
cast) and 1x react/no-unescaped-entities in the agent-bridge
SetupWizard (#9095).

Also restores the _comment policy header the successive hot-file
conflict resolutions had dropped (TS7 debt freeze provenance + prune
policy).
…as in CI

The base kept moving during the reconcile cycle: #9184 grew
src/sse/handlers/chat.ts 1857->1877 and #9005 grew
open-sse/executors/default.ts 1027->1042. Re-measured on the merged
tree; gate back to 0 violations.
… node:test

#8828 added tests/unit/scripts/check-rtl-ratchet.test.ts — a path no
runner collects (the node:test globs enumerate an explicit subdir list
without scripts/, and vitest.config.ts never included it), so the file
NEVER ran and the test-discovery orphan gate reds the queue. Moved to
tests/unit/ (collected by node:test) and converted from vitest
describe/it/expect to node:test+assert to match the runner and the
sibling check-*.test.ts files. 5/5 green under the real runner.
@diegosouzapw
diegosouzapw merged commit 8c5bfbe into release/v3.8.50 Aug 6, 2026
9 of 10 checks passed
@diegosouzapw
diegosouzapw deleted the fix/file-size-inherited-rebaseline branch August 7, 2026 14:42
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…heaper-inference#9554)

* fix(quality): reconcile inherited file-size drift on the release tip

13 files sit above their frozen LOC on the clean tip 30be158
(measured by the gate itself). The PR-mode base-relative check (cheaper-inference#8522)
correctly lets innocent PRs pass, but per-PR rebaselines were lost
across successive conflict resolutions of this hot file during the
08-05/06 merge batch — so the absolute mode (nightly, local runs) is
permanently red and stops distinguishing real growth from inherited
drift.

Frozen values updated to the measured tip, each annotated with the
merged PR that grew the file (cheaper-inference#9024 cheaper-inference#9324 cheaper-inference#9329 cheaper-inference#9193 cheaper-inference#9332 cheaper-inference#9228
cheaper-inference#9236 cheaper-inference#9314 cheaper-inference#9260 cheaper-inference#8934 cheaper-inference#9196 cheaper-inference#9163); executors default.ts and kiro.ts
(above the 1000 cap with no frozen entry) join the frozen set.

* fix(quality): prune orphaned ESLint suppressions and clear the 5 unsuppressed errors

The 'No new ESLint warnings' job reds the whole queue with exit 2:
'There are suppressions left that do not occur anymore' — the 08-05
merge batch removed code whose violations were frozen in
eslint-suppressions.json, leaving orphaned entries (673->670 files,
4338->4333 violations after eslint --prune-suppressions).

The full-tree run also surfaced 5 real unsuppressed errors merged with
the batch, fixed here instead of suppressed (new violations must be
fixed, per policy): 4x no-explicit-any in
tests/unit/catalog-order-contract.test.ts ((conn as any).id -> typed
cast) and 1x react/no-unescaped-entities in the agent-bridge
SetupWizard (cheaper-inference#9095).

Also restores the _comment policy header the successive hot-file
conflict resolutions had dropped (TS7 debt freeze provenance + prune
policy).

* fix(quality): absorb the two file-size growths merged while this PR was in CI

The base kept moving during the reconcile cycle: cheaper-inference#9184 grew
src/sse/handlers/chat.ts 1857->1877 and cheaper-inference#9005 grew
open-sse/executors/default.ts 1027->1042. Re-measured on the merged
tree; gate back to 0 violations.

* fix(tests): move the orphaned RTL ratchet test to a collected path as node:test

cheaper-inference#8828 added tests/unit/scripts/check-rtl-ratchet.test.ts — a path no
runner collects (the node:test globs enumerate an explicit subdir list
without scripts/, and vitest.config.ts never included it), so the file
NEVER ran and the test-discovery orphan gate reds the queue. Moved to
tests/unit/ (collected by node:test) and converted from vitest
describe/it/expect to node:test+assert to match the runner and the
sibling check-*.test.ts files. 5/5 green under the real runner.

---------

Co-authored-by: diegosouzapw <diegosouzapw@users.noreply.github.com>
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