Skip to content

experiment(control-ui): warm entrance motion [do not merge] - #190771

Closed
steipete wants to merge 5 commits into
mainfrom
steipete/coldload-warm-entrance-motion
Closed

steipete wants to merge 5 commits into
mainfrom
steipete/coldload-warm-entrance-motion

Conversation

@steipete

@steipete steipete commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Stopped at the lane's visible-swap escape hatch. This experiment is not a passing performance PR and should not merge.

The campaign's measured 14-state waterfall concerns a signed-in reload of a dashboard deep link. This lane inventories entrance motion over already-final cached content. It does not establish the complete cached-page exit criterion.

Why This Change Was Made

The existing browser probe now samples CSS animations, CSS transitions (including starting styles), and app Web Animations every frame. It records animation identity, properties, start time, duration, target, viewport intersection, existing restore markers, and initial/final content fingerprints. Zero-size animated containers include positioned descendants when determining viewport intersection. Separate diagnostics capture Progress ancestor styles and a compositor layer trace.

The branch retains the smallest unshipped candidate: delete the context ring's 200 ms mount fade, preserving hover/color and popover motion. It is independently tested, but does not qualify as a cached-first-paint improvement: usage is supplied after live admission. No other production change was made.

User Impact

No change is being proposed for landing. In particular, the position rail's transition is retained: its initial marker state is not final, and the same transition serves live overflow after a send. Pending skeletons, live availability transitions, and user-opened overlays are retained.

Evidence

All captures use synthetic data and isolated loopback Gateways, with the plugin fixture and operator sidebar settings. No real account, live Team service, personal browser, or private capture was used for browser proof or uploaded.

Inventory

Counts below are animation identities per warm reload, not animation-frame samples. Archived-route inventory has two reloads per route. The active-session attribution variant separately exercises the composer and Progress; archived sessions replace the composer and do not expose Progress. Paths/lines refer to this branch's source (the removed ring declaration was at the indicated rule).

Selector / animation Owner Route Count/reload Duration Cached-final at start? User intent or live status?
.chat-position-rail, opacity transition ui/src/styles/chat/message-layout.css:33 chat 1 240 ms No: final marker highlight changes during fade Also used for live overflow and resize
.context-ring, fade-in ui/src/styles/chat/layout.css:947 active chat/dashboard 1; 0 on archived routes 200 ms No: usage arrives after hello Live-fed usage; mount fade itself is decorative
.sidebar-rail__button.sidebar-new-session, color/background ui/src/styles/sidebar-rail.css:156 both 2 150 ms Displayed content unchanged; availability changes Yes
.sidebar-session-group-actions.sidebar-new-session, color ui/src/styles/layout.css:983 both 87 archived / 85 active 100 ms Displayed content unchanged; availability changes Yes; 11/12 visible, remainder offscreen
draft session rows, background ui/src/styles/components.css:2842, layout.css:2702 both 3 archived / 4 active 100 ms Content unchanged; live draft styling changes Yes
.chat-send-btn--voice, color/opacity ui/src/styles/chat/composer-surface.css:866 active both 2 100 ms Control availability changes Yes
.chat-talk-input-picker__trigger, color ui/src/styles/chat/composer.css:925 active chat 1, offscreen 100 ms Control availability changes Yes
.skeleton tab/icon/line, shimmer ui/src/styles/base.css:1278 dashboard 60 (6/12/42) 2 s, repeating No: pending content; nodes retire Yes
.chat-error, chat-error-enter ui/src/styles/chat/layout.css:28 both 0 250 ms Not observed Live error
.chat-scroll-to-bottom, starting style ui/src/styles/chat/layout.css:907 both 0 CSS control duration Not observed Scroll interaction
bottom/anchored toasts ui/src/styles/components.css:708, :732 both 0 180/200 ms entry Not observed Action/status outcome
native select / picker overlays ui/src/styles/components.css:1193, select-picker.css:62 both 0 Overlay tokens Not observed User-opened
agent menu starting style ui/src/styles/components.css:2413 both 0 Inherited overlay duration Not observed User-opened; opacity override
desktop Details starting styles ui/src/styles/chat/details.css:138, :156 both 0 280 ms; restore override disables it Restored Details already suppresses transition User-opened outside restore
mobile host starting styles ui/src/styles/chat/mobile-host.css:74 desktop routes 0 Sheet token Not mounted in desktop workload User-opened mobile sheet
sidebar zone entries ui/src/styles/layout.css:2459 both 0 Existing entry token Existing cached snapshot exclusion applies Retained outside cached restore

