Skip to content

experiment(control-ui): decouple dashboard restore [do not merge] - #178579

Closed
steipete wants to merge 3 commits into
mainfrom
steipete/coldload-dashboard-reveal-off-main-thread
Closed

steipete wants to merge 3 commits into
mainfrom
steipete/coldload-dashboard-reveal-off-main-thread

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A signed-in reload of a dashboard deep link can wait for the lazy transcript-history validator before attaching its saved dashboard iframe. This experiment decouples those operations while retaining the existing board provider's shape, session, grant, ticket-aging and board.get authority checks. Snapshots without a history receipt continue restoring board and transcript together; in-memory state keeps precedence over stale disk data.

Stopped: do not merge. The latest exact-head comparison fails the predeclared no-secondary-regression gate. The correctness regression is reproduced and early attachment is deterministic, but the earlier attachment adds work before connection. The separate compositor-reveal experiment also failed its no-white-flash gate and is excluded from this branch.

Head: bd14c59f2c98897175ee1dde540fdff832a7b93e. Comparison base: 81ad214a7ab33b3b6fc0ab45aaa75199ed5273bf.

Evidence

The motivating private evidence recorded 14 visible states during a signed-in reload of a dashboard deep link. Only generic timings and synthetic fixture results are included here; no private captures or conversation content are published.

The latest comparison used AWS Crabbox cbx_7bbfdb239317, fixed c7a.4xlarge (16 logical CPUs, AMD EPYC 9R14, approximately 32 GiB RAM), repository Playwright Chromium, 11 interleaved baseline/candidate pairs per scenario, a separate sandbox origin, rotating tickets, a 350 ms connect floor, 240 ms connect latency, 160 ms board.get latency and 35 ms other RPC latency. Both bundles use the same benchmark build identity, with only the two runtime files replaced to produce the baseline.

With the validator delayed 800 ms, iframe insertion improved from 813.0 [809.7, 822.6] ms to 366.6 [364.0, 369.6] ms, paired median −451.0 ms, 11/11 better. However, hello handling moved from 626.0 [623.2, 632.3] to 638.8 [634.2, 640.2] ms. These IQRs do not overlap, so the secondary gate fails even though the paired median increase is only +9.8 ms. Connect sent also has a separated worse IQR and paired median +9.6 ms; the paired median change from connect sent to hello handled is +2.4 ms. This places most of the measured shift before the connection request, consistent with the earlier board mount adding boot work. This is timing attribution, not proof of a particular CPU stack.

The ordinary dashboard, fast-valid-receipt dashboard and chat-route controls have no declared secondary regression. The preceding pre-rebase run had passed (iframe 803.6 → 361.3 ms, paired −452.1 ms, hello paired +7.8 ms with overlapping IQRs). It is retained as prior evidence; it does not override the latest gate failure. No repeated run was used to chase a passing result.

All values below are milliseconds, brackets are IQR, and deltas are candidate minus baseline.

Dashboard, 800 ms validator delay

Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Iframe inserted 813.0 [809.7, 822.6] 366.6 [364.0, 369.6] -451.0 11 no
Hello handled 626.0 [623.2, 632.3] 638.8 [634.2, 640.2] 9.8 1 yes
Connect sent 360.2 [356.3, 360.7] 369.8 [366.0, 371.2] 9.6 3 yes
FCP 248.0 [244.0, 252.0] 248.0 [244.0, 250.0] 4.0 2 no
LoAF blocking 124.0 [120.0, 141.5] 111.0 [108.5, 118.0] -17.0 10 no
Chat catch-up 1451.5 [1420.2, 1458.9] 1327.8 [1326.8, 1336.1] -109.3 11 no
First transcript paint 1368.0 [1336.0, 1376.0] 1256.0 [1256.0, 1260.0] -108.0 11 no
Per-pair deltas
Pair Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -565.8 -99.0 -85.5 -104.0 -107.0 -268.5 -256.0
2 -444.0 11.7 9.6 4.0 -17.0 -96.7 -80.0
3 -446.0 12.0 10.0 0.0 -58.0 -168.2 -116.0
4 -451.2 4.3 1.2 0.0 -7.0 -89.9 -80.0
5 -439.0 20.1 16.7 8.0 -27.0 -54.6 -40.0
6 -454.3 9.8 19.8 4.0 -17.0 -124.6 -116.0
7 -451.0 6.4 4.5 4.0 -17.0 -121.6 -116.0
8 -451.0 19.5 15.7 -24.0 2.0 -125.4 -108.0
9 -445.1 19.1 14.7 0.0 -5.0 -109.3 -116.0
10 -431.3 0.4 -2.6 4.0 -4.0 -105.1 -100.0
11 -462.5 1.7 -0.7 8.0 -12.0 -54.8 -32.0

Dashboard, no history receipt

Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Iframe inserted 539.5 [533.5, 556.0] 546.1 [540.2, 552.4] 6.4 4 no
Hello handled 737.9 [732.2, 752.3] 745.9 [741.5, 749.2] 2.0 4 no
Connect sent 460.7 [455.7, 474.5] 467.3 [465.0, 470.1] 3.7 4 no
FCP 240.0 [238.0, 252.0] 240.0 [238.0, 250.0] 0.0 5 no
LoAF blocking 215.0 [199.0, 225.5] 220.0 [214.0, 231.5] 2.0 4 no
Chat catch-up 1166.6 [1146.0, 1186.0] 1166.8 [1157.9, 1192.2] -3.8 6 no
First transcript paint 472.0 [466.0, 482.0] 472.0 [470.0, 474.0] 0.0 5 no
Per-pair deltas
Pair Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -162.4 -168.8 -154.3 -88.0 -73.0 -195.5 -156.0
2 -34.0 -27.3 -25.8 -8.0 -33.0 -15.4 -20.0
3 30.3 25.6 25.9 16.0 -12.0 59.6 28.0
4 6.6 8.5 6.7 -16.0 13.0 62.9 0.0
5 14.8 13.8 10.7 8.0 1.0 33.7 8.0
6 3.6 2.0 2.6 4.0 2.0 -3.8 -8.0
7 -23.9 -24.9 -22.6 -12.0 25.0 -9.6 -28.0
8 19.1 53.2 14.2 4.0 119.0 149.9 4.0
9 23.6 24.2 21.3 12.0 32.0 48.7 12.0
10 6.4 1.1 3.7 0.0 -6.0 -16.5 0.0
11 -14.6 -8.3 -3.2 -4.0 15.0 -33.3 -4.0

Dashboard, fast valid receipt (1 ms validator delay)

Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Iframe inserted 548.2 [544.2, 555.9] 536.1 [533.5, 552.9] -10.2 8 no
Hello handled 754.5 [750.8, 758.7] 748.4 [746.0, 756.0] -2.8 8 no
Connect sent 477.6 [475.7, 482.3] 471.5 [468.7, 480.7] -5.1 7 no
FCP 248.0 [248.0, 252.0] 240.0 [238.0, 248.0] -4.0 8 no
LoAF blocking 162.0 [154.5, 169.5] 156.0 [149.0, 173.5] 2.0 5 no
Chat catch-up 1178.2 [1171.0, 1193.0] 1168.6 [1149.4, 1171.1] -8.1 7 no
First transcript paint 496.0 [492.0, 498.0] 488.0 [484.0, 494.0] -8.0 7 no
Per-pair deltas
Pair Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -264.7 -7.7 13.3 -96.0 -134.0 -159.0 -212.0
2 -10.2 -2.8 -3.4 0.0 3.0 29.1 -12.0
3 -25.4 -17.0 -20.3 -8.0 2.0 26.1 -8.0
4 -10.5 -9.6 -11.7 -16.0 -8.0 -14.7 0.0
5 3.1 1.8 5.1 -4.0 4.0 -50.9 0.0
6 -2.6 -6.1 -9.0 -4.0 -15.0 0.1 -4.0
7 25.7 19.7 19.3 0.0 40.0 -8.1 16.0
8 -29.0 -27.6 -25.0 -36.0 22.0 -20.2 -16.0
9 17.7 17.3 20.0 4.0 14.0 4.8 20.0
10 -10.2 -2.7 -6.1 -12.0 -14.0 -5.5 -8.0
11 -11.3 -2.3 -5.1 -4.0 -7.0 -51.1 -8.0

Chat-route control

Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Hello handled 702.3 [698.5, 707.2] 706.9 [702.6, 710.3] 2.5 4 no
Connect sent 427.7 [425.9, 434.1] 433.6 [429.8, 436.8] 1.9 3 no
FCP 244.0 [244.0, 248.0] 244.0 [242.0, 248.0] 0.0 5 no
LoAF blocking 171.0 [168.5, 175.5] 177.0 [167.5, 185.0] 5.0 4 no
Chat catch-up 1055.3 [1042.5, 1079.6] 1061.5 [1051.7, 1084.5] -4.4 6 no
First transcript paint 476.0 [472.0, 482.0] 484.0 [476.0, 490.0] 8.0 3 no
Per-pair deltas
Pair Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 6.1 8.7 0.0 -6.0 102.5 16.0
2 -28.8 -24.9 -24.0 -41.0 -34.1 -24.0
3 10.4 7.7 4.0 26.0 63.7 8.0
4 0.3 0.0 -4.0 20.0 -7.0 12.0
5 2.5 1.9 12.0 -9.0 -4.4 -4.0
6 -10.8 -8.6 -12.0 10.0 -17.7 4.0
7 28.3 25.0 4.0 27.0 -6.3 24.0
8 6.0 2.3 -4.0 -24.0 32.7 -4.0
9 -0.7 1.4 4.0 5.0 3.2 8.0
10 12.6 10.9 -4.0 2.0 4.5 16.0
11 -3.7 -5.6 0.0 7.0 -34.6 0.0

Separate reveal experiment — excluded

Making the transparent iframe compositor-visible immediately improved actual visible chart pixels in 11/11 pairs in each theme on AWS cbx_085841bd11f2, also fixed c7a.4xlarge. These are sampled compositor trace screenshots, not host DOM timestamps.

Theme Baseline median [IQR] Candidate median [IQR] Median paired delta Better / 11
Light 1172.4 [1154.3, 1317.5] 951.2 [933.4, 965.1] -230.4 11
Dark 1283.9 [1188.4, 1301.1] 973.7 [965.0, 993.5] -307.7 11

No-white-flash gate failed in 2/11 dark candidates. The sandbox root starts without matching color-scheme; despite transparent backgrounds, the browser briefly paints an opaque UA canvas before the host's theme message. src/agents/sandbox-host.ts documents that mismatch. The experimental runtime/style/test patch is reverted and preserved locally, not included in this PR.

The result does not establish that agent-authored app JS is the remaining limit: in one inspected dark candidate, inner-document paint occurred at 952.6 ms, visible chart pixels at 973.7 ms, and host resource-loaded handling at 1163.7 ms. A native MCP sibling comparison is incomplete because thin SVG strokes escaped the sampled pixel detector; that setup failure is neither a pass nor a product failure.

Reveal experiment html-light secondary metrics and per-pair deltas
Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Visible dashboard pixels 1172.4 [1154.3, 1317.5] 951.2 [933.4, 965.1] -230.4 11 no
Iframe inserted 533.0 [520.3, 561.0] 531.5 [522.2, 555.8] -5.2 7 no
Hello handled 754.8 [739.2, 768.2] 746.3 [739.1, 764.9] -8.1 8 no
Connect sent 472.6 [458.6, 483.8] 467.4 [459.2, 490.1] -4.6 7 no
FCP 256.0 [250.0, 258.0] 252.0 [248.0, 258.0] 4.0 4 no
LoAF blocking 157.0 [141.0, 178.0] 153.0 [143.5, 165.0] -4.0 6 no
Chat catch-up 1159.8 [1137.6, 1181.2] 1135.3 [1128.3, 1154.1] -27.6 7 no
First transcript paint 488.0 [484.0, 516.0] 492.0 [486.0, 514.0] 0.0 4 no
Pair Visible dashboard pixels Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -226.9 -144.0 -8.1 36.9 -96.0 -78.0 -167.6 -160.0
2 -413.6 16.8 14.3 13.3 8.0 5.0 14.2 20.0
3 -160.4 -24.1 -9.3 -10.1 -4.0 13.0 34.8 0.0
4 -446.7 33.7 29.5 29.5 12.0 27.0 38.0 24.0
5 -230.4 -60.1 -47.6 -44.9 -8.0 -62.0 -69.0 -44.0
6 -246.0 -5.2 -23.2 -27.8 4.0 0.0 -57.1 4.0
7 -236.5 12.7 7.9 9.4 12.0 -4.0 -96.3 12.0
8 -188.2 18.8 -8.5 -7.9 4.0 23.0 43.5 20.0
9 -218.8 -5.1 -3.1 -4.2 0.0 -12.0 -27.6 0.0
10 -169.8 -20.8 -10.8 -9.4 8.0 -27.0 -32.6 -4.0
11 -435.8 -12.0 -1.6 -4.6 -4.0 -17.0 -9.4 -4.0
Reveal experiment html-dark secondary metrics and per-pair deltas
Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Visible dashboard pixels 1283.9 [1188.4, 1301.1] 973.7 [965.0, 993.5] -307.7 11 no
Iframe inserted 535.5 [529.9, 546.4] 555.9 [533.7, 558.3] 2.8 5 no
Hello handled 749.7 [740.9, 755.7] 764.1 [755.1, 770.0] 14.4 3 no
Connect sent 468.6 [462.3, 480.2] 489.9 [478.1, 493.8] 17.0 3 no
FCP 256.0 [252.0, 262.0] 260.0 [256.0, 266.0] 0.0 4 no
LoAF blocking 163.0 [153.5, 180.0] 161.0 [149.0, 165.5] -16.0 8 no
Chat catch-up 1159.1 [1134.0, 1168.8] 1150.3 [1143.2, 1158.1] -2.4 6 no
First transcript paint 492.0 [488.0, 502.0] 508.0 [492.0, 518.0] 4.0 5 no
Pair Visible dashboard pixels Iframe inserted Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 -310.2 -237.4 18.6 33.0 -80.0 -85.0 -28.6 -164.0
2 -336.2 -36.9 -20.3 -17.4 0.0 -40.0 -115.9 -16.0
3 -179.9 -6.4 14.4 14.9 -8.0 -34.0 -66.8 -12.0
4 -158.0 29.3 33.4 29.8 28.0 21.0 35.4 44.0
5 -254.3 48.7 38.2 42.7 16.0 -18.0 -46.8 52.0
6 -180.8 25.2 19.5 22.8 8.0 15.0 -16.5 20.0
7 -355.3 2.8 3.1 -0.1 -12.0 -3.0 15.3 -8.0
8 -307.7 -13.9 -12.4 -11.3 -8.0 -16.0 -2.4 -4.0
9 -342.2 26.9 53.6 48.9 12.0 17.0 105.7 28.0
10 -236.9 -0.1 -1.7 1.5 4.0 -29.0 11.7 4.0
11 -328.6 18.8 14.4 17.0 0.0 -4.0 27.6 12.0
Reveal experiment chat-control secondary metrics and per-pair deltas
Metric Baseline Candidate Median paired delta Better / 11 Secondary regression
Hello handled 719.3 [713.3, 724.2] 717.1 [712.1, 724.7] -0.2 6 no
Connect sent 445.5 [440.4, 452.5] 444.6 [438.9, 452.5] -0.1 6 no
FCP 248.0 [246.0, 248.0] 248.0 [236.0, 252.0] 0.0 4 no
LoAF blocking 128.0 [123.5, 138.5] 133.0 [127.5, 137.0] -1.0 6 no
Chat catch-up 1071.4 [1064.0, 1083.8] 1075.4 [1069.3, 1090.0] 3.3 5 no
First transcript paint 484.0 [478.0, 490.0] 484.0 [478.0, 492.0] 0.0 4 no
Pair Hello handled Connect sent FCP LoAF blocking Chat catch-up First transcript paint
1 5.9 7.8 12.0 -12.0 -7.6 8.0
2 -19.4 -21.0 0.0 -1.0 -39.3 -20.0
3 4.5 4.4 -12.0 26.0 3.3 4.0
4 -1.0 -0.3 12.0 -4.0 -36.2 0.0
5 -25.4 -20.9 -12.0 -17.0 -35.2 -20.0
6 -0.2 -0.1 0.0 15.0 17.2 0.0
7 28.0 24.5 0.0 27.0 55.1 24.0
8 -5.5 -6.9 -12.0 -17.0 22.9 -4.0
9 -8.4 -11.3 -16.0 -6.0 -9.7 -8.0
10 0.5 3.2 16.0 8.0 27.3 4.0
11 0.4 0.0 8.0 2.0 79.4 0.0

Proof, CI, and remaining gaps

On bd14c59f2c98897175ee1dde540fdff832a7b93e, AWS run:

  • Focused unit proof: 75/75 passed, 4 files, 21 seconds overall (session-snapshot-store, chat-pane-history, chat-pane-board.loading, chat-pane-warm-reload).
  • Native UI browser proof: 8/8 passed, 3 files, 76 seconds overall (dashboard-cold-load, chat-history-loading, chat-cold-load-anchor). The held-validator dashboard regression fails on the original runtime and passes on the candidate.
  • All four 11-pair comparisons completed. The payload was deliberately stopped after comparisons when additional CI repairs became necessary; full UI e2e did not run, and changed checks did not finish. The recovered comparison then established the failed performance gate, ending the landing path.
  • Independent review is clean through P2. CI on the exact head is red: script/UI lint errors, an invalid test receipt property, and two snapshot-custody assertions that still expect the old one-argument read signature. These failures are attributable to this diff, not claimed as inherited failures.
  • Four-file lint/type repairs remain staged locally, uncommitted and unpushed. Targeted script and UI lint pass on the repaired files (12.3 and 16.8 seconds). A targeted type-check attempt did not run because tsgo was unavailable through that command; no passing type result is claimed. The snapshot-custody assertion repair is still outstanding. No new commit or CI rerun follows the failed performance gate.
  • Per-file pnpm test <file> --maxWorkers=1 wall-time captures and Part 1 screenshot upload were not completed after the stop decision. No landing-ready or full-suite claim is made. Synthetic Part 2 filmstrips were inspected locally.

Change and size

At the pushed head, the two runtime files total +6 lines net: chat-pane-history.ts +28/−28 and session-snapshot-store.ts +8/−2. The requested exclusion stat (git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*') is 315 insertions, 111 deletions (+204). The remaining +198 is the requested fixture and measurement tooling. The runtime growth preserves independent board restoration, invalidation and cache precedence under the existing owner.

Nine committed files: the two runtime owners, snapshot tests, dashboard browser regression, offline/reconnect documentation, the cold-load benchmark, dashboard probe, and two synthetic fixture modules. No schema, security-model or configuration change; no changelog edit.

Both experiments stop before merge. A follow-up would need to preserve deterministic restoration while keeping the connect path clear, and separately establish the correct sandbox theme before exposing its canvas. Those changes are not part of this stopped lane.

@clawsweeper

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

@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 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores cached dashboards before lazy transcript validation finishes and extends the existing benchmark to measure that behavior.

Example: Reload Mission control with a saved dashboard while the history-validator download is delayed by 800 ms.

  • Before: Cached dashboard restoration waits for the validator.
  • After: The existing board provider can restore the dashboard while transcript validation remains pending.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused runtime patch has no identified correctness defect, but the experimental performance claim rests on reported harness results and unfinished comparisons.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored draft is outside the ordinary contributor proof gate; its full body reports browser-harness and storage-test results but supplies no current screenshots, runtime traces, or completed comparison results, and predecessor proof does not establish this change's performance benefit.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: A returning dashboard can remain loading while an unrelated transcript-validator chunk downloads.
Reason: Removing this dependency has clear user value and preserves existing owners; the maintainer author has approved the experimental direction while explicitly withholding merge readiness.

Merge readiness

✅ Ready for maintainer review

Keep this PR open as the maintainer-authored draft experiment explicitly marked “do not merge”; the source supports its premise, and no definite introduced defect was found.

Priority: P2
Reviewed head: a23902bf2caad60b2de7c958d76893febc227e56

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The declared baseline/candidate comparisons and inspected before/after browser evidence for the delayed-validator path remain pending; the body reports the regression as red on baseline and green on the candidate.
Agent review details

How this fits together

The Control UI reads an account-, Gateway-, agent-, and session-scoped IndexedDB snapshot, presents its board through the existing provider, and independently validates transcript receipts before adopting history.

flowchart TD
  A[Dashboard reload] --> B[Scoped snapshot reader]
  B --> C[Board provider validation]
  B --> D[Lazy transcript validation]
  C --> E[Dashboard presentation]
  D --> F[Transcript adoption]
  G[Live Gateway] --> C
Loading

Technical review

Best possible solution:

Restore boards independently through the existing scoped snapshot reader and board provider while preserving transcript admission and live revalidation.

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

Current main visibly chains board restoration behind a snapshot read that awaits the lazy history validator; the body also reports a baseline-failing browser regression, which was not independently run during this read-only review.

Is this the best way to solve the issue?

The runtime change is a small owner-preserving fix: expose the admitted board before the unrelated await and retain the existing validation and invalidation paths; the benchmark extensions serve the declared comparison.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Lazy retained-history validation keeps the original intent (b89bc0e: Retain authorized startup metadata and receipts while loading their validator only for warm snapshots.)
  • Cached board restoration ordering changes intended behavior with a stated reason (perf(control-ui): warm-start dashboard widgets from scoped snapshots #178113: Warm-start scoped dashboard content while preserving ticket lifetimes, grant filtering, and authoritative reconciliation.)
  • Cold-load benchmark and fixture keeps the original intent (5559404: Measure signed-in dashboard reload work with a reusable synthetic Team-scale workload.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Explicit experiment hold: The full current body calls this a measurement vehicle and says “Do not merge”; GitHub still reports draft=true at the reviewed head. (a23902bf2caa)
  • Current main retains the dependency: Current main restores the board only after store.read resolves, and that read awaits the lazy history-state validator when retained receipts exist. (ui/src/pages/chat/chat-pane-history.ts:105, 16ab1602cb48)
  • Focused production change: The new callback presents the board after envelope admission but before the validator import; its caller retains hydration identity, pane ownership, session identity, scope-key checks, and in-memory board precedence. (ui/src/pages/chat/session-snapshot-store.ts:158, a23902bf2caa)
  • Existing board authority remains responsible: The provider validates board shape and session, filters unconfirmed MCP apps, ages original ticket lifetimes, and refuses restoration after authoritative revalidation; document delivery separately checks current authority, expiry, grants, revision, and generation before returning HTML. (ui/src/lib/board/gateway-provider.ts:147, a23902bf2caa)
  • Related merged implementation: perf(control-ui): warm-start dashboard widgets from scoped snapshots #178113 introduced the existing scoped board warm-start path; this PR addresses a remaining transcript-validator dependency rather than replacing that owner. (ui/src/pages/chat/chat-pane-history.ts:113, 5ec154f290de)
  • Policy and history inspection: Read the complete root, UI, scripts, and docs AGENTS.md files and applied simplification steps 1–3; no maintainer-notes directory exists. A historical content search encountered an unavailable old blob, but the relevant validator introduction and current-main ownership were independently verified. (AGENTS.md:1, a23902bf2caa)

Likely related people:

  • Peter Steinberger: Raw commit b89bc0e adds ui/src/pages/chat/session-snapshot-store.ts:155 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b89bc0eeeac0; files: ui/src/pages/chat/session-snapshot-store.ts)

PR surface

Source +7, Tests +115, Docs +3, Other +170. Total +295 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 32 25 +7
Tests 4 137 22 +115
Docs 1 3 0 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 2 231 61 +170
Total 9 403 108 +295

Review metrics

Metric Value Why it matters
Benchmark options 4 new benchmark-only flags --filmstrip-only, --history-validator-delay-ms, --dashboard-paint-marker, and --color-scheme support the experiment without adding persisted product settings.

Labels

Label changes:

  • add P2: The change addresses a bounded warm-dashboard loading delay without evidence of lost data or a blocked core workflow.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The change addresses a bounded warm-dashboard loading delay without evidence of lost data or a blocked core workflow.
  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the declared interleaved comparisons and attach sanitized browser evidence showing earlier dashboard attachment without regressing hello handling or chat catch-up.

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 20, 2026, 1:23 PM ET / 17:23 UTC.

@steipete
steipete force-pushed the steipete/coldload-dashboard-reveal-off-main-thread branch from a23902b to 0fde6ec Compare October 20, 2026 17:37
@steipete steipete changed the title experiment(control-ui): deterministic warm dashboard restore [do not merge] fix(control-ui): restore saved dashboards before transcript validation Oct 20, 2026
@steipete
steipete marked this pull request as ready for review October 20, 2026 17:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-20T18:03:32.290010Z bd14c59 New commits
ℹ️ 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.

@steipete
steipete force-pushed the steipete/coldload-dashboard-reveal-off-main-thread branch from 0fde6ec to bd14c59 Compare October 20, 2026 18:00
@steipete
steipete marked this pull request as draft October 20, 2026 18:14
@steipete steipete changed the title fix(control-ui): restore saved dashboards before transcript validation experiment(control-ui): decouple dashboard restore [do not merge] Oct 20, 2026
@steipete steipete closed this Oct 20, 2026
@steipete steipete changed the title experiment(control-ui): decouple dashboard restore [do not merge] experiment(control-ui): deterministic dashboard restore and themed reveal [do not merge] Oct 20, 2026
@steipete steipete changed the title experiment(control-ui): deterministic dashboard restore and themed reveal [do not merge] experiment(control-ui): decouple dashboard restore [do not merge] Oct 20, 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 docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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