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: blocked before merge. What this changesThis PR delays cached full-UUID conversation mounting until Gateway readiness or a 200 ms deadline and extends the reload benchmark. Example: Reload an off-roster full-UUID conversation with 80 cached messages and a 90 ms handshake delay.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this maintainer-authored PR provides a focused fix-forward for handshake starvation, with no actionable code findings; the campaign’s explicit pause remains. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI route loader matches a URL to a scoped prewarmed transcript, admits its pane, and leaves session validation and send authorization with existing Gateway-backed owners. flowchart TD
A[Full UUID conversation URL] --> B[Existing snapshot admission owner]
C[Scoped prewarmed transcript] --> B
B --> D[Gateway readiness or 200 ms deadline]
D --> E[Recheck scope revision and invalidation]
E --> F[Mount cached conversation]
F --> G[Authoritative route revalidation]
Technical reviewBest possible solution: Retain scoped cached transcript loading and authoritative revalidation, using the existing admission owner’s bounded wait if the campaign selects fix-forward. Do we have a high-confidence way to reproduce the issue? Current-main source admits the cached pane immediately, and the supplied browser comparisons isolate delayed hello delivery; this review did not independently execute the reproduction. Is this the best way to solve the issue? The bounded wait is a small scheduling repair using existing owners; mount attribution supports avoiding a wider rendering refactor, and no unnecessary parallel machinery was found. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2ccb5e7b30d8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +20, Tests +135, Docs +17, Other +36. Total +208 across 11 files. Added test files: 0. View PR surface stats
Review metrics
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 HistoryReview history (1 earlier review cycle)
Reviewed October 19, 2026, 6:42 PM ET / 22:42 UTC (Revision 2). |
7761845 to
abf2c93
Compare
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. |
abf2c93 to
7a51108
Compare
|
@clawsweeper re-review The branch now includes the bounded hello wait and corrected warm-delta fixture. The body contains the valid 11-pair results for both faces, the source-mapped mount profile, and inspected synthetic screenshots. It explicitly records the missing live blocking-direction reproduction. Focused and targeted reload e2e tests pass; the remaining changed-file/full-UI validation is running on the exact head. |
|
🦞👀 Re-review progress:
|
7a51108 to
a29cafc
Compare
Keep snapshot admission and authoritative route revalidation, but defer mounting the cached pane until hello or a 200 ms deadline. Preserve cancellation, scope, connection revision, and snapshot invalidation across the wait. Extend the cold-load benchmark with explicit off-roster and unchanged-history workloads and scheduled-versus-handled reply timing.
a29cafc to
8b34f8e
Compare
|
Closing H as an unsuccessful experiment under the predeclared gate. On the final head, chat paints 152 ms earlier by paired median, but final rows are 44.6 ms later and worse in 9/11 pairs. This is a declared regression. Dashboard's earlier paint does not rescue the candidate. All 66 paired-comparison reloads completed successfully; full per-pair results and the source-mapped mount profile are in the body. The selected fallback is R in #177760. Preserve the current startup subscription's Focused tests, all touched-file lint, and 11 native reload e2e tests pass. H's remaining full-suite/CI work was stopped because the variant failed qualification. No merge was attempted. |
…ns.resolve (#177760) Revert the runtime part of #177153 (0d95528). It rendered a cached full-UUID chat route from the prewarmed snapshot before sessions.resolve, which won on the bench but regressed live: on Team r170 (Peter's 820-message session, 3 warm reloads) the snapshot-admitted pane mounted in one 157-190 ms task right as the WebSocket connect response arrived, so connect was handled at 619-632 ms instead of 386-425 ms (9 runs on r164-r167) and every post-hello RPC shifted ~230 ms. First rows moved slightly earlier (586-710 vs 655-778 ms), but final rows went 822-998 -> 976-1,161 ms and LoAF blocking 96-131 -> 185-227 ms. Board connect RTT was unchanged, so the cost was client-side. The bench had missed it because its handshake finished before the mount. The fix-forward attempt (mount after hello with a bounded wait, #177759) kept a 152 ms painted-transcript gain but regressed chat final rows +44.6 ms in 9/11 pairs and was rejected by its pre-declared gate, so the pre-declared fallback lands. Benchmark tooling and probes added by #177153 (paint/element timing, per-method latency, short URLs) are kept. Runtime -127 LOC. 286 focused tests, typecheck/lint, 8 warm-boot tests, full UI 831 files (remaining Crabline permission failure reproduces on main); exact-head CI green.
…ns.resolve (openclaw#177760) Revert the runtime part of openclaw#177153 (6d343c3). It rendered a cached full-UUID chat route from the prewarmed snapshot before sessions.resolve, which won on the bench but regressed live: on Team r170 (Peter's 820-message session, 3 warm reloads) the snapshot-admitted pane mounted in one 157-190 ms task right as the WebSocket connect response arrived, so connect was handled at 619-632 ms instead of 386-425 ms (9 runs on r164-r167) and every post-hello RPC shifted ~230 ms. First rows moved slightly earlier (586-710 vs 655-778 ms), but final rows went 822-998 -> 976-1,161 ms and LoAF blocking 96-131 -> 185-227 ms. Board connect RTT was unchanged, so the cost was client-side. The bench had missed it because its handshake finished before the mount. The fix-forward attempt (mount after hello with a bounded wait, openclaw#177759) kept a 152 ms painted-transcript gain but regressed chat final rows +44.6 ms in 9/11 pairs and was rejected by its pre-declared gate, so the pre-declared fallback lands. Benchmark tooling and probes added by openclaw#177153 (paint/element timing, per-method latency, short URLs) are kept. Runtime -127 LOC. 286 focused tests, typecheck/lint, 8 warm-boot tests, full UI 831 files (remaining Crabline permission failure reproduces on main); exact-head CI green.
Outcome: H is rejected by the predeclared gate. Use the R fallback in #177760; this experiment must not merge.
What Problem This Solves
A signed-in reload of a full-UUID chat or dashboard deep link can mount the cached pane just as the Gateway handshake reply is due. The synchronous mount delays hello and all post-connect requests. This follows #177153.
Observed warm reloads before and after #177153:
chat.startupsent → replyThese are timing observations only. Private captures and conversation content are not included.
Change
H: the existing snapshot-admission owner lets an in-flight handshake finish before it mounts the cached pane. The wait is capped at 200 ms, covering the observed roughly 90 ms handshake tail with margin. After the cap, cached content can mount even on a slow or offline connection. A handshake still pending after 200 ms can therefore collide with that mount; this is the bounded tradeoff for retaining offline cached rows. Route cancellation releases the timer/listener; the original identity, scope, connection revision, authoritative revalidation, deleted/moved route replacement, and held-send rules remain in place. Short IDs and slug routes keep their existing behavior.
This changes scheduling, not render ownership. It reuses Gateway readiness and the shared snapshot read. No schema, persistent shape, configuration option, or dependency changes.
Evidence and decision
Final measured head:
8b34f8e1b449c2ec0791e59b3ceb5490e519ca52, main base08d04a9d7b97e50849ba089c3837d2e1c3c4f7fd.H improves painted transcript timing, but chat final rows regress by a paired median 44.6 ms, worse in 9/11 pairs. That exceeds max(10 ms, 3% of R), so H fails the predeclared secondary gate. Dashboard passing cannot rescue it. No other small variant qualified; S was not expanded because the dominant synchronous work is Solid/DOM mounting, not snapshot decode. The declared fallback is R, already prepared in #177760. The campaign lead owns its rebase, validation, and merge.
The fixture reproduces delayed hello handling, but does not reproduce every live direction: immediate admission still has lower total LoAF blocking than R. On this final base, immediate admission's final-row changes are mixed rather than a statistically established regression. The full live-direction reproduction requirement remains unmet; no waiver or complete live equivalence is claimed.
Method
Quiet AWS c7a.4xlarge, 16 CPUs, AMD EPYC 9R14, 30 GiB RAM; repository Chromium; Team-scale benchmark; 820 synthetic messages, 80 persisted messages; full-UUID off-roster route with visual sidebar retained; valid warm cursor and a 2,071-byte startup delta with session metadata. Connect delay 90 ms; ordinary replies 20 ms. 11 interleaved R/I/H triplets per face: 66 successful untraced reloads. Both commands exited successfully before results were accepted. R reverses #177153 admission while keeping the benchmark and surviving upstream callers; I is immediate admission; H is the bounded wait on this branch.
Earlier runs with missing fixture metadata or a stale R bundle are excluded. The fixture correction is exercised through the production snapshot reader; the benchmark rejects visible chat/history errors and browser errors. Prior-head favorable results are not the qualification decision.
Values are median [Q1, Q3] in milliseconds; paired deltas are H−R. The declared regression rule is worse non-overlapping IQRs, or ≥9/11 worse pairs with median rise greater than max(10 ms, 3%).
Chat
Paint improves at least 100 ms in 11/11 pairs. Final rows fail the gate: 9/11 worse, +44.6 ms paired median.
All per-pair deltas versus R, milliseconds
I: immediate admission
[-344, -284, -288, -356, -336, -344, -340, -352, -336, -324, -344]; median-340.[+46.5, -60.3, -5, -98.5, -170.9, +27.2, -1, +67.8, -16.6, -11.3, +15.1]; median-5.[-53, -38, -66, -66, -67, -55, -70, -147, -67, -22, -55]; median-66.[+89.4, +170.3, +85, +86.3, +140.8, +77.2, +94.3, +85.9, +93.4, +151.7, +88.6]; median+89.4.[+84, +144, +120, +88, +108, +84, +84, +92, +108, +120, +100]; median+100.[+0.6, +17.4, +0.4, +1.8, -6.8, -10.8, +3.2, -5.1, -2.3, -3.3, -2]; median-2.[+88.7, +152.8, +84.7, +84.4, +147.7, +88, +91.1, +91, +95.7, +155, +90.5]; median+91.H: bounded hello wait
[-160, -160, -140, -148, -168, -140, -156, -168, -152, -152, -144]; median-152.[+94.7, -166.2, +41, +14, -112.8, +66.7, +44.6, +51.7, +124.4, +28, +70.8]; median+44.6.[+2, +17, +40, +9, +0, +8, +17, -99, +12, +23, +4]; median+9.[-4.2, +6.2, +0.8, +4.2, -1, +1.6, -2.7, -3.9, +10.8, +7.2, +8.6]; median+1.6.[-8, +8, -12, +16, +0, +12, -8, +0, +12, +16, +8]; median+8.[+1.6, +4.8, +1.6, +3.1, -1.9, -7.4, -4, -2.2, +10, +6.3, +3.4]; median+1.6.[-6, +1.4, -0.9, +1.1, +0.9, +9, +1.3, -1.7, +0.9, +0.9, +5.3]; median+0.9.Dashboard
Paint improves at least 100 ms in 11/11 pairs. This face has no declared secondary regression.
All per-pair deltas versus R, milliseconds
I: immediate admission
[-360, -388, -348, -364, -332, -352, -352, -344, -348, -352, -380]; median-352.[-77.8, -41.6, -41.4, -1.9, +64.9, +218.1, -25.4, +43.8, +32.3, +70.5, +37]; median+32.3.[-76, -71, -81, -93, -65, +15, -79, -85, -76, -60, -174]; median-76.[+83.5, +84.9, +95.6, +96.4, +103.4, +98.3, +90.9, +103.2, +97.3, +112.5, +96.9]; median+96.9.[+48, +68, +76, +60, +80, +56, +56, +84, +76, +72, +60]; median+68.[-13.6, -2.7, -2, +2.4, +4.8, -0.8, -6.1, +1.9, -0.9, +3.8, +2.7]; median-0.8.[+97, +87.5, +97.6, +93.8, +98.5, +99.1, +97, +101.3, +98.2, +108.6, +94.3]; median+97.6.H: bounded hello wait
[-152, -204, -164, -180, -132, -152, -140, -144, -164, -152, -172]; median-152.[-4.6, -88.3, -7.4, -12, +52.1, +7.1, +34.3, +42, -3.4, +21.3, -25.7]; median-3.4.[+44, +12, -18, -17, +6, +30, +7, +19, -21, -6, -90]; median+6.[-5.7, -2.4, +1.8, +4.2, +12, -3.4, +7.8, +8.7, +0.2, +0, -3.3]; median+0.2.[-20, -8, +0, +0, +20, -4, -4, +8, +0, -4, -8]; median-4.[-11.6, -7.2, -1.2, +6.1, +10.8, -4.8, +0.5, +2.7, +0.4, -1.9, -3]; median-1.2.[+6, +4.7, +3.1, -1.9, +1.1, +1.5, +7.4, +6, -0.1, +1.9, -0.2]; median+1.9.Mount-task attribution
Separate source-mapped CPU profiles are diagnostic and excluded from the performance statistics. I's mount frame spans 413–651 ms: 238 ms duration, 187 ms blocking, a 212 ms import continuation, and 33 ms forced style/layout. Hello is handled at 708.9 ms. The sampled frame includes 184.0 ms inclusive Solid work, with 61.4 ms self time in DOM creation, plus virtualizer/layout and markdown work. Inclusive categories overlap; they must not be added together. No large snapshot-decode block dominates this task.
H's profile handles hello at 462.3 ms, near the beginning of its 462–720 ms mount frame. It changes scheduling, not the main render cost. A yield after decode would leave the dominant atomic Solid/DOM mount intact; splitting row rendering is a larger owner change, so S was not pursued as a small variant.
Validation and handoff
AWS lease
cbx_f5a6d78394eb, run_7bd170801ff105d8f2853f01f4ac0c29.pnpm test <file> --maxWorkers=1: snapshot 3.88 s, fixture 3.10 s, probes 3.08 s. The regressions were previously verified red on immediate admission / missing metadata and green with the proposed change / correction.08d04a9d7b97reproduces the unrelated dead-export failures, including the historical database fixture exports,ChatRunPublication, andresolveDraftModelUnavailableReason.When rebasing the existing R PR, preserve the
resumeStoredChatOutboxesimport: current main's startup subscription now calls it independently of #177153's admission hold. The measured R baseline retains that surviving caller and import. Benchmark tools and probes remain intact in R.Size
The required production/tooling command reports +107/−15, net +92 across seven files (including benchmark Markdown outside
docs/). Runtime admission is +20 net lines for the bounded wait and cancellation/invalidation contract; the rest extends the existing benchmark/probe/fixture owners. These are the evaluated H changes, not a shipped change.Synthetic before/after
These inspected synthetic-only settled screenshots have the same layout and content. They document the evaluated UI; they are not timing evidence.
Before, immediate admission:
After, evaluated bounded hello wait: