Skip to content

bench(lynx): decompose template ingress ownership - #717

Merged
trueadm merged 7 commits into
octanejs:mainfrom
Huxpro:huxcx/bench-lynx-template-ingress
Aug 12, 2026
Merged

trueadm merged 7 commits into
octanejs:mainfrom
Huxpro:huxcx/bench-lynx-template-ingress

Conversation

@Huxpro

@Huxpro Huxpro commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add reproducible AB/BA create/replace/append attribution at 1k, 10k, and 30k rows
  • separate BTS replay, clone/transfer, MTS validation/expansion/preparation, PAPI creation, remaining host apply, ACK/publication, and presentation residual
  • record endpoint/direction wire bytes plus command, template-run, instance, value, and public-handle counters
  • check in n=5 live reports and unit tests for instrumentation and analysis

Tracks Huxpro#47.

Decision: NO-GO for the packet/ACK hypothesis

This is deliberately a measurement-only PR. The issue's owner-first gate rejects the proposed product change:

create scale replay clone PAPI host apply ACK residual
1k 18.1% 0.4% 41.8% 27.6% 0.3% 8.9%
10k 12.2% 0.3% 48.1% 28.4% 0.0% 9.9%
30k 9.8% 0.3% 51.2% 28.4% 0.0% 8.6%

Clone/transfer is only 0.2–0.9%. ACK/publication is 0–0.3% for create and 11–16% for replace/append, so even deleting it entirely cannot satisfy all three ≥15% latency cells plus the 50% total-wire gate.

The measured owner is host materialization: PAPI creation plus remaining host apply accounts for 69.5–79.6% of create and scales linearly. At 10k, replace/append total wire is dominated by WebCore event/control traffic rather than the Octane commit. That owner is split into a follow-up issue instead of manufacturing a packet-format win.

Artifacts

  • benchmarks/lynx-table/stages/results/live-1000.{json,md}
  • benchmarks/lynx-table/stages/results/live-10000.{json,md}
  • benchmarks/lynx-table/stages/results/live-30000.{json,md}
  • benchmarks/lynx-table/stages/results/live-report.md

Validation

  • stage attribution unit tests — 7 passed
  • latest-main control/profile/vue-vdom smoke — passed for FCP, create, replace, append
  • pnpm format:files:check ...
  • pnpm sync

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Temporarily patches core Lynx transport/PAPI/main-thread sources during profile builds, so restore failures or anchor drift could affect local measurement builds. Production bundles remain uninstrumented and fold-tested.

Overview
Adds a measurement-only stage-decomposition instrument for the Lynx table bench so FCP/create/replace/append ownership can be attributed with exclusive observed intervals plus named residuals.

Profile builds now temporarily patch Lynx sources (via instrumentLynxStageSources) to record finer timers—bgReplayMs, papiCreateMs, mtExpandMs, first-screen plan/slice eval—then restore the originals. The analyzer enforces exclusive stage sums, AB/BA interleaving with n >= 5, and a 10% direct-share gate for GO verdicts.

Checked-in live reports at 1k (and related scales) conclude NO-GO for wire/encoding and ACK-only changes: clone/transfer stays under 1%, while PAPI creation plus remaining host apply owns ~70%+ of create.

Reviewed by Cursor Bugbot for commit 68bc6f9. Bugbot is set up for automated code reviews on this repo. Configure here.

Huxpro and others added 6 commits August 12, 2026 00:27
…rness

Gated page console/pageerror passthrough plus mount and rep-error
markers. DNFs previously reported nothing; this flag is how the
select-storm event-drop regression was traced.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013br9KPN1riTSP683xEvUuU
Add a reusable quiet-host stage decomposition runner with deterministic accounting tests and SG1 measurements.

Co-authored-by: TRAE CLI <[email protected]>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit b84b102. Configure here.

@github-actions github-actions Bot added the agent-authored Diff or issue body substantially produced by an AI agent label Aug 12, 2026
@trueadm
trueadm marked this pull request as ready for review August 12, 2026 09:35
@trueadm
trueadm merged commit 8273aad into octanejs:main Aug 12, 2026
22 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants