Skip to content

test(ui): separate engine action and settle timings - #189013

Merged
steipete merged 1 commit into
mainfrom
solid2/w-webkit-260-cluster-1030
Oct 31, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-webkit-260-cluster-1030

Conversation

@steipete

@steipete steipete commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Related: #188991

What Problem This Solves

A WebKit census grouped unrelated actions around 255–266 ms. The engine harness exposed total automation wall time and a consecutive-frame interval, which could not distinguish driver/selector work, application work, and the final two-frame wait.

User Impact

Developers can distinguish benchmark action time from the final frame wait. There is no user-visible application change.

Why This Change Was Made

Record scenarioMs and settleWaitMs alongside the unchanged wallMs, and summarize both phases. Traced, document-retaining actions also export native input and run-boundary User Timing marks. Boot/reload retain their existing navigation probes; their document replacement would discard a start mark. Hash the action and navigation scenario sources in the run manifest so timing changes can be attributed to the exact workload. Document the fields and their limits.

This changes benchmark diagnostics only. It does not change application scheduling, action assertions, input cadence, the final frame wait, or startup assets. The new fields do not claim input-to-paint latency or a product performance improvement.

Investigation

The three representative WebKit traces do not contain a shared 250 ms timer. Cron schedules a zero-delay response; the picker has no installed timer; Settings schedules optional 500 ms idle work. Their gaps occur in different phases: Cron's native input arrives well into locator/focus delivery, whereas Settings receives its shortcut immediately and then renders. Bare native controls complete WebKit fills in about 8–11 ms and shortcuts in about 5 ms. The same unchanged application bundle produced warm mobile Settings samples of 180–195 ms, below the historical 259 ms cluster.

Completed 880/880 observations with zero failures: all 22 rows have 20 Chromium and 20 WebKit samples, with 10 observations per identical A/A slot. Phase accounting is valid in every observation. 14/22 refreshed rows remain above the 1.3× ratio target; no product latency optimization is claimed. Final-wait medians span 18.7–33.5 ms; WebKit settle-frame medians span 10.0–17.5 ms. Host one-minute load ranged 19.60–49.88. Wall time from first proof artifact: 41.2 minutes. Historical-to-current differences are observational: the historical census and this run differ in time/host state, and the UI already contains the separately landed model-search optimization. Both current slots serve identical bytes; these numbers do not establish a source A/B speedup. No speculative scheduler replacement or budget change is included.

Evidence

Check Result
pnpm tsgo:scripts Pass
pnpm tsgo:ui Pass
Scoped script lint, formatter, git diff --check Pass
pnpm ui:build and strict pnpm ui:check-performance Pass; startup 88,766 B gzip, one CSS request
Representative WebKit Timeline/native-mark traces Cron search, Settings open, model-picker open/search passed
Untraced reproduction 18/18 observations, Chromium + WebKit
Bare native input control 100/100 observations, desktop + mobile, both engines
Corrected trace phase boundary Settings: scenario 160.8 ms + final wait 29.1 ms = wall 189.9 ms
Full cluster rerun 880/880 passed; 22 rows, 20 observations per engine per row; all phase sums valid
PR CI / native landing Passed; merged exact reviewed head as a78dc179ff413203923889dc5392a937f018060d

The UI source is unchanged; both census slots serve the same built bytes. No visual appearance change or new UI export is involved. The existing behavioral scenarios remain the proof rather than adding implementation-mirroring tests.

Independent Codex autoreview at P0–P2 found two diagnostic issues, both corrected: traced marker overhead belonged in the scenario phase, and marks cannot span document replacement. Final independent review of the complete change against 2919a0dba8d8 is scoped-clean at P0–P2.

LOC: harness 844 → 887; guide 781 → 788 (+53/−3 total). The growth is diagnostic fields/marks, source receipts, and their documentation; no new runtime abstraction.

Refreshed cluster table

All timings are milliseconds (median/p95). “Census” is the earlier census; “Current” is the fresh A/A run. A/A columns are the median difference between the two identical build slots, not treatment effects. Where A/A moves beyond the acceptance band, the row remains noisy observational evidence; no performance gain is claimed.

Action Viewport n C/W Census C med/p95 Current C med/p95 Census W med/p95 Current W med/p95 W/C old → current Final wait C/W median A/A C/W
cron-search desktop 20/20 122.6/410.6 94.4/112.1 385.8/485.8 327.6/371.0 3.147 → 3.470 30.2/24.7 -0.4%/+2.3%
cron-search mobile 20/20 79.7/95.7 94.8/107.0 263.8/265.9 246.9/279.9 3.312 → 2.605 30.8/27.8 +0.3%/-0.1%
cron-menu-open desktop 20/20 195.7/228.2 181.8/217.3 362.9/416.7 303.0/337.8 1.854 → 1.667 24.7/29.0 +0.4%/-0.6%
provider-model-picker-open-search mobile 20/20 153.9/225.1 114.2/131.5 265.4/297.9 181.9/228.3 1.725 → 1.592 22.2/23.6 -0.2%/+0.2%
cron-open desktop 20/20 204.8/257.1 127.7/145.2 325.1/384.2 196.4/203.8 1.588 → 1.537 19.3/26.0 +5.7%/+1.4%
model-picker-open-search mobile 20/20 145.2/194.1 129.0/155.8 265.4/298.6 197.9/243.5 1.828 → 1.534 24.5/30.0 +0.2%/+6.9%
provider-model-picker-open-search desktop 20/20 131.3/183.0 129.9/190.8 213.1/232.7 198.9/262.0 1.623 → 1.531 28.9/25.6 +0.4%/-3.3%
model-picker-open-search desktop 20/20 145.4/175.6 129.4/155.7 264.1/297.7 197.6/229.2 1.816 → 1.527 23.5/24.8 +12.8%/+7.9%
cron-menu-open mobile 20/20 148.2/187.9 164.1/178.7 263.0/265.5 246.5/264.9 1.775 → 1.503 26.8/26.2 -0.6%/+3.8%
cron-open mobile 20/20 149.4/668.9 145.2/212.3 262.5/452.1 213.5/231.1 1.758 → 1.470 28.0/23.7 +0.0%/+0.7%
model-picker-navigate desktop 20/20 161.0/278.5 128.8/176.8 229.8/264.4 180.1/325.8 1.427 → 1.398 29.7/27.2 -5.4%/+0.9%
chat-typing mobile 20/20 145.6/188.6 129.0/145.0 256.2/299.6 178.9/224.3 1.759 → 1.387 30.5/30.0 +0.0%/-4.2%
chat-typing desktop 20/20 142.7/189.8 120.2/177.3 180.1/212.9 164.2/199.6 1.262 → 1.366 30.4/30.4 -0.5%/-0.7%
model-picker-navigate mobile 20/20 175.7/568.9 145.5/454.0 265.6/732.9 195.9/289.8 1.512 → 1.346 26.3/25.6 +4.2%/+0.7%
settings-open mobile 20/20 158.2/207.0 129.3/144.6 259.3/262.9 161.1/164.5 1.640 → 1.246 32.3/30.8 +0.2%/-8.7%
storage-refresh desktop 20/20 98.3/124.7 97.1/109.0 115.6/193.5 114.8/126.4 1.176 → 1.182 33.2/33.3 -1.0%/-0.4%
settings-open desktop 20/20 145.3/171.9 144.1/160.2 228.1/230.3 165.7/186.0 1.570 → 1.149 29.7/18.7 -1.6%/-2.6%
storage-refresh mobile 20/20 109.4/135.1 96.7/108.2 197.4/231.2 99.5/126.8 1.804 → 1.029 33.2/31.9 +0.1%/-5.4%
cron-refresh desktop 20/20 128.0/153.9 129.4/130.7 121.4/162.2 115.1/146.5 0.948 → 0.889 33.3/33.1 -0.0%/-5.2%
provider-usage-refresh desktop 20/20 129.6/168.9 129.9/148.9 115.9/145.0 115.1/147.4 0.894 → 0.886 33.5/32.3 +0.7%/-6.7%
provider-usage-refresh mobile 20/20 129.1/151.4 129.9/142.5 229.8/263.8 115.0/131.6 1.779 → 0.885 33.2/33.0 +0.2%/-0.2%
cron-refresh mobile 20/20 112.9/132.7 129.2/131.7 222.8/232.7 114.0/144.0 1.973 → 0.883 33.3/33.2 +0.8%/+1.1%

@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T03:41:25.678346Z 99933fb PR opened
ℹ️ 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.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 31, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR separates scenario execution from the final frame wait and adds trace-only input marks and workload source hashes.

Example: A reported WebKit Settings observation takes 189.9 ms.

  • Before: Only total wall time and consecutive-frame cadence are available.
  • After: The observation reports 160.8 ms of scenario execution and 29.1 ms of final settling.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is consistent with the existing measurement contract; proof confidence rests on reported harness results and source inspection rather than attached runtime artifacts.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate does not apply to this maintainer-authored benchmark PR; its body reports Chromium/WebKit runs and a Settings phase breakdown, but supplies no independently inspectable raw trace artifact.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Benchmark readers cannot tell how much observed automation time belongs to scenario execution versus the final frame wait.
Reason: The maintainer-authored direction improves interpretation of existing measurements without adding runtime policy, configuration, or another owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it adds useful benchmark diagnostics within the existing harness, and no introduced correctness or security defect was found.

Priority: P3
Reviewed head: 99933fb2bec6e1a9891d75f8a7cd3aaf35f4c451

Before merge

None.

Findings

None.

Agent review details

How this fits together

The cross-engine benchmark drives production Control UI bundles with Playwright and a synthetic Gateway, then writes observations, summaries, and trace artifacts.

flowchart LR
  A[Scenario catalog] --> B[Engine benchmark]
  C[Production UI bundle] --> D[Chromium or WebKit]
  E[Synthetic Gateway] --> D
  B --> D
  D --> F[Timing observations]
  F --> G[Summaries and trace artifacts]
Loading

Technical review

Best possible solution:

Retain the existing benchmark owner and land the additive phase diagnostics once applicable checks are satisfied.

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

Source confirms that current main reports total wall time and frame cadence without separating the full final wait; no target code was executed during this review.

Is this the best way to solve the issue?

The change is a small extension of the existing measurement owner, preserves total-time semantics, and avoids speculative application scheduling changes.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Docs +7, Other +43. Total +50 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 8 1 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 1 45 2 +43
Total 2 53 3 +50

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves benchmark attribution without changing user-facing runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 30, 2026, 11:53 PM ET / October 31, 2026, 03:53 UTC.

@steipete
steipete merged commit a78dc17 into main Oct 31, 2026
113 of 115 checks passed
@steipete
steipete deleted the solid2/w-webkit-260-cluster-1030 branch October 31, 2026 04:01
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant