Skip to content

ci(perf): add manual frontend and protocol measurements - #5042

Merged
Astro-Han merged 12 commits into
mainfrom
ci/4677-performance-workflows
Sep 8, 2026
Merged

Astro-Han merged 12 commits into
mainfrom
ci/4677-performance-workflows

Conversation

@Astro-Han

@Astro-Han Astro-Han commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add two independent manual performance workflows for Desktop responsiveness and protocol encoding amplification. Each records raw samples, median/nearest-rank p95, fixture/conditions and environment as artifacts and job summaries. No product optimization, schedule or timing merge gate.

Refs #4677, #5038.

Electron measurements reuse the existing isolated Host fixtures; Storybook reuses the oversized-Turn generator. Protocol measurements call the production Runtime Resource projection and existing wire encoder/decoder. Harness-only negative controls check instrumentation sensitivity. See scripts/perf/CI.md for coverage, reproduction and measurement limits.

Verification

  • npm run format, npm run lint, ASF header audit and git diff --check: passed.
  • Relevant dependency builds and Desktop main build: passed.
  • Protocol scale/UTF-8/completeness and duplicate-work negative control: passed locally (not a CI baseline).
  • Desktop Storybook typecheck and Playwright collection (two dedicated cases): passed.
  • Repository workflow policy: all 42 tests passed, including checkout credential handling.
  • No full repository suite or heavy local UI benchmark run.

CI acceptance

Both lanes passed at measured commit a21c104ad3d5af7e140c875e4048f2d9f5d24493:

  • Frontend run: both Electron/Host cases and Storybook completed. Downloaded artifacts verify passed case status, raw sample counts, browser versions, 100ms long-task calibration, DOM traces and a nonempty idle CPU profile.
  • Protocol run: six workloads, ten timing samples per workload, UTF-8/page completeness checks and all six duplicate-encoding negative controls passed. Downloaded JSON matches the measured SHA.

The post-acceptance commit 2ac89354642651a44c40502a8120a125a392fd30 only removes the four temporary branch-push trigger lines. Both workflows now have workflow_dispatch only; the final workflow policy check passed all 42 tests. GitHub cannot dispatch a new workflow until it exists on the default branch, so the temporary branch-only trigger was used for pre-merge acceptance and has been removed.

The frontend lane covers 120-Turn switching/history, 45-tool expansion and scroll anchors, foreground streaming/input and Stop, two background streams, and repeated DOM/heap plus idle CPU samples. Electron uses the real Host with the existing fake backend; the tool-expansion story is simulated. Browser traces, an idle CPU profile and raw JSON/Markdown are retained for 30 days.

These are laboratory DOM measurements including driver/trace overhead, not native input, INP, screen presentation or power measurements. The protocol lane covers production Runtime Resource projection and wire encoding/decoding, not SQLite I/O, transport or the whole Host coordinator. Timing values do not gate merges.

Review follow-up

Current head f262098b513aac5aeb73d652c9e3cba46ebf2868 addresses the two P3 comments: timed protocol calls skip harness assertions while retaining production decoding, and each Electron case declares an explicit report annotation instead of deriving its output name from the test title. The cursor progress guard stays timed. The new metric is warm-projection-codec-ms; historical values below are unchanged and must not be used as a direct timing comparison with the new metric.

Validation: six protocol workloads / 60 timed samples and all encoding negative controls passed locally. A scoped instrumentation probe confirmed zero timed deepEqual calls and retained production decoding; untimed assertions still execute. Playwright collection confirmed two distinct report annotations. Format, lint and diff checks passed. No hosted workflow rerun was performed after this correction; the successful hosted runs below validate the earlier measured commit. Both workflows remain manual-only. The earlier APPROVE applies to 2ac893546, not this new commit.

Recorded measurement results

The values below are copied from downloaded JSON artifacts, with all original samples retained in the expandable report below so they remain available after the 30-day artifact expiry. Summary values are rounded to three decimals; raw samples retain original precision. Median averages the middle pair; p95 is nearest rank, so n=10 p95 is the maximum. n=1 entries are individual diagnostics or counters, not latency distributions.

Report Measured commit Frontend run Protocol run
Earlier complete run 06f8953ec7efc6786a088b533971c661fdd4d46b Passed Passed
Accepted run a21c104ad3d5af7e140c875e4048f2d9f5d24493 Passed Passed

Comparison limits: these commits change the harness, not product performance. Earlier Stop used a hold-open response; accepted Stop interrupts a normal response mid-stream and checks interrupted UI state, a proper response prefix and no further delta. Earlier background input used short drafts; accepted input uses 680-character drafts. Earlier long-task calibration ran separately in Chromium; accepted calibration tests the actual Electron observer and removes its samples before measurement. Do not calculate a speedup from these runs.

Frontend runs both report AMD EPYC 7763, 4 logical CPUs, 16,766,414,848 bytes RAM, image 20260831.293.1, Node 24.18.1, Electron 43.4.1 / Chrome 150.0.7871.224, and Storybook Chromium 151.0.7922.34. Protocol hardware differs: earlier AMD EPYC 7763/image 20260831.293.1; accepted Intel Xeon Platinum 8573C/image 20260907.300.1 (4 logical CPUs, 16,765,378,560 bytes RAM). Protocol timings across these environments are not comparable. Full kernel and runner identifiers are retained below.

Frontend conditions: 1400×900, light theme, reduced motion; real Electron/Host with fake backend, 9-character deltas every 45ms; repeated warm navigation and input; Storybook uses ten fresh navigations then ten 45-tool expand/scroll/close cycles. Driver polling and trace overhead are included. No forced GC. Protocol uses one discarded warmup plus ten measured repetitions, with encoding instrumentation in a separate pass.

Frontend measurements

Scenario / metric (unit in metric) Earlier n Earlier median / p95 Accepted n Accepted median / p95
session-roundtrip / first-action-ms 1 1080.934 / 1080.934 1 1121.213 / 1121.213
session-roundtrip / warm-dom-ready-ms 10 1120.842 / 1412.518 10 1154.384 / 1193.614
120-turn-session / live-dom-elements 11 2788 / 2788 11 2788 / 2788
session-roundtrip / retained-dom-nodes-including-detached 11 24722 / 34174 11 21985 / 32525
session-roundtrip / heap-bytes-no-forced-gc 11 53409232 / 65285676 11 50374076 / 65413160
small-session / live-dom-elements 1 1656 / 1656 1 1656 / 1656
small-session / mounted-turns 1 1 / 1 1 1 / 1
older-history / roundtrip-dom-ready-ms 10 1354.896 / 1962.248 10 1423.896 / 1907.125
idle-after-repeated-navigation / renderer-task-ms-per-second 10 28.083 / 83.696 10 29.095 / 129.091
idle-after-repeated-navigation / heap-bytes-no-gc 10 50813236 / 65908848 10 53848324 / 65423748
navigation-case-total / long-task-count-over-50ms 1 100 / 100 1 103 / 103
navigation-case-total / long-task-ms 100 60 / 87 103 63 / 97
navigation-case-total / long-animation-frame-count 1 153 / 153 1 161 / 161
navigation-case-total / long-animation-frame-ms 153 80.300 / 150 161 74.900 / 165.600
input-during-stream / dom-ready-ms 10 86.155 / 212.602 10 88.612 / 236.666
streaming / delivery-to-dom-mutation-ms 88 2.600 / 19.200 88 1.800 / 19.200
background-output / foreground-input-dom-ms 10 57.697 / 65.177 10 57.307 / 78.657
stop / dom-settled-ms 1 311.211 / 311.211 1 606.142 / 606.142
stream-and-background-case-total / long-task-count-over-50ms 1 2 / 2 1 3 / 3
stream-and-background-case-total / long-task-ms 2 67 / 76 3 54 / 62
stream-and-background-case-total / long-animation-frame-count 1 11 / 11 1 15 / 15
stream-and-background-case-total / long-animation-frame-ms 11 58.800 / 85.800 15 59.500 / 82.600
storybook-45-tools / reveal-and-expand-45-dom-ms 10 7220.396 / 7587.535 10 7327.830 / 7777.157
storybook-45-tools / cold-collapsed-unexpected-anchor-px 80 15.438 / 15.875 80 15.438 / 15.875
storybook-45-tools / expanded-unexpected-anchor-px 80 0 / 0 80 0 / 0
storybook-45-tools / dom-nodes-after-close 10 4317.500 / 4541 10 4185 / 4185
storybook-45-tools / heap-bytes-no-gc 10 66793240 / 102352920 10 49162848 / 49438248

