This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Commit 6c57c77
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | | - | |
| 784 | + | |
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| |||
1610 | 1611 | | |
1611 | 1612 | | |
1612 | 1613 | | |
1613 | | - | |
| 1614 | + | |
1614 | 1615 | | |
1615 | 1616 | | |
1616 | 1617 | | |
| |||
2550 | 2551 | | |
2551 | 2552 | | |
2552 | 2553 | | |
2553 | | - | |
2554 | | - | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
2555 | 2557 | | |
2556 | 2558 | | |
2557 | 2559 | | |
| |||
2571 | 2573 | | |
2572 | 2574 | | |
2573 | 2575 | | |
| 2576 | + | |
| 2577 | + | |
| 2578 | + | |
| 2579 | + | |
| 2580 | + | |
2574 | 2581 | | |
2575 | 2582 | | |
2576 | | - | |
| 2583 | + | |
| 2584 | + | |
2577 | 2585 | | |
2578 | 2586 | | |
2579 | 2587 | | |
| |||
0 commit comments