Skip to content

perf(control-ui): admit warm full-UUID routes from snapshots - #177101

Closed
steipete wants to merge 4 commits into
mainfrom
steipete/coldload-route-binding-from-snapshot
Closed

steipete wants to merge 4 commits into
mainfrom
steipete/coldload-route-binding-from-snapshot

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A warm reload of an off-roster full-UUID chat deep link waits for sessions.resolve before mounting its cached conversation. This adds a shell-to-transcript waterfall even though the existing scoped conversation snapshot already proves the exact UUID and agent.

Selected variant B: immediate snapshot admission. In 11 interleaved triplets per face, B improves transcript-visible paint in all 11 pairs on both faces: median paired deltas −288 ms (chat) and −264 ms (dashboard). Its FCP costs are +80 ms and +48 ms, within the lead's explicitly accepted tradeoff. The first transcript Element Timing entry equals FCP, and the first LCP entry is transcript text, in all 22 B reloads. The first contentful frame contains the conversation.

Variant C, which yields through one animation frame and a task before admission, fails the primary paint gate on both faces and regresses dashboard LoAF blocking. It is not included in the production change. B passes the seven-pair exact-key dashboard control, including FCP, final rows, LoAF blocking, RPC attempts, and board readiness.

Change

Admit only a complete UUID (32 hex digits, dashes optional) and matching agent from the already-started host/account/profile-scoped conversation snapshot. The snapshot store remains the validation owner; the route and pane share its validated promise instead of reading/decoding the record twice. No new store, persisted fields, scope, product configuration, or server schema.

Keep sessions.resolve authoritative: preserve a matching key, replace a moved key, or show not-found and remove cached rows. Prefixes, slug-only URLs, and ambiguity retain their existing resolution behavior. chat.startup follows the earlier pane mount. Keep the full input URL until authoritative canonicalization; preserve validated navigation handoffs so canonical navigation sends only one resolver request.

The bench supports two- or three-bundle cycles and records Element Timing on direct transcript text owners before paint, plus LCP render times and element identity. It does not add a production attribute. Its closed-socket probe repair retains abandoned requests in RPC counts while allowing the benchmark to settle.

Evidence and predeclared decision

Common main baseline cf0ad5c, including L150/#176696. B plus common tooling ec80a8c. B replays the reviewed 9e1ebd03 implementation unchanged on this common base. C adds only the recorded three-line frame/task yield for its comparison bundle.

Quiet AWS c7a.4xlarge, 16 CPUs, AMD EPYC 9R14; repository headless Playwright Chromium. Eleven continuous A/B/C triplets for each face, same browser per face, identical warm storage restored before every reload. General wire latency 20 ms; resolve/description latency minimum 195 ms. All samples retained. Untraced runs use the same LoAF/RPC probes. The separate seven-pair control uses a normal exact-key dashboard URL, which bypasses UUID admission.

Rule declared before this series:

  • A variant qualifies when transcript-visible paint beats A in at least 9/11 pairs on both faces, with median paired delta below zero.
  • Prefer the earliest qualifying transcript paint; if B and C are within 30 ms median of each other, prefer C. The tie comparison pools the 22 paired face observations.
  • Accept an FCP increase of at most 100 ms median only when transcript-visible paint improves by at least 150 ms median.
  • LoAF blocking, final rows, RPC attempts, and board reload retain the campaign no-regression rule: worse with non-overlapping IQRs, or worse in at least 9/11 (6/7) pairs with median paired rise over max(10 ms, 3%). Counts use zero count tolerance.
View Variant Metric A median [Q1–Q3] Variant median [Q1–Q3] Paired median delta Better / worse
chat B FCP 316.0 [302.0–336.0] 384.0 [380.0–392.0] +80.0 0 / 11
chat B Final rows 971.0 [932.8–1046.1] 760.5 [751.4–803.0] -216.9 11 / 0
chat B LoAF blocking 277.0 [245.5–361.5] 177.0 [162.5–192.0] -86.0 11 / 0
chat B RPC attempts 86.0 [86.0–111.0] 86.0 [86.0–86.0] +0.0 3 / 0
chat B Transcript visible paint 676.0 [644.0–684.0] 384.0 [380.0–392.0] -288.0 11 / 0
chat C FCP 316.0 [302.0–336.0] 356.0 [348.0–458.0] +40.0 1 / 10
chat C Final rows 971.0 [932.8–1046.1] 927.2 [865.1–947.9] -84.8 10 / 1
chat C LoAF blocking 277.0 [245.5–361.5] 279.0 [259.5–320.5] +21.0 4 / 7
chat C RPC attempts 86.0 [86.0–111.0] 86.0 [86.0–86.0] +0.0 3 / 2
chat C Transcript visible paint 676.0 [644.0–684.0] 672.0 [618.0–692.0] +4.0 5 / 6
dashboard B FCP 324.0 [312.0–346.0] 372.0 [366.0–376.0] +48.0 0 / 11
dashboard B Final rows 1035.4 [920.4–1086.6] 855.2 [813.6–915.5] -132.8 10 / 1
dashboard B LoAF blocking 241.0 [230.0–247.0] 224.0 [206.5–268.5] -20.0 8 / 3
dashboard B RPC attempts 84.0 [84.0–84.0] 84.0 [84.0–84.0] +0.0 0 / 1
dashboard B Transcript visible paint 632.0 [622.0–640.0] 372.0 [366.0–376.0] -264.0 11 / 0
dashboard C FCP 324.0 [312.0–346.0] 368.0 [332.0–546.0] +36.0 2 / 9
dashboard C Final rows 1035.4 [920.4–1086.6] 935.9 [873.9–984.2] -48.9 7 / 4
dashboard C LoAF blocking 241.0 [230.0–247.0] 283.0 [263.0–358.0] +57.0 1 / 10
dashboard C RPC attempts 84.0 [84.0–84.0] 84.0 [84.0–84.0] +0.0 0 / 2
dashboard C Transcript visible paint 632.0 [622.0–640.0] 624.0 [556.0–654.0] -40.0 6 / 4

Times are milliseconds; RPC attempts are counts. Quartiles use the inclusive method.

All eleven paired deltas, variant minus A

chat B

  • FCP: +80.0, +100.0, +84.0, +80.0, +64.0, +20.0, +92.0, +40.0, +44.0, +68.0, +80.0
  • Final rows: -289.5, -44.1, -146.3, -289.6, -306.5, -286.8, -142.3, -117.4, -216.9, -268.2, -210.5
  • LoAF blocking: -254.0, -276.0, -91.0, -75.0, -212.0, -118.0, -69.0, -71.0, -86.0, -70.0, -58.0
  • RPC attempts: -50.0, -50.0, +0.0, +0.0, -50.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
  • Transcript visible paint: -244.0, -224.0, -308.0, -264.0, -264.0, -308.0, -300.0, -288.0, -300.0, -260.0, -332.0

chat C

  • FCP: +40.0, +244.0, +56.0, +252.0, +40.0, +220.0, +72.0, +16.0, +4.0, -28.0, +36.0
  • Final rows: -116.6, -84.8, -18.9, -229.5, -92.5, -173.4, -12.1, +48.1, -6.4, -137.2, -43.8
  • LoAF blocking: -169.0, -178.0, -11.0, +21.0, -144.0, +127.0, +45.0, +41.0, +3.0, +192.0, +58.0
  • RPC attempts: -50.0, -50.0, +0.0, +0.0, -50.0, +50.0, +0.0, +0.0, +0.0, +50.0, +0.0
  • Transcript visible paint: +44.0, -80.0, -12.0, -92.0, +40.0, -108.0, +8.0, +16.0, +4.0, +40.0, -64.0

dashboard B

  • FCP: +104.0, +24.0, +64.0, +48.0, +12.0, +16.0, +80.0, +48.0, +24.0, +24.0, +60.0
  • Final rows: -191.7, -203.7, -86.1, -340.8, -42.1, -126.9, -132.8, -318.5, -97.0, +21.7, -197.9
  • LoAF blocking: -1.0, +143.0, +87.0, -77.0, +66.0, -38.0, -19.0, -25.0, -50.0, -20.0, -59.0
  • RPC attempts: +0.0, +47.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
  • Transcript visible paint: -188.0, -284.0, -244.0, -264.0, -248.0, -276.0, -228.0, -260.0, -284.0, -268.0, -368.0

