perf(ratchet): raise engine-wasm and viewer-entry-js ceilings to main plus 0.5%

Merged
LO
9d ago
+5-5

Raises two bundle ceilings to the larger measured value for main plus 0.5%, rounded down to whole bytes. #11038 merged first and reset the viewer entry JS ceiling to the measured 2,002,030 bytes. This PR raises it further to 2,012,040 bytes with the headroom the maintainer approved.

Why

  • #10860 exceeded the previous viewer entry JS limit by 17 bytes. When the blocker was reported, main was already about 0.07% over that ceiling, inside the 0.10% tolerance.
  • #10781 exceeded the engine WASM limit by 609 bytes after adding schema attribute maps. Nine stacked child PRs add more. Ratchet report
  • The maintainer approved 0.5% headroom for both metrics, using the same rule #10974 proposes for daily lowerings.

What was tried first

The existing tolerance absorbed earlier increases. #10852 reset the eager JS ceiling after lazy-loading resolved one of the eager JS breaches. #11038 then reset the viewer entry JS ceiling to the measured size of main.

Change

MetricCeiling on mainLocal measurementHosted CINew ceiling
engine-wasm-bytes10,410,32210,415,69610,415,69010,467,774
viewer-entry-js-bytes2,002,0302,002,0302,002,0302,012,040
  • Provenance records a50001da9a4fe85cc2a6cefd4215d49f63c3b32f, measured at 2026-11-20T18:38:09.350Z with scripts/perf-ratchet/measure-bundle.mjs after the source WASM and viewer builds. Hosted CI measured the identical Git tree at bc4ae636ba5eea3544183b6d38882d3580364f26. The local engine was 6 bytes larger, so the ceiling uses that value. The viewer entry measurements matched. Hosted CI build
  • The tolerance stays at 0.10% for both entries. All other entries retain their existing values.
  • The bundle ratchet passed after the rebase with both the local and hosted measurements. Pre-handoff passed all 14 applicable gates. CI path filters skipped the revert oracle and UI drift checks.

The daily lowering job remeasures main and can lower these ceilings as the bundles shrink.