Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 6c57c77

Browse files
fix(ci): re-pin the console eager-closure baseline and ceiling on main's own reading (objectui#10996) (#11018)
Fixes #10996 Clause-②: no ## What this is `main` itself sat over the console eager-closure aggregate ceiling, so every pull request that runs `Bundle Analysis` was red on `main`'s own bytes, whatever its own delta. This re-pins `BASELINE` and `MAX_EAGER_CLOSURE_GZIP_BYTES` together, in one commit, by the procedure the checker documents for itself, in the direction the triage grade gave (comment 5874625537 on objectui#10996). The ceiling does not move alone. ## Maintainer authorisation (verbatim, untranslated) The checker's docblock says raising the aggregate ceiling "is a human's act, not an agent's". The maintainer picked this option in the `domain:ui` seat 4 session chat on 2026-09-28, for card objectui#10996: > 授权本席位重设基线 (推荐) The option read, in the seat's words: re-measure on the latest `main`, re-pin `BASELINE`, set the ceiling to the reading plus half the regression threshold in ONE commit, and quote the authorisation in the PR. The same quote is recorded in the new dated entry in the ceiling's docblock, beside the objectui#7122 entry that records its own. ## Readings | | value | |---|---| | commit measured | `5d689c3f6`, the `origin/main` head at measurement (it still was when this was pushed), no diff applied | | reading (`eagerGzipBytes`) | **3,179,055** gzipped bytes, 330 of 2446 chunks eager, 10,758,424 raw | | retired pair | ceiling 3,179,000 over `BASELINE` 3,133,419 on `bbf6b02d9` | | before | 3,179,055 against 3,179,000: **55 bytes over** | | new ceiling | **3,225,000** = 3,179,055 + 45,568 (half of 91,136) = 3,224,623, rounded to the nearest thousand, which is how every earlier re-pin rounded | | new headroom | **45,945 bytes = 0.50x** (0.504) of `REGRESSION_THIS_GATE_MUST_CATCH_BYTES` | Checker verdict lines, `node scripts/check-eager-closure-budget.mjs` on a console build: - **Before**, on `5d689c3f6` with the old constants: exit 1. `❌ Console eager closure is 3104.5 KB gzipped across 330 chunks — 0.1 KB over the 3104.5 KB budget.` The per-chunk, membership and sensitivity halves passed; only the aggregate was red. - **After**, on this branch's `bebf75ed`, rebuilt: exit 0. `✅ Console eager closure is 3104.5 KB gzipped across 330 of 2446 chunks (budget: 3149.4 KB, headroom: 44.9 KB).` Sensitivity row: `✅ aggregate closure 3104.5 KB measured / 3149.4 KB ceiling (headroom 44.9 KB = 0.50x the 89.0 KB regression)`. All 4 per-chunk rows passed, membership passed. - **Freshness**: not applicable to a local run. I simulated the `pull_request` leg with both base sources set to the checker at `5d689c3f6`, and it printed `✅ Ceiling freshness: all 3 ceiling constants are unchanged on main since this checkout's base (5d689c3)`. - The head build's per-chunk rows equal the `5d689c3f6` build's exactly: 330 names, every gzip and raw figure the same. This diff changes no bundler input. Instrument: `CI=true pnpm --filter @object-ui/console exec vite build` (workspace packages alias to `src/`, and `CI` only drops the compression and visualizer plugins), reading `apps/console/dist/eager-closure.json`, each build under `os-verify-lock.sh`. ## What the bytes are: two control builds of `main`, one container, one instrument **The last step**: `4b742f41d` (the newest `main` commit still under the line) to `5d689c3f6`, 8 commits, **+584**. `4b742f41d` reads 3,178,471, which is the seat's figure on the card to the byte and calibrates this instrument. | chunk | `4b742f41d` | `5d689c3f6` | delta | |---|--:|--:|--:| | `plugin-form` | 35,718 | 36,267 | +549 | | `plugin-view` | 18,860 | 18,892 | +32 | | seven others | | | +3 | | `vendor-objectstack` | 1,237,912 | 1,237,912 | 0 | | `ui-components` | 277,412 | 277,412 | 0 | | `framework` | 72,233 | 72,233 | 0 | | `i18n-locale-en` | 41,739 | 41,739 | 0 | The +549 is objectui#10986 (`8aa68b159`, `MasterDetailForm` resolving its `I18nLabel` texts). It is eager because `apps/console`'s `register-plugins.ts` imports `@object-ui/plugin-form` statically. The only commit in the window that touches `packages/plugin-view` is `e9ca14ca9` (objectui#10975). The +32 belongs to that chunk, but I did not bisect it to that commit. **The whole window**: `67485872ed` (the squash that landed the retired baseline's branch) to `5d689c3f6`. That is 841 commits by the compare API, **+45,272**, and the growth is diffuse: | chunk | `67485872ed` | `5d689c3f6` | delta | |---|--:|--:|--:| | `ui-components` | 266,156 | 277,412 | +11,256 | | `plugin-form` | 29,470 | 36,267 | +6,797 | | `plugin-grid` | 98,817 | 105,502 | +6,685 | | `vendor-icon-*` (all 277) | 76,330 | 82,405 | +6,075 | | `src` | 161,575 | 167,515 | +5,940 | | `index` | 149,631 | 153,880 | +4,249 | | `i18n-locale-en` | 40,531 | 41,739 | +1,208 | | `data-adapter` + `i18n` + `framework` | 184,643 | 182,786 | -1,857 | | `vendor-objectstack` | 1,240,245 | 1,237,912 | -2,333 | | everything else (43 names) | 886,385 | 893,637 | +7,252 | `67485872ed` itself builds to 3,133,783. That is 364 bytes above the retired `bbf6b02d9` reading of 3,133,419, and the two were taken in different containers. So 45,272 + 364 = 45,636 is the whole distance between the retired baseline and the new one. The `vendor-icon-*` figure of 76,330 on `67485872ed` equals the figure the retired `BASELINE` entry recorded for `bbf6b02d9`, which acts as a lit control across the two containers. Shrinking is a follow-up and not part of this card. The triage grade names the eager `plugin-form` import as the measured candidate and objectui#9399 as the precedent. ## Diff: two files, one commit - `scripts/check-eager-closure-budget.mjs` - `MAX_EAGER_CLOSURE_GZIP_BYTES` 3_179_000 to 3_225_000, plus one dated entry, "RAISED A SECOND TIME, ON EXPLICIT MAINTAINER AUTHORISATION (objectui#10996)", in its docblock. The entry carries the quote, the reading, the commit, both control tables and the headroom. - The "Headroom above BASELINE is N bytes" line is re-derived to 45,945. The header names that line as the one place the constants' headroom is stated, and it was already stale at 45,183. - `BASELINE`: `gzipBytes` 3_179_055, `chunks` 330, `totalChunks` 2446, `commit` `5d689c3f6`, `squashMerge` null. The attached prose is rewritten for a reading that is itself a `main` commit. `squashMerge` is null because its own docblock requires it: "Write `null` and let a follow-up name the merge once it exists." - Two sentences in `PER_CHUNK_BASELINE`'s prose that stated which commit `BASELINE` carries. See the surface note below. - Not changed: any per-chunk ceiling or per-chunk baseline value, `REGRESSION_THIS_GATE_MUST_CATCH_BYTES`, any exemption, any import, or anything under `packages/**` or `apps/**`. - `scripts/__tests__/check-eager-closure-budget.test.ts`: only the invariants that must move with the pair. - The `BASELINE` ledger case, `records what each baseline carries as data`, now pins one carried commit plus `squashMerge` null. The docblock on both sides says that `null` reds this case and that the case is re-pinned deliberately. It stays exact and positional, not widened. - The two `BASELINE.gzipBytes`-rendered literals change `3060.0` to `3104.5`. Their comment calls them "re-taken each time the baseline moves". ### Surface note: one step outside the claim's literal wording The claim limits the checker edit to `BASELINE`, `MAX_EAGER_CLOSURE_GZIP_BYTES` and one dated entry. The test `holds every "BASELINE carries X" claim in the attached prose to the live value` reads `PER_CHUNK_BASELINE`'s prose for sentences of the form "BASELINE's HASH". Moving `BASELINE.commit` therefore reds it unless the sentence "BASELINE's `bbf6b02d9` is dated 2026-09-13" moves too. I rewrote that paragraph. It also said `ui-components` "shares" BASELINE's commit, which this re-pin makes false. For the same reason I rewrote the `ui-components` inline comment "the same console build as BASELINE above". Only prose changed; no `PER_CHUNK_*` value moved. ## Verification, all on the final commit `bebf75ed` - `pnpm exec vitest run` on the 8 test files that reference the checker (`check-eager-closure-budget`, `render-budget-comment`, `check-eager-locale-catalogues`, `check-side-effects-array`, `ci-cd-pipeline-doc`, `vite-declared-lazy-views`, `vite-ineffective-dynamic-imports`, `vite-types-zod-lazy`): **8 files, 428 tests passed**. On `main` before the edit, the two named files gave 215 passed, and after it 215 passed. - `tsc -p tsconfig.scripts.json --listFiles`: exit 0 with 0 errors. The listing includes both touched files. - eslint (`--no-inline-config --format json`) on the two touched files: 2 files in the JSON, 0 errors, 0 warnings, neither ignored. This run is narrowed on purpose. - The population comes from eslint's own config: `lint:root` = `eslint .` minus `packages`, `examples`, `apps` and `docs`, so `scripts/**` is inside it. - The count, 2, comes from the JSON output. - Invariance: `eslint.config.js` sets no `parserOptions.project` or `projectService`, so linting is not type-aware and this diff cannot move a verdict on any untouched file. - The repo-wide `pnpm lint` belongs to CI. - `check:new-line-citations`: `VERDICT new-cross-file-line-citations: 0 new citation(s) ... -> exit 0`. - `check:control-bytes`: `OK (scanned 9300 tracked text file(s); skipped 85 binary)`. - `check-changeset-presence`: `✅ No source or published contract of a released package changed in this range, so no changeset is owed.` - `changeset:check` (fixed-group and no-major checks) passed. - `check-entry-guard`, `check-lint-coverage` and `check-test-path-roots` all exited 0. - `node scripts/check-governed-queue-guard.mjs --test` on both paths: `✅ NOT GOVERNED — 2 path(s) checked against 5 governed surface(s); none matched.` ## Reverse verification Both legs ran from the committed `bebf75ed`, through `ablation-replace.mjs`. Each mutation was proven on disk (anchor count 1 to 0, blob changed), and each restore was proven by `blob == HEAD` plus an empty `git diff HEAD`. 1. **Old ceiling, new baseline.** `MAX_EAGER_CLOSURE_GZIP_BYTES = 3_179_000` on the head build made the checker exit 1: `❌ ... 0.1 KB over the 3104.5 KB budget.` With the new constants it exits 0, as shown above. 2. **New ceiling, old baseline**, which is the "ceiling alone" shape. `gzipBytes: 3_133_419` made the unit file red, 12 failed out of 178. The guard reported `would have failed on the regression it exists to catch: expected 91581 to be less than 91136`, so raising the ceiling alone trips the test's constant-vs-constant guard. ## Changeset None is owed. The gate's verdict line is quoted above: `scripts/` publishes nothing, which is why the claim carries `Clause-②: no`. ## Acceptance notes - **Pre-existing stale prose, left untouched and not caused by this change.** Two `PER_CHUNK_BASELINE` inline comments already named the wrong build. - The `vendor-objectstack` comment says "`34a1578ef`, the same build as BASELINE above (objectui#7122)". This has been false since objectui#7479 moved `BASELINE`. - The `i18n-locale-en` comment says "`755d34a5f` (objectui#7479) — the SAME console build as BASELINE above". This has been false since objectui#9251. - No test reads either comment. Nothing in flight will pick them up. - **What this reading covers.** The reading is of `5d689c3f6`. CI weighs this PR's merge ref, so anything that lands on `main` before the merge is not in the new constant. The `BASELINE` prose says so. - **Why the `BASELINE` commit resolves this time.** It is an ordinary `main` commit, so a later back-fill of `squashMerge` would record which merge carried the change and would not be repairing provenance. That note is in the prose too. Dispatched as an os-dev agent by the `domain:ui` seat 4 PM, session `https://claude.ai/code/session_015AUunPkX7UTkCH9e7AdZo1`. --- _Generated by [Claude Code](https://claude.ai/code/session_015AUunPkX7UTkCH9e7AdZo1)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent e2dffc9 commit 6c57c77