Corrected archived census: chat 93/93 total animations; dashboard 152/152, including 60 pending shimmers. These totals include live color/background transitions and do not represent entrance failures.

Why the rail is a stop, not a fade deletion

The original viewport classifier missed the rail because its own box is zero-size. The corrected classifier proves positioned children are in the viewport. Both corrected chat reloads have one 240 ms opacity transition, starting before hello handling. Their full marker fingerprints differ at start and finish.

A separate bounded attribution capture identifies exactly one change among 192 parsed elements: marker 66 gains data-visible 103.6 ms after the first animation sample. message-layout.css:152 changes that marker from the dimmed tick color to the visible-message color. Suppressing the fade would expose this known intermediate state. The live visibility e2e also explicitly exercises the same fade when a sent reply makes the conversation overflow and when resize makes it fit again.

The smallest possible restore gate is to project the pane owner's existing cachedSessionStatePending() plus retained session state through ChatThreadProps into a data-restoring attribute and override the rail transition there (roughly six runtime lines, no stored state). It was not implemented because marker finalization must be resolved first; simply removing motion does not make the first state final. Follow-up owner: chat-position-rail-controller.ts / visibility publication. Avoid adding a second restoration state or a synchronous per-marker layout walk without separate evidence.

Context ring attribution

The active fixture initially lacked a fresh versioned usage total. That was a fixture setup defect, not a product result. The corrected fixture uses the canonical token-version constant and the synthetic final assistant usage (1,800 tokens).

Route Warm samples Hello handled → first observed ring fade
chat 1 / 2 669.9 → 889.6 ms / 582.7 → 870.7 ms
dashboard 1 / 2 668.5 → 852.8 ms / 617.9 → 792.1 ms

These are instrumented attribution timestamps, not comparative timing results. Every ring has identical initial/final content but no restore marker. Its required totalTokens is excluded from the boot roster, transcript metadata, and composer snapshots. Thus an identical fingerprint alone does not establish cached admission. Deleting this fade passes an appearance regression but cannot be presented as a measured cached-first-paint win.

Progress C

The active chat trace contains 3,241 compositor layer snapshots. The direct LayerTree event stream was empty; the retained trace uses the actual layer tracing categories instead. Progress ancestors have no running animation, opacity 1, will-change: auto; desktop Details has data-restoring and transition: none. Its identity transform does not change.

The card moves vertically (105 → 156 → 217 px) as surrounding Details sections fill. An early fixed crop differs by 11,721 pixels because it captures different content at the old position. Once the card occupies its final position, three inspected crops are pixel-identical (0 changed pixels). The reported fixed-content glyph-only repaint was not reproduced. This is not a ≥10/11 first-paint stability claim, and no speculative compositor workaround was added.

Proof and gaps

AWS instance type fixed at c7a.4xlarge, 16 CPUs / approximately 31 GiB; attribution preflights show over 92% CPU idle. Chromium is the repository's Playwright browser.

  • cbx_be5346eadbf9: initial archived and active attribution; Progress layer trace. Released.
  • cbx_550d5d9561d3: corrected usage fixture preflight and two active warm reloads per route. Released. The attempted pair run failed fixture readiness before producing pairs; it is not a product failure.
  • cbx_46a198dd7fb7: cancelled during setup to correct lease-retention configuration; no proof. Released.
  • cbx_6d9494c742f6: corrected zero-size census, two archived warm reloads per route at head 61c85474c9e45a4ce64f04d0e2e20aa4e3890af8, baseline UI CSS from 8ba4604bb7f264ba9f978b480d6e8d69b388bab3; extra marker-markup attribution uses a temporary diagnostic-only probe extension. Runtime build passed in 2m 1s. No candidate timing comparison. Released; all isolated Gateway listeners were absent after capture cleanup.

The context-meter regression is red with the old CSS (first opacity 0), green after deletion (1). pnpm test ui/src/e2e/session-context-meter.e2e.test.ts --maxWorkers=1: 1/1 passed, 15.19 s wall. Existing Details reload e2e: 2/2 passed, 17.11 s Vitest duration. These focused results precede the final rebase and are not final-head broad proof. Headless probe smoke covers CSS animations, starting-style transitions, app Web Animations, and visible descendants of zero-size containers. Independent incremental reviews are clean through P2. Exact-head draft checks: 7 successful, 58 skipped; this is not ready-PR broad CI.

Not run / not passed: 11 interleaved candidate pairs, A/A, native Team-scale performance secondaries (hello/FCP/painted rows/final rows/LoAF/CLS/visible transcript), reading geometry gate, measured snapshot-growth gate, full UI e2e, ready-PR broad CI, and visual before/after acceptance. No speedup, no secondary non-regression verdict, and no complete cached-page claim is made. Synthetic attribution contact sheets and Progress crops were inspected locally; no images were uploaded for this stopped experiment.

Runtime candidate delta: −1 LOC. Prescribed non-test stat against the pinned main: 201 additions / 10 deletions, net +191, almost entirely requested diagnostic tooling/documentation. Full diff: seven files, 214 additions / 10 deletions. The existing context-meter scenario adds 13 test lines with an exact 13-line allocation. No production persisted fields, protocol, schema, or configuration were added. No changelog edit.

@clawsweeper

clawsweeper Bot commented Nov 2, 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: S labels Nov 2, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 2, 2026
@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds an opt-in animation inventory and Details ancestor-style sampling to the existing warm-reload proof rig.

Example: An operator captures a signed-in chat reload with Details open using --entrance-motion.

  • Before: The report contains the existing restricted shimmer and fade census.
  • After: The report also records animation targets, properties, content fingerprints, and Details ancestor styles.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused diagnostic patch has no identified correctness defect, but execution evidence is expressly pending.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
User problem: Restored content can replay entrance motion during a warm reload.
Reason: The maintainer-authored experiment has a concrete measurement purpose and adds diagnostics through existing owners without claiming a runtime improvement.

Merge readiness

✅ Ready for maintainer review

Keep this PR open as the author's explicitly unmerged diagnostic experiment; no concrete introduced correctness or security defect was found.

Priority: P3
Reviewed head: d05a43c45c01caaf0537d13cbcb4863222ee25f4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied run demonstrates the new motion inventory and final-content fingerprints on signed-in warm chat and dashboard reloads with Details covered.
Agent review details

How this fits together

The local proof rig seeds synthetic state, launches an isolated Gateway and Chromium, injects browser probes, and exports reload reports and captured frames.

flowchart LR
  A[Proof CLI options] --> B[Isolated Gateway and synthetic fixture]
  B --> C[Chromium reload]
  C --> D[Existing browser probe]
  D --> E[Optional motion inventory]
  E --> F[Reload reports and frame evidence]
Loading

Technical review

Best possible solution:

Use the existing probe to identify specific unwanted mount animations before proposing any narrowly measured runtime change.

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

This is an instrumentation experiment rather than a completed bug fix; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Extending the existing browser probe is a focused way to investigate remaining motion while preserving the established animation census and capture owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Other +124. Total +124 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 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 127 3 +124
Total 2 127 3 +124

Review metrics

Metric Value Why it matters
Diagnostic CLI option 1 new boolean flag, default false --entrance-motion enables additional sampling without changing normal application behavior.

Labels

Label changes:

  • add P3: This is optional diagnostic tooling with no application behavior change or demonstrated urgent regression.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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 optional diagnostic tooling with no application behavior change or demonstrated urgent regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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.

  • Show the new diagnostic records from signed-in warm chat and dashboard captures, with private endpoints and credentials redacted.

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 November 1, 2026, 8:43 PM ET / November 2, 2026, 01:43 UTC.

@steipete
steipete force-pushed the steipete/coldload-warm-entrance-motion branch from d05a43c to 7252e87 Compare November 2, 2026 01:56
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M and removed size: S labels Nov 2, 2026
@steipete
steipete force-pushed the steipete/coldload-warm-entrance-motion branch 2 times, most recently from 78af194 to 3ef85e8 Compare November 2, 2026 02:38
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: M 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