Repository navigation
docs(bench): re-audit the L5 bundle gate on the unmerged issue-66 stack - #114
Merged
Merged
Conversation
#58's cutover gate wants main-thread gzip "meaningfully toward the ~51 KB median (propose ≤1.5×)", and #66 §6 records that #95 already repaid #63's module-level trade — so this milestone re-verifies rather than re-pays. Two arms, same host, deterministic bytes: `origin/new-lynx` against the tip of the unmerged stack, plus seven cut points in between. Four findings, none of them a code change. The #63 trade stays repaid; nothing in the stack re-incurs it. Every frozen budget but one is already breached on `new-lynx`, before a commit of this stack — they were calibrated on upstream `ffadd397`. The suite fails on the base and on the head, first at `preview main gzip` both times. A gate that is red on its own base cannot report a regression, so it needs a deliberate recalibration on a chosen tree; re-freezing from the branch that grew the number would launder the growth into the baseline, so this does not do it. The stack costs +1,721 B main gzip (+2.17%), and the ladder says where. The specialized background core taxes the main thread nothing — 0 bytes on preview main, −1 on IFR main — and puts its whole +1,468 B on the background program. Every byte of main-thread growth is first-screen work, against a 1,000-row native-list page that now appears at 29.5 ms instead of 70.4 ms. On the rows-0 app the split is total: main raw +4,202 B, background raw +0. The ≤1.5× target is missed on the gated fixture and was missed before this stack: 1.585× the median, from 1.552×. The rows-0 app's main program is 1.187× and meets it; the two fixtures are different applications and #58 does not say which answers the gate. Closing it needs what that bullet names — deleting the plan interpreter, batch pipeline, and recursive validator from the main bundle — and none is deletable while the staged path is still the direct applier's fallback and every inbound message is still revalidated. Refs #66.
1 task done
6 tasks done
Huxpro
changed the base branch from
perf/lynx-direct-first-screen-lists
to
new-lynx
August 21, 2026 20:25
Huxpro
marked this pull request as ready for review
August 21, 2026 20:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #113. Issue #66 Phase D, first item — the L5 bundle re-audit that
#66 §6 calls a hard gate.
No code changes. Two documents: a new
benchmarks/lynx-bundle-size/results/stack-66-reaudit.mdand a §8 entry indocs/lynx-specialized-target-l0.mdpointing at it.#58's cutover gate wants main-thread gzip "meaningfully toward the ~51 KB median
(propose ≤1.5× as the target)". #66 §6 records that #95 already repaid #63's
module-level gzip trade, so this milestone should re-verify rather than
re-pay. This is that re-verification, and it does not come back clean.
Protocol
Two arms, same host, same session, deterministic bytes — so the comparison is
exact and does not depend on host quiet:
origin/new-lynx5d61724, the integration base for the wholestack.
perf/lynx-direct-first-screen-lists566700e, the tip.Plus five cut points in between. The inventory arm ran with
OCTANE_INVENTORY_CALIBRATE=1— the harness's own escape hatch — so the wholemetric set is collected instead of aborting on the first breach. No budget was
edited to obtain any number here.
Findings
1. The #63 trade stays repaid
Nothing in the stack re-incurs it. The compiler-side arm moves preview main gzip
by 0 bytes.
2. Every frozen budget but one is already red on
new-lynxBefore a single commit of this stack. They were calibrated on upstream
ffadd397, andnew-lynxhas moved since.node benchmarks/bench.mjs --ratios lynx-bundle-sizefails on the base and onthe head, first at
preview main gzipboth times. A gate red on its own basecannot report a regression, so it needs a deliberate recalibration on a chosen
tree. This PR does not do that, because re-freezing from the branch that grew
the number would launder the growth into the baseline. It is a call for the
owner to make, and the table above is what it needs.
3. The stack costs +1,721 B main gzip, and the ladder says exactly where
new-lynx5d61724af33496fbccb045ac4c9b6e52ff8f34bea7566700eThe specialized background core taxes the main thread nothing — 0 bytes on
preview main, −1 on IFR main — and puts its whole +1,468 B where it runs, on the
background program. A per-root flag shipping a second core did not tax the
thread it does not run on.
Every byte of main-thread growth is first-screen work: +2.17%, against a
1,000-row native-list page that now appears at 29.5 ms instead of 70.4 ms. On the
rows-0 app the split is total — main raw +4,202 B, background raw +0.
C1 reads oddly at +314 B: it added a pre-check walk that C2b then deleted, and
C2b still grew, because what replaced it is the adoption journal for rows that
were never painted.
4. The ≤1.5× target is missed, and was missed before this stack
App.lynx.tsrxpreview main gzipApp.lynx.tsrxIFR main gzipThe verdict depends on which fixture answers the gate, and #58 does not say.
On the
lynx-bundle-sizefixture — whose budgets are the checked gate — it is1.585× and missed, from 1.552× on the base. On the rows-0 app it is 1.187× and
met with room. The two disagree because they are different applications.
Closing it needs what #58's L5 bullet actually names — deleting the plan
interpreter, the batch pipeline, and the recursive validator from the main-thread
bundle — and none of the three is deletable yet: the staged batch path is
still the fallback the direct applier hands trees back to, and
validateLynxBackgroundInboundMessagestill runs on every inbound message.One caveat on the denominator, stated in the report: the 51,228 B median is a
carried constant, not a reproducible measurement. Only the three references'
.web.bundlefixtures are vendored; the median was taken over five Lynx-modeconfigs and nothing in this repository rebuilds them.
Validation
pnpm format:checkpnpm sync— no generated changesnode benchmarks/bench.mjs --ratios lynx-bundle-sizeon both arms — themeasurement itself; it reports a gate failure on both, which is finding 2
node benchmarks/lynx-bundle-size/inventory.mjswithOCTANE_INVENTORY_CALIBRATE=1on both armsnode benchmarks/lynx-bundle-size/run.mjson all seven cut pointspnpm typecheck,pnpm test— documentation only, no source touched.Both were run green on the parent commit for perf(lynx): build native lists through direct first-screen emission #113.
No changeset: documentation and benchmark results only, no user-facing package
change.
Risk / follow-ups
Recommendation: recalibrate on
new-lynxonce the stack's disposition isdecided, so the gate can report regressions again — and re-freeze the +1,721 B
only if the trade is accepted.
is to stay a gate, the five reference configs need rebuilding and vendoring, or
the target needs restating against something this repository can measure.
production-inventory.md, whichremains the frozen baseline on upstream
ffadd397.Provenance
agent-authored)Generated by Claude Code