Protocol measurements

Each workload is resource count × command payload size; the payload includes UTF-8 characters. Encoded bytes count JSON.stringify output work across projection, revision and decoding. Wire bytes count final encoded responses. Negative-control bytes repeat the production page builder and must exceed baseline encoded work. Timing includes validation.

Run Workload n Median / p95 ms JSON calls Encoded bytes Wire bytes Pages Negative-control encoded bytes
Earlier runtime-resource/8x32 10 0.492 / 0.712 19 23135 2873 1 39052
Earlier runtime-resource/32x32 10 2.038 / 4.598 67 219093 10837 1 409906
Earlier runtime-resource/128x32 10 8.526 / 10.439 261 1558838 42998 2 3004735
Earlier runtime-resource/8x8192 10 2.380 / 2.839 22 536107 68385 2 868924
Earlier runtime-resource/32x8192 10 9.864 / 10.958 82 2305499 273121 6 3798194
Earlier runtime-resource/128x8192 10 40.167 / 43.735 322 9383688 1092142 22 15516331
Accepted runtime-resource/8x32 10 0.367 / 0.461 19 23135 2873 1 39052
Accepted runtime-resource/32x32 10 1.441 / 2.985 67 219093 10837 1 409906
Accepted runtime-resource/128x32 10 6.636 / 8.620 261 1558838 42998 2 3004735
Accepted runtime-resource/8x8192 10 1.992 / 2.374 22 536107 68385 2 868924
Accepted runtime-resource/32x8192 10 8.314 / 8.685 82 2305499 273121 6 3798194
Accepted runtime-resource/128x8192 10 33.695 / 35.919 322 9383688 1092142 22 15516331

Earlier diagnostic runs

These frontend runs failed harness acceptance and are not complete baselines: 1e5ad68e3 (compound session selector / stream setup), 73a59865d (history synchronization, legacy session admission, story ID), 64a8c638f (rendered-text assertion and offscreen tool activation), and 3d296377a (Stop incorrectly inferred from a CSS class retained after settlement). The last run's trace showed an interrupted task; accepted assertions use actual consumer state. Their passing protocol runs are 34248409828, 34249144598, 34249916716, and 34252023977. Superseded cancelled runs are not measurements.

Complete earlier and accepted JSON reports: environment, metadata and every raw sample

Earlier — frontend-electron-navigation

{"schemaVersion":1,"name":"frontend-electron-navigation","commit":"06f8953ec7efc6786a088b533971c661fdd4d46b","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027345631","image":"20260831.293.1"},"metadata":{"status":"passed","browserVersion":{"protocolVersion":"1.3","product":"Chrome/150.0.7871.224","revision":"@12f5960712f73e8fe8cc6048a53686c2e9b0f84a","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) MakaDev/0.2.0 Chrome/150.0.7871.224 Electron/43.4.1 Safari/537.36","jsVersion":"15.0.245.28"},"fixture":"existing chat-prompt-rail (120 turns), normal fake stream (9 characters/45ms), hold-open stop","repetitions":10,"viewport":"1400x900","theme":"light","motion":"reduce","conditions":"One fresh Electron + real Host per case; first action separately recorded, ten warm repetitions. Streaming uses a fixed 679-character prompt, 9-character deltas/45ms; input checks every 100ms plus driver overhead.","limits":"DOM-event and preload admission probes, not native input or INP. Latency ends at verified DOM state (includes driver polling), not screen presentation. Stream lag begins at renderer subscription delivery, not provider send. CPU task duration is not power. No wakeup counter on CDP."},"rows":[{"scenario":"session-roundtrip","metric":"first-action-ms","n":1,"median":1080.9344340000007,"p95":1080.9344340000007,"samples":[1080.9344340000007]},{"scenario":"session-roundtrip","metric":"warm-dom-ready-ms","n":10,"median":1120.8418374999983,"p95":1412.5177810000023,"samples":[1066.8380049999996,1001.0157500000005,1225.437245000001,1226.342096999997,1247.292609,1099.3204389999992,1412.5177810000023,1142.3632359999974,981.0813370000033,987.1355340000009]},{"scenario":"120-turn-session","metric":"live-dom-elements","n":11,"median":2788,"p95":2788,"samples":[2788,2788,2788,2788,2788,2788,2788,2788,2788,2788,2788]},{"scenario":"session-roundtrip","metric":"retained-dom-nodes-including-detached","n":11,"median":24722,"p95":34174,"samples":[21678,23623,34174,21985,21981,32521,21984,27839,31401,26625,24722]},{"scenario":"session-roundtrip","metric":"heap-bytes-no-forced-gc","n":11,"median":53409232,"p95":65285676,"samples":[56262576,65285676,33542560,61953360,50250832,35182760,63138124,53409232,38507620,63397808,50311348]},{"scenario":"small-session","metric":"live-dom-elements","n":1,"median":1656,"p95":1656,"samples":[1656]},{"scenario":"small-session","metric":"mounted-turns","n":1,"median":1,"p95":1,"samples":[1]},{"scenario":"older-history","metric":"roundtrip-dom-ready-ms","n":10,"median":1354.895593000001,"p95":1962.247637999997,"samples":[1962.247637999997,1360.0407500000001,1333.579278000001,1352.3480640000016,1340.1578609999997,1338.3159689999957,1357.2753250000023,1371.7978959999964,1363.9492490000048,1352.5158609999999]},{"scenario":"idle-after-repeated-navigation","metric":"renderer-task-ms-per-second","n":10,"median":28.083021004092572,"p95":83.69634741625802,"samples":[83.69634741625802,29.249383069138315,28.339975263204977,27.826066744980164,40.76105686387338,74.34511339570615,26.96616589780428,27.279394075786737,27.043309458464485,27.33687948075886]},{"scenario":"idle-after-repeated-navigation","metric":"heap-bytes-no-gc","n":10,"median":50813236,"p95":65908848,"samples":[57256024,60143568,63023200,65908848,53806772,37529428,40099036,42674456,45244160,47819700]},{"scenario":"navigation-case-total","metric":"long-task-count-over-50ms","n":1,"median":100,"p95":100,"samples":[100]},{"scenario":"navigation-case-total","metric":"long-task-ms","n":100,"median":60,"p95":87,"samples":[74,50,64,76,69,56,60,81,63,53,58,76,54,73,87,65,69,52,74,64,79,71,114,66,52,72,73,122,80,62,79,67,99,67,69,62,65,69,112,68,60,50,70,78,56,95,72,52,83,69,81,72,74,54,60,74,56,79,59,76,62,50,57,50,54,53,54,56,51,50,54,63,53,54,71,63,54,62,60,54,53,50,54,53,52,54,56,54,54,51,55,54,54,55,55,53,55,54,59,53]},{"scenario":"navigation-case-total","metric":"long-animation-frame-count","n":1,"median":153,"p95":153,"samples":[153]},{"scenario":"navigation-case-total","metric":"long-animation-frame-ms","n":153,"median":80.30000000001746,"p95":150,"samples":[108.39999999999418,61.5,51.20000000001164,59.89999999999418,56,105.39999999999418,133.29999999998836,123.09999999997672,73.20000000001164,75.5,101.20000000001164,108.29999999998836,133.89999999999418,95.70000000001164,57.89999999999418,59.19999999998254,96,51.89999999999418,103,142.69999999998254,83.70000000001164,53.89999999999418,89.10000000000582,74.30000000001746,98.5,150,140.90000000002328,164.5,78.89999999999418,80.30000000001746,69.10000000000582,103.10000000000582,144.60000000000582,195.29999999998836,98.39999999999418,50.59999999997672,67.70000000001164,66.70000000001164,104.5,55.19999999998254,127.20000000001164,208,123.80000000001746,63.79999999998836,63.59999999997672,68.70000000001164,93.30000000001746,143.60000000000582,174.60000000000582,117.70000000001164,59,70.59999999997672,81.10000000000582,57.19999999998254,59.39999999999418,127.39999999999418,189.29999999998836,106.10000000000582,67.39999999999418,77.10000000000582,76.10000000000582,118.40000000002328,95.60000000000582,159.30000000001746,77.10000000000582,116.90000000002328,89.80000000001746,67.60000000000582,86.29999999998836,91.79999999998836,132,77.89999999999418,82.09999999997672,52.20000000001164,71.29999999998836,123.20000000001164,94.79999999998836,108.59999999997672,58.90000000002328,54.59999999997672,71.19999999998254,94.69999999998254,144.10000000000582,91,81.20000000001164,141,54.69999999998254,78.59999999997672,59.80000000001746,106.29999999998836,56.79999999998836,55.5,54.89999999999418,91.20000000001164,68.70000000001164,90.90000000002328,82.60000000000582,51.19999999998254,52.90000000002328,51.60000000000582,91.19999999998254,74.39999999999418,78.89999999999418,82.69999999998254,51.20000000001164,54.20000000001164,50.79999999998836,91.20000000001164,80.79999999998836,72.79999999998836,104.60000000000582,52.39999999999418,50.69999999998254,100.80000000001746,82.5,72.10000000000582,94.70000000001164,52.09999999997672,54.10000000000582,51.69999999998254,91.80000000001746,63.60000000000582,75.19999999998254,82.5,55.89999999999418,53.10000000000582,91.79999999998836,66.5,88.60000000000582,95.5,52.79999999998836,54.89999999999418,52.30000000001746,100.5,63.20000000001164,84.70000000001164,87.39999999999418,52,56,50.69999999998254,93.10000000000582,65.59999999997672,84.39999999999418,86.10000000000582,60.89999999999418,56.59999999997672,51.10000000000582,116.5,73.80000000001746,69.29999999998836,88.30000000001746,53.79999999998836,230]}]}

Earlier — frontend-electron-stream

{"schemaVersion":1,"name":"frontend-electron-stream","commit":"06f8953ec7efc6786a088b533971c661fdd4d46b","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027345631","image":"20260831.293.1"},"metadata":{"status":"passed","browserVersion":{"protocolVersion":"1.3","product":"Chrome/150.0.7871.224","revision":"@12f5960712f73e8fe8cc6048a53686c2e9b0f84a","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) MakaDev/0.2.0 Chrome/150.0.7871.224 Electron/43.4.1 Safari/537.36","jsVersion":"15.0.245.28"},"fixture":"existing chat-prompt-rail (120 turns), normal fake stream (9 characters/45ms), hold-open stop","repetitions":10,"viewport":"1400x900","theme":"light","motion":"reduce","conditions":"One fresh Electron + real Host per case; first action separately recorded, ten warm repetitions. Streaming uses a fixed 679-character prompt, 9-character deltas/45ms; input checks every 100ms plus driver overhead.","limits":"DOM-event and preload admission probes, not native input or INP. Latency ends at verified DOM state (includes driver polling), not screen presentation. Stream lag begins at renderer subscription delivery, not provider send. CPU task duration is not power. No wakeup counter on CDP."},"rows":[{"scenario":"input-during-stream","metric":"dom-ready-ms","n":10,"median":86.15463399999862,"p95":212.60178499999893,"samples":[212.60178499999893,82.02195199999551,85.79817899999762,73.8070299999963,84.7207219999982,94.98781700000109,86.51108899999963,71.30248500000016,89.11194899999828,86.98377400000027]},{"scenario":"streaming","metric":"delivery-to-dom-mutation-ms","n":88,"median":2.599999999976717,"p95":19.20000000001164,"samples":[36.5,7.2999999999883585,1.2999999999883585,1.2999999999883585,16.599999999976717,6.2000000000116415,3.400000000023283,19.20000000001164,1.599999999976717,4.699999999953434,11.700000000011642,16.599999999976717,1.1000000000349246,20.599999999976717,1.400000000023283,1.5,1.400000000023283,12.699999999953434,2.7000000000116415,6.5,10.599999999976717,1.400000000023283,1.5,1.8999999999650754,8.799999999988358,1.400000000023283,1.2000000000116415,23.699999999953434,1.2999999999883585,1.6000000000349246,6.7999999999883585,1.7000000000116415,1.400000000023283,6.7999999999883585,8.300000000046566,13.700000000011642,1.900000000023283,1.7000000000116415,1.2000000000116415,15.700000000011642,3.5,7.5,18.800000000046566,16.29999999998836,4.600000000034925,1.2999999999883585,1.099999999976717,2.599999999976717,1.400000000023283,1.8000000000465661,1.400000000023283,1.599999999976717,1.2000000000116415,14,1.7999999999883585,1.5,1.099999999976717,17.100000000034925,3.900000000023283,8.700000000011642,12.599999999976717,17.70000000001164,6,1.7000000000116415,1.3000000000465661,2.5,1.5,12.899999999965075,16.70000000001164,4.7000000000116415,1.5,10,2.599999999976717,1.5,1.2000000000116415,16.70000000001164,5.900000000023283,1.599999999976717,1.5,2.599999999976717,1.400000000023283,12.699999999953434,1.2000000000116415,1.7000000000116415,9.600000000034925,1.6000000000349246,1.400000000023283,21.599999999976717]},{"scenario":"background-output","metric":"foreground-input-dom-ms","n":10,"median":57.69720049999887,"p95":65.17680599998857,"samples":[65.17680599998857,61.67937100000563,57.735553999998956,55.16838699999789,59.34990300000936,57.65884699999879,55.70412699998997,56.137117999998736,57.56442200001038,58.23824500000046]},{"scenario":"stop","metric":"dom-settled-ms","n":1,"median":311.2108470000094,"p95":311.2108470000094,"samples":[311.2108470000094]},{"scenario":"stream-and-background-case-total","metric":"long-task-count-over-50ms","n":1,"median":2,"p95":2,"samples":[2]},{"scenario":"stream-and-background-case-total","metric":"long-task-ms","n":2,"median":67,"p95":76,"samples":[58,76]},{"scenario":"stream-and-background-case-total","metric":"long-animation-frame-count","n":1,"median":11,"p95":11,"samples":[11]},{"scenario":"stream-and-background-case-total","metric":"long-animation-frame-ms","n":11,"median":58.79999999998836,"p95":85.79999999998836,"samples":[59.899999999965075,62.899999999965075,55.90000000002328,52.5,58.79999999998836,58.399999999965075,64.90000000002328,55.40000000002328,78.59999999997672,55.40000000002328,85.79999999998836]}]}

Earlier — frontend-storybook

{"schemaVersion":1,"name":"frontend-storybook","commit":"06f8953ec7efc6786a088b533971c661fdd4d46b","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027345631","image":"20260831.293.1"},"metadata":{"fixture":"Performance45Tools, existing oversizedTurnMessages generator","chromium":"151.0.7922.34","viewport":"1400x900","theme":"light","motion":"reduce","repetitions":10,"conditions":"Ten fresh story navigations for cold scrolling, then ten expand/scroll/close cycles in the final mounted story. Synthetic ComposedShell, no Host. Relative programmatic scrolling, 100ms geometry settling.","limits":"DOM completion and anchor geometry are not screen-present timestamps or native wheel acceptance. Heap includes uncollected objects and previous document garbage; short repeated cycles alone do not prove a leak."},"rows":[{"scenario":"storybook-45-tools","metric":"reveal-and-expand-45-dom-ms","n":10,"median":7220.3964605,"p95":7587.535165999998,"samples":[7587.535165999998,7179.732251000001,7300.345046000002,7182.409636000004,7213.575938000009,7094.1302,7227.216982999991,7371.344403999989,7236.946631999977,7117.4490020000085]},{"scenario":"storybook-45-tools","metric":"cold-collapsed-unexpected-anchor-px","n":80,"median":15.4375,"p95":15.875,"samples":[15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375]},{"scenario":"storybook-45-tools","metric":"expanded-unexpected-anchor-px","n":80,"median":0,"p95":0,"samples":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"scenario":"storybook-45-tools","metric":"dom-nodes-after-close","n":10,"median":4317.5,"p95":4541,"samples":[4481,4422,4392,4362,4273,4273,4244,4214,4185,4541]},{"scenario":"storybook-45-tools","metric":"heap-bytes-no-gc","n":10,"median":66793240,"p95":102352920,"samples":[90574016,81284144,80654948,75138972,58447508,58442628,54906136,54927152,49427824,102352920]}]}

Earlier — protocol

{"schemaVersion":1,"name":"protocol","commit":"06f8953ec7efc6786a088b533971c661fdd4d46b","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027345619","image":"20260831.293.1"},"metadata":{"fixture":"runtime-resource-v1","repetitions":10,"warmup":1,"conditions":"Synthetic in-process production projection + wire encoding; no disk/network. Fresh objects per scale, warm process.","limits":"JSON.stringify instrumentation counts UTF-8 output work separately from timing; not allocations, SQLite I/O or whole Host latency. Includes canonicalization, revision and decoder work. Negative control duplicates production page call only in harness."},"rows":[{"scenario":"runtime-resource/8x32","metric":"warm-ms (includes validation)","n":10,"median":0.49186400000000674,"p95":0.7119339999999852,"samples":[0.47497300000000564,0.3936919999999873,0.5524669999999787,0.46739900000000034,0.7119339999999852,0.6675710000000095,0.5548720000000174,0.5087550000000078,0.35158400000000256,0.38996499999998946]},{"scenario":"runtime-resource/8x32","metric":"calls","n":1,"median":19,"p95":19,"samples":[19]},{"scenario":"runtime-resource/8x32","metric":"encodedBytes","n":1,"median":23135,"p95":23135,"samples":[23135]},{"scenario":"runtime-resource/8x32","metric":"wireBytes","n":1,"median":2873,"p95":2873,"samples":[2873]},{"scenario":"runtime-resource/8x32","metric":"pages","n":1,"median":1,"p95":1,"samples":[1]},{"scenario":"runtime-resource/8x32","metric":"negative-control-encodedBytes","n":1,"median":39052,"p95":39052,"samples":[39052]},{"scenario":"runtime-resource/32x32","metric":"warm-ms (includes validation)","n":10,"median":2.0375080000000025,"p95":4.59811000000002,"samples":[2.1433440000000132,2.2383009999999786,2.049811000000034,2.0252049999999713,1.957258999999965,1.9905709999999885,4.59811000000002,1.6242489999999634,1.5546999999999684,2.2775739999999587]},{"scenario":"runtime-resource/32x32","metric":"calls","n":1,"median":67,"p95":67,"samples":[67]},{"scenario":"runtime-resource/32x32","metric":"encodedBytes","n":1,"median":219093,"p95":219093,"samples":[219093]},{"scenario":"runtime-resource/32x32","metric":"wireBytes","n":1,"median":10837,"p95":10837,"samples":[10837]},{"scenario":"runtime-resource/32x32","metric":"pages","n":1,"median":1,"p95":1,"samples":[1]},{"scenario":"runtime-resource/32x32","metric":"negative-control-encodedBytes","n":1,"median":409906,"p95":409906,"samples":[409906]},{"scenario":"runtime-resource/128x32","metric":"warm-ms (includes validation)","n":10,"median":8.525946000000005,"p95":10.438586999999984,"samples":[8.278560999999968,9.797032999999999,10.438586999999984,9.090468999999985,8.208369000000005,8.219430999999986,8.51380800000004,8.53808399999997,8.227786000000037,8.555634999999995]},{"scenario":"runtime-resource/128x32","metric":"calls","n":1,"median":261,"p95":261,"samples":[261]},{"scenario":"runtime-resource/128x32","metric":"encodedBytes","n":1,"median":1558838,"p95":1558838,"samples":[1558838]},{"scenario":"runtime-resource/128x32","metric":"wireBytes","n":1,"median":42998,"p95":42998,"samples":[42998]},{"scenario":"runtime-resource/128x32","metric":"pages","n":1,"median":2,"p95":2,"samples":[2]},{"scenario":"runtime-resource/128x32","metric":"negative-control-encodedBytes","n":1,"median":3004735,"p95":3004735,"samples":[3004735]},{"scenario":"runtime-resource/8x8192","metric":"warm-ms (includes validation)","n":10,"median":2.3796384999999987,"p95":2.8393090000000143,"samples":[2.449333000000024,2.382419000000027,2.399220000000014,2.8393090000000143,2.37685799999997,2.407004000000029,2.357793000000015,2.315454999999986,2.333196999999984,2.334019000000012]},{"scenario":"runtime-resource/8x8192","metric":"calls","n":1,"median":22,"p95":22,"samples":[22]},{"scenario":"runtime-resource/8x8192","metric":"encodedBytes","n":1,"median":536107,"p95":536107,"samples":[536107]},{"scenario":"runtime-resource/8x8192","metric":"wireBytes","n":1,"median":68385,"p95":68385,"samples":[68385]},{"scenario":"runtime-resource/8x8192","metric":"pages","n":1,"median":2,"p95":2,"samples":[2]},{"scenario":"runtime-resource/8x8192","metric":"negative-control-encodedBytes","n":1,"median":868924,"p95":868924,"samples":[868924]},{"scenario":"runtime-resource/32x8192","metric":"warm-ms (includes validation)","n":10,"median":9.86444849999998,"p95":10.95804099999998,"samples":[9.911896000000013,9.515168999999958,10.95804099999998,9.923568999999986,9.517815000000041,9.860601999999972,9.41979200000003,9.882391999999982,9.409582999999998,9.86829499999999]},{"scenario":"runtime-resource/32x8192","metric":"calls","n":1,"median":82,"p95":82,"samples":[82]},{"scenario":"runtime-resource/32x8192","metric":"encodedBytes","n":1,"median":2305499,"p95":2305499,"samples":[2305499]},{"scenario":"runtime-resource/32x8192","metric":"wireBytes","n":1,"median":273121,"p95":273121,"samples":[273121]},{"scenario":"runtime-resource/32x8192","metric":"pages","n":1,"median":6,"p95":6,"samples":[6]},{"scenario":"runtime-resource/32x8192","metric":"negative-control-encodedBytes","n":1,"median":3798194,"p95":3798194,"samples":[3798194]},{"scenario":"runtime-resource/128x8192","metric":"warm-ms (includes validation)","n":10,"median":40.16691899999995,"p95":43.734625999999935,"samples":[39.89152200000001,39.54315400000007,43.734625999999935,41.03758200000004,39.69086800000002,40.18403599999999,39.823013999999944,40.25631999999996,40.14980199999991,41.552850000000035]},{"scenario":"runtime-resource/128x8192","metric":"calls","n":1,"median":322,"p95":322,"samples":[322]},{"scenario":"runtime-resource/128x8192","metric":"encodedBytes","n":1,"median":9383688,"p95":9383688,"samples":[9383688]},{"scenario":"runtime-resource/128x8192","metric":"wireBytes","n":1,"median":1092142,"p95":1092142,"samples":[1092142]},{"scenario":"runtime-resource/128x8192","metric":"pages","n":1,"median":22,"p95":22,"samples":[22]},{"scenario":"runtime-resource/128x8192","metric":"negative-control-encodedBytes","n":1,"median":15516331,"p95":15516331,"samples":[15516331]}]}