2 files changed

Lines changed: 195 additions & 115 deletions

File tree

‎scripts/__tests__/check-eager-closure-budget.test.ts‎

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,11 @@ describe('ceiling sensitivity, judged live (objectui#5924)', () => {
777777
// moves (objectui#6683 down to 3177.7, objectui#6776 down to 3146.8,
778778
// objectui#7122 UP to 3468.0 on the authorised raise, objectui#7479 down to
779779
// 3090.6 when nine locale catalogues left the eager closure, objectui#9251
780-
// down to 3060.0 when lucide's 1,781-icon record left it) — a
780+
// down to 3060.0 when lucide's 1,781-icon record left it, objectui#10996 UP
781+
// to 3104.5 on the authorised re-pin over `main`'s own drift) — a
781782
// rendering derived in the test would agree with the renderer by
782783
// construction and pin nothing.
783-
expect(result.message).toContain('3060.0');
784+
expect(result.message).toContain('3104.5');
784785
});
785786

786787
it('is exactly one regression wide, from either side of the line', () => {
@@ -1610,7 +1611,7 @@ describe('main', () => {
16101611
// about the FIXTURE while the gate under test behaved correctly. The number
16111612
// this case is actually about is "the report's chunk count, echoed".
16121613
expect(outputs.closure_chunks).toBe(String(fixture.files.length));
1613-
expect(outputs.closure_gzip_kb).toBe('3060.0');
1614+
expect(outputs.closure_gzip_kb).toBe('3104.5');
16141615
});
16151616

16161617
it('exits 1 — a verdict about the BUNDLE — when over budget', () => {
@@ -2550,8 +2551,9 @@ describe('the prose attached to the baselines (objectui#7046)', () => {
25502551

25512552
/**
25522553
* What each baseline carries AS DATA, recorded so the pin above cannot go
2553-
* vacuous in silence. Measured on `main`: `BASELINE` carries exactly two
2554-
* commit strings; `PER_CHUNK_BASELINE` carries NONE — its per-key provenance
2554+
* vacuous in silence. Measured on `main`: `BASELINE` carries exactly one
2555+
* commit string, with `squashMerge` null since objectui#10996 (below);
2556+
* `PER_CHUNK_BASELINE` carries NONE — its per-key provenance
25552557
* commits live only in prose, with no exported value to check them against,
25562558
* which is why the pin above says nothing about it and the claim pin below is
25572559
* what guards its block. Add a `commit` field there and this reds, and the pin
@@ -2571,9 +2573,15 @@ describe('the prose attached to the baselines (objectui#7046)', () => {
25712573
* at that moment is `null`, and `null` reds here. That red is the intended
25722574
* signal: it is a ledger, it is re-pinned deliberately, and a predicate loose
25732575
* enough to accept both shapes would stop recording anything.
2576+
*
2577+
* objectui#10996 is the first re-baseline to meet it, and re-pinned it to the
2578+
* shape it left: `squashMerge` null, one commit carried. ⛔ Still exact and
2579+
* positional — a back-fill of the squash reds here again, and is re-pinned to
2580+
* two strings the same way.
25742581
*/
25752582
it('records what each baseline carries as data, so the pin cannot go vacuous', () => {
2576-
expect(commitsCarriedBy(BASELINE)).toEqual([BASELINE.commit, BASELINE.squashMerge]);
2583+
expect(commitsCarriedBy(BASELINE)).toEqual([BASELINE.commit]);
2584+
expect(BASELINE.squashMerge).toBeNull();
25772585
expect(commitsCarriedBy(PER_CHUNK_BASELINE)).toEqual([]);
25782586
});
25792587

0 commit comments

Comments
 (0)