Skip to content

Commit 3c06fc5

Browse files
chore(ui): raise the eager ui-components ceiling x1.30 to 451,100 on maintainer ruling (#36109)
<!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuWrubarDyy1TAMVqK1ZWbAY)_ repo:objectstack#1 · os-sales · session_01L6bhgWSAwkSz6F3eit2Y9u Refs #36023 Area: b1-L · budget-only, follow-up to #36100. **Authorisation: maintainer ruling 7063869131 on #36023** (amends point 2 of 7063116595). At 2026-11-21T14:01Z the maintainer widened the raise on #36100's thread, verbatim: 「这个可以大幅放宽」 (this can be raised by a lot), then picked "raise 30%, to 451,100" on the decision card that followed. #36100 was already in the merge queue at +8,000 and landed as it was so S5 #36039 was not held up; this PR carries the rest. ## What changes One file, `ui/scripts/check-eager-closure-budget.mjs`, constants and their comments only: | constant | before (#36100) | after | |---|---:|---:| | `PER_CHUNK_GZIP_CEILINGS['ui-components']` | 355,000 | 451,100 | | `PER_CHUNK_BASELINE['ui-components']` | 273,937 | 265,937 | - Ceiling: 347,000 (the value ruling 7063116595 started from) × 1.30 = 451,100 exactly, rounded nowhere. - Baseline: back to its measurement (`bbf6b02d9`'s 265,937). #36100's +8,000 only kept the ceiling-minus-baseline gap; a ruled raise widens the gap instead, as the 2026-11-17 30% ruling on `i18n-locale-en` and the 20% ruling (objectui#12653) left their baseline rows alone. Both checked constraints hold: 451,100 > 265,937, and the gap 185,163 < `REGRESSION_THIS_GATE_MUST_CATCH_BYTES` (711,680). - A dated "⚠️ RAISED ×1.30 ... ON EXPLICIT MAINTAINER RULING" entry on the key, with the rows below and a "⭐ PAYBACK: objectstack#36102" line (L1-b's N1 on #36100). #36100's entry stays as the history it is. - Not moved: `MAX_EAGER_CLOSURE_GZIP_BYTES`, `BASELINE`, `REGRESSION_THIS_GATE_MUST_CATCH_BYTES`, the other three per-chunk rows. No code change, no exemption, no import made lazy. ## Why The maintainer wants this line to stop ejecting form and field PRs one at a time. With +8,000 the chunk keeps about 4.8 KB once S5 lands; with ×1.30 about 98.6 KB. ### The rows (one container, one instrument) `CI=true pnpm exec turbo run build --filter=@object-ui/console...`, reading `apps/console/dist/eager-closure.json`, twice on one tree: `main` at `1586ddec` (#36100 landed) alone, then that `main` with #36039's head `fbbaaa99` merged in (`034f0628`, local, not pushed). This file is not a console build input, so the branch builds the same bytes as `main`. Gzipped bytes: | chunk | `1586ddec` | `034f0628` | delta | |---|---:|---:|---:| | `vendor-objectstack` | 671,638 | 671,638 | 0 | | `i18n-locale-en` | 65,900 | 65,900 | 0 | | `framework` | 88,341 | 88,341 | 0 | | `ui-components` | 347,621 | 350,177 | +2,556 | | aggregate | 2,030,013 | 2,032,544 | +2,531 | Same 104 eager chunks by name in both builds; besides `ui-components` none moved by more than 21 bytes. Headroom of `ui-components`: | ceiling | on `1586ddec` | with S5 | |---|---:|---:| | 355,000 (now) | 7,379 | 4,823 | | 451,100 (this PR) | 103,479 | 100,923 (0.14x the 695 KiB regression) | ### What the bytes buy Shared headroom only, so form and field PRs are not ejected on this line one at a time. Not a budget for a new component group; a whole group still belongs behind a lazy boundary. Payback: #36102 takes GridField out of the eager chunk; re-measure when it lands. ## Verification Clause-②: no Metadata-protocol: none - `pnpm --dir ui run check:eager-closure` on the `034f0628` build (S5 merged) with this branch's constants: exit 0; `ui-components` 342.0 KB / 440.5 KB, headroom 98.6 KB; aggregate, membership and sensitivity halves all ✅. - `pnpm --dir ui exec vitest run scripts/`: 172 files passed, 2 skipped (5,121 tests passed), including `check-eager-closure-budget.test.ts`. - `eslint ui/scripts/check-eager-closure-budget.mjs`: exit 0. - `node scripts/pm/check-governed-merges.mjs --branch HEAD`: NOT governed. - Same one-file list as #36100, whose 16 `dispatch-gates.mjs --commands` all exited 0 on that head; of those, only the `vitest run scripts/` family reads this file's values, and it was re-run above. - `skip-changeset`: `ui/scripts/` belongs to the private root package `object-ui-monorepo`, so nothing publishes. Branch is the harness-assigned `claude/project-thread-usk9vf`, restarted from `main` after #36100 merged. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. (no names added) - [x] 3. No formatter ran; `pnpm lint` passes. (`eslint` on the one file: exit 0) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgWSAwkSz6F3eit2Y9u Co-authored-by: Claude <noreply@anthropic.com>
1 parent dc10b3b commit 3c06fc5

1 file changed

Lines changed: 59 additions & 2 deletions

File tree