Accepted — frontend-electron-navigation

{"schemaVersion":1,"name":"frontend-electron-navigation","commit":"a21c104ad3d5af7e140c875e4048f2d9f5d24493","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027347172","image":"20260831.293.1"},"metadata":{"status":"passed","longTaskControl":[100],"browserVersion":{"protocolVersion":"1.3","product":"Chrome/150.0.7871.224","revision":"@12f5960712f73e8fe8cc6048a53686c2e9b0f84a","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) MakaDev/0.2.0 Chrome/150.0.7871.224 Electron/43.4.1 Safari/537.36","jsVersion":"15.0.245.28"},"fixture":"existing chat-prompt-rail (120 turns), normal fake stream (9 characters/45ms), mid-stream stop","repetitions":10,"viewport":"1400x900","theme":"light","motion":"reduce","conditions":"One fresh Electron + real Host per case; first action separately recorded, ten warm repetitions. Streaming uses a fixed 679-character prompt, 9-character deltas/45ms; input checks every 100ms plus driver overhead.","limits":"DOM-event and preload admission probes, not native input or INP. Latency ends at verified DOM state (includes driver polling), not screen presentation. Stream lag begins at renderer subscription delivery, not provider send. CPU task duration is not power. No wakeup counter on CDP."},"rows":[{"scenario":"session-roundtrip","metric":"first-action-ms","n":1,"median":1121.2128600000015,"p95":1121.2128600000015,"samples":[1121.2128600000015]},{"scenario":"session-roundtrip","metric":"warm-dom-ready-ms","n":10,"median":1154.3837504999992,"p95":1193.6140129999985,"samples":[1188.8958189999994,1128.767452,1162.8444629999995,1109.020357999998,1191.689327,1161.3494009999995,1147.418099999999,1193.6140129999985,1054.7667830000028,1050.7754410000016]},{"scenario":"120-turn-session","metric":"live-dom-elements","n":11,"median":2788,"p95":2788,"samples":[2788,2788,2788,2788,2788,2788,2788,2788,2788,2788,2788]},{"scenario":"session-roundtrip","metric":"retained-dom-nodes-including-detached","n":11,"median":21985,"p95":32525,"samples":[21444,24228,20696,22369,21985,32525,21990,21984,14256,14271,23419]},{"scenario":"session-roundtrip","metric":"heap-bytes-no-forced-gc","n":11,"median":50374076,"p95":65413160,"samples":[58442516,49362804,35015032,65413160,50374076,35294892,64662092,52305140,57514600,42644276,40683404]},{"scenario":"small-session","metric":"live-dom-elements","n":1,"median":1656,"p95":1656,"samples":[1656]},{"scenario":"small-session","metric":"mounted-turns","n":1,"median":1,"p95":1,"samples":[1]},{"scenario":"older-history","metric":"roundtrip-dom-ready-ms","n":10,"median":1423.8958355000013,"p95":1907.125114999999,"samples":[1907.125114999999,1424.0775250000006,1423.714146000002,1435.949239999998,1425.436580000005,1418.1138219999993,1410.0102540000007,1412.9149289999987,1431.4919990000053,1409.6526689999955]},{"scenario":"idle-after-repeated-navigation","metric":"renderer-task-ms-per-second","n":10,"median":29.095497582554557,"p95":129.09148816969957,"samples":[129.09148816969957,29.177457384714526,29.01353778039459,28.92769093224043,30.849473927255264,28.259911360828394,32.81667207496766,27.786575084282322,29.24644869389801,28.08957774665819]},{"scenario":"idle-after-repeated-navigation","metric":"heap-bytes-no-gc","n":10,"median":53848324,"p95":65423748,"samples":[41119980,44001828,46888956,49768548,52563520,55133128,57708520,60278156,62854048,65423748]},{"scenario":"navigation-case-total","metric":"long-task-count-over-50ms","n":1,"median":103,"p95":103,"samples":[103]},{"scenario":"navigation-case-total","metric":"long-task-ms","n":103,"median":63,"p95":97,"samples":[77,52,69,82,84,76,79,77,65,98,55,52,57,78,78,63,60,83,128,64,71,52,83,85,70,53,51,83,117,79,59,60,60,85,119,84,52,74,72,119,64,55,83,63,79,65,68,53,81,62,71,60,97,51,86,55,62,95,62,69,58,79,53,56,60,57,51,66,58,56,52,70,59,59,52,67,60,58,57,50,68,60,57,51,65,59,57,67,58,57,66,65,57,60,56,53,75,65,58,51,57,62,67]},{"scenario":"navigation-case-total","metric":"long-animation-frame-count","n":1,"median":161,"p95":161,"samples":[161]},{"scenario":"navigation-case-total","metric":"long-animation-frame-ms","n":161,"median":74.90000000002328,"p95":165.60000000000582,"samples":[114,63.80000000001746,52.89999999999418,77.19999999998254,58.20000000001164,114.90000000002328,175.10000000000582,117.20000000001164,95,68.39999999999418,107.80000000001746,134.20000000001164,173.30000000001746,88.39999999999418,68.60000000000582,70.89999999999418,90.20000000001164,52.19999999998254,102.90000000002328,166,113.5,63.29999999998836,66.29999999998836,70.70000000001164,97.39999999999418,51.79999999998836,217.89999999999418,108.89999999999418,107.10000000000582,59.79999999998836,67.79999999998836,58.5,72.60000000000582,151.5,140.10000000000582,103.79999999998836,69,74.90000000002328,86.20000000001164,97.5,211.40000000002328,110,76.69999999998254,74.59999999997672,56.30000000001746,93.5,117.39999999999418,216,128.60000000000582,58.70000000001164,68.10000000000582,70.10000000000582,73.70000000001164,51.10000000000582,120.70000000001164,201.60000000000582,95,72.10000000000582,70.20000000001164,99.70000000001164,65.39999999999418,147,144.29999999998836,103.70000000001164,58.90000000002328,58.29999999998836,97.5,118.5,144,92,58.29999999998836,94.5,131.29999999998836,125.30000000001746,53.5,137.89999999999418,56.20000000001164,70.60000000000582,80.60000000000582,103.5,165.60000000000582,104.79999999998836,71.30000000001746,136.70000000001164,58.30000000001746,55.5,85.39999999999418,95.39999999999418,58.60000000000582,57.29999999998836,64.09999999997672,61.79999999998836,95.29999999998836,55.60000000000582,81.5,92,55.10000000000582,67.29999999998836,51.79999999998836,59.79999999998836,51.60000000000582,93.79999999998836,55.70000000001164,83.40000000002328,99.30000000001746,55.70000000001164,70.89999999999418,69.20000000001164,60.5,99.20000000001164,61.10000000000582,90.29999999998836,84.90000000002328,54.5,68.5,50.10000000000582,76.5,114.5,61.79999999998836,93.5,86.20000000001164,54.89999999999418,69.5,51.20000000001164,62.09999999997672,94.79999999998836,63.10000000000582,82.89999999999418,87.89999999999418,60.10000000000582,66.5,51.29999999998836,60.90000000002328,93.79999999998836,55.19999999998254,81.5,85.5,55.20000000001164,68.40000000002328,54.70000000001164,59.80000000001746,94.69999999998254,54.5,94.90000000002328,107.5,56.10000000000582,62.60000000000582,61.5,93,74.5,90.79999999998836,82.39999999999418,61.40000000002328,66.79999999998836,59.89999999999418,107.89999999999418,66.70000000001164,74.90000000002328,83.60000000000582,55,232]}]}

Accepted — frontend-electron-stream

{"schemaVersion":1,"name":"frontend-electron-stream","commit":"a21c104ad3d5af7e140c875e4048f2d9f5d24493","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027347172","image":"20260831.293.1"},"metadata":{"status":"passed","longTaskControl":[100],"browserVersion":{"protocolVersion":"1.3","product":"Chrome/150.0.7871.224","revision":"@12f5960712f73e8fe8cc6048a53686c2e9b0f84a","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) MakaDev/0.2.0 Chrome/150.0.7871.224 Electron/43.4.1 Safari/537.36","jsVersion":"15.0.245.28"},"fixture":"existing chat-prompt-rail (120 turns), normal fake stream (9 characters/45ms), mid-stream stop","repetitions":10,"viewport":"1400x900","theme":"light","motion":"reduce","conditions":"One fresh Electron + real Host per case; first action separately recorded, ten warm repetitions. Streaming uses a fixed 679-character prompt, 9-character deltas/45ms; input checks every 100ms plus driver overhead.","limits":"DOM-event and preload admission probes, not native input or INP. Latency ends at verified DOM state (includes driver polling), not screen presentation. Stream lag begins at renderer subscription delivery, not provider send. CPU task duration is not power. No wakeup counter on CDP."},"rows":[{"scenario":"input-during-stream","metric":"dom-ready-ms","n":10,"median":88.61186350000207,"p95":236.6661249999961,"samples":[236.6661249999961,88.57897600000433,86.58656999999948,103.83418399999937,87.91430899999978,72.68508199999633,88.64475099999981,89.42290700000012,75.59322300000349,90.92392399999517]},{"scenario":"streaming","metric":"delivery-to-dom-mutation-ms","n":88,"median":1.8000000000029104,"p95":19.20000000001164,"samples":[35.69999999998254,7.2999999999883585,1.599999999976717,1.400000000023283,17.60000000000582,6.800000000017462,24.39999999999418,1.7000000000116415,1.5,6.399999999994179,1.3999999999941792,1.1999999999825377,1.2999999999883585,1.599999999976717,1.900000000023283,6.5,1.3999999999941792,16.800000000017462,1.3999999999941792,1.6000000000058208,1.3999999999941792,2.099999999976717,6.600000000005821,11.799999999988358,20.699999999982538,1.5,1.3999999999941792,13.800000000017462,1.8999999999941792,3.8999999999941792,1.6000000000058208,1.5,1.6000000000058208,1.3000000000174623,15,13.89999999999418,5.600000000005821,1.6000000000058208,5.2999999999883585,1.2999999999883585,1.3999999999941792,10.800000000017462,1.5,1.6000000000058208,6.5,1.6000000000058208,1.5,1.900000000023283,25.89999999999418,13.5,1.7000000000116415,1.5,11.099999999976717,1.6000000000058208,1.2999999999883585,1.3999999999941792,1.6000000000058208,19.20000000001164,4.399999999994179,1.5,13.800000000017462,1.7000000000116415,6.600000000005821,1.900000000023283,15.89999999999418,2,1.5,10.599999999976717,14.900000000023283,3,1.6000000000058208,12.89999999999418,4.600000000005821,1.7000000000116415,1.3000000000174623,14.799999999988358,1.6000000000058208,1.5,1.5,1.2000000000116415,1.6000000000058208,7.899999999994179,1.5,17,4.900000000023283,1.6000000000058208,12.900000000023283,18.29999999998836]},{"scenario":"background-output","metric":"foreground-input-dom-ms","n":10,"median":57.3066944999955,"p95":78.65713400000823,"samples":[78.65713400000823,66.35034099999757,53.613555999996606,58.541135999999824,63.3760970000003,56.07225299999118,55.48178799999005,55.8591710000037,56.05771999999706,58.83680999999342]},{"scenario":"stop","metric":"dom-settled-ms","n":1,"median":606.1421149999951,"p95":606.1421149999951,"samples":[606.1421149999951]},{"scenario":"stream-and-background-case-total","metric":"long-task-count-over-50ms","n":1,"median":3,"p95":3,"samples":[3]},{"scenario":"stream-and-background-case-total","metric":"long-task-ms","n":3,"median":54,"p95":62,"samples":[54,50,62]},{"scenario":"stream-and-background-case-total","metric":"long-animation-frame-count","n":1,"median":15,"p95":15,"samples":[15]},{"scenario":"stream-and-background-case-total","metric":"long-animation-frame-ms","n":15,"median":59.5,"p95":82.60000000000582,"samples":[56.30000000001746,65.10000000000582,50.5,52.10000000000582,58.60000000000582,54.40000000002328,72.5,54,82,82.60000000000582,72.89999999999418,59.5,50.60000000000582,62.39999999999418,59.5]}]}

Accepted — frontend-storybook

{"schemaVersion":1,"name":"frontend-storybook","commit":"a21c104ad3d5af7e140c875e4048f2d9f5d24493","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"AMD EPYC 7763 64-Core Processor","logicalCpus":4,"memoryBytes":16766414848,"runner":"GitHub Actions 1027347172","image":"20260831.293.1"},"metadata":{"fixture":"Performance45Tools, existing oversizedTurnMessages generator","chromium":"151.0.7922.34","viewport":"1400x900","theme":"light","motion":"reduce","repetitions":10,"conditions":"Ten fresh story navigations for cold scrolling, then ten expand/scroll/close cycles in the final mounted story. Synthetic ComposedShell, no Host. Relative programmatic scrolling, 100ms geometry settling.","limits":"DOM completion and anchor geometry are not screen-present timestamps or native wheel acceptance. Heap includes uncollected objects and previous document garbage; short repeated cycles alone do not prove a leak."},"rows":[{"scenario":"storybook-45-tools","metric":"reveal-and-expand-45-dom-ms","n":10,"median":7327.829707500001,"p95":7777.157135999998,"samples":[7777.157135999998,7217.959757999997,7274.592429000004,7197.372252000001,7380.668026999992,7340.998054000011,7393.270363999996,7319.2015900000115,7301.107454000012,7336.45782499999]},{"scenario":"storybook-45-tools","metric":"cold-collapsed-unexpected-anchor-px","n":80,"median":15.4375,"p95":15.875,"samples":[15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375,15.875,15.4375,15.4375,15.4375,15.4375,15.4375,15.4375]},{"scenario":"storybook-45-tools","metric":"expanded-unexpected-anchor-px","n":80,"median":0,"p95":0,"samples":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},{"scenario":"storybook-45-tools","metric":"dom-nodes-after-close","n":10,"median":4185,"p95":4185,"samples":[4185,4185,4185,4185,4185,4185,4156,4185,4185,4185]},{"scenario":"storybook-45-tools","metric":"heap-bytes-no-gc","n":10,"median":49162848,"p95":49438248,"samples":[48811944,48929524,49024296,49140688,49185008,49332140,43838992,49377440,49409836,49438248]}]}

Accepted — protocol

{"schemaVersion":1,"name":"protocol","commit":"a21c104ad3d5af7e140c875e4048f2d9f5d24493","environment":{"node":"v24.18.1","os":"#22-Ubuntu SMP Mon Jul 27 17:24:03 UTC 2026","release":"6.17.0-1022-azure","arch":"x64","cpu":"INTEL(R) XEON(R) PLATINUM 8573C","logicalCpus":4,"memoryBytes":16765378560,"runner":"GitHub Actions 1027347182","image":"20260907.300.1"},"metadata":{"fixture":"runtime-resource-v1","repetitions":10,"warmup":1,"conditions":"Synthetic in-process production projection + wire encoding; no disk/network. Fresh objects per scale, warm process.","limits":"JSON.stringify instrumentation counts UTF-8 output work separately from timing; not allocations, SQLite I/O or whole Host latency. Includes canonicalization, revision and decoder work. Negative control duplicates production page call only in harness."},"rows":[{"scenario":"runtime-resource/8x32","metric":"warm-ms (includes validation)","n":10,"median":0.36702749999999185,"p95":0.4614440000000002,"samples":[0.35267600000000243,0.27843500000000176,0.34523200000001,0.412368999999984,0.4006989999999746,0.38137899999998126,0.4614440000000002,0.38419599999997445,0.29363600000002066,0.2747449999999958]},{"scenario":"runtime-resource/8x32","metric":"calls","n":1,"median":19,"p95":19,"samples":[19]},{"scenario":"runtime-resource/8x32","metric":"encodedBytes","n":1,"median":23135,"p95":23135,"samples":[23135]},{"scenario":"runtime-resource/8x32","metric":"wireBytes","n":1,"median":2873,"p95":2873,"samples":[2873]},{"scenario":"runtime-resource/8x32","metric":"pages","n":1,"median":1,"p95":1,"samples":[1]},{"scenario":"runtime-resource/8x32","metric":"negative-control-encodedBytes","n":1,"median":39052,"p95":39052,"samples":[39052]},{"scenario":"runtime-resource/32x32","metric":"warm-ms (includes validation)","n":10,"median":1.4408030000000025,"p95":2.985030000000023,"samples":[1.6230869999999982,1.5877579999999796,1.4713279999999997,1.4411949999999933,1.4189640000000168,1.4404110000000117,2.985030000000023,1.2252650000000074,1.1851729999999918,1.317731000000009]},{"scenario":"runtime-resource/32x32","metric":"calls","n":1,"median":67,"p95":67,"samples":[67]},{"scenario":"runtime-resource/32x32","metric":"encodedBytes","n":1,"median":219093,"p95":219093,"samples":[219093]},{"scenario":"runtime-resource/32x32","metric":"wireBytes","n":1,"median":10837,"p95":10837,"samples":[10837]},{"scenario":"runtime-resource/32x32","metric":"pages","n":1,"median":1,"p95":1,"samples":[1]},{"scenario":"runtime-resource/32x32","metric":"negative-control-encodedBytes","n":1,"median":409906,"p95":409906,"samples":[409906]},{"scenario":"runtime-resource/128x32","metric":"warm-ms (includes validation)","n":10,"median":6.635629499999993,"p95":8.620361000000003,"samples":[6.998678999999981,7.370604000000014,8.073478999999992,8.620361000000003,6.282176000000021,6.368585000000053,6.570533999999952,6.262990000000002,6.344791999999984,6.700725000000034]},{"scenario":"runtime-resource/128x32","metric":"calls","n":1,"median":261,"p95":261,"samples":[261]},{"scenario":"runtime-resource/128x32","metric":"encodedBytes","n":1,"median":1558838,"p95":1558838,"samples":[1558838]},{"scenario":"runtime-resource/128x32","metric":"wireBytes","n":1,"median":42998,"p95":42998,"samples":[42998]},{"scenario":"runtime-resource/128x32","metric":"pages","n":1,"median":2,"p95":2,"samples":[2]},{"scenario":"runtime-resource/128x32","metric":"negative-control-encodedBytes","n":1,"median":3004735,"p95":3004735,"samples":[3004735]},{"scenario":"runtime-resource/8x8192","metric":"warm-ms (includes validation)","n":10,"median":1.9920855000000017,"p95":2.3739550000000236,"samples":[2.0324109999999678,1.9903320000000235,1.948666000000003,2.3739550000000236,2.0271720000000073,2.001626999999985,1.9639700000000175,1.9548470000000293,1.988867999999968,1.99383899999998]},{"scenario":"runtime-resource/8x8192","metric":"calls","n":1,"median":22,"p95":22,"samples":[22]},{"scenario":"runtime-resource/8x8192","metric":"encodedBytes","n":1,"median":536107,"p95":536107,"samples":[536107]},{"scenario":"runtime-resource/8x8192","metric":"wireBytes","n":1,"median":68385,"p95":68385,"samples":[68385]},{"scenario":"runtime-resource/8x8192","metric":"pages","n":1,"median":2,"p95":2,"samples":[2]},{"scenario":"runtime-resource/8x8192","metric":"negative-control-encodedBytes","n":1,"median":868924,"p95":868924,"samples":[868924]},{"scenario":"runtime-resource/32x8192","metric":"warm-ms (includes validation)","n":10,"median":8.313510500000007,"p95":8.685025999999993,"samples":[8.288307000000032,8.043425999999954,8.423479999999984,8.212129000000004,8.301042999999993,8.337848000000008,8.685025999999993,8.592948999999976,8.029295999999988,8.32597800000002]},{"scenario":"runtime-resource/32x8192","metric":"calls","n":1,"median":82,"p95":82,"samples":[82]},{"scenario":"runtime-resource/32x8192","metric":"encodedBytes","n":1,"median":2305499,"p95":2305499,"samples":[2305499]},{"scenario":"runtime-resource/32x8192","metric":"wireBytes","n":1,"median":273121,"p95":273121,"samples":[273121]},{"scenario":"runtime-resource/32x8192","metric":"pages","n":1,"median":6,"p95":6,"samples":[6]},{"scenario":"runtime-resource/32x8192","metric":"negative-control-encodedBytes","n":1,"median":3798194,"p95":3798194,"samples":[3798194]},{"scenario":"runtime-resource/128x8192","metric":"warm-ms (includes validation)","n":10,"median":33.694518000000016,"p95":35.91852700000004,"samples":[33.60414000000003,33.784896,35.91852700000004,33.977441,33.35969,34.013202999999976,33.48821399999997,32.320137000000045,33.167906000000016,34.70552999999995]},{"scenario":"runtime-resource/128x8192","metric":"calls","n":1,"median":322,"p95":322,"samples":[322]},{"scenario":"runtime-resource/128x8192","metric":"encodedBytes","n":1,"median":9383688,"p95":9383688,"samples":[9383688]},{"scenario":"runtime-resource/128x8192","metric":"wireBytes","n":1,"median":1092142,"p95":1092142,"samples":[1092142]},{"scenario":"runtime-resource/128x8192","metric":"pages","n":1,"median":22,"p95":22,"samples":[22]},{"scenario":"runtime-resource/128x8192","metric":"negative-control-encodedBytes","n":1,"median":15516331,"p95":15516331,"samples":[15516331]}]}

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Codex implemented the measurement harness, workflows, documentation and validation under maintainer direction.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@github-actions github-actions Bot added the effort/L Under 1000 readable lines label Sep 8, 2026
@Astro-Han
Astro-Han marked this pull request as ready for review September 8, 2026 17:15

@jackwener jackwener left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

APPROVE, bound to 2ac89354642651a44c40502a8120a125a392fd30. Both hosted checks (test, label) are terminal green on this exact head, and there were no existing reviews when I published. Two non-blocking P3s are inline; neither affects whether these lanes can be merged.

I reviewed this against the four questions asked of me, and the short answer is that the three substantive ones hold up under checking rather than under reading.

Do the measurements reach the declared consumers? Yes, and this is asserted rather than assumed. The protocol lane imports canonicalRuntimeResources, runtimeResourceRevision, createRuntimeResourcePage from packages/runtime-host/dist/server/runtime-resource-projection.js and encodeProtocolMessage / decodeHostFrame / decodeRuntimeResourceQueryResult from the built protocol index, and the workflow builds those packages first, so it is the production implementation and not a reimplementation. On the frontend side every measured action verifies the state it claims to have produced: switchTo requires aria-current="page" on the target and the presence or absence of the tail Turn; input() requires both toHaveText and toBeFocused; the streaming case asserts pending === 0, so every recorded delivery was matched to a DOM mutation rather than silently dropped by the matcher; each foreground input sample re-asserts that both background streams are still mid-flight (deltas > 0 && !complete) before it is taken, so "input while background output streams" is verified per sample; and Stop checks a non-empty proper prefix of what would have completed plus no further delta after a settle.

Are the negative controls valid? The long-task control is the strongest one here: setup() burns 100 ms synchronously, asserts longTaskControl.some(d => d >= 90), and then splices those samples out before measurement — so it proves the observer is installed and reporting, and does not contaminate the data. The protocol control asserts negative.encodedBytes > counts.encodedBytes, which is self-verifying in a useful way: if createRuntimeResourcePage ever stopped doing the encoding work being counted, the assertion fails rather than the metric quietly going flat. It only asserts a direction and not a magnitude, but the control value is also reported as its own row, so a reader can judge the size.

Are the sample and timing boundaries credible? Mostly, with one measured caveat that is the first P3. performance.now() on the Node side means the frontend numbers include Playwright polling and IPC — but that is stated in both limits and CI.md, and I expected it to be a bigger problem than it is: at ~7.3 s median for 45 expansions (~162 ms each), driver round-trips cannot be the dominant term, so this hypothesis of mine did not survive the PR's own data. Idle CPU is normalized by the actual CDP Timestamp delta rather than an assumed 1000 ms. workers: 1, retries: 0 makes the module-level rows and longTaskControl safe.

Unnecessary complexity? Very little. The one thing I would call out is not the monkey-patching of JSON.stringify — that is scoped, restored in finally, applied only to the uninstrumented-timing separation, and the workload is fully synchronous so it cannot interleave — but the report-naming coupling in the second P3.

On the two rounds of numbers: I did not use them to infer any performance direction, per the instruction and per the PR's own "Do not calculate a speedup from these runs." I treated them as not comparable rather than as weak evidence, and I used them only for magnitude sanity (the check above) and to confirm that metrics which should vary do vary. Worth noting one internal consistency check that does hold within a single run: cold-collapsed-unexpected-anchor-px is ~15.4 px while expanded-unexpected-anchor-px is exactly 0 across 80 samples, from the same instrument in the same run — so the zero is a result, not a dead metric.

Things I checked and deliberately did not raise, because the PR already documents them better than a finding would: n=1 rows and the nearest-rank p95 (CI.md and the body both state that n=1 entries are diagnostics, not distributions, and that n=10 p95 is the maximum); the inclusion of Playwright polling in DOM-ready latency; trace overhead being inside the laboratory timings; case-total long-task rows being cumulative from observer installation; and heap readings not establishing a leak.

Scope and limits. Static review of all twelve files, plus one local experiment: I re-implemented the protocol lane's timed path against the same built production modules to quantify the validation share reported in the first P3. I did not run either workflow, did not run the Playwright or Storybook lanes locally, and did not re-derive the published numbers — for those I read the PR's tables and artifacts rather than reproducing them. This is a single review line, not two independent ones.

No code was changed and nothing was merged.

简体中文

绑定 2ac89354642651a44c40502a8120a125a392fd30。两项托管检查(test、label)在该 exact head 上终态为绿,发布时无既有 review。两条不阻塞的 P3 在行内,都不影响这两条流水线能否合入。

测量是否真的走到声明的消费者 —— 是,而且是被断言的,不是假定的。 协议侧 import 的是 packages/runtime-host/dist/** 的生产实现,工作流在运行前构建这些包。前端侧每个被测动作都校验了它声称产生的状态:switchTo 要求目标上出现 aria-current="page" 且尾部 Turn 存在/消失;input() 同时要求 toHaveText 与 toBeFocused;流式用例断言 pending === 0,即每一次投递都被匹配到一次 DOM 变更,而不是被匹配器悄悄丢掉;每个前台输入样本在取样之前都重新断言两条后台流仍在流动(deltas > 0 && !complete);Stop 校验的是「非空的真前缀」加「settle 后不再有增量」。

负对照是否有效 —— 长任务那条最强:setup() 同步烧 100ms、断言观察器报出 ≥90ms,随后把这些对照样本从测量中剔除,既证明观察器在工作又不污染数据。协议那条断言 negative.encodedBytes > counts.encodedBytes,是自校验的:一旦生产分页不再产生被计数的编码工作,断言会失败而不是让指标悄悄变平。它只断言方向不断言量级,但对照值本身也作为独立行报出,读者可自行判断量级。

样本与计时边界 —— 基本可信,只有一处实测出来的保留意见(第一条 P3)。前端用 Node 侧 performance.now(),因此包含 Playwright 轮询与 IPC —— 但这在 limits 与 CI.md 中均已写明,而且我原以为这个问题更严重,是 PR 自己的数据把我的假设否掉的:45 次展开中位数约 7.3 秒(每次约 162ms),驱动往返不可能是主导项。空闲 CPU 用真实的 CDP Timestamp 间隔归一,而非假定 1000ms。workers: 1, retries: 0 使模块级状态安全。

不必要复杂度 —— 很少。值得点名的不是对 JSON.stringify 的临时替换(作用域受限、finally 还原、只用于把编码计数与计时分开,且工作负载全同步不会交错),而是第二条 P3 里的报告命名耦合。

关于两轮数值:我没有用它们推断任何性能方向,既依你的要求,也依 PR 自己写的「不要据此计算加速比」。我把它们当作不可比,而不是当作弱证据;只用于量级校验(上面那条)以及确认「本该变化的指标确实在变化」。有一条单轮之内成立的内部一致性值得一提:同一次运行、同一套仪器下,cold-collapsed-unexpected-anchor-px 约 15.4px 而 expanded-unexpected-anchor-px 在 80 个样本上恒为 0 —— 所以那个 0 是结果,不是死指标。

我核过但刻意不提的事项(PR 自己写得比 finding 更准):n=1 行与最近秩 p95、DOM 延迟含 Playwright 轮询、追踪开销计入实验室计时、case-total 长任务行自观察器安装起累计、堆读数不足以证明泄漏。

本次审查的边界:对全部 12 个文件的静态审查,外加一次本地实验 —— 我用同一批已构建的生产模块复刻了协议侧被计时的路径,以量化第一条 P3 中的校验占比。我没有运行这两条工作流,没有在本地跑 Playwright 或 Storybook,也没有复算已发布的数值 —— 那部分我读的是 PR 的表格与产物,不是自己复现的。这是单独一条评审线,不是两条。

未修改代码,未合并。

Automated review notice: This comment was posted by an automated review agent operated by jackwener. It is not an independent human review and does not replace one.

Comment thread scripts/perf/protocol.mjs Resolved
Comment thread scripts/perf/frontend.spec.ts Resolved
@Astro-Han
Astro-Han merged commit 9cb5cc9 into main Sep 8, 2026
1 check passed
@Astro-Han
Astro-Han deleted the ci/4677-performance-workflows branch September 8, 2026 18:11
testikun pushed a commit to testikun/maka that referenced this pull request Sep 9, 2026
* ci(perf): add manual frontend and protocol measurements

Generated-by: Codex

* ci(perf): temporarily validate workflows on this PR branch

Generated-by: Codex

* test(perf): verify concurrent output and cold reading geometry

Generated-by: Codex

* test(perf): exercise fixed-rate streams and scoped session keys

Generated-by: Codex

* test(perf): use admitted sessions and retain browser diagnostics

Generated-by: Codex

* test(perf): validate rendered text and visible tool activation

Generated-by: Codex

* test(perf): verify stopping a fixed-rate stream

Generated-by: Codex

* test(perf): calibrate the actual Electron blocking sampler

Generated-by: Codex

* ci(perf): follow checkout credential policy

Generated-by: Codex

* fix(perf): verify stop through interrupted consumer state

Generated-by: Codex

* ci(perf): retain only manual triggers after acceptance

Generated-by: Codex

* fix(perf): isolate assertions and explicitly name reports

Generated-by: Codex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/L Under 1000 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants