Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. What this changesThis PR adds optional board sandbox tracing and geometry observations to the existing warm-reload proof rig. Example: Run the isolated dashboard workload with --route dashboard --trace-board.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open as a maintainer-directed experiment with an explicit do-not-merge hold; one source-reproducible defect drops a requested tracing phase. Priority: P3 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe developer proof rig drives Chromium against an isolated built Gateway and synthetic dashboard widget, collecting browser observations into local evidence artifacts. flowchart TD
A[Warm reload proof rig] --> B[Chromium dashboard]
B --> C[Outer sandbox iframe]
C --> D[Inner widget document]
D --> B
B --> E[Phase probe and CDP trace]
E --> F[Local evidence artifacts]
Technical reviewBest possible solution: Correct the content-ready observation through the existing fixture and milestone owners, then let measured attribution determine whether a runtime repair is justified. Do we have a high-confidence way to reproduce the issue? The dropped tracing milestone follows directly from the fixture's window.top.postMessage producer, the nested sandbox structure, and the new outer-frame source filter; no target code was executed. Is this the best way to solve the issue? Extending the existing isolated rig is appropriate for attribution, but the content-ready event must reach its phase recorder before these artifacts can describe the complete widget lifecycle. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d431ea3ef802. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceOther +253. Total +253 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 31, 2026, 5:43 PM ET / 21:43 UTC. |
bf77c8a to
d2621cb
Compare
d2621cb to
3b0060a
Compare
3b0060a to
2750fa2
Compare
What Problem This Solves
A signed-in warm dashboard reload still replaces board skeletons with a late sandbox widget.
Why This Change Was Made
This experiment tested early exact-proxy startup and bounded cached height, preserving the sandbox security contract.
User Impact
STOP: the experiment fails admission and is being closed. Do not merge.
Evidence
Head:
2750fa29222b082a7c4e205184140915ae4b6cdb. Baseline:183327d2319a5e86ad8a9b17e58320e172770305. Experiment: #189777. No merge or ready PR.The candidate fails the predeclared gate. Complete widget pixels improve by a paired median 236.778 ms (10/11 better), below the required 300 ms. Dashboard hello handling regresses by a paired median 62.376 ms in 9/11 pairs, above max(10 ms, 3%) = 15.404 ms. The A/A hello distribution has mixed signs (6/11 worse, paired median +15.173 ms). Earlier first-colored-pixel detection overstates the primary improvement because three candidate captures are clipped before their complete widget frame. No sandbox-security change is proposed.
Scope and method
One quiet AWS c7a.4xlarge, 16 CPUs, repo Chromium 156.0.8078.4; CPU idle before A/A 93.31%, before A/B 91.95%. Eleven interleaved A/A pairs and eleven interleaved baseline/candidate pairs on each route. All warm captures assert
/chat/main/dashboard/<id>, board in the main region and archived transcript in the side region, after the real Swap UI action and navigation. Three thousand synthetic sessions; involving-me/category/created, 97 groups/102 order entries, five collapsed groups, empty groups always, previews off, active pins and archived probe sessions. No private capture or real credentials/state were used.This is the native warm-reload proof fixture with 80 ms CDP latency shaping, not a calibrated per-RPC live-fast profile or the canonical Team-scale bench. That is a remaining proof gap, not a successful campaign performance gate. Earlier side-board comparisons and attribution are disqualified for this target; none are used below. Native screenshots sample presentation frames; endpoints are sampled upper bounds, not exact nanosecond paint instants.
Complete widget endpoint
The complete endpoint requires all final fixture background, card and core-text pixels within the final board region (three exact-color masks, each ratio 1). Selected full frames were visually inspected. The first-colored endpoint only detects initial widget color and is insufficient for final geometry.
Complete per-pair deltas, candidate minus baseline, ms:
AA: -63.018, -81.019, 186.096, -47.872, -24.401, -75.171, -155.906, -233.754, 87.398, -161.331, 314.608.
AB: -162.192, -367.934, -236.778, -220.906, -80.683, -364.251, -95.923, -322.993, -317.557, -455.888, 154.919.
The outer ResizeObserver rectangle is stable in 11/11 for both arms, so it does not establish an improvement. Candidate warm-03, -07 and -08 have incomplete first-colored frames. In warm-03, frame 7 is visibly clipped at the right/bottom; frame 8 shows the full widget 116.662 ms later. Mask ratios change from [0.564147, 0.886704, 0.996429] to [1, 1, 1]. Therefore the painted-geometry gate is unproven despite stable outer contentRect.
Secondary metrics, both routes
All values are ms except CLS. Final rows is the recorded DOM endpoint, not a painted-final-row guarantee. No unavailable samples were converted to zero. Only dashboard hello satisfies the declared regression rule; mixed-sign overlapping distributions elsewhere are not called regressions.
Every secondary per-pair delta
AA chat helloHandledMs: -104.386, -38.551, 33.762, -76.200, 36.813, -273.967, 30.857, -274.058, 103.083, -42.653, 18.789.
AA chat fcpMs: -149.740, -110.436, 68.026, 43.886, 26.496, -27.411, 34.181, 68.446, 73.815, -59.353, 52.159.
AA chat firstPaintedRowsMs: -147.986, -111.951, 68.162, 44.100, 27.913, -27.967, 36.057, 67.942, 75.983, -55.753, 51.989.
AA chat finalRowsDomMs: -54.686, -33.851, 31.662, -32.900, 34.813, -0.167, 31.557, 25.742, 78.783, -44.653, 17.689.
AA chat loafBlockingMs: -143.000, -94.500, -9.000, -109.700, 38.100, -216.900, 6.100, -99.300, 98.800, -40.700, -75.700.
AA chat cls: 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, -0.000374, 0.000000, -0.000374, 0.000000, 0.000000, 0.000000.
AA dashboard helloHandledMs: 15.173, 287.322, -21.307, 56.297, -94.970, -289.574, 229.420, -274.907, 75.581, -54.865, 235.318.
AA dashboard fcpMs: -90.762, -53.339, 59.367, -8.302, -54.519, -1.462, 14.651, -4.065, 69.376, -12.180, 11.497.
AA dashboard firstPaintedRowsMs: -536.027, 19.922, 48.093, -16.103, -64.270, -95.974, 223.920, 19.993, 379.781, -15.865, 68.018.
AA dashboard finalRowsDomMs: 16.873, -63.378, 34.193, 13.797, -23.570, 8.626, -84.980, 61.093, 45.281, -12.265, -46.482.
AA dashboard loafBlockingMs: 21.300, 103.100, -41.300, -12.100, -118.700, -94.100, 92.400, -131.500, 51.000, -30.800, 79.700.
AA dashboard cls: 0.000000, 0.000193, 0.000000, 0.000000, 0.000000, -0.000193, 0.000193, -0.000193, 0.000000, 0.000000, 0.000193.
AB chat helloHandledMs: -57.115, 109.608, -19.696, -285.945, -254.951, -55.194, -16.302, -42.277, 43.426, -49.427, 74.766.
AB chat fcpMs: -107.598, -240.543, 17.718, 46.838, 46.944, 201.056, -22.489, -79.792, -21.548, -176.071, -230.723.
AB chat firstPaintedRowsMs: -107.915, -240.192, 19.904, 43.955, 48.149, 199.806, -20.002, -79.777, -19.974, -176.027, -232.034.
AB chat finalRowsDomMs: -49.415, -94.592, -16.196, 29.955, 58.249, 145.006, -7.402, -37.777, 34.026, -52.927, -91.434.
AB chat loafBlockingMs: -0.800, 53.500, -2.800, -189.700, -186.300, 18.900, -19.100, -74.200, 80.900, -30.100, 98.500.
AB chat cls: 0.000000, 0.000374, 0.000000, -0.000374, -0.000374, -0.000374, 0.000000, 0.000000, 0.000000, 0.000000, 0.000374.
AB dashboard helloHandledMs: 62.376, -325.190, 79.788, 195.933, 296.933, 31.297, 226.696, 35.810, 53.809, -320.783, 314.647.
AB dashboard fcpMs: 44.065, 148.130, 54.927, -168.546, -10.358, 103.504, 36.256, 89.244, 71.159, 151.623, -268.350.
AB dashboard firstPaintedRowsMs: -12.024, 183.910, 47.988, -203.967, 24.033, 399.997, -59.904, 76.010, 144.109, 444.017, -471.953.
AB dashboard finalRowsDomMs: 18.376, 39.810, 45.488, -105.867, -21.267, 4.597, -64.504, 420.210, 57.709, 37.217, -120.753.
AB dashboard loafBlockingMs: 65.500, -162.200, 25.400, 69.000, 133.800, -8.900, 26.400, -9.400, -4.800, -167.700, 78.500.
AB dashboard cls: 0.000000, -0.000193, 0.000000, 0.000193, 0.000193, 0.000000, 0.000193, 0.000000, 0.000000, -0.000193, 0.000193.
Connect-first: 88/88; one document per warm load; zero recorded application errors. Dashboard snapshot: 57,415 → 57,480 bytes (+65 bytes, +0.1132%); chat snapshot: 55,438 bytes unchanged. Heights are numeric and bounded to 48 entries, retired with the existing board snapshot scope. No new database, server record, protocol or display replay.
Attribution: five valid warm dashboard-main loads
All timestamps below are relative to navigation. These are independent per-phase medians, not an additive sum of median timestamps. Trace response receipt can queue; host ResourceTiming responseEnd is listed separately. ParseHTML includes nested script evaluation. Renderer commits prove isolation, not operating-system process startup time.
The exact proxy is already cached in all five loads: HTTP 200, fromCache true, encoded network bytes zero. Its matching-policy immutable response uses public max-age=31536000, immutable; scripts are inline. No proxy cache-header change is needed. Widget HTML deliberately remains no-store. Proxy and inner renderer processes differ from their parents in all five traces; OS process launch and exact createElement timestamps/module evaluation are unavailable. Proxy navigation→commit is only 6.931 ms; the largest measured remaining interval is inner load→first size/trace paint (~848/850 ms). This attribution does not prove that interval can be moved without affecting sandbox lifecycle/security.
Candidate ownership and cost
Cached numeric heights seed the existing board envelope; the snapshot hydration owner prepares the existing exact-proxy host before lazy BoardView. BoardSandboxFrame adopts the same iframe without navigation/recreation. Existing exact source/origin/ticket/lease checks remain; warm placeholders are quiet, cold skeletons remain. No cached sandbox DOM/pixels are replayed. The growth is too large for this failed result: UI runtime +510/−85 = +425 net, versus the ≤80 target. Diagnostic scripts add 261 lines. The requested production filter reports +793/−86 = +707 net across 26 files, because it also includes diagnostics, .test.tsx and allocation text. Total changed files: 30; tests +217/−25 = +192 net.
Touched runtime owners: board view/frame/cell state and CSS; generic and board-specific widget sandbox hosts/prewarm; chat board cache, hydration and existing snapshot record/envelope. Diagnostics: scripts/perf/warm-reload-proof.ts and warm-reload-board-trace.ts. Tests cover board view/frame/resilience, snapshot owner and native reload; no source change after the reviewed head.
Proof and explicit gaps
AWS validation lease cbx_58db682d5301, run run_18968689986cc2d145a5840fedad0ce8: 107 focused unit tests pass. Single-file pnpm test --maxWorkers=1 wall times: board-view 27 tests / 7.39 s; board-widget-frame 18 / 4.50 s; resilience 10 / 4.37 s; pane-loading 7 / 10.11 s; snapshot-store 45 / 4.85 s. UI types pass (16.03 s), script types pass (22.22 s).
Native regression: baseline warm dashboard reports a skeleton (expected zero, actual one); candidate four real-Gateway cases pass (99.69 s), but those earlier native tests exercised the board side panel and do not substitute for the final main-board visual comparison. Baseline regression command wall time 189.19 s including builds. Two dashboard-alias mock first-header rAF cases remain red (27.25 s): no board widget at that DOM checkpoint. DOM-at-rAF is not composited-paint proof; the gap remains unresolved.
Fresh autoreview was clean through P2 before commit. Full check-changed is not green: earlier own type/lint findings were fixed, four dead exports reproduce on the exact baseline, but the complete command was not subsequently green. Candidate build also reports a 21-request chat boot budget versus limit 20; baseline classification remains incomplete. Full UI e2e, canonical Team-scale calibrated-latency comparison, and exact-head broad CI green were not completed because the performance admission failed. PR broad jobs were skipped while draft. No readiness/landing claim.
Final attribution/comparison lease cbx_f3c509574586 (c7a.4xlarge), initial run run_3ed94532379712cbf64b111c24b5c006 and same-lease continuation; all owned leases released, including final release receipt server i-0d8acdb06bfe998fd. All owned fixture Gateways shut down; no local Gateway remains.
Maintainer handoff
Keep this candidate closed. Useful findings: immutable proxy transfer is already free on warm loads; first host presentation-ready is not actual completed widget paint; early context work can delay hello. A future smaller experiment would need to isolate the inner document first-paint/size delay and preserve visible iframe geometry without moving expensive work onto hello. No new display contract or weakened sandbox check is requested.
Synthetic first-app-paint captures
Baseline (warm skeleton) and candidate (quiet static board surface). These illustrate placeholder behavior, not a passed content-time or geometry gate. Both full captures were inspected and contain synthetic fixture data only.