Skip to content

experiment(control-ui): defer three remaining closed menus [do not merge] - #174977

Closed
steipete wants to merge 2 commits into
mainfrom
steipete/coldload-remaining-closed-menus
Closed

steipete wants to merge 2 commits into
mainfrom
steipete/coldload-remaining-closed-menus

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #175011, which keeps only the three lazy menus and repeats the reload comparison with 11 interleaved pairs. This closed experiment is not intended to merge.

Stopped experiment — do not merge. The complete timing set does not qualify the candidate under the cold-load gate. Closing this draft unmerged.

What Problem This Solves

A signed-in reload of a dashboard deep link constructs panel-type, widget and progress menu entries while those menus are closed. The candidate applies lazy keyed entries and prepares sharing only on pointer/focus intent, with frozen presentation inputs while closed and catch-up before native popup focus.

User Impact

Construction counts fall substantially, but the complete reload collection does not have separated blocking IQRs. Sharing's existing-DOM admission metric improves, while its next-frame bound remains above 40 ms. This experiment is not promoted for landing.

Why This Change Was Made

The earlier campaign census attributed hundreds of discarded icons to these menus. The candidate replaces eager builders, releases the three small menus after close, and reuses the existing Menu idle scheduler for sharing. Selection continues to use live props.

Runtime delta: +73 lines across five production files, for keyed row identity and the frozen-presentation/current-data handoff. Three test files add 116 lines. The requested diff filter reports +157 because it includes the 84-line TSX test; excluding .test.tsx gives the production +73. No schema, durable server record, dependency, configuration option, or changelog changed.

Evidence

One AWS c7a.4xlarge, lease cbx_e8964e232b7a; 16 vCPUs, 31,378 MiB RAM, Node 24.19.0, pnpm 12.11.1, repository Playwright Chromium. Baseline source 3415f6a4ee43, candidate 1d9b2fd571a1. Canonical Team-scale persisted dashboard reload, 48-person sharing fixture, 1719×1179 viewport, 35 ms wire delay and 4 ms event spacing. Seven alternating blocks each contained a cold and intent-cohort run per revision: 28 successful reloads. All reload measurements precede intent events. Normal bundles were untraced; census bundles were separate diagnostics.

Reload blocking Baseline median / IQR (ms) Candidate median / IQR (ms)
All 14 captures per revision 298 / [281, 309.75] 256 / [245, 291.75]
Seven no-intent pairs 297 / [281, 308.5] 254 / [241, 255.5]
Seven intent-cohort pairs, before intent 299 / [283, 314] 298 / [264.5, 304]

The no-intent subset passes IQR separation; the complete collection overlaps. The complete collection is retained rather than selecting the favorable subset for promotion.

First-open entry admission, p50 / p90 ms:

Menu Baseline cold Candidate cold Baseline intent cohort Candidate intent cohort
Sharing 72.5 / 73.5 71.1 / 73.0 72.8 / 94.2 0.5 / 1.7
Panel type 48.6 / 49.6 49.7 / 50.0 48.6 / 49.0 49.5 / 49.7
Widget 37.4 / 37.9 37.9 / 38.0 37.7 / 37.9 37.9 / 39.0
Progress, ArrowDown 3.0 / 3.7 4.3 / 4.4 3.2 / 3.6 4.4 / 4.6

Only sharing was prewarmed, with preparation completed before clicking. Existing DOM admission is not a paint measurement: sharing's intent-cohort next-rAF bound is 82.9 / 104.1 → 44.2 / 65.6 ms, and post-rAF rendering opportunity is 106.6 / 128.4 → 66.6 / 87.2 ms. The ≤40 ms visible-opening target remains unproven. Progress was measured after opening the real Details surface, using keyboard admission. Other timings use the repository overlay probe.

Cold FCP was 432 → 436 ms, connect-send 86 → 89 ms, and first transcript 376 → 380 ms, with overlapping IQRs. Reload RPC count remained 82 and median CLS was unchanged.

Separate L120-method census, constructed / connected icons:

Menu Baseline Candidate
Panel type 397 / 1 1 / 1
Widget 95 / 1 1 / 1
Progress menu 45 / 2 1 / 1
Sharing 1 / 1 1 / 1

The progress baseline includes 44 refresh-entry constructions plus its trigger. Candidate counts retain only triggers. These instrumented captures are not timing proof.

Focused tests pass: sharing 14, panel 20, progress 7, existing widget 1 (42 cases). New regressions fail on the original source. The native-opening ordering regression also fails on the initial prototype and passes after catch-up moved before native show. Final independent review is clean through P2. Remote pnpm test <file> --maxWorkers=1 wall times: sharing 7.150 s, panel 8.759 s, progress 3.778 s.

Draft CI: five successful checks, 55 skipped at the exact head. Full UI e2e, native browser suites and changed-file qualification stopped at the performance gate. Initial custom keyboard/hidden-progress probe failures were retained and excluded from timing; no complete native keyboard/typeahead qualification is claimed. No private Team capture or real account was used or uploaded. Raw captures and reproducible scripts are retained with the lane report.

@clawsweeper

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

@steipete
steipete force-pushed the steipete/coldload-remaining-closed-menus branch from ce15562 to 1d9b2fd Compare October 17, 2026 02:10
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR defers panel, widget, and progress menu entries and prepares sharing content after pointer or keyboard intent.

Example: Open the panel-type menu after the terminal label changes to “Updated terminal.”

  • Before: Closed-menu updates construct option content before the menu is opened.
  • After: Option content is constructed on opening and displays “Updated terminal.”

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is coherent and focused, with useful component coverage; the experiment's measured user benefit is not yet established.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate is exempt for this maintainer-authored PR; focused component results are reported, but the author’s explicitly required production-bundle reload and sharing first-open qualification has no completed result or artifact in the body or discussion.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Signed-in dashboard reloads spend rendering work on menus the operator has not opened.
Reason: The feature-history owner chose this focused experiment, and avoiding unused construction has clear value if the recorded performance gate passes.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored experiment open under its explicit do-not-merge hold; source review found no definite introduced defect.

Priority: P2
Reviewed head: 1d9b2fd571a164623b4d2ba657d6b638605a9c63

Before merge

  • Complete next step - The author must explicitly lift the experimental do-not-merge hold before this PR proceeds toward landing.

Findings

None.

Tests

  • Missing end-to-end proof: The current-head reload/first-open performance comparison and browser interaction validation, including Chromium and WebKit opening and reopening, remain pending; baseline regression failures are reported by the author rather than independently observed.
Agent review details

How this fits together

Control UI menu consumers turn current session, panel, and widget props into entries; the shared Menu owns mounting, focus, dismissal, and selection dispatch.

flowchart TD
  A[Current domain props] --> B[Menu consumers]
  C[Pointer or keyboard intent] --> B
  B --> D[Lazy entry owners]
  D --> E[Shared Menu lifecycle]
  E --> F[Visible controls]
  F --> G[Live action callbacks]
Loading

Technical review

Best possible solution:

Retain the existing menu owner and land this optimization only if the experiment meets its recorded acceptance criteria.

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

Baseline source shows eager panel/widget entry memos and eagerly mounted progress-menu content; the reported timing impact was not independently reproduced.

Is this the best way to solve the issue?

The patch targets construction at its consumers, reuses existing lazy mounting and idle preparation, and preserves live selection callbacks.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Sharing presentation and lazy entry construction keeps the original intent (b652f39: Defer closed sharing and Layout entry construction while preserving keyed rows, filtering, and focus.)
  • Panel and widget menu entries keeps the original intent (84617ea: Replace Web Awesome menus with the owned native menu while leaving domain actions and widget disclosure authority intact.)
  • Progress options keeps the original intent (b7abb0f: Consolidate secondary progress actions without changing refresh feedback, permissions, or local hide behavior.)
  • Closed-menu content retention changes intended behavior with a stated reason (dc61fee: Mount menu content on first accepted open and retain it afterward; this experiment deliberately releases transient panel/progress entries after closing to avoid ongoing construction.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b68c44c adds ui/src/components/solid/menu.tsx:79 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b68c44ca8f3c; files: ui/src/components/solid/menu.tsx)

PR surface

Source +73, Tests +116. Total +189 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 157 84 +73
Tests 3 116 0 +116
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 273 84 +189

Review metrics

Metric Value Why it matters
Production versus tests Production +157/-84, net +73 lines; tests +116/-0. Growth provides stable entry identities and a transient sharing presentation snapshot; its performance value remains subject to the experiment.

Labels

Label changes:

  • add P2: This is a focused reload-performance improvement without evidence of an urgent user-facing regression.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a focused reload-performance improvement without evidence of an urgent user-facing regression.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Rank-up moves

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

  • Complete the recorded performance comparison and planned UI validation on the reviewed candidate.

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 16, 2026, 10:29 PM ET / October 17, 2026, 02:29 UTC.

@steipete steipete closed this Oct 17, 2026
@steipete steipete changed the title experiment(control-ui): defer remaining closed menus [do not merge] experiment(control-ui): defer three remaining closed menus [do not merge] Oct 17, 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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant