Skip to content

perf(control-ui): reveal the warm cached page in one commit - #195865

Merged
steipete merged 12 commits into
mainfrom
steipete/coldload-team-join-revival
Nov 9, 2026
Merged

steipete merged 12 commits into
mainfrom
steipete/coldload-team-join-revival

Conversation

@steipete

@steipete steipete commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Exact-head CI pending at c978b05d. Three lead commits follow the CI-repair head a3f8ab0c. First, the new warm-join setup now polls for the persisted boot record: live owner publications write it about 100 ms after the snapshot save, and the immediate check failed every warm-join case on a loaded Mac. Second and third, the startup baseline and the document, chat and New Session caps are recorded at the CI-measured sizes (lead decision 5). The earlier candidate-only warm-boot cold-splash timeout did not reproduce: 6/6 local runs of all ten profiles pass on a3f8ab0c under heavy host load, and that cold path never enters the hold.

Related: #195166. GitHub refused reopening that experiment PR; this replacement retains its measured history and the CI repair.

What Problem This Solves

Fixes the skeleton flash and staged sidebar → transcript assembly when a signed-in operator reloads a cached chat deep link.

User Impact

An admitted warm reload keeps the old page visible until the cached sidebar and positioned transcript are committed, then swaps to the complete cached page. Cold boots, authentication, cache misses, route errors, navigation away and retired admissions release immediately. A 450 ms parser-time deadline falls back to the existing skeleton before the next computed frame, including after a main-thread stall.

This trades incremental first paints for visual continuity. On the last fully measured head, f091d3f7, complete-frame ET is +28/+17 ms adjusted for Team active/archived, +23/+36 ms for native active/archived, and +29 ms for dashboard. FCP moves to reveal on held paths by design. These are measured tradeoffs, with the lead decisions below; this PR does not claim an earlier first paint or that every numerical timing gate passed.

Why This Change Was Made

Main paints the critical skeleton early, ending Chromium’s old-page hold before the cached regions are complete. One visibility latch in the existing boot-frame owner now consumes the sidebar’s settled commit and the transcript’s positioned commit. Each region starts its work as before. The transcript keeps the existing Details-readiness contract; the join adds no Details wait or region-work dependency.

The deadline runs in a rendering callback that checks fresh performance.now() before style/paint, replacing the timer that could run too late after a long task. Immediate release paths share the same latch. The cached-roster handoff remains because removing it previously regressed native hello/RPC scheduling. No new store, option, configuration, protocol, schema or server change is introduced. Release-note context: warm cached chat reloads reveal one cached surface, with a bounded skeleton fallback under stalls.

Lead decisions

  1. Held paths use a +40 ms adjusted bound. Concentrating the first complete commit increases paint and raster work: Team’s row-bearing frame has 17 → 81 raster tasks, with zero explicit frame commit wait. The lead accepts that intrinsic paint-holding swap cost to replace the skeleton flash and staged assembly with one old-page → cached-page swap. Accepting it is a lead product decision, not a gate pass. Historically, ba03a677/4595699b measured Team +22/+44 ms, and archived exceeded +40: Accepting archived at +44 is a lead product decision, not a gate pass. That historical exception is not substituted into the final-head table.

  2. Native held paths share the +40 ms bound because native also holds. Earlier 5424defc/e097b687 measured Team +22/+24 ms and native archived +23 ms. Native archived exceeded its original +17 ms assumption, but native chat also keeps the old page and pays the same deferred first-commit cost (16 → 67 scoped raster tasks in its diagnostic). Accepting it is a lead product decision, not a gate pass. Current-head timing below is reported separately.

  3. Dashboard’s calibrated hello/RPC numbers are accepted as estimator noise. On f091d3f7/df13b6b8, dashboard is hello +17/+30.25 ms and first RPC +12.65/+32.05 ms in AB/BA orders, above the original +10 ms both-order cap. Accepting it is a lead decision, not a gate pass. Dashboard never enters the hold. The lead verified that its reachable changes are null-returning sidebar-settlement registrations, two-element Set/absent-attribute completion operations, and early prewarm-return releases; they add no fetch, reactive publication, wait or inter-region ordering. The preceding lease measured the opposite direction on substantially unchanged dashboard-reachable code: hello −25.1/−3.25, RPC −28.55/+2.35 and rows −13 ms. Here raw dashboard hello/RPC paired medians are only +2.8/+5.1 ms, six worse/six better each, with overlapping arm IQRs. A/A order bias is about ±60–90 ms; the separate closing A/A moved the correction’s order medians by roughly 9–13 ms. The profiled script union fell 392.6 → 378.0 ms, with no candidate-specific pre-hello bucket. Profiling has substantial tax and does not prove zero overhead. The lead accepts the estimator-specific failure without a code change; the original measurements are retained below.

  4. Lead decision: correct the masked-state census gate. The gate is paired median(candidate − main) ≤0 AND candidate mean ≤main mean +0.5, using the existing12 paired captures. It is not candidate arm median ≤main arm median. All five workloads pass those corrected numerical comparisons; dashboard’s paired median is0, both exact means are46/3, and its better/worse/tied counts are2/2/8. The15→15.5 arm medians are descriptive. This is a gate correction, not a lead product exception or a waiver of the semantic no-blank/complete-page gates.

  5. Lead decision: record the byte budget this change costs. Exact-head CI run 42615783623, merged with newer main, measured these candidate-minus-base deltas:

    • startup JS +600 B (91,561 B);
    • chat boot JS +582 B (1,297,436 B);
    • New Session boot JS +623 B (803,300 B);
    • document +185 B (13,962 B on the earlier run).

    The growth is the admission hint plus the finish calls and region latch in the startup boot owners, which the Production size section itemizes. The startup baseline takes the measured 91,561 B, the value --update-baseline would write, as fix(control-ui): show cached Details with the first chat frame #194142 did for this campaign's Details prewarm. Document, chat and New Session caps take measured size plus 64 B. Base main's own chat boot (1,296,854 B) already exceeded its committed 1,296,751 B cap, so the chat cap also absorbs main's drift. Each increase is under 1% of its budget and is caused by this change. This is a lead decision, not a gate pass.

Evidence

The timing, visual census, robustness and focused remote proof below belong to f091d3f7cee5e425580ef4af6172116903cddab3 versus pinned main df13b6b8994cefe16f311f29f0301bba511ec617. Current published CI-repair head is a3f8ab0cf71fc56e987e1fc97906f8f8c6410c77. Its three-file repair restores the original async utility-loader structure, preserves both current-entry checks, simplifies a miss-only void return, and gives the route-snapshot fixture jsdom. Underlying work starts and the450 ms rendering deadline are unchanged; removing Promise-tail reactions can advance final readiness settlement. Prior-head measurements are retained as prior-head evidence, not final-head proof for this repair. New-head performance, visual and full-suite validation were not run after the byte STOP. The campaign’s private evidence records a 14-state signed-in dashboard-deep-link reload and its request/socket waterfall. None of its private capture content appears here; all visual attachments must use inspected synthetic fixtures.

Timing: one quiet AWS c7a.4xlarge, lease cbx_77420fba36b1, repo Playwright Chromium, default one excluded warm prime, 12 alternating A/B pairs plus 12 A/A pairs per workload. All 240 measured arm records passed the five raw source/order/cache/worker audits. The corrected effect subtracts the same-order A/A median from each order’s A/B median, then averages the two orders. A/A columns beside same-numbered pairs are diagnostic; individual pairs are not directly subtracted. IQR uses inclusive linear interpolation. Raw pair signs and paired medians remain diagnostics. Complete ET is max(rows, Details), equal to painted rows here; it is not a physical compositor census or proof of final live settlement.

Workload Main complete ET median [IQR], ms Candidate Corrected AB / BA, ms Corrected mean, ms Hello AB / BA, ms RPC AB / BA, ms
Team active 448 [440,453] 468 [467,472] +36 / +20 +28 +2.05 / −1.30 +0.50 / −1.70
Team archived 412 [407,424] 434 [424,444] +8 / +26 +17 +0.10 / −3.05 +0.15 / −3.30
Native active 556 [541,569] 572 [562,587] −8 / +54 +23 −9.85 / +27.20 −9.25 / +26.35
Native archived 524 [499,548] 532 [523,562] +26 / +46 +36 +10.20 / +9.30 +10.50 / +8.30
Native dashboard 594 [560,623] 598 [585,631] +22 / +36 +29 +17.00 / +30.25 +12.65 / +32.05

The four held-chat means meet the revised +40 ms bound. Native active/archived hello and RPC each have one order above +10; they are disclosed, not labelled both-order passes. Dashboard’s +29 ms rows estimate also exceeds the former unheld +17 reference; the lead’s final instruction accepts this estimator outcome and requests completion without a code change. Its raw paired rows median is 0 ms (six better/six worse), raw order-balanced +15 ms.

Details are present by rows in 12/12 both arms of each chat workload. Exact first-ET equality is distinct: Team active 0→12, Team archived 6→12, native active 0→9, native archived 0→10. Timing-mode observed fallback transitions are Team 0/12 each, native active 3/12, native archived 2/12, dashboard 0. Observer delivery is not the setter clock or a pixel verdict; formal visual fallback counts are reported separately below.

CLS is unchanged: Team 0; native active 0.0008552664747779376; native archived/dashboard 0.000861601781998515. LoAF has mixed pair signs and overlapping IQRs under the standing secondary rule. Median FCP main→candidate: Team active166→468, Team archived180→434, native active48→572, native archived44→532 and dashboard314→320 ms. Held-path FCP is reported, not gated. Existing exact-head cold native setup observations are52.520–55.452 ms, separate pilot53.552; no paired cold or Team-cold performance claim is made. Timing mode cannot measure geometry, backtracking, final-DOM settlement time or visible-state census.

Team active — per-pair and within-order timing

12 complete pairs. Details present by rows: 12/12 in both arms.

Pair Order A/A rows Δ Main rows Candidate rows Rows Δ Complete ET Δ Hello Δ Post-hello RPC Δ
1 AB 4 456 468 12 12 3.8 2.4
2 BA -16 456 484 28 28 6.9 6.9
3 AB -28 444 472 28 28 -4 -1.6
4 BA 8 440 472 32 32 -0.2 0
5 AB -12 444 468 24 24 4.7 5.3
6 BA -8 452 472 20 20 0.2 0.3
7 AB -12 440 472 32 32 -0.5 -0.7
8 BA 36 452 448 -4 -4 -0.2 -1
9 AB -12 440 464 24 24 2.4 2.6
10 BA 4 440 464 24 24 6.6 6.6
11 AB 0 452 468 16 16 -4.9 -4.5
12 BA 0 456 468 12 12 -1.5 -0.9
Metric Main [IQR] Candidate [IQR] AB Δ [IQR] AB A/A Δ [IQR] AB adjusted BA Δ [IQR] BA A/A Δ [IQR] BA adjusted Adjusted mean
Painted rows 448 [440, 453] 468 [467, 472] 24 [18, 27] -12 [-12, -3] 36 22 [14, 27] 2 [-6, 7] 20 28
Complete ET 448 [440, 453] 468 [467, 472] 24 [18, 27] -12 [-12, -3] 36 22 [14, 27] 2 [-6, 7] 20 28
Details ET 420 [416, 424] 468 [467, 472] 46 [44, 51] -6 [-11, -4] 52 50 [36, 55] 2 [-8, 15] 48 50
Hello handled 526 [524, 527.12] 525.9 [524.5, 530.15] 0.95 [-3.12, 3.45] -1.1 [-1.88, 1.1] 2.05 0 [-0.2, 5] 1.3 [-2.08, 6.25] -1.3 0.38
First post-hello RPC 504.65 [503.38, 505.45] 504.7 [503.75, 507.75] 0.85 [-1.37, 2.55] 0.35 [-0.93, 1.78] 0.5 0.15 [-0.67, 5.02] 1.85 [-1.75, 5.98] -1.7 -0.6
LoAF blocking 163.95 [156.55, 168.57] 161.35 [155.25, 168.4] -6.4 [-15.63, 0.35] -6.85 [-12.93, -4.6] 0.45 4.45 [3.3, 5.6] 11.85 [3.07, 20.85] -7.4 -3.47
CLS 0 [0, 0] 0 [0, 0] 0 [0, 0] 0 [0, 0] 0 0 [0, 0] 0 [0, 0] 0 0
FCP 166 [103, 178] 468 [467, 472] 338 [306, 364] -24 [-71, 53] 362 296 [287, 311] -6 [-23, -4] 302 332

Painted rows: raw paired 24 [15, 28]; raw better/worse 1/11; balanced 23; A/A-adjusted 28. Raw pair signs are diagnostic.

Complete ET: raw paired 24 [15, 28]; raw better/worse 1/11; balanced 23; A/A-adjusted 28. Raw pair signs are diagnostic.

Team archived — per-pair and within-order timing

12 complete pairs. Details present by rows: 12/12 in both arms.

Pair Order A/A rows Δ Main rows Candidate rows Rows Δ Complete ET Δ Hello Δ Post-hello RPC Δ
1 AB 12 408 436 28 28 -19.2 -18.4
2 BA 4 424 416 -8 -8 -6.8 -6.7
3 AB -8 424 420 -4 -4 8.9 8.4
4 BA 28 408 444 36 36 -1.4 -4.4
5 AB 36 440 432 -8 -8 0.4 0.4
6 BA -16 404 444 40 40 1 1.5
7 AB 0 424 440 16 16 1 1
8 BA -12 392 428 36 36 6.3 6.7
9 AB 8 408 452 44 44 0.2 0.7
10 BA 16 404 424 20 20 -3.7 -2.9
11 AB -24 416 424 8 8 -3.7 -3.5
12 BA 28 416 452 36 36 -0.9 -0.1
Metric Main [IQR] Candidate [IQR] AB Δ [IQR] AB A/A Δ [IQR] AB adjusted BA Δ [IQR] BA A/A Δ [IQR] BA adjusted Adjusted mean
Painted rows 412 [407, 424] 434 [424, 444] 12 [-1, 25] 4 [-6, 11] 8 36 [24, 36] 10 [-8, 25] 26 17
Complete ET 412 [407, 424] 434 [424, 444] 12 [-1, 25] 4 [-6, 11] 8 36 [24, 36] 10 [-8, 25] 26 17
Details ET 404 [396, 408] 434 [424, 444] 28 [16, 34] -2 [-7, 3] 30 36 [24, 39] -2 [-11, 7] 38 34
Hello handled 521.45 [520.5, 522.43] 521.2 [519.25, 521.68] 0.3 [-2.73, 0.85] 0.2 [-0.1, 3.2] 0.1 -1.15 [-3.12, 0.53] 1.9 [-2.62, 3.05] -3.05 -1.47
First post-hello RPC 502.5 [501.75, 503.7] 502.4 [501.03, 502.9] 0.55 [-2.52, 0.92] 0.4 [0.23, 2.07] 0.15 -1.5 [-4.03, 1.1] 1.8 [-1, 3.4] -3.3 -1.57
LoAF blocking 88.75 [84.43, 96.08] 88.85 [85.65, 100.92] 1.95 [-6.45, 9.82] 3.55 [1.35, 9.5] -1.6 2.65 [-4.77, 14.05] -1.55 [-9.82, 4.47] 4.2 1.3
CLS 0 [0, 0] 0 [0, 0] 0 [0, 0] 0 [0, 0] 0 0 [0, 0] 0 [0, 0] 0 0
FCP 180 [165, 189] 434 [424, 444] 252 [242, 280] -12 [-24, 15] 264 260 [240, 274] 4 [-2, 4] 256 260

Painted rows: raw paired 24 [5, 36]; raw better/worse 3/9; balanced 24; A/A-adjusted 17. Raw pair signs are diagnostic.

Complete ET: raw paired 24 [5, 36]; raw better/worse 3/9; balanced 24; A/A-adjusted 17. Raw pair signs are diagnostic.

Native active — per-pair and within-order timing

12 complete pairs. Details present by rows: 12/12 in both arms.

