Repository navigation
fix: rank cross-engine actions by native input to commit - #189030
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs changes before merge. What this changesThis PR ranks cross-engine benchmark actions by native-input-to-DOM-commit elapsed time while retaining driver and wall-time diagnostics. Example: The Cron benchmark enters “Warm automation 0499”.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it adds useful benchmark attribution, has approved maintainer direction, and introduces no concrete defect found in this review; GitHub reports a merge conflict. Priority: P3 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe developer benchmark drives production Control UI bundles with Playwright and a synthetic Gateway, then converts browser observations into JSON and Markdown comparisons. flowchart LR
A[Playwright scenarios] --> B[Production Control UI]
C[Synthetic Gateway] --> B
B --> D[Browser timing recorder]
D --> E[Observation records]
E --> F[Engine distributions]
F --> G[JSON and Markdown reports]
Technical reviewBest possible solution: Keep timing attribution in the existing benchmark owner, preserve its documented limits, and integrate it with main’s newer chat-action observations. Do we have a high-confidence way to reproduce the issue? Current-main source confirms that headline comparisons use wall-time medians, which include automation and assertion waits; no target code was executed during this read-only review. Is this the best way to solve the issue? The smallest complete change is one browser-local recorder feeding the existing observations and ranking, and this patch follows that design without introducing a competing timing owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9a35cb97bcd1. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs +13, Other +132. Total +145 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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, 12:40 AM ET / 04:40 UTC. |
|
Merged via squash.
|
What Problem This Solves
Short Control UI actions were ranked by automation wall time, mixing WebKit input delivery and assertion waits with application work.
User Impact
There is no user-visible UI change. Cross-engine reports now rank native-input-to-DOM-commit elapsed time while keeping driver and wall ratios visible.
Why This Change Was Made
Related: #189013. The earlier ~260 ms cluster did not establish a shared timer. The harness now records the first trusted native action event, last observed DOM mutation/native value edit, and scenario/settle boundaries on one browser clock. Missing boundaries remain unranked. The report and JSON headline use application elapsed time.
This is a DOM-commit proxy, not CPU or paint latency. Focus work can precede the first action event; compound typing/navigation retains driver gaps between inputs. The probe adds a scenario-end RPC, so instrumented wall times must not be called speedups over old uninstrumented runs. Navigation/reload and memory measurements retain their existing probes.
Evidence
pnpm tsgo:uiandpnpm tsgo:scriptspassed41171458832, PR tooling Darwin41171459016, security review and CI gate passedebb10c7f6855, snapshot committed as49d4769abde1; no actionable P0–P2 findingsPicker Timeline traces retain real style/layout work: approximately 69–75 ms for the provider picker and 73–78 ms for the chat picker, versus 15–23 ms in Chromium. Source maps lead to the existing virtual-window measurements. The traces do not establish a flush for every row, so no speculative batching was added. No product speedup is claimed.
The new browser-local recorder is 100 lines; the harness is 939 → 974 lines against merged main. Across four changed files after integrating main: +204/−56 lines. It replaces the old trace-only event registration and report ranking; the helper remains separate so Playwright can serialize it intact. No reports, traces, or evidence bundles are committed. No browser visuals changed, and no remote leases or Docker containers were created.
Corrected ranking
The same instrumented observations put 14/22 rows above 1.3× on application elapsed time, versus 12/22 on wall time. This is a measurement correction, not a product speedup. Driver overhead is not a blanket explanation: the pickers retain roughly 60–70 ms of paired application excess, with only a few milliseconds of initial delivery excess. Cron search has a much larger initial delivery prefix; refresh/settings rows generally fall below the application target.
The initial prefix includes locator/actionability/focus delivery and can contain application focus work. The tail below includes assertions, the final frame wait and collection; it is distinct from the retained final-only
settleWaitMs. Compound inputs still contain intermediate driver gaps in the application span.Host one-minute load ranged 14.7–39.0 on 32 logical CPUs. A/A is visible below: desktop Cron menu/search and navigation have large Chromium variation. Desktop navigation is only 1.306× and its A/A slots straddle the target; do not treat that row as a confirmed regression. The picker-search gaps persist in both slots and are backed by separate Timeline traces.
All 22 rows — milliseconds; C = Chromium, W = WebKit
Source-mapped picker and typing attribution
These are paired traced observations, with overlapping style/layout intervals counted as a union and clipped to the application span. The provider picker reaches
select-picker-window.tsx:64and virtual-core'soffsetHeightfallback, with a separate viewport read from_willUpdate. The chat picker reacheschat-model-picker-window.tsx:84. The measured flushes are per changed window, not a demonstrated flush per mounted row. The containment pilot was rejected; no owner change is included.Changed-file LOC against merged main: 1,817 → 1,965 (+204/−56); runtime UI delta: zero. The PR UI tree matches merged main. The retained census bundle was built at
60ba2bc1c107and measured 88,766 B gzip JS, 33,568 B gzip CSS and one startup CSS request; these are baseline bundle measurements, not a new measurement of later unrelated main changes. Reports and raw evidence remain outside the commit.Main moved during the first landing attempt. The native guard reported a real harness conflict and confirmed no request was dispatched. This head merges main and keeps its chat-action observation hooks outside the application window, plus its skipped-viewport reporting. The original 880-sample census uses the retained bundle and pre-integration harness snapshot; the new 12-cell smoke verifies the merged paths.
Landing: the normal native workflow merged
49d4769abde1as8d83344835ca6f1a1828126ea0a6b3b458836154after all current checks passed. Prior-success attempts did not dispatch a merge: one lacked the old-run PR association, and another awaited complete check-suite evidence. No admin exception, CI rerun or failing-test waiver was used. The native workflow removed its managed PR worktree.