Repository navigation
Conversation
At most one non-empty commit dispatches per main-thread frame: the first commit after idle crosses immediately, and a commit prepared before the previous one's frame ended is held until main answers that apply with the new frame-pulse message at its next frame boundary. Held time folds interim renders through the existing awaiting-acknowledgement contract, so a storm of ticks batches instead of queueing a commit per tick. Empty-command batches always cross unpaced (they mutate nothing on main and must not spend frames), a 64ms safety valve force-opens the gate when the frame source stalls, a pre-acknowledgement rejection reopens it, and commitPacing: 'immediate' restores unpaced dispatch. Hosts without a frame source answer pulses synchronously, which degrades pacing to today's immediate behavior and keeps the deterministic wire gates stable. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013br9KPN1riTSP683xEvUuU
This was referenced Aug 9, 2026
Owner
Author
|
Conclusion: close as not mergeable. The unconditional frame-pulse pacing mechanism is rejected; live-main pacing research continues in Huxpro/octane issue 45 with a backpressure and zero-command settlement gate. |
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.
Stacked on #1 (
lynx/bench-wire-instrumentation→lynx/bench-website-viz→lynx/wire-payload-change-size); implements [lynx-perf 2] frame-aligned commit pacing (issue #3), the follow-up PR #1 flags for the storm trade-off.Summary
commitPacing: 'frame', the default;'immediate'restores unpaced dispatch). The first commit after idle crosses immediately — pacing never taxes one-shot latency.pace: trueflag; main answers each applied paced commit with a newframe-pulseMT→BG message at its next frame boundary, which reopens the background dispatch gate. Inbound validation is unconditional; outbound self-checks stayLYNX_DEVELOPMENT-gated.options.frameScheduler→lynx.requestAnimationFrame→target.requestAnimationFrame→ none. With no frame source the pulse is answered synchronously, so pacing degrades to today's immediate dispatch — Node harnesses and the deterministic rig behave byte-identically (only the 12-byte"pace":trueflag moves the select commit 225→237B, far under the 2048B budget).pace: truecommits consume frames (3 framed commits for a 50-tick storm).PACE_SAFETY_MS, ~4 frames) if the frame source stalls (hidden Lynx-for-Web page throttling rAF); a pre-acknowledgement rejection reopens the gate since it consumed no frame.pacedCommitscounter so the rig can gate "frame-consuming commits ≤ frames elapsed" — the issue-[lynx-perf 2] Frame-aligned commit throttling — recover the storm wall-clock deliberately #3 acceptance in deterministic form.Measured
Deterministic rig (
node benchmarks/lynx-table/run.mjs 3, drift-checked across iterations): all existing counters unchanged except select bytes 225→237 (the pace flag). New paced scenario (injected frame source, one frame per 2 macrotask turns, 1k rows):Lynx-for-Web wall clock (this host, 4× Xeon, same instrument both runs, medians of n=3, ratios vs vue-vdom measured in the same run; baseline = stack tip
e14d6001measured back-to-back with this diff):Validation
pnpm format:checkpnpm typecheckpnpm test— 16,883 passed / 18 failed in 19 files, run twice with an identical failure list; all pre-existing, none in the lynx or universal projects. 17 files are Playwright/Chromium browser & e2e suites that cannot launch in this container (pinnedchromium_headless_shell-1228binary absent);rspeedy-plugin native-demoneeds the macOS Lynx Explorer;website ssr-smoke/benchmarkscard-count assert (28 ≠ 26) reproduces identically on the base stack tipe14d6001with this diff absent — reported on feat(lynx): change-size-proportional commit wire cost, with a gated cross-framework benchmark (integration of 3 upstream PRs) #1.commit-pacing.test.ts, 6 tests);universal-transport+universal-nativesuites green (48 tests)node benchmarks/bench.mjs --quick --ratios lynx-tablePASS (9 guards incl. 3 new paced guards)update_storm_paced_frame_commits_1kguard breaches at 2.00×Risk / follow-ups
call-main/dispose identities against its own accepted version, so the background cannot silently skip wire versions). This is the empty-commit-elision item in [lynx-perf 6] Protocol slimming: lazy ack handles, merged completion, empty-commit elision #7.Provenance
agent-authored)🤖 Generated with Claude Code
https://claude.ai/code/session_013br9KPN1riTSP683xEvUuU
Generated by Claude Code