Pair Order A/A rows Δ Main rows Candidate rows Rows Δ Complete ET Δ Hello Δ Post-hello RPC Δ
1 AB 4 528 548 20 20 3.4 0.2
2 BA -32 584 584 0 0 -44.4 -36.9
3 AB 52 552 600 48 48 40.3 40
4 BA -32 568 556 -12 -12 -13.3 -16
5 AB 44 544 596 52 52 59.5 60
6 BA -60 572 556 -16 -16 -48.8 -47.5
7 AB 68 524 608 84 84 82.7 82.4
8 BA -84 572 572 0 0 -31 -26.8
9 AB 80 532 572 40 40 111.1 109
10 BA -72 560 564 4 4 -33.2 -34.2
11 AB 52 544 584 40 40 29 27.3
12 BA -48 564 564 0 0 -25 -26.3
Metric Main [IQR] Candidate [IQR] AB Δ [IQR] AB A/A Δ [IQR] AB adjusted BA Δ [IQR] BA A/A Δ [IQR] BA adjusted Adjusted mean
Painted rows 556 [541, 569] 572 [562, 587] 44 [40, 51] 52 [46, 64] -8 0 [-9, 0] -54 [-69, -36] 54 23
Complete ET 556 [541, 569] 572 [562, 587] 44 [40, 51] 52 [46, 64] -8 0 [-9, 0] -54 [-69, -36] 54 23
Details ET 536 [515, 541] 572 [562, 578] 58 [47, 60] 42 [37, 47] 16 24 [18, 27] -42 [-66, -33] 66 41
Hello handled 651.25 [626.97, 670.8] 655.65 [633.9, 695.23] 49.9 [31.83, 76.9] 59.75 [16.32, 67.02] -9.85 -32.1 [-41.6, -26.5] -59.3 [-84, -56.58] 27.2 8.68
First post-hello RPC 630 [606.37, 649.65] 632.95 [612.12, 674.12] 50 [30.48, 76.8] 59.25 [14.25, 67.8] -9.25 -30.5 [-36.23, -26.43] -56.85 [-83.93, -49.95] 26.35 8.55
LoAF blocking 259.8 [242.6, 284.92] 277.2 [260.65, 288.98] 48.05 [26.6, 51.5] 31.15 [28.23, 39.18] 16.9 -13.35 [-28.07, -4.1] -40 [-46.85, -25.58] 26.65 21.77
CLS 0.000855266 [0.000855266, 0.000855266] 0.000855266 [0.000855266, 0.000855266] 0 [0, 0] 0 [0, 0] 0 0 [0, 0] 0 [0, 0] 0 0
FCP 48 [48, 56] 572 [562, 578] 524 [511, 534] -6 [-11, 5] 530 516 [513, 519] -2 [-7, 3] 518 524

Painted rows: raw paired 12 [0, 42]; raw better/worse 2/7; balanced 22; A/A-adjusted 23. Raw pair signs are diagnostic.

Complete ET: raw paired 12 [0, 42]; raw better/worse 2/7; balanced 22; A/A-adjusted 23. Raw pair signs are diagnostic.

Native archived — per-pair and within-order timing

12 complete pairs. Details present by rows: 12/12 in both arms.

Pair Order A/A rows Δ Main rows Candidate rows Rows Δ Complete ET Δ Hello Δ Post-hello RPC Δ
1 AB 4 488 508 20 20 -3.6 -4.6
2 BA -12 540 532 -8 -8 -27.5 -28.4
3 AB 76 492 572 80 80 85.4 84
4 BA -68 548 524 -24 -24 -42 -43.7
5 AB 36 500 560 60 60 58 57.1
6 BA -72 568 520 -48 -48 -95.9 -96.6
7 AB 20 508 568 60 60 50.3 49.3
8 BA -68 556 512 -44 -44 -68.6 -69.4
9 AB 64 504 572 68 68 61.1 59.9
10 BA -96 548 532 -16 -16 -61.5 -63.1
11 AB 32 496 536 40 40 25 24.9
12 BA -52 544 524 -20 -20 -36.3 -36.1
Metric Main [IQR] Candidate [IQR] AB Δ [IQR] AB A/A Δ [IQR] AB adjusted BA Δ [IQR] BA A/A Δ [IQR] BA adjusted Adjusted mean
Painted rows 524 [499, 548] 532 [523, 562] 60 [45, 66] 34 [23, 57] 26 -22 [-39, -17] -68 [-71, -56] 46 36
Complete ET 524 [499, 548] 532 [523, 562] 60 [45, 66] 34 [23, 57] 26 -22 [-39, -17] -68 [-71, -56] 46 36
Details ET 482 [472, 516] 532 [523, 543] 74 [58, 87] 32 [26, 47] 42 12 [9, 15] -60 [-66, -51] 72 57
Hello handled 572.05 [542.88, 597] 562 [554.88, 603.35] 54.15 [31.33, 60.32] 43.95 [37.02, 59.28] 10.2 -51.75 [-66.83, -37.73] -61.05 [-73.1, -50.95] 9.3 9.75
First post-hello RPC 553.3 [523.88, 577.53] 542.2 [534.58, 583.3] 53.2 [31, 59.2] 42.7 [36.55, 58.83] 10.5 -53.4 [-67.83, -38] -61.7 [-74.95, -48.82] 8.3 9.4
LoAF blocking 197.35 [181.6, 220.07] 184.95 [175.2, 198.7] 6.8 [-22.05, 27.62] 39.2 [19.47, 59] -32.4 -37.55 [-52.42, 2.23] -58.45 [-80.8, -35.2] 20.9 -5.75
CLS 0.000861602 [0.000861602, 0.000861602] 0.000861602 [0.000861602, 0.000861602] 0 [0, 0] 0 [0, 0] 0 0 [0, 0] 0 [0, 0] 0 0
FCP 44 [44, 56] 532 [523, 543] 494 [483, 508] -4 [-10, 5] 498 478 [476, 480] 10 [-1, 12] 468 483

Painted rows: raw paired 6 [-21, 60]; raw better/worse 6/6; balanced 19; A/A-adjusted 36. Raw pair signs are diagnostic.

Complete ET: raw paired 6 [-21, 60]; raw better/worse 6/6; balanced 19; A/A-adjusted 36. Raw pair signs are diagnostic.

Native dashboard — per-pair and within-order timing

12 complete pairs. Details ET is unavailable for this dashboard workload.

Pair Order A/A rows Δ Main rows Candidate rows Rows Δ Complete ET Δ Hello Δ Post-hello RPC Δ
1 AB -20 556 576 20 20 10.3 11.8
2 BA -44 632 596 -36 -36 -39.7 -33.5
3 AB 72 556 628 72 72 72.8 66.2
4 BA -64 620 568 -52 -52 -64.3 -69.7
5 AB 44 560 836 276 276 67.3 63.6
6 BA -104 636 600 -36 -36 -65.1 -64.8
7 AB 44 576 664 88 88 115.1 114.3
8 BA -80 608 588 -20 -20 -4.7 -1.6
9 AB 44 560 620 60 60 101.7 107.3
10 BA -52 656 588 -68 -68 -90.4 -92.7
11 AB 36 580 640 60 60 78.2 78
12 BA -116 612 576 -36 -36 -39.2 -41.1
Metric Main [IQR] Candidate [IQR] AB Δ [IQR] AB A/A Δ [IQR] AB adjusted BA Δ [IQR] BA A/A Δ [IQR] BA adjusted Adjusted mean
Painted rows 594 [560, 623] 598 [585, 631] 66 [60, 84] 44 [38, 44] 22 -36 [-48, -36] -72 [-98, -55] 36 29
Complete ET 594 [560, 623] 598 [585, 631] 66 [60, 84] 44 [38, 44] 22 -36 [-48, -36] -72 [-98, -55] 36 29
Details ET N/A N/A N/A N/A N/A N/A N/A N/A N/A
Hello handled 725 [701.17, 761.65] 727.4 [713.52, 772.78] 75.5 [68.67, 95.83] 58.5 [55.55, 85.07] 17 -52 [-64.9, -39.33] -82.25 [-107.6, -70.1] 30.25 23.62
First post-hello RPC 688.55 [665.4, 725.42] 693.75 [677.1, 734.48] 72.1 [64.25, 99.98] 59.45 [51.95, 78.05] 12.65 -52.95 [-68.47, -35.4] -85 [-110.2, -70.98] 32.05 22.35
LoAF blocking 211 [204.82, 231.8] 222.95 [206.07, 236] 29.5 [23.02, 36.95] 15.95 [15.65, 28.85] 13.55 -28.45 [-42.55, -13.15] -55.4 [-64.62, -41.53] 26.95 20.25
CLS 0.000861602 [0.000861602, 0.000861602] 0.000861602 [0.000861602, 0.000861602] 0 [0, 0] 0 [0, 0] 0 0 [0, 0] 0 [0, 0] 0 0
FCP 314 [300, 334] 320 [311, 353] 52 [42, 59] 28 [18, 35] 24 -22 [-34, -13] -40 [-48, -14] 18 21

