Repository navigation
chore(quality): baseline-headroom skips generated and vendored files in the fileSize worst-file signal - #12291
Merged
Conversation
…in the fileSize worst-file signal The nightly headroom monitor flagged fileSize 🟡 permanently because the worst frozen file was src/app/docs/lib/openapi.generated.ts — frozen at its emitter's exact output size in #12212, i.e. ~0% headroom BY CONSTRUCTION (growth is policed by conscious re-freezes, never by editing the module). Same class: open-sse/vendor/** (upstream code nobody slims by hand). isMonitorExemptFile() excludes .generated. modules and vendor/ paths from the monitor's worst/near-cap accounting only — check:file-size itself still enforces both. The fileSize row now points at the worst HUMAN-EDITABLE frozen file (currently tests/integration/skills-pipeline.test.ts at 4.5%, a true early warning: its baseline note already requires a split rationale for any further growth). Refs #12149
diegosouzapw
added a commit
to davidebaraldo/OmniRoute
that referenced
this pull request
Sep 1, 2026
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…in the fileSize worst-file signal (diegosouzapw#12291) The nightly headroom monitor flagged fileSize 🟡 permanently because the worst frozen file was src/app/docs/lib/openapi.generated.ts — frozen at its emitter's exact output size in diegosouzapw#12212, i.e. ~0% headroom BY CONSTRUCTION (growth is policed by conscious re-freezes, never by editing the module). Same class: open-sse/vendor/** (upstream code nobody slims by hand). isMonitorExemptFile() excludes .generated. modules and vendor/ paths from the monitor's worst/near-cap accounting only — check:file-size itself still enforces both. The fileSize row now points at the worst HUMAN-EDITABLE frozen file (currently tests/integration/skills-pipeline.test.ts at 4.5%, a true early warning: its baseline note already requires a split rationale for any further growth). Refs diegosouzapw#12149
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the chronic 🟡 on the
fileSizerow of the nightly 📈 Baseline headroom report (#12149): the worst frozen file wassrc/app/docs/lib/openapi.generated.ts, which #12212 froze at its emitter's exact output size — ~0% headroom by construction (growth is policed by conscious re-freezes, never by hand-editing the module). Same class:open-sse/vendor/**(upstream code nobody slims by hand).isMonitorExemptFile()inscripts/quality/baseline-headroom.mjs: excludes.generated.modules andvendor/paths from the monitor's worst/near-cap accounting.check:file-sizestill enforces caps on both classes; only the alerting stops crying wolf about files a human cannot slim.tests/integration/skills-pipeline.test.tsat 4.5% — a true early warning (its baseline note from the 08-26 batch already requires a split rationale for any further growth; deliberately NOT relaxed here).Validation
tests/unit/build/baseline-headroom.test.ts: +1 test (exemption matrix + integration throughfileSizeHeadroom) — 7/7 pass.node scripts/quality/baseline-headroom.mjs --only fileSizebefore/after: worstopenapi.generated.ts 1346/1347 (0.1%)→skills-pipeline.test.ts 1156/1211 (4.5%), frozen-count 127 → 124 measured.Refs #12149