‎ui/scripts/check-eager-closure-budget.mjs‎

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,59 @@ export const PER_CHUNK_GZIP_CEILINGS = Object.freeze({
24372437
// per-chunk rows. No exemption was added and no import was made lazy. The
24382438
// headroom `pnpm check:eager-closure` prints on YOUR build is the figure in
24392439
// force, ⛔ not this one.
2440-
'ui-components': 355_000,
2440+
//
2441+
// ⚠️ RAISED ×1.30 (2026-11-21), from 347,000 to 451,100, ON EXPLICIT
2442+
// MAINTAINER RULING, ⛔ not by a measurement here. It replaces the +8,000
2443+
// above (objectstack#36100) within the hour: the maintainer, verbatim,
2444+
// 2026-11-21T14:01Z, on that change's thread: 「这个可以大幅放宽」 (this can be
2445+
// raised by a lot), then the 30% option on the decision card that followed,
2446+
// recorded on objectstack#36023 as comment 7063869131. The factor applies to
2447+
// the ceiling that ruling 7063116595 started from, 347,000. ⛔ Rounded
2448+
// nowhere: 347,000 × 1.30 is 451,100 exactly.
2449+
//
2450+
// HEADROOM — one container, one instrument: `CI=true pnpm exec turbo run
2451+
// build --filter=@object-ui/console...`, reading
2452+
// `apps/console/dist/eager-closure.json`, twice on one tree: `main` at
2453+
// `1586ddec` (objectstack#36100 landed) alone, then the same `main` with
2454+
// objectstack#36039's head `fbbaaa99` merged in (`034f0628`, local, not
2455+
// pushed). This file is not a console build input, so the branch builds the
2456+
// same bytes as `main`. Gzipped bytes:
2457+
//
2458+
// | chunk | `1586ddec` | `034f0628` | delta |
2459+
// |-----------------------|-----------:|-----------:|-------:|
2460+
// | `vendor-objectstack` | 671,638 | 671,638 | 0 |
2461+
// | `i18n-locale-en` | 65,900 | 65,900 | 0 |
2462+
// | `framework` | 88,341 | 88,341 | 0 |
2463+
// | `ui-components` | 347,621 | 350,177 | +2,556 |
2464+
// | ⇒ aggregate | 2,030,013 | 2,032,544 | +2,531 |
2465+
//
2466+
// The same 104 eager chunks by name in both builds; besides this one, none
2467+
// moved by more than 21 bytes. Under 451,100 this chunk has 103,479 bytes
2468+
// of headroom on `main` and 100,923 once S5 lands (0.14x
2469+
// REGRESSION_THIS_GATE_MUST_CATCH_BYTES); under 355,000 it had 7,379 and
2470+
// 4,823. The headroom `pnpm check:eager-closure` prints on YOUR build is the
2471+
// figure in force, ⛔ not this one.
2472+
//
2473+
// WHAT THE BYTES BUY: SHARED headroom, so form and field PRs stop being
2474+
// ejected from the queue on this line one at a time, ⛔ not a budget for a
2475+
// new component group: a whole group still belongs behind a lazy boundary.
2476+
// ⭐ PAYBACK: objectstack#36102 takes GridField out of the eager chunk (it is
2477+
// `import()`ed but also statically exported, `packages/fields/src/index.tsx`);
2478+
// re-measure when it lands.
2479+
//
2480+
// WHAT MOVED WITH IT, read from "Raising one" above and the two constraints
2481+
// it names as checked: this ceiling passes on its baseline below, and
2482+
// 451,100 − 265,937 = 185,163 bytes stays under
2483+
// REGRESSION_THIS_GATE_MUST_CATCH_BYTES (695 × 1024 = 711,680). Both hold
2484+
// with the baseline at its measurement, so the baseline below goes BACK to
2485+
// 265,937: the +8,000 objectstack#36100 gave it only kept the
2486+
// ceiling-minus-baseline gap, which a ruled raise deliberately widens, as
2487+
// the 30% ruling on `i18n-locale-en` (2026-11-17) and the 20% ruling
2488+
// (objectui#12653) left their PER_CHUNK_BASELINE rows alone. ⛔ Not moved
2489+
// either: MAX_EAGER_CLOSURE_GZIP_BYTES (it passes on both builds), BASELINE,
2490+
// REGRESSION_THIS_GATE_MUST_CATCH_BYTES and the other per-chunk rows. No
2491+
// exemption was added and no import was made lazy.
2492+
'ui-components': 451_100,
24412493
});
24422494

24432495
/**
@@ -2653,7 +2705,12 @@ export const PER_CHUNK_BASELINE = Object.freeze({
26532705
// from 265,937 by the same +8,000 bytes (the entry on that key of
26542706
// PER_CHUNK_GZIP_CEILINGS), which keeps the ceiling-minus-baseline gap this
26552707
// key carried. ⚠️ So this is no longer one build's reading.
2656-
'ui-components': 273_937,
2708+
//
2709+
// ⭐ Moved BACK to that reading, 265,937, by the ×1.30 raise on its ceiling
2710+
// (2026-11-21, ruling 7063869131 on objectstack#36023): a ruled raise widens
2711+
// the gap rather than keeping it (the entry on that key of
2712+
// PER_CHUNK_GZIP_CEILINGS), so this is again `bbf6b02d9`'s reading.
2713+
'ui-components': 265_937,
26572714
});
26582715

26592716
/**

0 commit comments

Comments
 (0)