Skip to content

Commit 1586dde

Browse files
chore(ui): raise the eager ui-components ceiling by 8,000 bytes on maintainer ruling (#36100)
<!-- 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, no card of its own. **Authorisation: maintainer ruling 7063116595 on #36023** (option B on the seat's decision card, chosen 2026-11-21T13:12Z: raise the eager `ui-components` budget by about 8 KB, with headroom, in its own budget-only PR). ## What changes One file, `ui/scripts/check-eager-closure-budget.mjs`, constants and their comments only: | constant | before | after | |---|---:|---:| | `PER_CHUNK_GZIP_CEILINGS['ui-components']` | 347,000 | 355,000 | | `PER_CHUNK_BASELINE['ui-components']` | 265,937 | 273,937 | The ceiling and its baseline move together by the same +8,000, which keeps the ceiling-minus-baseline gap (81,063) the way objectstack#28124 did for `i18n-locale-en`. A dated "⚠️ RAISED ... ON EXPLICIT MAINTAINER RULING" entry on the key carries the rows below and what the bytes buy. No code change, #36039 is not touched, no exemption added, no import made lazy. Not moved: `MAX_EAGER_CLOSURE_GZIP_BYTES`, `BASELINE`, `REGRESSION_THIS_GATE_MUST_CATCH_BYTES`, the other three per-chunk rows. ## Why `main` sits 104 bytes under the old line, so S5 #36039 (the form's line-item grid cells) is ejected from the merge queue on it, and so would the next form-field PR be. ### 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 `78f7160e` alone, then that `main` with #36039's head `fbbaaa99` merged in (`a31a993e`, local, not pushed). Gzipped bytes: | chunk | `78f7160e` | `a31a993e` | delta | |---|---:|---:|---:| | `vendor-objectstack` | 671,638 | 671,638 | 0 | | `i18n-locale-en` | 65,749 | 65,749 | 0 | | `framework` | 88,339 | 88,339 | 0 | | `ui-components` | 346,896 | 349,448 | **+2,552** | | aggregate | 2,028,610 | 2,031,144 | +2,534 | The same 104 eager chunks by name in both builds; besides `ui-components` only `src` moved by more than 4 bytes (+19). Raw minified `ui-components`: 1,292,123 -> 1,299,070 (+6,947). (The S5 thread measured +2,679 on an older main, `7ba22bb6`; `main` has since drifted +5.4 KB in this chunk, which is why it now sits 104 bytes under the line on its own.) ### What the bytes buy - +2,552: the line-item grid's in-cell option and date panels (`GridSelectCell`, `GridDateCell`) and its pop-out text input (`GrowingCellInput`), so a form's line items edit in the cell as a list grid does. - About 5.4 KB of shared headroom once S5 lands (355,000 − 349,448 = 5,552), so the next form-field PR does not bounce at once. Not a budget for a new component group. Per the ruling, a follow-up card takes GridField out of the eager chunk (it is `import()`ed but also statically exported from `packages/fields/src/index.tsx`), after which both numbers come back down together. ## Verification Clause-②: no Metadata-protocol: none - `pnpm --dir ui run check:eager-closure` on the merged tree (`a31a993e` build, this branch's constants): exit 0; `ui-components` 341.3 KB / 346.7 KB ceiling, headroom 5.4 KB; aggregate, membership and sensitivity halves all ✅. - `pnpm --dir ui exec vitest run scripts/__tests__/check-eager-closure-budget.test.ts`: 174/174 passed (ceiling > baseline, gap < 695 KiB). - `node scripts/pm/check-governed-merges.mjs --branch HEAD`: NOT governed, ordinary queue landing. - `dispatch-gates.mjs --commands` (16 commands for this file list), each `:: exit 0`: check-closing-keyword-parity (+ `--self-test`), check-comment-mask-corpus, `pnpm --dir ui exec vitest run scripts/`, check:adr-anchors, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:pm-expected-skips, check:published-files, check:refd-timer-probe, check:registry-log-declared, check:rest-log-spy-declared, check:tier-file-adoption, check:undeclared-dep-imports, check:watch-hint-literal. - `skip-changeset`: the only file is under `ui/scripts/`, owned by the private root package `object-ui-monorepo`, so the diff publishes nothing from any released package (AGENTS.md Post-Task Checklist step 3). Branch is the harness-assigned `claude/project-thread-usk9vf`, not `claude/issue-<n>-…` (no card of its own). ## 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; comment and constant edits only) - [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 7dd1a2f commit 1586dde

1 file changed

Lines changed: 49 additions & 2 deletions

File tree

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

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,7 +2395,49 @@ export const PER_CHUNK_GZIP_CEILINGS = Object.freeze({
23952395
//
23962396
// ⚠️ RAISED ×1.20 by objectui#12653 (2026-10-16), the maintainer's 20%
23972397
// ruling, from 289,000 (the entry on MAX_EAGER_CLOSURE_GZIP_BYTES).
2398-
'ui-components': 347_000,
2398+
//
2399+
// ⚠️ RAISED (2026-11-21), from 347,000 by 8,000 bytes, ON EXPLICIT
2400+
// MAINTAINER RULING: objectstack#36023, comment 7063116595, option B on the
2401+
// seat's decision card, chosen 2026-11-21T13:12Z — 「放宽 8 KB 留余量」 (raise
2402+
// it by about 8 KB, with headroom). Its baseline below moved by the same
2403+
// amount in the same commit, which keeps the ceiling-minus-baseline gap this
2404+
// key carried (81,063), as objectstack#28124 did for `i18n-locale-en`.
2405+
// `main` sat 104 bytes under the old line, so S5 (objectstack#36039, the
2406+
// form's line-item grid) was ejected from the queue on it.
2407+
//
2408+
// WHAT THE BYTES ARE — one container, one instrument: `CI=true pnpm exec
2409+
// turbo run build --filter=@object-ui/console...`, reading
2410+
// `apps/console/dist/eager-closure.json`, twice on one tree: `main` at
2411+
// `78f7160e` alone, then the same `main` with objectstack#36039's head
2412+
// `fbbaaa99` merged in (`a31a993e`, local, not pushed). Gzipped bytes:
2413+
//
2414+
// | chunk | `78f7160e` | `a31a993e` | delta |
2415+
// |-----------------------|-----------:|-----------:|------:|
2416+
// | `vendor-objectstack` | 671,638 | 671,638 | 0 |
2417+
// | `i18n-locale-en` | 65,749 | 65,749 | 0 |
2418+
// | `framework` | 88,339 | 88,339 | 0 |
2419+
// | `ui-components` | 346,896 | 349,448 | +2,552 |
2420+
// | ⇒ aggregate | 2,028,610 | 2,031,144 | +2,534 |
2421+
//
2422+
// The same 104 eager chunks by name in both builds; besides this one, only
2423+
// `src` moved by more than 4 bytes (+19). Raw minified bytes of this chunk:
2424+
// 1,292,123 -> 1,299,070 (+6,947).
2425+
//
2426+
// WHAT THEY BUY: the +2,552 are the line-item grid's in-cell option and date
2427+
// panels (`GridSelectCell`, `GridDateCell`) and its pop-out text input
2428+
// (`GrowingCellInput`), so a form's line items edit in the cell the way a
2429+
// list grid does (objectstack#36023 S5). The other ~5.4 KB are SHARED
2430+
// headroom (355,000 − 349,448 = 5,552 once S5 lands) so the next form-field
2431+
// PR does not bounce at once, ⛔ not a budget for a new component group. They
2432+
// come back down when the follow-up card the ruling names takes GridField
2433+
// out of the eager chunk (it is `import()`ed but also statically exported,
2434+
// `packages/fields/src/index.tsx`): re-measure then and lower both numbers
2435+
// together. ⛔ Not moved: MAX_EAGER_CLOSURE_GZIP_BYTES (it passes on both
2436+
// builds), BASELINE, REGRESSION_THIS_GATE_MUST_CATCH_BYTES and the other
2437+
// per-chunk rows. No exemption was added and no import was made lazy. The
2438+
// headroom `pnpm check:eager-closure` prints on YOUR build is the figure in
2439+
// force, ⛔ not this one.
2440+
'ui-components': 355_000,
23992441
});
24002442

24012443
/**
@@ -2606,7 +2648,12 @@ export const PER_CHUNK_BASELINE = Object.freeze({
26062648
// objectui#10996 re-pinned the aggregate onto `main` — comparable with that
26072649
// retired reading, ⛔ not with the one above — and the same instrument and
26082650
// container as the control build it is subtracted from (objectui#9251).
2609-
'ui-components': 265_937,
2651+
//
2652+
// Moved with its ceiling (2026-11-21, ruling 7063116595 on objectstack#36023),
2653+
// from 265,937 by the same +8,000 bytes (the entry on that key of
2654+
// PER_CHUNK_GZIP_CEILINGS), which keeps the ceiling-minus-baseline gap this
2655+
// key carried. ⚠️ So this is no longer one build's reading.
2656+
'ui-components': 273_937,
26102657
});
26112658

26122659
/**

0 commit comments

Comments
 (0)