Painted rows: raw paired 0 [-36, 63]; raw better/worse 6/6; balanced 15; A/A-adjusted 29. Raw pair signs are diagnostic.

Complete ET: raw paired 0 [-36, 63]; raw better/worse 6/6; balanced 15; A/A-adjusted 29. Raw pair signs are diagnostic.

Formal visual census and secondaries

Separate formal visual proof on fresh quiet AWS c7a.4xlarge, lease cbx_9007c5d80885: 12 interleaved pairs per workload,120 captures, with one excluded warm prime and the original masks/probes. All50 capture commands completed first attempts. All120 navigation-to-first-complete spans were personally inspected using the existing sheets, covering2,168 delivered frames; dashboard was inspected through its later card surface as well. Later in-place updates were spot-checked in pairs01/12 of both arms on every workload (three observations per capture). Zero blank or background-only frames were observed in those inspected spans and spots. All5,946 raw frames are retained; this does not claim every later frame was reviewed.

Workload Main old→complete as first new surface Candidate Candidate observer fallback Navigation-to-complete blank/background-only
Team active 0/12 12/12 0/12 0/24 both arms
Team archived 0/12 12/12 0/12 0/24 both arms
Native active 0/12 4/12 8/12 0/24 both arms
Native archived 0/12 9/12 3/12 0/24 both arms
Native dashboard 0/12 0/12; unheld 0/12 0/24 both arms

Team swaps from the held old page to sidebar, transcript and Details together. Main shows a critical skeleton, then populated sidebar beside a transcript skeleton, then Details/rows. “Complete cached page” means the cached snapshot contract; the shared archived metric-card fidelity gap is disclosed under Follow-ups. Native fallback shows existing cached chrome/Details before transcript content; it does not go blank. Dashboard remains unheld and retains its staged skeleton/content/card path.

Corrected masked-state census (numeric proof)

The corrected gate is paired median(candidate − main) ≤0 states AND candidate mean ≤main mean +0.5 states. These are the canonical masked-state counts from 12 paired captures per workload, computed without substituting arm medians for the paired statistic. Both numerical conditions pass on all five workloads. The independent arithmetic audit verifies the numbers; the separate personal pixel review establishes the semantic outcomes above.

Workload Main median [IQR] Candidate median [IQR] Main mean Candidate mean Main/candidate integer sums Paired median Δ Better / worse / tied Corrected numeric gate
Team active 70.5 [68.75, 72] 62 [62, 63.25] 70.1667 62.75 842 / 753 -7 12 / 0 / 0 Pass
Team archived 60 [58.75, 62.25] 53.5 [51.75, 54.25] 60.5 53.4167 726 / 641 -7 12 / 0 / 0 Pass
Native active 12 [12, 12] 9 [9, 9] 12.0833 8.9167 145 / 107 -3 12 / 0 / 0 Pass
Native archived 13 [13, 14] 9 [9, 9] 13.3333 9 160 / 108 -4 12 / 0 / 0 Pass
Native dashboard 15 [15, 16] 15.5 [15, 16] 15.3333 15.3333 184 / 184 0 2 / 2 / 8 Pass

Means above are displayed to four decimal places; gates use exact integer sums. With12 captures per arm, the mean condition is exactly 2 × candidate sum ≤ 2 × main sum +12. Dashboard sums are184/184 and means are exactly46/3 in both arms. Its paired count deltas are−1,0,0,0,0,−1,0,+1,0,+1,0,0; paired median0. Arm medians15→15.5 with identical IQR[15,16] do not fail the corrected paired/mean gate. The previous arm-median ceiling was the wrong comparison; no product exception is needed.

Observer-fallback captures, individually inspected

These are observer marks, not actual fallback-setter timestamps. All11 show old → cached sidebar and Details with empty transcript → complete cached page, with no blank/background-only frame. Each range below names the first new delivered surface and the first complete cached frame, in document milliseconds; these visual-mode clocks include probe/screencast tax.

Workload / candidate pair First new partial surface Complete cached page Blank/background-only
native-active 03 559.6 592.9 0
native-active 05 561.7 595.0 0
native-active 06 538.3 588.3 0
native-active 07 565.7 615.7 0
native-active 09 578.7 628.7 0
native-active 10 539.6 589.6 0
native-active 11 560.6 594.0 0
native-active 12 526.6 593.3 0
native-archived 03 546.4 579.7 0
native-archived 09 545.4 595.4 0
native-archived 11 536.4 569.7 0

Visual secondary probes

The projections report zero backtracking in all60 candidate captures (and all60 main captures). Outputs/Automations/total vertical movement are0 and Subagents first/final height matches in all48 applicable candidate chat captures, also all48 main captures. Active Team/native Subagents height is81/141px respectively; archived fixtures report0px. These are probe geometry facts, separate from root pixel inspection.

Workload Final-row DOM main median[IQR], ms Candidate median[IQR], ms Paired final-row delta, ms Details by rows main→candidate Exact Details/rows ET equality main→candidate
team-active 926.65 [902.92, 1080.02] 1066.8 [942.13, 1072.62] 16.75 12/12→12/12 0/12→12/12
team-archived 1183.35 [1112.33, 1292.2] 1122.75 [1075.72, 1289.8] -69.6 12/12→12/12 2/12→12/12
native-active 510.14 [480.94, 525.56] 485.48 [476.98, 511.49] -21.99 12/12→12/12 0/12→4/12
native-archived 472.11 [457.52, 499.6] 446.6 [439.35, 474.51] -29.25 12/12→12/12 0/12→9/12
native-dashboard 510.73 [494.93, 529.45] 508.39 [493.72, 548.92] -2.09 N/A N/A

All five canonical final-row checks report no strong regression evidence: arm IQRs overlap and raw worse-pair counts are below the standing threshold. These visual captures have no A/A block; no adjusted timing estimate or formal timing-gate pass is inferred. Details present-by-rows is12/12 on both arms of each chat workload; exact co-frame ET equality is reported separately above and is not lower.

Workload Visual LoAF blocking main→candidate median, ms CLS main=candidate Visual FCP main→candidate median, ms
team-active 213.55→208.45 0 130→514
team-archived 116.55→115.65 0 216→484
native-active 325.9→312.25 0.000855266474777938 64.38→586.47
native-archived 217.55→206.75 0.000861601781998515 63.43→561.97
native-dashboard 226.6→220.05 0.000861601781998515 294.34→292.31

LoAF IQRs overlap and CLS is unchanged in these projections. Held-path FCP moves to the reveal by design; these instrumented visual values are descriptive and do not replace the accepted timing-mode tables.

Inspected synthetic before/after contact sheets

Selected observed frames below use the same full viewport/scale in both arms. Captions preserve the original clocks and disclose visual-capture tax; they are visual evidence, not paired latency results. All media were inspected for synthetic-only content, with no private Team capture or unrelated desktop. Native active pair01 shows the natural single-swap path; all11 fallback sequences are reported separately above.

Team active: before / after

Team active — Before, inspected synthetic fixture

Team active — After, inspected synthetic fixture

Team archived: before / after

Team archived — Before, inspected synthetic fixture

Team archived — After, inspected synthetic fixture

Native active: before / after

Native active — Before, inspected synthetic fixture

Native active — After, inspected synthetic fixture

Hold-expiry robustness

On this exact source pair, 36/36 captures, all 2,082 delivered raw frames personally inspected, zero full-page blank/background-only frames: 12 forced Team active (1,550 frames), 12 forced native archived (380), and 12 natural native archived at2×CPU (152). Every first new-document state is the existing critical skeleton with cached sidebar. These are deliberate fallback/stall cases, not the natural one-swap census.

The rig alone delays the real readonly transcript result to at least parser+650 ms and original route-asset dispatch to at least850 ms. The injected long task targets parser+200→580 ms and actually straddles both parser+450 and BLI+500 in all24 forced captures. All36 actual fallback setters fire. In forced cases the setter wins inside the first post-stall rendering opportunity, before style/paint and the first post-expiry Commit. It need not run before nominal hold expiry in wall time; it must run before that first eligible frame computes.

Diagnostic case Captures / frames Fallback setters Parser deadline BLI+500 Deferral end Fallback setter First new-tree Commit Setter→Commit
Forced Team 12 /1550 12 554.75 [550.30,567.10] 608.79 [604.52,621.08] 685.08 [680.72,697.55] 687.04 [682.74,699.62] 691.37 [687.30,704.96] 4.56 [4.28,5.38]
Forced native 12 /380 12 485.95 [483.50,551.60] 539.79 [536.97,605.19] 616.50 [613.97,681.96] 618.15 [615.57,683.61] 628.49 [622.59,690.91] 7.39 [7.02,14.70]
Natural native2×CPU 12 /152 12 515.45 [512.00,518.80] 572.88 [568.83,577.14] 583.42 [553.55,603.77] 556.48 [524.08,576.33] 591.94 [562.17,612.60] 35.86 [34.08,38.09]

Clock cells are document-ms median[min,max], diagnostic only. A rendered capture is not a physical every-vsync observation. Native’s available error count is0; Team lacks the equivalent error field. Calibration on the pinned main passed300 ms old→complete and900 ms old→blank→complete; all raw controls were inspected. Its Team trace-only CL/BLI clocks were71.317/94.783 ms active and78.530/99.344 ms archived, leaving86.8/147.3 ms lifecycle-hold margin for those traced rows. The traces do not identify the exact FCP-versus-postparse-paint release branch.

Reveal-frame attribution and local GPU context

The following source-pinned diagnostics explain the mechanism. They are historical attribution, not substituted final-head latency measurements.

Historical attribution and hardware-GPU context — different source pins

Historical source candidate ba03a677739bfb16ccaf3faa8c86e22babda7a36 versus main 4595699bf52954e48965025795034ba36da852fd. The following measurements belong only to those source pins; they neither replace final-head evidence nor grant a new gate waiver.

The historical quiet-AWS Team-active comparison was main 446 [439,456]→candidate 470 [467,472] ms: +24 ms difference of arm medians, raw paired median +20 [15,32] ms, raw order-balanced +23 ms, and A/A-adjusted +22 ms (AB +26/BA +18). Historical Team-archived was 408 [400,421]→438 [428,446] ms: arm-median difference +30 ms, raw paired median +32 [17,40] ms (also raw order-balanced +32 ms), and A/A-adjusted +44 ms (AB +48/BA +40). Thus the shorthand raw 24/32 uses different estimators: active 24 is arm-median subtraction, archived 32 is the paired median. Neither is the calibrated result. Accepting archived at +44 is a lead product decision, not a gate pass.

The stage table below comes from three active trace-only captures per arm on one fixed quiet c7a.4xlarge. IQRs across three samples are descriptive; paired Δ is median(candidate−main), not subtraction of arm medians. Paint uses union duration. Worker task-wall/thread-CPU sums overlap across threads; parent and child stages overlap. Do not add the rows. Presentation, ET and observer entries are timestamps, not work durations. Trace pairs are not the final alternating-order A/A latency experiment.

Stage Main median [IQR] Pure opacity median [IQR] Paired Δ median [IQR] Pair deltas 1 / 2 / 3
Position-visible row commit 467.047 [465.937, 474.732] 463.473 [462.621, 470.421] -3.574 [-12.111, 4.484] -3.574 / +12.541 / -20.649
Release/row anchor 467.047 [465.937, 474.732] 463.537 [462.684, 470.489] -3.510 [-12.049, 4.552] -3.510 / +12.613 / -20.588
Post-anchor→BMF elapsed 5.254 [5.228, 5.316] 5.806 [5.544, 6.002] 0.552 [0.316, 0.687] +0.080 / +0.821 / +0.552
Post-anchor style 0.176 [0.164, 0.179] 0.819 [0.795, 0.819] 0.636 [0.627, 0.640] +0.618 / +0.636 / +0.643
Post-anchor layout 2.380 [2.380, 2.435] 2.278 [2.278, 2.302] -0.102 [-0.157, -0.077] -0.102 / -0.213 / -0.052
Post-anchor prepaint 0.012 [0.012, 0.013] 0.011 [0.010, 0.012] -0.000 [-0.002, -0.000] +0.000 / -0.003 / -0.000
Rows BMF total 8.244 [8.165, 8.286] 12.105 [11.834, 12.123] 3.777 [3.627, 3.837] +3.476 / +3.777 / +3.897
BMF style 1.934 [1.920, 1.973] 1.790 [1.775, 1.830] -0.145 [-0.184, -0.105] -0.145 / -0.223 / -0.065
BMF layout 0.263 [0.261, 0.266] 0.277 [0.259, 0.287] 0.014 [-0.002, 0.021] -0.019 / +0.027 / +0.014
BMF prepaint 0.684 [0.681, 0.728] 1.803 [1.775, 1.818] 1.069 [1.065, 1.094] +1.069 / +1.119 / +1.060
BMF paint 1.418 [1.398, 1.440] 4.028 [3.947, 4.049] 2.567 [2.528, 2.610] +2.489 / +2.567 / +2.653
BMF commit 0.141 [0.140, 0.145] 0.218 [0.209, 0.221] 0.069 [0.065, 0.076] +0.061 / +0.083 / +0.069
BMF commitWait 0.000 [0.000, 0.000] 0.000 [0.000, 0.000] 0.000 [0.000, 0.000] +0.000 / +0.000 / +0.000
All main commit wait, anchor→rows 0.004 [0.003, 0.005] 0.007 [0.007, 0.008] 0.003 [0.002, 0.005] +0.001 / +0.006 / +0.003
Raster task count (count) 17.000 [17.000, 17.000] 81.000 [81.000, 81.000] 64.000 [64.000, 64.000] +64.000 / +64.000 / +64.000
Raster summed task-wall 4.743 [4.619, 4.893] 28.582 [28.470, 28.618] 23.839 [23.725, 23.851] +23.612 / +23.863 / +23.839
Raster summed thread CPU 4.263 [4.152, 4.319] 27.278 [27.275, 27.282] 23.009 [22.956, 23.127] +22.904 / +23.244 / +23.009
Raster elapsed envelope 1.287 [1.286, 1.355] 9.640 [9.572, 9.655] 8.246 [8.233, 8.300] +8.246 / +8.219 / +8.353
Image decode count (count) 0.000 [0.000, 0.000] 0.000 [0.000, 0.000] 0.000 [0.000, 0.000] +0.000 / +0.000 / +0.000
Image decode summed task-wall 0.000 [0.000, 0.000] 0.000 [0.000, 0.000] 0.000 [0.000, 0.000] +0.000 / +0.000 / +0.000
Impl Commit 0.118 [0.117, 0.129] 0.222 [0.194, 0.225] 0.089 [0.069, 0.097] +0.049 / +0.104 / +0.089
End commit→activation 1.960 [1.913, 2.264] 11.173 [11.011, 11.239] 8.983 [8.860, 9.098] +8.737 / +8.983 / +9.213
Activation 0.162 [0.155, 0.168] 0.166 [0.161, 0.208] -0.006 [-0.007, 0.048] +0.101 / -0.006 / -0.009
End activation→submit 1.820 [1.006, 2.530] 0.293 [0.245, 5.783] -1.527 [-2.285, 4.776] -1.527 / -3.043 / +11.080
Submit→receive 0.531 [0.504, 5.273] 10.966 [5.777, 10.991] 1.001 [0.529, 5.745] +1.001 / +10.490 / +0.058
Receive→draw 0.182 [0.162, 2.813] 0.500 [0.360, 0.607] 0.037 [-2.454, 0.304] -4.944 / +0.571 / +0.037
Draw→swap start 19.066 [18.980, 19.149] 27.474 [27.423, 27.555] 8.408 [8.274, 8.575] +8.741 / +8.408 / +8.139
Swap end→presentation 0.098 [0.098, 0.172] 0.441 [0.345, 0.516] 0.344 [0.247, 0.344] +0.345 / +0.150 / +0.344
Submit→presentation (parent interval) 20.043 [19.913, 27.322] 39.402 [34.011, 39.573] 8.578 [6.861, 14.098] +5.143 / +19.619 / +8.578
Linked rows-frame presentation 518.500 [511.096, 519.048] 532.095 [531.646, 539.305] 12.697 [12.598, 27.760] +12.499 / +42.823 / +12.697
Rows Element Timing 520.000 [512.000, 520.000] 536.000 [534.000, 542.000] 16.000 [14.000, 30.000] +16.000 / +44.000 / +12.000
Hello handled observer 573.600 [572.350, 581.450] 579.800 [575.950, 582.800] 6.200 [-5.500, 10.450] +6.200 / +14.700 / -17.200
First post-hello RPC observer 552.400 [550.900, 559.950] 555.400 [552.750, 559.950] 3.000 [-7.200, 9.050] +3.000 / +15.100 / -17.400

Pure opacity avoided the broad inherited-pointer-events style burst: all three candidates had 7 post-release style resolutions, versus 1 main, rather than roughly 998 in the earlier inherited-property variant. It retained the first full commit: candidate row-bearing source frame 0 had 81 raster tasks; main's later row-bearing frame was source 6 with 17. These are source/tree-scoped tasks, not cumulative pre-rows work. Zero image decode and thousandths-of-a-millisecond explicit main commit wait do not support attributing the delay to synchronous main-thread raster blocking. Final total layer-tree counts and unique paint-operation inventories were unavailable; updated-layer IDs are not total layers.

Raw source-frame linkage was verified through nested BeginMainFrame/DoUpdateLayers, separate BeginFrame sequence→Commit→PipelineReporter presentation linkage, and frame-scoped document clocks. The root release was bracketed within 61–72 microseconds by existing row-bearing lifecycle hooks; MutationObserver delivery lagged 4.080–4.273 ms. Cross-clock origin differed from the exact navigationStart by −0.070…+0.017 ms. The source-backed semantic deferral lifetime differs from the exported microsecond SetDeferCommits slice because update/commit tracks cross; no specific FP/FCP trigger was inferred. These are attribution constraints, not a claim that every elapsed millisecond was CPU-blocked or irreducible.

A separate eight-pair headed hardware-GPU diagnostic on the shared loaded Mac used the same historical pins, repo Chromium 156.0.8078.4 and hardware ANGLE Metal raster, with tracing and no A/A. It is not a performance result or campaign gate. Whole complete-ET order-balanced delta was +64 ms, with individual deltas −104 to +236 ms; the narrower release→complete-ET interval was +5.75 ms. Keep both together: +5.75 ms is not a whole-page result or a latency win. No software fallback/blocklist override was used; qualified hardware raster was observed in 8/8 both arms. Source/layer linkage and Details by rows were 8/8 both arms; fallback marks 0/8. Raster task-wall sums are not GPU hardware execution.

Diagnostic metric, ms Main median [IQR] Candidate median [IQR] AB delta [IQR] BA delta [IQR] Balanced delta
Complete ET proxy 342.000 [332.000, 359.000] 394.000 [362.000, 454.000] 48.000 [1.000, 104.000] 80.000 [34.000, 116.000] 64.000
Position-visible row commit 307.450 [291.375, 323.425] 352.150 [315.875, 414.100] 39.900 [-10.075, 98.475] 77.350 [23.075, 121.225] 58.625
Release upper bound / main row commit 307.450 [291.375, 323.425] 352.150 [315.900, 414.100] 39.900 [-10.050, 98.475] 77.350 [23.100, 121.225] 58.625
Reveal upper bound to complete ET 35.700 [33.675, 39.875] 43.500 [40.550, 44.675] 8.850 [6.375, 10.950] 2.650 [-5.225, 10.900] 5.750
BMF to complete ET 32.060 [29.957, 36.675] 39.883 [37.510, 41.029] 8.586 [5.998, 10.918] 3.066 [-4.662, 11.117] 5.826
Source/layer-scoped raster task sum 1.080 [1.015, 1.523] 3.626 [3.502, 3.716] 2.506 [2.464, 2.613] 1.942 [1.225, 2.580] 2.224
Source/layer-scoped raster elapsed envelope 1.100 [1.033, 1.555] 3.841 [3.748, 4.027] 2.723 [2.697, 2.839] 2.142 [1.380, 2.831] 2.433
Pair Order Main complete ET Candidate complete ET Delta Main source/task count Candidate source/task count Candidate release bracket us MO lag ms
1 AB 340.0 576.0 +236.0 6 / 9 0 / 37 40 2.600
2 BA 276.0 380.0 +104.0 5 / 30 0 / 37 37 2.300
3 AB 348.0 408.0 +60.0 8 / 9 0 / 37 50 2.700
4 BA 340.0 308.0 -32.0 7 / 9 0 / 37 50 4.000
5 AB 344.0 380.0 +36.0 6 / 9 0 / 37 34 2.400
6 BA 308.0 460.0 +152.0 5 / 28 0 / 37 36 2.200
7 AB 392.0 288.0 -104.0 6 / 9 0 / 37 45 3.300
8 BA 396.0 452.0 +56.0 5 / 9 0 / 37 38 2.300

The hardware-GPU arms had overlapping/wide intervals and large pair variation; these local diagnostic clocks are never pooled into the authoritative quiet-AWS comparison. Complete ET remains max(rows,Details), not a physical-monitor/full-surface observation. The release upper bound is the first unheld position-visible row commit, not MutationObserver delivery or the pre-hello transcriptReady flag.

Historical native archived attribution — pre-repair candidate, different pins

Candidate 5424defc6e5aae6693ae651b2bfb9677523e07d3 versus main e097b687cc62658367f44b8ba903e47cef04a5f9, one diagnostic trace per arm on the prior quiet c7a.4xlarge. All 35 eligible text nodes link through paint nodes, BeginMainFrame, source/sequence/layer tree and presentation. Main's row-bearing frame was source 11 after earlier skeleton commits; candidate's was the first non-deferred source 0. This singleton's rows delta was −20 ms and does not replace the formal +23 ms estimate.

Row-bearing stage, ms unless count Main Candidate
BeginMainFrame 7.636 13.189
Style / layout inside selected BMF 0 / 0 0 / 0
Prepaint union 0.901 2.786
Paint union 3.402 6.958
Main commit union 0.247 0.250
Explicit commit wait in row BMF 0 0
All explicit commit waits before rows 0.027 0.006
Source/layer-scoped raster task count 16 67
Raster summed task wall 7.713 34.035
Raster elapsed envelope 2.594 11.612
Impl commit 0.161 0.175
End commit → activation 3.120 12.767
Activation 0.335 0.126
End activation → submit 0.145 5.899
Submit → receive 0.352 1.467
Receive → draw 0.132 0.189
Draw → swap start 9.673 18.367
Swap end → presentation 0.074 0.314
Submit → presentation, parent interval 10.231 20.337

Nested/parallel intervals are not additive; raster task wall is not hardware GPU time. Zero style/layout in the selected BMF means that work occurred elsewhere. Native image-decode and total layer/paint-op inventories were unavailable. The first complete commit carries substantially more raster work; the visibility latch adds no application wait. The cached-roster handoff remains because removing it previously regressed native hello/RPC scheduling.

Production size and ownership

Runtime +88 LOC across15 existing owners. The requested literal production-stat filter reports141 insertions/49 deletions = +92,17 files, because it also includes three browser-test lines and one test-allocation line. The full diff is22 files:15 runtime, five tests, one documentation page and one test allocation. No CHANGELOG edit.

Runtime file Net lines Required responsibility
ui/index.html +27 Early admission hint, one wall-clock rendering deadline, root visibility CSS
ui/src/app/app-root.tsx +5 Root admission/release lifecycle
ui/src/app/app-shell-loader.tsx +1 Existing loading/auth exit
ui/src/app/boot-composer.ts +7 Single existing-owner completion latch
ui/src/app/bootstrap-connection.ts 0 Reuse parsed session; release unusable destination
ui/src/app/bootstrap-location.ts +5 Route escape/non-session release
ui/src/app/bootstrap-warm-boot.ts +3 Retired-admission release
ui/src/app/bootstrap.ts +2 Admission rejection exit
ui/src/app/router-outlet.tsx +2 Mandatory route-error recovery
ui/src/components/app-sidebar-owner.tsx +12 Actual cached-sidebar settled commit
ui/src/components/sidebar-snapshot.ts +10 Miss/unusable-cache release in cache owner
ui/src/components/sidebar-view-boundary.tsx +2 Existing sidebar boundary failure exit
ui/src/lib/sessions/session-boot-snapshot.ts +1 Transcript miss release
ui/src/pages/chat/chat-pane-runtime-view.tsx +6 Positioned transcript commit and miss exit
ui/src/pages/chat/chat-snapshot-prewarm.ts +5 Catch/cancellation/miss release and complete Promise-path cutover

Regression and documentation files: ui/src/e2e/warm-join.e2e.test.ts, ui/src/app/router-outlet.browser.test.tsx, ui/src/components/sidebar-snapshot.test.ts, ui/src/pages/chat/session-snapshot-prewarm.test.ts, ui/src/pages/chat/route-snapshot.test.ts, docs/web/control-ui.md, config/test-lines-allocations/coldload-warm-join.txt.

Growth above zero implements one parser admission/deadline and one existing-owner visibility latch, plus its required completion and immediate-release exits. It does not add a second visibility owner or wait for region work. The line breakdown names the contract requiring each positive delta.

Tests, review and CI

  • Prior-head (f091d3f7) focused proof on AWS cbx_9007c5d80885: 94 unit tests plus5 browser tests pass,12.01s combined external wall (11.27s wrapper wall). Boot composition, transcript prewarm, sidebar snapshots, roster warm boot and route-error handling.
  • pnpm test ui/src/e2e/warm-join.e2e.test.ts --maxWorkers=1: 5/5 pass,55.26s external wall including build/setup (54.51s wrapper,37.50s Vitest duration). Joined frame, deadline fallback, stalled rendering deadline, route-error release and sidebar miss. These are test costs, not performance measurements. Fresh pinned-main replay on cbx_4f4fc8b4a294: three intended visibility/deadline assertion failures, two release passes,43.17s external wall; source/support restored clean. The stalled-timeout main case fails its earlier join-admission assertion, so that replay does not isolate the distinct old-timer repair.
  • Independent source review is clean through P2 for the measured source and again for the three-file CI repair. Focused repair checks pass:18 prewarm tests (3.949s wall),32 warm-roster tests (5.864s wall), and20 route-snapshot assertions with jsdom (pnpm test ui/src/pages/chat/route-snapshot.test.ts --maxWorkers=1,4.453s wall). The original Node fixture reproduced20 failures plus a missing-document unhandled error; no assertions, mocks or timeouts were weakened. These are test costs, not performance results.
  • Lead local proof on this Mac at load average 12–21 (node scripts/run-vitest.mjs <file> --maxWorkers=1):
    • warm-boot.e2e.test.ts profiles on a3f8ab0c: 6/6 runs pass (9 pass, 1 intentional skip each), imported profile included.
    • dashboard-gallery.e2e.test.ts and logs-scroll.e2e.test.ts on a3f8ab0c: 2/2 runs each, all cases pass.
    • warm-join.e2e.test.ts on a3f8ab0c: 0/5 in both runs; all cases fail in setup on the unpolled boot-record check. A temporary poll showed the record appearing 109 ms later.
    • With the poll, as committed: 3/3 runs, 5/5 cases each.
    • Test-lines ratchet OK at the exact new allocation (421). Codex autoreview of the lead delta is scoped-clean through P2.
  • Full UI e2e completed once on prior head f091d3f7, separate AWS c7a.4xlarge cbx_4f4fc8b4a294, against pinned main df13b6b8. The canonical unfiltered command covered 957/957 expected unique files, with zero missing or extra files: 3,590 passed / 13 failed / 5 intentional opt-in skips in 5,749.809 s (95m49.809s). File headers:946 exercised passes,7 failures,4 wholly skipped. Chromium, Firefox, WebKit and their OS dependencies were installed; private-safe checkout ancestry and the canonical two-worker configuration were retained. This is prior-head evidence, not current-head full-suite proof.
  • A clean pinned-main rebuild succeeded; only the seven actual-red files were replayed once each, serially with --maxWorkers=1. Twelve original failure signatures reproduce exactly on main, normalizing only checkout prefixes. One remains candidate-only and unresolved: the imported-profile warm-boot test times out waiting for the initial cold .connect-splash, before cache persistence or warm reload; all10 main cases pass. A passing main replay does not erase the original failure or establish its cause. No candidate rerun or source repair followed the byte STOP. The raw native report and all seven baseline reports were independently checked against their hashes.
Original failed file Original failed cases Pinned-main replay Classification
chat-omitted-image-placeholder.e2e.test.ts 3 2 pass / 3 fail All3 signatures reproduced
chat-subagent-waiting.e2e.test.ts 1 1 pass / 1 fail Signature reproduced
native-plugin-ui.e2e.test.ts 1 5 pass / 1 fail Signature reproduced, including footer separation values
question-flow.e2e.test.ts 1 14 pass / 1 fail Signature reproduced, expected0 / received1
usage-sessions-owner-attribution.e2e.test.ts 4 0 pass / 4 fail All4 signatures reproduced
warm-boot.e2e.test.ts 1 10 pass / 0 fail Not reproduced: lead reran all profiles 6/6 on a3f8ab0c under load; cold path does not admit the hold
pages/cron/run-transcript.e2e.test.ts 2 5 pass / 2 fail Both signatures reproduced

Serial changed-file checks on the same prior head completed in 876.979s: the only failed task was the known Control UI controller guard, subsequently fixed and passing in current-head CI. The other listed typechecks, lint, declaration/graph guards and Knip checks passed. The full-suite skips require opt-in proof/live fixtures; they are not missing-browser setup failures. The native JSON SHA256 is d0787d55d023cd49f0352f2b903cc3e74304645cab5b61de7f07bf5b6709296f. Raw proof remains private. No current-head performance, census or full-suite result is substituted for this prior-head run.

  • Previous-head CI (run 42600763025, head a3f8ab0c): lint, production and test types, and all three UI unit shards passed. Bytes failed on the old caps; lead decision 5 resolves that. Two UI e2e shards failed in untouched surfaces: the dashboard-gallery attribution count and WebKit 1440 px log-wheel reachability. Both files pass locally on the same head (above). Run 42615783623 on 0d83fe3f passed every UI e2e shard and failed only the size budgets, which lead decision 5 records. c978b05d carries that budget commit.
    All timing, robustness, formal-visual and full-UI leases are released. The last full-UI lease was verified at2026-11-09T11:47:54Z as released, hasHost=false, ready=false, cleanup complete; owned Node/browser processes and both monitors were absent. Its private66,173,663 B archive was downloaded and all4,539 member sizes/hashes verified. No local Gateway or shared browser was started this resume, and no real account was used.

Follow-ups

The archived Team cached transcript temporarily omits the old page’s bottom “Team metric12” card in both main and candidate. It returns during later in-place restoration (around1.6s in the lead’s spot check; the root’s1.6s samples can still precede its return, and the final2.5–2.7s samples show it restored). This is a pre-existing snapshot-fidelity gap, outside L310; no fix is included here. The complete-cached-frame verdict above discloses that shared snapshot limitation.

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Nov 9, 2026
@steipete
steipete marked this pull request as ready for review November 9, 2026 09:30
@steipete steipete closed this Nov 9, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 9, 2026
@steipete steipete reopened this Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR reveals cached sidebar and positioned conversation content together on warm reloads, with a bounded loading fallback.

Example: Reload a cached chat containing 240 messages.

  • Before: The loading skeleton, sidebar, Details, and transcript appear in stages.
  • After: The previous page remains visible until the cached page reveals together, or the loading view appears after the 450 ms deadline.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused implementation has strong inspected browser evidence and no actionable finding; broader qualification remains unfinished.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Exact-head synthetic Chromium contact sheets exercise the built Control UI and visibly show joined cached sidebar, transcript, and Details reveal; the body separately records deadline-stall recovery and native fallback cases without claiming universal single-swap behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: A signed-in cached chat reload flashes loading content and assembles the sidebar and conversation in visible stages.
Reason: Inspected browser evidence supports improved continuity, and the maintainer-authored direction explicitly accepts the measured presentation costs and bounded fallback.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this maintainer-authored PR open: inspected visual evidence supports the improvement, no actionable introduced defect was found, and the author’s explicit merge pause remains active.

Priority: P3
Reviewed head: f091d3f7cee5e425580ef4af6172116903cddab3

Before merge

  • Await maintainer action - The PR author must lift the explicit do-not-merge pause after the declared validation is complete.

Findings

None.

Tests

  • Missing end-to-end proof: The author still reports pinned-baseline regression replay and full UI qualification as pending; focused head tests and separate browser reveal evidence are supplied.
Agent review details

How this fits together

Control UI startup prepares existing scoped browser snapshots while connecting to the Gateway; sidebar and transcript presentation owners report completion to the document boot owner.

flowchart TD
  A[Warm chat reload] --> B[Parser visibility hint]
  B --> C[Boot visibility latch]
  D[Sidebar settled commit] --> C
  E[Transcript positioned commit] --> C
  C --> F[Visible cached page]
  G[Deadline or recovery] --> H[Visible loading or error]
  C --> H
Loading

Technical review

Best possible solution:

Keep joined visibility in the existing boot owner while preserving independent preparation, scoped admission, draft handoff, and immediate recovery.

Do we have a high-confidence way to reproduce the issue?

The supplied baseline contact sheets show staged presentation, and current-main source retains the corresponding independent reveal paths; no target code was executed during this review.

Is this the best way to solve the issue?

The smallest complete change is a bounded document visibility latch consuming existing committed-region facts, which this diff implements without adding another cache or changing region preparation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against bbf0d7380315.

Provenance checked

  • Early critical loading frame changes intended behavior with a stated reason (f3464c7: Paint a theme-aware chat frame before application assets finish loading.)
  • Cached-roster paint handoff keeps the original intent (232dee1: Paint restored sidebar content before conversation construction while bounding suspended-frame waits.)
  • Scoped transcript prewarm keeps the original intent (f6ef3f8: Prepare and validate the matching cached transcript before first pane attachment without delaying Gateway startup.)
  • Sidebar snapshot lifecycle keeps the original intent (9fa4e56: Retain the synchronous snapshot owner across Solid recreation and tie its lifetime to actual host attachment.)
  • Early composer custody and recovery keeps the original intent (4ad9aea: Preserve early typing and queued submission until the normally admitted route composer takes custody.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff uses one document-lifetime completion latch and existing owner callbacks; fetched main retains the earlier presentation behavior. (ui/src/app/boot-composer.ts:28, f091d3f7cee5)
  • Bounded fallback: The parser schedules a rendering callback that checks fresh performance.now() before paint; misses, rejected admission, navigation, and error paths can release visibility earlier. (ui/index.html:125, f091d3f7cee5)
  • Inspected current visual evidence: Directly inspected all six current synthetic contact sheets linked from this PR for Team active, Team archived, and native active. Baseline sheets show staged loading; candidate sheets show joined reveal. Archived sheets disclose the shared temporary missing metric card. The prepared manifest instead contained historical images from perf(ui): paint restored sidebar before mounting conversation #175816; current images were fetched and decoded in memory because scratch writes were refused. (f091d3f7cee5)
  • Accepted product tradeoffs and active pause: The maintainer-authored body explicitly accepts later held-path first paint, measured complete-frame costs, and the disclosed dashboard estimator outcome. It still states Do not merge while baseline replay, full UI qualification, and exact-head CI/byte checks remain unfinished. The fetched body matches supplied SHA-256 c281d56d646b9df70543e5199c188117a944832f1c9a346c1e1eb4f156d71fc0. (f091d3f7cee5)
  • Intentional scheduling preserved: perf(ui): paint restored sidebar before mounting conversation #175816 deliberately separated restored-sidebar paint from conversation construction; this PR retains that handoff and changes document visibility instead. (ui/src/lib/sessions/session-boot-snapshot.ts:114, 232dee1422b1)
  • Current workflow state: The reviewed head remains unchanged and mergeable. CI includes cancelled qualification jobs and a new in-progress preflight; aggregate CI and security statuses remain pending. These establish no diff-caused failure. (f091d3f7cee5)

PR surface

Source +90, Tests +414, Docs +2, Other +1. Total +507 across 21 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 15 146 56 +90
Tests 4 414 0 +414
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 21 563 56 +507

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus regression-test growth Production +146/-56, net +90 LOC; tests +414/-0 LOC. Production growth implements the bounded latch and completion/recovery exits; tests cover joined reveal, deadline draft handoff, stalled timeout delivery, route failure, and cache retirement.

Root-cause cluster

Relationship: canonical
Canonical: #195865
Summary: This PR continues the closed experiment with its final measured candidate.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves warm-reload visual continuity without an established loss of core functionality.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the declared baseline replay, full UI qualification, and exact-head CI and byte-budget checks.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-09T09:47:21.322Z sha f091d3f :: blocked before merge. :: none

Reviewed November 9, 2026, 4:55 AM ET / 09:55 UTC (Revision 2).

@steipete
steipete marked this pull request as draft November 9, 2026 10:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T12:53:55.838508Z c978b05 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Live owner publications write the boot record after the snapshot save settles; under load the immediate localStorage check raced it and failed every warm-join case.
Document and chat boot caps move to the CI-measured candidate sizes plus the standard 64 B headroom (13,962 B and 1,297,193 B).
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 9, 2026
@steipete
steipete marked this pull request as ready for review November 9, 2026 12:17
Exact-head CI against newer main measured startup JS 91,561 B (+600 B), chat boot 1,297,436 B (+582 B) and New Session boot 803,300 B (+623 B). The startup baseline takes the measured value; route caps take measured plus 64 B.
CI on c978b05 measured chat boot 1,297,532 B against base 1,297,037 B; the cap takes measured plus 64 B.
@steipete
steipete merged commit 07a098f into main Nov 9, 2026
97 of 100 checks passed
@steipete
steipete deleted the steipete/coldload-team-join-revival branch November 9, 2026 13:25
@steipete

steipete commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Landed as 07a098f (squash, pinned head c9faa559).

Exact-head CI (run 42622808480) passed all UI e2e shards and the Control UI size budgets. The only red was checks-ui (2/3): one unit test, chat-view.test.ts › "keeps the newest speed selection when an older patch fails late". This PR does not touch that code. The same shard passed on the three previous heads, and the test passes 5/5 locally on c9faa559. Admin-merged as an unrelated flake. openclaw/ci-gate only aggregates that result.

Exact-head local proof on c9faa559, --maxWorkers=1 on a loaded Mac:

  • warm-join: 5/5
  • warm-boot: 10/10
  • warm-history-subscription: 5/5
  • team-scale-cold-load: 3/3

Lead commits after the measured head:

  • the warm-join setup now polls for the asynchronously persisted boot record;
  • the startup baseline takes the measured 91,561 B; document, chat and New Session caps take measured size plus 64 B (lead decision 5).

Follow-up (parked): cached widget cards show a reserved, untitled box until their sandboxed content renders. A titled reservation works for the first frame. A gap-free handoff needs a paint-level acknowledgement from inside the widget sandbox, because the current one fires on load. That sandbox boundary is security-sensitive and gets its own task.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
…#195865)

Reloading a cached chat in the Control UI used to flash a loading skeleton and then assemble in stages: the sidebar beside a transcript skeleton, then Details, then transcript rows. On Team deployments none of 12 measured reloads went from the previous page straight to the complete page.

The document now carries a parser-time hint when a boot record exists for a chat route. While Chromium's paint holding keeps the previous page on screen, the new document stays invisible. One latch in the existing boot composer reveals it when the cached sidebar and the positioned transcript have both committed. Every other exit releases immediately: cache miss, unusable or deleted cache, login, route change, rejected warm boot, shell load error and route error. A 450 ms wall-clock deadline, checked before each rendered frame so a busy main thread cannot defer it past the hold, falls back to the existing skeleton.

Proof, on fresh AWS c7a.4xlarge hosts against pinned main: Team active and archived went from 0/12 to 12/12 old page to complete page as the first new state. Across 120 visual captures, no frame was blank or background-only. A forced-miss and stalled-main-thread probe (36 captures, 2,082 inspected frames) never showed a blank frame. Native reloads that hit the deadline show cached sidebar and Details, then the complete page. Visible state counts fell on every chat workload and tied on the dashboard; layout shift and transcript backtracking stay at 0.

Disclosed cost: the complete frame arrives 17 to 36 ms later, order-adjusted, on paths that hold the old page, because the first commit after paint holding carries the whole tree (raster tasks 17 to 81 on Team). The change also adds about +600 B gzip to startup JS, about +500 B to chat boot and +623 B to New Session boot; the size budgets record the measured values. These and the other gate dispositions are listed as lead decisions in the PR.

Runtime +88 lines across 15 existing owners. A new warm-join browser regression covers the joined reveal, deadline fallback, stalled deadline delivery, route-error release and sidebar-cache miss. The full UI e2e suite ran on the measured head: 12 of 13 reds reproduce on pinned main, and the remaining warm-boot timeout passed 6/6 on rerun. Exact-head CI is green except one unrelated chat-view speed-selection test that passes 5/5 locally on the same head.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant