Skip to content

experiment(control-ui): Details warm-paint attribution [do not merge] - #185151

Closed
steipete wants to merge 1 commit into
mainfrom
steipete/coldload-details-warm-paint
Closed

steipete wants to merge 1 commit into
mainfrom
steipete/coldload-details-warm-paint

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A signed-in reload of a dashboard deep link still shows successive Details states. The original campaign evidence measured 14 visible states across roughly 15 seconds; this experiment attributes the remaining warm Details changes using synthetic fixtures only.

Why This Change Was Made

This experiment added an opt-in, bounded section sampler to the existing pane-chrome benchmark. It changes no app runtime. The smallest scoped fixes evaluated need additional section presentation/geometry ownership; no candidate was established within both +150 runtime LOC and +2% snapshot growth.

User Impact

None: this measurement-only experiment is closed without merging. It does not establish that every possible small fix is impossible. It records source attribution, measured baseline stages, and concrete per-section estimates for a later slice after the pending owners land.

Evidence

Predeclared acceptance: warm Team-scale/live-fast, quiet fixed AWS class, at least 11 interleaved pairs per route; at most one post-first-paint Details visual transition in at least 9/11 reloads; CLS, hello/FCP/row milestones and LoAF non-regression; snapshot at most +2%. No product candidate advanced, so paired deltas and the acceptance gate were not run.

L237: Details warm-paint attribution

Status: STOP at the +150 runtime LOC / +2% snapshot limits. No app-runtime candidate was established within both caps; the experiment-only PR is being closed without merging. The estimates below are not a proof that every possible implementation must exceed them.

Scope: synthetic Team-scale warm reloads, chat face and dashboard face. Private Team screenshots/video were not uploaded, copied, or quoted. Only the assigned worktree was edited.

The initial structural smoke found three separate arrivals on the visible chat-face Details panel: outer skeleton -> People/Outputs/Progress, then Automations appended, then Subagents inserted above Outputs/Progress. The lower sections consequently move even though their own content is stable. The dashboard-face fixture has Details closed; zero transitions there is a control, not a passing visible-panel measurement. Mac timings are deliberately omitted.

Section attribution and implementation estimates

These are source-based runtime LOC estimates, not implemented or measured candidates. The default-fixture geometry is confirmed by quiet-host observations below; runtime LOC remains an estimate.

Section Observed structural change Owning prerequisite Available in pane snapshot? Estimated isolated slice
Outer Details composition Blank/held region -> file-list skeleton -> sections chat-details.tsx sessionOpened waits for contentPending; composition is then lazy-imported Cached progress and transcript metadata exist, but composition does not consume readiness early 20–35 lines to use admitted cached readiness; insufficient alone; earlier L201 exposed a docking/CLS problem
People Mounts with composition; avatar presentation settles later selected session owner/participants, describe + existing roster; avatar owner participants/expandedParticipants/owner in transcriptMetadata; historyState.sessionInfo carries the fuller row 15–25 to consume existing display facts; avatar/presence excluded
Environment / Context Absent in the default fixture selected session/workspace, placement, branch/diff owner full history session row can contain metadata; authoritative branch/diff read is separate 20–40 metadata-only; branch readers deferred to L235
Pull requests Absent in the default fixture existing repository/publication/pull-request owner No dedicated pane projection 30–50 after the list owner; not needed for this fixture's visible panel
Subagents Inserts between People and Outputs; lower sections move projectChildRoster -> swarm hydrator; listSubagents deliberately requires complete child-query hydration No bounded child presentation records; partial sidebar rows cannot establish complete membership 45–65 for a bounded display-only summary, or 25–40 per-slot geometry integration plus shared infrastructure
Processes Absent in the default fixture ProcessesPanelData -> sessions.processes.list No pane process projection 25–45 after L235; do not edit its readers first
Outputs Present with composition; later moves when Subagents inserts restored board + board read / assistant artifact owner board is cached; artifact list is not 10–20 for cached dashboard-only facts; artifact reader deferred to L235
Task progress Present with composition; moves when Subagents inserts existing cached progress card; live progress owner revalidates Yes: progressCard; no additional payload required 0 data lines; shares composition/geometry work
Automations Appends ten visible rows after composition createSessionAutomationInventory -> shared per-connection cron inventory; inventory is retired at hello/disconnect No persisted automation presentation 55–80 for bounded display facts/schema + scoped adoption; or 25–40 per-slot geometry integration plus shared infrastructure

A direct display projection of the ten visible synthetic automations (only id, name, enabled, autoDisabled, runningAtMs, schedule, omitting undefined fields) serializes to 1,301 bytes. Against the measured 50,886-byte pane snapshot, that alone is +2.56%, above the +2% budget, before child rows. This is an estimate for reusing the existing renderer's typed fields, not a lower bound on every possible encoding. A more compact projection would need additional serialization/rendering work.

A geometry-only approach is smaller on disk, but needs stable section slots before the Show branches admit live content, exact width/disclosure/session keys, bounded snapshot parsing and persistence, and per-section adoption/invalidation. Reserving only the entire panel height does not stop Subagents moving the sections below it. Estimated shared reservation plumbing 70–100 lines plus outer readiness 20–35 and three relevant conditional-section integrations 25–40 each: roughly 165–255 runtime lines. This exceeds the lane's +150 cap. These estimates must be revisited after the pending cache/list owners land; this report does not authorize a larger patch.

Proof record

  • Local synthetic structural smoke, one reload each route; no Mac timing result claimed.
  • pnpm ui:build succeeded before smoke. No full suite/typecheck ran on the shared Mac.
  • pnpm exec oxfmt --check scripts/lib/control-ui-pane-chrome-probe.ts and git diff --check: pass.
  • Independent detached review with a 3,600-second process limit: scoped-clean through P2.
  • Experiment-only draft PR: experiment(control-ui): Details warm-paint attribution [do not merge] #185151
  • Reviewed/published diagnostic head: 48ee1eac14502c167a36dcde952729e040ce1601, base a6df599713089b3b09eb1ed0b5160efd4980400f.
  • App runtime: 0 lines. Exact requested diff stat: scripts/lib/control-ui-pane-chrome-probe.ts | 37 insertions; all 37 are opt-in benchmark diagnostics.
  • AWS request for c7a.4xlarge fell back to t3.small after a quota rejection; no measurements ran there; lease cbx_9aefd12fe88d released.
  • Allowed fallback lease cbx_c28a7e20fa41: c7i.4xlarge, 16 vCPU, 30.8 GiB RAM. Initial fresh-PR setup failed before installation because the stock image lacked npm. Retried with a checksum-verified Node 24.22.1 bootstrap. No product verdict follows from that setup failure.

Quiet-host baseline (not an A/B comparison)

AWS cbx_c28a7e20fa41, c7i.4xlarge, 16 vCPU / 30.8 GiB RAM; Node 24.22.1, repo Playwright Chromium 156; production UI bundle at the diagnostic head above. Team-scale fixture, row facts enabled, warm persisted cache, live-fast latency, desktop light 1719×1179. Setup load average was 0.63 / 0.41 / 0.20. Three reloads per route collected section frames; another three per route collected the complete standard LoAF/RPC probes. No CPU profiler or trace was enabled for either baseline series. A separate one-run filmstrip per route is visual attribution only.

All six chat-face diagnostic reloads had these distinct section-membership states after the empty region: skeleton; People; People+Outputs+Progress; add Automations; insert Subagents. This is four structural DOM transitions after the first Details state, not four independently established compositor transitions. Raw content hashes changed five or six times after first transcript paint; hash changes include nonvisual/class/image settlement and are not the primary visual verdict.

The inspected chat filmstrip independently shows the skeleton, People-only content, Outputs/Progress, then the final taller Details content. Automations and Subagents can be coalesced by compositor sampling; do not equate each observer callback with a distinct displayed frame. The dashboard-face control kept Details closed in all six diagnostic reloads and the inspected filmstrip, so it does not qualify the visible-panel dashboard gate.

Section/state Chat frame arrival, latest three reloads (ms) Final geometry relative to Details
Skeleton 307 / 275 / 273 top 17, height 179 px
People 423 / 408 / 390 top 5, height 48 px
Outputs + Progress 457 / 458 / 456 Outputs top 53 -> 136, height 49; Progress top 113 -> 196, height 134 px
Automations 823 / 758 / 756 top 257 -> 340, height 591 px (ten rows)
Subagents 1340 / 1292 / 1290 inserted at top 53, height 83 px; moves the preceding lower sections +83 px

The standard layout-shift source records identify the automation wrapper, task-progress wrapper and desktop section among the moved elements. Details-attributed CLS is about 0.00557 per chat reload. Environment, pull requests and running processes are absent in this default fixture; their source prerequisites are attributed above, but no nonempty-case visual result is claimed.

Baseline metric disclosure

These three-sample diagnostics include the section sampler and standard rig probes. They establish attribution, not a stable timing distribution or a no-regression result. No candidate exists, so before/after deltas, per-pair signs, and the 11-pair acceptance gate are not run / not applicable.

Metric Chat: samples; median [Q1–Q3] Dashboard: samples; median [Q1–Q3]
Hello handled (sync dispatch end), ms 623.3 / 579.1 / 578.0; 579.1 [578.5–601.2] 731.8 / 611.9 / 612.3; 612.3 [612.1–672.1]
FCP, ms 80.0 / 84.0 / 88.0; 84.0 [82.0–86.0] 84.0 / 80.0 / 92.0; 84.0 [82.0–88.0]
First painted rows (Element Timing), ms 672.0 / 624.0 / 624.0; 624.0 [624.0–648.0] 708.0 / 620.0 / 616.0; 620.0 [618.0–664.0]
Final row-key window (DOM), ms 585.5 / 542.7 / 544.3; 544.3 [543.5–564.9] 917.2 / 772.0 / 758.0; 772.0 [765.0–844.6]
Last row-fact frame (DOM), ms 1587.2 / 1299.6 / 1298.3; 1299.6 [1298.9–1443.4] 1539.7 / 1356.3 / 1220.0; 1356.3 [1288.2–1448.0]
LoAF blocking, ms 197.0 / 132.0 / 146.0; 146.0 [139.0–171.5] 295.0 / 167.0 / 133.0; 167.0 [150.0–231.0]
CLS 0.052249 / 0.052442 / 0.052442; 0.052442 [0.052345–0.052442] 0.017110 / 0.035215 / 0.017793; 0.017793 [0.017452–0.026504]
Snapshot bytes 50886 / 50886 / 50886; 50886 [50886–50886] 50978 / 50978 / 50978; 50978 [50978–50978]

“Hello handled” is the benchmark's connect-response delivery timestamp plus synchronous dispatch duration; it does not promise completion of every asynchronous hello bootstrap. Final row-key/fact observations are DOM milestones; final compositor paint of the fully settled rows was not separately established. This limitation does not support a pass/fail performance claim.

The payload-size microcheck used the native Team-scale cron fixture, compact session-filtered rows sorted by name, then projected only fields read by the visible automation renderer. It took under one second locally; only deterministic byte counts are reported.

Validation and final disposition

corepack pnpm test ui/src/pages/chat/components/chat-details-arrival.test.tsx --maxWorkers=1: 9/9 pass, Vitest 8.18 s, command wall time 11.47 s, on the AWS lease. The repository runner could not stage its pinned Bun fork and selected its supported Node fallback. No tests were added or changed. No regression or improvement is claimed from these unchanged baseline tests.

Production-bundle fixture proof: six section-attribution reloads + six complete-probe reloads + two separate filmstrip reloads; all completed. Filmstrips are retained locally below, inspected synthetic-only. No product change means no before/after image or full-UI-suite claim. No UI source was edited.

Exact-head draft CI: 7 success, 63 skipped, 0 failures. These are draft/selected checks, not the ready-PR UI gate. No rerun or merge was requested. Autoreview: scoped-clean through P2. Formatting and whitespace checks pass.

Filmstrip artifacts: .local/aws-final/.local/l237/film-chat/2026-10-26T23-22-03.417Z/run-1.filmstrip/ and .local/aws-final/.local/l237/film-dashboard/2026-10-26T23-22-26.331Z/run-1.filmstrip/.

Remaining lead decision: revisit geometry after L206 and the relevant L235 list owners land, or assign a broader explicitly budgeted slice. Hiding only the skeleton leaves the independent insertions; deferring all Details until those unrelated reads finish would reproduce the rejected reveal-gating approach. No Gateway protocol/config/schema change is proposed.

Cleanup: both task-owned leases (cbx_9aefd12fe88d, cbx_c28a7e20fa41) returned confirmed release receipts. All benchmark/browser processes completed; no real Gateway was started. The task worktree is clean. The branch retains only +37 benchmark diagnostic lines; app runtime delta is 0. The sole touched tracked file is scripts/lib/control-ui-pane-chrome-probe.ts.

@clawsweeper

clawsweeper Bot commented Oct 26, 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 scripts Repository scripts size: XS labels Oct 26, 2026
@steipete steipete closed this Oct 26, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds Details section geometry, node counts, and image readiness snapshots to the opt-in warm-reload benchmark probe.

Example: A progress card appears in Details after a warm dashboard reload.

  • Before: The probe records a Details region signature change without section-level geometry.
  • After: The probe also records the card's details placement, top offset, height, node count, and image readiness.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused diagnostic patch has no identified correctness defect, but the experimental results are not yet available.
Proof confidence 🦪 silver shellfish (2/6) This maintainer-authored experiment is outside the ordinary contributor proof gate; its body reports synthetic structural smoke, while section attribution and paired comparisons remain explicitly pending without attached output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes
User problem: Details can change structure and geometry after cached content appears on a warm chat or dashboard reload.
Reason: The maintainer-directed investigation extends existing instrumentation to distinguish skeleton, section, and progress-card transitions while explicitly withholding a product merge.

Merge readiness

✅ Ready for maintainer review

Keep this PR open as the explicitly paused, maintainer-directed experiment; the diagnostic extension is focused and has no concrete introduced defect.

Priority: P3
Reviewed head: 48ee1eac14502c167a36dcde952729e040ce1601

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The PR reports synthetic structural smoke but supplies no inspectable benchmark output demonstrating the new section snapshots on chat and dashboard reloads.
Agent review details

How this fits together

The benchmark injects the browser probe behind the existing pane-chrome-probe flag, samples rendered Details sections through the warm-reload animation loop, and returns snapshots in benchmark metrics.

flowchart LR
  A[Benchmark CLI] --> B[Opt-in probe injection]
  B --> C[Warm reload frame loop]
  C --> D[Details DOM sections]
  D --> E[Section snapshots]
  E --> F[Benchmark metrics]
Loading

Technical review

Best possible solution:

Use the existing probe to complete attribution, then replace this experiment with a measured, focused product fix or close it with the results.

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

This PR instruments an investigation rather than fixing a reproduced bug; source inspection confirms its integration with the existing benchmark sampling and reporting path.

Is this the best way to solve the issue?

Extending the existing opt-in probe is a small, coherent way to attribute section transitions without introducing another diagnostic owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Pane-chrome diagnostic sampling keeps the original intent (0261812: Measure pane-region transitions and layout shifts during the composer warm-reload campaign.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0261812 adds scripts/lib/control-ui-pane-chrome-probe.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0261812512a0; files: scripts/lib/control-ui-pane-chrome-probe.ts)

PR surface

Other +37. Total +37 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 37 0 +37
Total 1 37 0 +37

Labels

Label changes:

  • add P3: This is opt-in diagnostic tooling with no application runtime change or urgent user-facing repair.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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:

  • P3: This is opt-in diagnostic tooling with no application runtime change or urgent user-facing repair.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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.

  • Attach redacted chat and dashboard benchmark output showing the new section snapshots and the resulting attribution.

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 26, 2026, 7:27 PM ET / 23:27 UTC.

@steipete steipete changed the title experiment(control-ui): Details warm-paint attribution [do not merge] experiment(control-ui): cached Details warm paint [do not merge] Oct 27, 2026
@steipete steipete changed the title experiment(control-ui): cached Details warm paint [do not merge] experiment(control-ui): Details warm-paint attribution [do not merge] Oct 27, 2026
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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XS 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