dashboard C

  • FCP: +252.0, +204.0, +224.0, +36.0, -64.0, -64.0, +264.0, +232.0, +12.0, +20.0, +4.0
  • Final rows: -203.9, -48.9, -210.8, -162.4, +18.7, +19.2, -154.9, -304.6, +76.7, +157.3, -39.7
  • LoAF blocking: +42.0, +57.0, +17.0, -4.0, +162.0, +35.0, +256.0, +20.0, +68.0, +110.0, +81.0
  • RPC attempts: +0.0, +0.0, +0.0, +0.0, +47.0, +0.0, +47.0, +0.0, +0.0, +0.0, +0.0
  • Transcript visible paint: -40.0, -104.0, -84.0, +16.0, +0.0, +4.0, -44.0, -76.0, +12.0, +52.0, -52.0

LCP corroboration

View Variant First LCP median Last LCP median First LCP is transcript Last LCP elements
chat A 316.0 676.0 0/11 {'p': 11}
chat B 384.0 384.0 11/11 {'p': 11}
chat C 356.0 672.0 3/11 {'p': 11}
dashboard A 324.0 632.0 0/11 {'p': 11}
dashboard B 372.0 372.0 11/11 {'p': 11}
dashboard C 368.0 624.0 5/11 {'p': 11}

Exact-key dashboard control (seven pairs)

Board readiness is the existing sandbox resource-load milestone, not a presentation timestamp.

Metric A median [Q1–Q3] Selected median [Q1–Q3] Paired median delta Better / worse
FCP 356.0 [356.0–358.0] 360.0 [356.0–368.0] +4.0 2 / 5
Final rows 740.8 [736.8–780.5] 731.7 [706.9–753.8] -23.5 4 / 3
LoAF blocking 216.0 [210.0–241.0] 227.0 [208.5–237.0] +7.0 2 / 5
RPC attempts 83.0 [83.0–83.0] 83.0 [83.0–83.0] +0.0 0 / 1
Board ready 1350.4 [1306.5–1454.9] 1315.8 [1289.6–1347.5] -40.5 5 / 2

Per-pair control deltas:

  • FCP: -4.0, -16.0, +4.0, +20.0, +16.0, +4.0, +4.0
  • Final rows: -254.2, -37.8, +17.5, -30.7, +8.4, -23.5, +25.6
  • LoAF blocking: -60.0, +7.0, +16.0, +190.0, +8.0, -44.0, +6.0
  • RPC attempts: +0.0, +0.0, +0.0, +46.0, +0.0, +0.0, +0.0
  • Board ready: -283.2, -2.5, +87.8, -40.5, +14.4, -141.0, -73.7

Validation

Final-head validation is running: focused route/snapshot/reconnect and browser tests, baseline-red visual reproduction, changed-file checks, the Control UI boot budget against the pinned main, and the full UI e2e suite. The new Element Timing browser regression passed locally and on AWS: opacity-hidden nested text does not count as painted until shown. Codex autoreview is clean through P2; subsequent rebases preserved the lane's diff.

AWS lease: cbx_bb3810ce5dd8; measurement run. Initial pre-measurement lease was released to incorporate newly landed L150; it contributed no samples. Exact-head validation and refreshed synthetic screenshots will be recorded before handoff. No merge requested.

Size

Requested non-test/non-doc stat: 341 insertions, 39 deletions; net +302 LOC across nine files. Application runtime: net +109 LOC; benchmark/probe tooling: net +193 LOC. Added tests: +346 LOC; docs net 0. Growth implements the exact-identity and scope checks, authoritative after-hello replacement, and reproducible paint measurement. The duplicate snapshot read-validation path is removed, and the pane reuses the validated snapshot promise.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: L labels Oct 19, 2026
@steipete
steipete force-pushed the steipete/coldload-route-binding-from-snapshot branch from e3267b3 to 48ffbd7 Compare October 19, 2026 07:44
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 19, 2026
@steipete
steipete force-pushed the steipete/coldload-route-binding-from-snapshot branch from 48ffbd7 to 9e1ebd0 Compare October 19, 2026 07:57
@steipete steipete changed the title experiment(control-ui): admit full-UUID routes from snapshots [do not merge] experiment(control-ui): snapshot route admission [rejected: FCP regression] Oct 19, 2026
@steipete steipete closed this Oct 19, 2026
@steipete steipete changed the title experiment(control-ui): snapshot route admission [rejected: FCP regression] perf(control-ui): admit warm full-UUID routes from snapshots Oct 19, 2026
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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant