Skip to content

Console first screen: home, object list and record page miss the 2.5 s LCP threshold (baseline 3.6 / 4.6 / 4.2 s); re-measure on a production build first #37444

Todo

Description

@objectstack-fleet

repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc

Filing gate: ③ maintainer-directed. Source: maintainer.

开提速卡,不派发

(Irene, in this project, 2026-11-26. "File the speed-up card, do not dispatch it." So this card waits in pm:queue unclaimed; seat 2 does not dispatch it.)

Business reason: first-screen load is core feature ux ⑥. The maintainer set its threshold (ruling 7178954860 on #35212): LCP at most 2.5 s, cold cache, signed in, desktop Chrome, Lighthouse desktop profile (about 10 Mbps / 40 ms RTT, no CPU throttle), median of 5 runs on home, an object list and a record page. The checklist item that encodes it, ux-conventions.first-screen-lcp (PR #37398, merged), fails on all three pages at its baseline. Every user opening the Console waits on this.

Reader who acts: the domain:ui lane, when cards are taken again. Its first step is the production re-measure below; the fix scope follows from that reading.

Dedupe: open issues for first screen LCP, console bundle size, page load time, Lighthouse, LCP, eager bundle: 0 open hits. Closed and related (earlier work on the same seam, not this threshold): #33293 (dashboard route's eager closure, 17.9 s at 1.5 Mbps), #35455 (about six serial boot round trips), #35534 (me/localization waits on the eager bundle).

Baseline (from PR #37398)

Commit db77cc493a (main)
App showcase, pnpm dev -- --fresh, Console rebuilt with pnpm console:build
Tool Lighthouse 13.6.0, desktop-config.js, performance only; Chrome for Testing 158, headless, 4-core cloud container
Page Median LCP of 5 Threshold
Home (/_console/home) 3557 ms 2500 ms
Object list (/_console/apps/showcase_app/showcase_task) 4625 ms 2500 ms
Record page (.../showcase_task/record/:id) 4175 ms 2500 ms

All three miss by 42% to 85%.

Suspected seam

The Console's eager JS: about 2.0 to 2.5 MB brotli across 150 to 239 script requests per page, loaded before the first screen paints (the measuring dev's reading in PR #37398).

First step: re-measure on a production build

The baseline ran against the dev server in a headless container, so the gap may differ on a production deployment. Before any fix, take the same reading (same profile, same three pages, median of 5) on a production build and record it on this card. If all three pages then pass, close this card with that reading. If not, scope the fix from the production numbers and the request waterfall.

Done when

On a production build, under the ruling's conditions, the median LCP of 5 runs is at most 2500 ms on home, the object list and the record page; the run is recorded against ux-conventions.first-screen-lcp.

Grade: area:ux · Bug · core feature ux ⑥ fails its maintainer-set threshold · reach: Lighthouse on the three Console pages · evidence: measured (dev-server build). Suggested-grade: p2 until the production reading confirms the miss; re-grade by the table then.
Clause-②: no

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size L; rationale: the first-screen LCP threshold the maintainer set (2.5 s) fails on all three measured pages. Grade and state are as filed; the maintainer ordered it filed and not dispatched, so it waits unclaimed in the queue. The first step is the production-build re-measure.

  3. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-26T12:57Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgU8Bf564ZGXi4MfHWb
    Account: os-sales
    Branch: claude/project-thread-xtck3b
    Worktree: objectstack-issue-37444
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux (card thread)
    File surface: ui/apps/console/ and ui/packages/app-shell/ first-screen paths, named by the re-measure's waterfall before any code; none if the re-measure passes
    Container & model: L, mode:thread, model: default — no path-derived mandate; thread served default, reported, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack console (home, object list and record page first paint over 2.5 s LCP at the triage baseline 3.6 / 4.6 / 4.2 s) | none | every console user on first load; the baseline was not a production build, so the re-measure decides
    Thread-read: 7184396361
    Premise: inbox (the card's first step is the production-build re-measure: Lighthouse desktop, cold cache, signed in, median of 5 per page; three passes ⇒ the card closes on the reading with no code)
    Serial constraints cleared: none named; the thread runs scripts/pm/overlap-check.mjs before its first push

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  5. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Premise reading (card thread, 2026-11-26T13:42Z): the production-build re-measure the card's first step asks for. Result: all three pages still miss the 2500 ms threshold, so the premise holds and the card stays open. Fix scope is with seat 2 (slice C first in this thread, Part of this card).

    Tree: objectstack 021524cd (main). Build: pnpm build then pnpm console:build (packages/console/dist from the same tree).
    Server: objectstack start in examples/app-showcase, NODE_ENV=production (banner: Mode: production), sqlite, port 38611,
    brotli on (content-encoding: br on the document and every asset checked), hashed assets public, max-age=31536000, immutable.
    Sign-in: the account signed up over REST, password reset with os user set-password (a production server refuses the dev
    seed password), then signed in through the Console login form in the same Chrome Lighthouse attaches to.
    Tool: Lighthouse 13.6.0 node API, desktop-config.js as shipped (formFactor desktop, rttMs 40, throughputKbps 10240,
    cpuSlowdownMultiplier 1, mobile false, disableStorageReset false), performance only. Chrome for Testing 158.0.8127.36
    headless, 4-core cloud container. 5 runs per page; every run's finalDisplayedUrl is the requested page (not /login), the
    LCP element is page content, script requests carry transferSize above 0.

    Note: on this boot /_console/home lands on /_console/apps/com.example.showcase/page/showcase_capability_map and the
    list/record URLs redirect to /apps/com.example.showcase/... (the app's package id), same pages as the baseline.

    Reading (ms)

    Page Runs Median Dev baseline (#37398) Threshold
    Home 3639, 3626, 3538, 3509, 3685 3626 3557 2500
    Object list 4595, 4611, 4483, 4664, 4771 4611 4625 2500
    Record page 4223, 4238, 4285, 4168, 4188 4223 4175 2500

    The production build changes nothing material: all three still miss, by 45% / 84% / 69%.
    Even the login page (an unauthenticated run) reads 2.85–2.90 s.

    Where the time goes

    Counterfactual runs (same pages, 2 runs each, one throttling knob changed):

    Page As shipped Bandwidth unlimited (RTT 40) RTT 1 ms (10 Mbps)
    Home 3626 1678–1763 2570–2778
    List 4611 2367–2516 3534–4092
    Record 4223 2050–2051 3009–3360
    • Bytes are ~2 s of every page: 2.2–2.7 MB transferred before LCP; 1,951 KB of it is the eager JS closure, the same
      120 chunks on every page (the login page included). Largest eager chunks (gzip): vendor-objectstack 684 KB
      (@objectstack/spec zod modules — view/dashboard/object/flow/action — plus formula and client), ui-components 351 KB,
      index 131 KB, framework 89 KB, vendor-react 80 KB, i18n-locale-en 71 KB, vendor-radix 58 KB.
      A probe build marking zod builder calls pure (treeshake.manualPureFunctions: ['z']) saved only 13 KB: the spec code in
      the eager closure is reached, not dead, so it only shrinks by changing what the shell imports eagerly.
    • Route lazy JS before LCP: list +491 KB (plugin-grid 192, i18n-ns-studio-en 69, plugins-views 59, ObjectView 33);
      record +388 KB (plugin-grid 192, i18n-ns-studio-en 69, RecordDetailView 35).
    • Round trips ~0.5–1 s: after the JS lands (~0.7 s observed), the list's data request is issued only after about seven
      serial API rounds (permissions/i18n/org → meta/app → me/apps + meta/object → app bundle + localization → agents +
      meta/view → personal_view → data), observed at 2.27 s.
    • Main thread: script evaluation 1.1 s (home) to 1.8 s (list, record), mostly attributed to vendor-react (render work);
      observed (unthrottled, local) LCP is already 2.0 / 2.6 / 2.5 s.

    Even with unlimited bandwidth the list page sits at ~2.4–2.5 s, so no single seam gets all three pages under 2.5 s.

  6. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Correction · card thread of seat 2 · 2026-11-26T22:23Z. Correction to the production reading above (comment 7193730951), plus a reading over HTTP/2.

    Correction. The line "round trips ~0.5–1 s … about seven serial API rounds before list data" was measured in wall-clock time in a real browser. It is not part of the Lighthouse reading.

    • The desktop preset simulates throttling, and its dependency graph does not treat a fetch() answer as an edge.
    • On the list page, +1500 ms on the one API round that actually holds the data request moved observed LCP by +1.2 s. The Lighthouse median went 4719 → 4621.
    • Only one API round after the JS lands holds the list's data (permissions, organization list and auth config, already sent in parallel).

    Details are on #37574, closed as not planned for this reason.

    HTTP/2 reading. Same tree (9476092c), same server and Console build, same Lighthouse desktop preset. The only change is that requests go through a local HTTP/2 TLS front. The control row uses the same front with Chrome's HTTP/2 turned off, so the proxy hop is in both rows. Brotli bytes pass through unchanged.

    Page HTTP/2 (5 runs) Median HTTP/1.1, same front (3 runs) Median
    Home 2166, 2383, 2297, 2353, 2237 2297 3691, 3662, 3689 3689
    Object list 2686, 2875, 2683, 2837, 2878 2837 4788, 4748, 4899 4788
    Record page 2685, 2586, 2692, 2678, 2788 2685 4491, 4309, 4296 4309
    • The protocol accounts for 1.4–1.9 s of every page's reading. The earlier readings were all taken over plain-HTTP localhost, which is HTTP/1.1. The simulation charges each of the list's ~150 script requests a round trip on six connections there, and multiplexes them over HTTP/2.
    • Over HTTP/2, home already passes 2500 ms. The list misses by ~340 ms and the record page by ~185 ms.
    • Script bytes before LCP are unchanged (1923 / 2274 / 2179 KB).

    What this means for the remaining slices.

  7. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Reading protocol · card thread of seat 2 · 2026-11-26T22:27Z

    From now on, this card's LCP acceptance reading is taken over HTTP/2 TLS, and the HTTP/1.1 numbers are listed beside it as a control.

    Why: a real deployment serves the Console over TLS, which is normally HTTP/2. The earlier readings were taken on plain-HTTP localhost, which is HTTP/1.1. There, Lighthouse's simulation charges each of the ~150 script requests a round trip on six connections, and that adds 1.4–1.9 s per page that a deployed Console does not pay (comment 7204645317).

    Method: the #37444 method unchanged, with the production server behind a local HTTP/2 TLS front. The HTTP/1.1 control uses the same front with Chrome's HTTP/2 turned off, so the proxy hop is in both rows.

    HTTP/2 baseline at 9476092c: home 2297, list 2837, record 2685 ms. Next slice: #37575 (render CPU).

  8. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Ruled · 2026-11-26T23:54Z — acceptance of this card amended (adds a condition to threshold ruling 7178954860 on #35212; follows the protocol finding in 7204645317)

    The maintainer (Sales) answered 「同意」 (2026-11-26 23:53Z) to: first-screen LCP readings are taken over HTTPS with HTTP/2, written into this card's acceptance, and the deployment docs state that HTTP/2 is the recommended setup. Reason as put to the maintainer: hosted and production deployments serve HTTP/2; on plain-HTTP HTTP/1.1 the ~150 script requests queue on six connections, about 1.5 s a user on a real deployment does not meet.

    Done when (replaces the card's section of that name): on a production build served over HTTPS with HTTP/2, under the other conditions of ruling 7178954860 (cold cache, signed in, desktop Chrome, Lighthouse desktop preset, median of 5), the median LCP is at most 2500 ms on home, an object list and a record page. Each reading names its protocol; an HTTP/1.1 reading is a control only. The run is recorded against ux-conventions.first-screen-lcp, whose steps carry the protocol condition.

    Reading at that condition (local HTTP/2 TLS front, production build): home 2297 ms (passes), list 2837 ms, record 2685 ms. List and record still miss by about 0.2–0.3 s; slices continue in #37575 and #37572.

  9. 10 remaining items

  10. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  11. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibxzGFPvShbd2qnkdEv
    os-dev-report

    Read at 2026-11-29T01:44Z

    PR 1 (#38429, head bd4f2071) on its own build: the object list drops 96 ms (2647 → 2551, p 0.03) and is still 51 ms over 2500. The record-page +50 ms from the probe does not hold: +34 ms over 20 vs 20, p 0.30, and 0 ms in the reversed round. Home reads +35 ms, p 0.33.

    page main median LCP (ms) PR median LCP (ms) delta permutation p PR vs 2500
    home (10 vs 10) 2080.5 2115.5 +35 0.33 under
    object list (10 vs 10) 2647 2551 −96 0.03 over by 51
    record (20 vs 20) 2444.5 2478.5 +34 0.30 under (22 to spare)

    List route, scripts fetched before the first screen (one full Lighthouse run per build): main 274 scripts, 2403.9 KB gzip as served; PR 225 scripts, 2232.3 KB. That is 49 fewer scripts and 171.6 KB less gzip. Counted from the dist's .br files it is 188 KB less brotli (2060.3 → 1872.1 KB). The chunks that left include i18n-ns-studio-en 69.5 KB, SchemaForm 36.8 KB, PackagesPage 15.7 KB, metadata-admin/i18n 10.2 KB, CelPredicateField, PackageFormDialog, PackageCreateAsk, ViewConfigPanel, ViewVariantInspector, CreateViewDialog, RuntimeDraftBar and metadata-form-i18n (gzip sizes). Home and record fetch the same script count on both builds (167 and 206).

    {
      "issue": 37444,
      "status": "done",
      "branch": "claude/project-thread-kz8j47",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38429",
      "session": "session_01L9qibxzGFPvShbd2qnkdEv",
      "premise_still_valid": true,
      "summary": "PR 1 per claim 7248103031. Part of #37444, so the card stays open. objectViewViewCrud.tsx and objectViewViewSharing.ts no longer import metadata-admin/PackageCreateAsk or metadata-admin/i18n as values: the package ask mounts a lazy dialog on the first ask and keeps it mounted, and a refused view create loads its words on the refusal. ObjectView.tsx mounts ViewConfigPanel and CreateViewDialog the first time each opens. The list improves 96 ms but stays 51 ms over the threshold, so a second cut is owed after a claim amendment.",
      "tests": "cd ui && pnpm exec vitest run on 23 affected app-shell files: 265/265 passed (lock VERDICT exit 0). That covers the new pin objectViewListRoute.deferredAuthoring-37444.test.tsx (3 cases) and the ObjectView, ObjectDataPage, viewSharing, viewCrud and PackageCreateAsk tests. Two existing tests read a closed panel's props and now open it first (35974, 10210). Ablation, committed first, then scripts/ablation-replace.mjs on objectViewViewCrud.tsx: the type-only PackageCreateAsk import was made a value import of PackageCreateAskDialog. Cases 1 and 2 went red (packageAsk 0 -> 1) and case 3 stayed green: 2 failed, 1 passed. Restored with blob == HEAD and git diff HEAD empty. Not separately pinned: CreateViewDialog's render deferral (only its import-time module load is pinned). ViewConfigPanel's render deferral is pinned by the 35974 personal-view case.",
      "gates": "dispatch-gates --commands: 38 derived, all 38 exit 0 (codes captured before any pipe). --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN, exit 0. --tier: no path-derived mandate (default tier, opus); 356 changed lines, under 3000. overlap-check: merges cleanly onto origin/main 3579cf13, VERDICT clean. eslint on the 6 changed files: 0 errors. PR check-runs on bd4f2071: 51 runs, every one success or skipped, none failed. Success includes Test UI (16 shards), Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, PR-body guards, Governed Surface Queue Guard and the Lint/Type Check lanes.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "read-only: mcp__github__issue_read and mcp__github__pull_request_read (get_check_runs); no MCP write tool",
      "api_writes": "3 — git push of claude/project-thread-kz8j47; relay pr_create (fleet-write run 46208793024; read-back 5587/5587 bytes identical, assignee os-tesla); this os-dev-report. A relay body patch on #38429 follows to fill Verification",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: Console list toolbar Settings opens the view config panel on the first grid view ('all'), not on the view that is open · evidence: unit level only (the 10210 fixture), not reproduced in a browser · dedupe words: toolbar settings first view, view config panel wrong view",
        "carrier: PR #38429 Acceptance notes · noted, not filed"
      ]
    }
    Method and runs

    Method: the card's, as in 7245504380 and the pre-claim report. Production builds (pnpm build + pnpm console:build), objectstack start with NODE_ENV=production and sqlite, behind a local HTTP/2 TLS front. Lighthouse 13.6.0 desktop-config unchanged (simulated throttling, storage reset on), signed in through the Console login form in the same Chrome. Chromium 1243 headless, shared 4-core container. Main is ff69bcab's build; git diff ff69bcab 35114325 -- ui packages is empty, and 35114325 is the PR's merge base. Blocks ran back to back: main-1, pr-1, pr-2, main-2, 5 runs per page each. The record page got a reversed round on top (pr-3, main-3, main-4, pr-4). All 80 reports served the document and every script over h2, ended on the requested page, and recorded no runtime error. The runs held the verify lock (1785 s), which excludes other locked runs but not unlocked sibling work. p is a two-sided permutation test on the median difference, 20,000 shuffles.

    Block medians: list main 2649 / 2645, PR 2556 / 2491. Record main 2501 / 2427 / 2475 / 2464, PR 2486 / 2470 / 2476 / 2463. Home main 2107 / 2069, PR 2167 / 2098.

    Runs (ms, block.run):

    • main home: 1.1=2107 1.2=2032 1.3=2273 1.4=2156 1.5=2087 2.1=2054 2.2=2069 2.3=2057 2.4=2156 2.5=2074
    • pr home: 1.1=2072 1.2=2170 1.3=2108 1.4=2192 1.5=2167 2.1=2082 2.2=2098 2.3=2123 2.4=2142 2.5=2060
    • main list: 1.1=2587 1.2=2798 1.3=2649 1.4=2770 1.5=2513 2.1=2720 2.2=2645 2.3=2664 2.4=2616 2.5=2559
    • pr list: 1.1=2572 1.2=2562 1.3=2556 1.4=2454 1.5=2546 2.1=2722 2.2=2599 2.3=2472 2.4=2491 2.5=2423
    • main record: 1.1=2371 1.2=2409 1.3=2514 1.4=2501 1.5=2503 2.1=2432 2.2=2366 2.3=2452 2.4=2427 2.5=2349 3.1=2513 3.2=2475 3.3=2484 3.4=2389 3.5=2437 4.1=2487 4.2=2486 4.3=2464 4.4=2381 4.5=2335
    • pr record: 1.1=2482 1.2=2486 1.3=2406 1.4=2513 1.5=2496 2.1=2470 2.2=2397 2.3=2424 2.4=2518 2.5=2501 3.1=2394 3.2=2476 3.3=2481 3.4=2539 3.5=2341 4.1=2514 4.2=2485 4.3=2399 4.4=2463 4.5=2416

    Home and record lean slightly higher on the PR in both the probe and this reading (home +22 then +35, record +50 then +34). Neither is significant here, and neither page loads different code apart from chunk hashes. I cannot explain the lean. The record's reversed round reads 2469.5 on both arms.

    Next: the list is still 51 ms over. The second-cut candidates are in the pre-claim report (plugin-form off the list route, the pre-LCP requests, splitting plugins-views), none measured. They wait for the seat's claim amendment.

  12. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
    2026-11-29T01:48Z

    L1-a: ACCEPT for PR #38429 (Part of #37444) at bd4f20712f125e57545bf16ae26fc9f1eab2d39f.

    Scope. 7 files, all in ui/packages/app-shell/src/views/ plus the changeset, and all inside claim 7248103031 (PR 1, the list-route cut). The relation is Part of, which is right: the list page still reads 2551 ms against the 2.5 s bar, so the card stays open and keeps pm:dispatched.

    Clause-②: no holds.

    • @object-ui/app-shell is private. No export, prop or option of a published package moves.
    • PackageCreateAskDialog, PackageAskRequest, runtimeCreateRefusalText, designerLocaleOf and loadStudioCatalogue were all exported at the merge base 35114325. The PR only imports them, lazily, plus one type-only import.
    • @object-ui/i18n/namespaces/studio was already a subpath in that package's exports.
    • reportViewNotSaved is a module export inside the private package. objectViewViewSharing.ts now reuses it, and there is no import cycle back.
    • Metadata-protocol: none is right, and no face applies. This is L1 only, and no contract review is owed.

    Changesets. One changeset, patch for @object-ui/app-shell and @objectstack/console. Patch is right: it is a perf change with no surface change. The console entry is the one that ships, because @objectstack/console is published and carries the built app-shell.

    Behaviour checked against the base.

    • useDeferredPackageCreateAsk keeps usePackageCreateAsk's promise contract line for line. A second ask() answers the first with null, an unmount answers an open ask, and onAnswer resolves and clears. The only change is that the dialog sits behind lazy() from the first ask on.
    • useOpenedOnce sets state during render and is gated by open && !opened, so the opening render already mounts the panel or dialog, and it stays mounted after.
    • useMetadataLocale used to start the Studio catalogue fetch on every list. reportViewNotSaved now loads that catalogue on the refusal, maps the language through designerLocaleOf, and falls back to the built-in English if the load fails. It still returns true synchronously, so callers keep their flow. The toast simply arrives after the strings do, as the changeset says.

    Evidence. The static-graph pin's ablation reds 2 of 3 cases. The third, CreateViewDialog's render deferral, is pinned only by its import-time load. The thread names that gap, and I accept it as a nit. The derived gates pass 38 of 38 with none NOT MEASURED. --tier gives the default, and the overlap check is clean. PR-build readings by the card's method: list −96 ms (p 0.03), record +34 ms (p 0.30, the reversed round reads 0), home +35 ms (p 0.33). Eager list scripts drop from 274 to 225, about −171.6 KB gzip.

    CI at this head: 39 success, 15 expected skips, 0 failed. 1 run is pending: Check Changeset, re-fired. Landing waits on it.

    K = 8 against a hold of 15. main is at 0c1b2ffe, 8 single-parent commits past the merge base 35114325. The landing-k reader answers CAN'T ANSWER here, because a ui-only PR runs no Test Core shard. So this count was read from the compare instead.

    The toolbar Settings finding does not get its own card now. At this head the console cannot reach it. handleViewAction('settings', viewType) does pick the first view of that type, so it switches away from the open view, and that has been true since before this PR. But the only button that calls it is a viewActions entry of plugin-view's ViewSwitcher. That switcher draws only when showViewSwitcher === true, and the console's object-view schema (objectViewPluginSchema.ts:98) passes viewActions without ever setting that flag. So no user can hit it. A card would fail the filing business test. If a later change draws that switcher in the console, the defect becomes real and is worth filing then.

  13. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibxzGFPvShbd2qnkdEv

    Read at 2026-11-29T04:21Z

    Second-cut candidates, measured on main 1afd9c13 (#38429 merged) with local probes only, nothing pushed. Main's list page reads 2521.5 ms (20 runs), right at the line. Taking plugin-form off the list route is the one candidate with a significant effect: −54 ms (p 0.014, 20 vs 20), bringing the list to 2467.5. The smallest set that clears 2.5 s is that cut alone. Deferring the background reads (−19, p 0.15) and splitting plugins-views (−13.5, p 0.78) do not show a significant effect here. Adding the deferred reads to the plugin-form cut did not help: 2492, p 0.22.

    candidate (probe) bytes off the list page before first screen list LCP median vs main p runs probe diff est. lines for the real change
    A. plugin-form off the list route −45.6 KB gzip (2231.7 → 2186.1 KB); 225 → 224 scripts 2467.5 vs 2521.5, −54 0.014 20 vs 20 2 files, +8/−4 ~120–180 with tests and changesets
    B. background reads after the first screen 0 bytes; it moves about 9 requests (first-run checklist settings, approvals, notifications, inbox, the user's language column, locales) later 2502.5 vs 2521.5, −19 0.15 20 vs 20 (30 vs 30: −25) 2 files, +7/−3 (2 s timer) ~200–300 (needs a real "first screen done" signal)
    C. split plugins-views (settings popover body, phone panels, filter field list and value panel, gallery) −14.1 KB gzip on plugins-views (60.0 → 46.0 KB); 225 → 221 scripts 2480 vs 2493.5, −13.5 0.78 10 vs 10 5 files, stubbed out ~600–900, mostly moved code, in published plugin-list
    A + B −45.6 KB 2492 vs 2521.5, −29.5 0.22 20 vs 20 4 files —

    What each probe found:

    • A. plugin-view's ObjectView imports ObjectForm statically, which puts plugin-form (45.6 KB) on the list route. Making that import lazy is not enough on its own. The console's AppContent also mounts a closed LazyModalForm on every object page, because formObjectDef is set whenever an object is open, so the form chunk was still fetched at about 2.0 s. That is the same closed-mount pattern perf(app-shell): an object list loads the package ask, the view settings panel and the create-view dialog only when opened #38429 fixed. The probe does both:

      • a lazy ObjectForm in plugin-view, drawn inside the sheet or dialog that already mounts its content only when open;
      • the record-form modal mounted the first time it opens.

      With both, the list fetches no plugin-form chunk (one diag run per build). The real change touches @object-ui/plugin-view (published, patch) and @object-ui/app-shell. A user sees a short wait the first time a create or edit form opens on a list.

    • B. All of these reads already wait for the boot splash to leave (useAfterFirstPaint / whenBootPainted). On a list the splash leaves long before the grid's rows arrive, so they go out at about 1.9 s, alongside the list's own data request. The probe holds them a fixed 2 s past the splash. That lands them near the list's LCP, so this measures a poor version of the idea, and the A+B arm may suffer from the same collision. A real change needs a signal for "the route's first screen is drawn" (for example the first data commit of the list, record or home body). I have not designed or measured one.

    • C. Per-module attribution from a sourcemapped build shows the parts not drawn on a desktop grid's first screen. The settings popover body is 9.7% of the chunk, the phone panels 6.1%, the filter field list and value panel 6.9%, and the gallery 4.7%; ListView.tsx itself is 39.5%. The probe stubs those parts out, so its −14 KB is the ceiling of a split. The LCP effect is within noise.

    Not a candidate, but read: /api/v1/ai/agents goes out at about 1.5 s from plugin-chatbot-core, ungated by the paint signal (0.1 KB).

    Method and noise

    Same instrument as 7248989586: production console:build per probe, served by objectstack start (NODE_ENV=production, sqlite) behind the HTTP/2 TLS front. Lighthouse 13.6.0 desktop-config unchanged, signed in through the login form. Chromium 1243 headless, shared 4-core container, verify lock held. Blocks of 5 list runs per arm, interleaved with the order reversed every round:

    • round 1: main, A, B, C, then C, B, A, main;
    • round 2: main, A, B, A+B, then reversed;
    • round 3: reversed first, then forward.

    All 120 reports served the document and every script over h2, landed on the list, and recorded no runtime error. p is a two-sided permutation test on the median difference, 20,000 shuffles.

    Round 1's A probe lacked the AppContent half: it still fetched plugin-form and is excluded from A's rows (it read −30, p 0.52). Main's block medians across the three rounds run 2478 to 2551, so a single 10-run reading of this page moves about ±40 ms. Main is 2493.5 in round 1, 2512.5 in round 2 and 2550 in round 3. The PR build's 2551 in 7248989586 is inside that band.

    Probe diffs, raw rows, scripts and the initiator tracer: /mnt/project-files/card-37444/second-cut-probes/. The initiator stacks come from CDP Network.requestWillBeSent with async stacks on.

    Proposal for the claim amendment: PR 2 is candidate A only, Part of #37444. It makes ObjectForm lazy in plugin-view and mounts the record-form modal in AppContent on first open. It adds a pin that the list route evaluates no plugin-form module, with ablation. Expect about 150 lines. Re-read all three pages on its PR build. If the list clears 2500 with margin there, the card can close on that reading. If it does not, B with a real first-screen signal is the next measurement. C is not worth its size.

  14. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    2026-11-29T04:22Z · Claim amendment 1 to 7248103031, after PR 1 (#38429, merged 02:13Z) and the second-cut reading 7250610022 (main 1afd9c1, local probes only).

    Seat ruling: PR 2 is candidate A only, Part of #37444.

    • What it does: keep plugin-form off the object list route. Both halves of the probe: plugin-view's static ObjectForm import becomes a deferred load, and AppContent's closed LazyModalForm on every object page mounts only when opened, the same pattern perf(app-shell): an object list loads the package ask, the view settings panel and the create-view dialog only when opened #38429 fixed. Probe reading: list −54 ms (p 0.014, 20 vs 20), 2521.5 → 2467.5 ms, −45.6 KB gzip.
    • B (background reads after the first screen) and C (splitting plugins-views) are not in PR 2. C is refused for this card: 600–900 lines in published plugin-list for −13.5 ms (p 0.78). B is the next measurement only if PR 2's reading does not clear the line with margin, and it then needs a real "first screen drawn" signal rather than a timer.
    • File surface (PR 2): ui/packages/plugin-view/src/** (the ObjectForm import site and its pin), ui/packages/app-shell/src/** (the AppContent closed-mount site and its pin), .changeset/*.md (patch, @object-ui/plugin-view and @object-ui/app-shell). About 150 lines with a static-graph or mount pin and its ablation.
    • Readings owed in the report: the PR build by the card's method on all three pages (list, record, home), at least 20 vs 20 on the list given the measured ±40 ms block noise; the list-route eager script count and gzip delta; the pin's ablation; the gates and derived gates.
    • Clause-②: no, unless the diff moves an export, prop or option of a published package; then stop and say so in the report.
    • Metadata-protocol: none. Skills-docs: none.
    • Review owed: L1-a; Tier S unless the final diff says otherwise.
    • Done-when stands: the card closes when the list clears 2.5 s with margin on the PR build; otherwise it stays open for the B measurement.
  15. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibxzGFPvShbd2qnkdEv
    os-dev-report

    Read at 2026-11-29T06:17Z

    PR 2 (#38486, head 6a6dc4b9) on its own build: the list fetches no plugin-form chunk (−45.4 KB gzip, 225 → 224 scripts) and reads −46.5 ms against main (2631 → 2584.5, p 0.22, 20 vs 20). The list does not clear 2500 on this reading, so the card stays open for B. The box read slower today than in the second-cut reading. Main 1afd9c13, the build that read 2521.5 there, read 2681.5 here, so the absolute level moved about 160 ms between sessions and the delta did not.

    page (20 vs 20) main 4d07ddbf median LCP (ms) PR median LCP (ms) delta permutation p PR vs 2500
    home 2160 2184.5 +24.5 0.41 under
    object list 2631 2584.5 −46.5 0.22 over by 84.5
    record 2533.5 2457 −76.5 0.0007 under (43 to spare)

    List route, one full Lighthouse run per build: main 225 scripts, 2231.5 KB as served; PR 224 scripts, 2186.1 KB. The chunk that left is plugin-form (45.8 KB). plugin-form-core (8 KB) stays, because other list code shares it. Home and record fetch the same script count on both builds (167 and 206), and the record page still fetches plugin-form for its own use (at about 1.4 s on both builds).

    Control, list only, 10 per arm, interleaved after the A/B: main 1afd9c13 2681.5, main 4d07ddbf 2672 (−9.5, p 0.81), PR 2600 (−81.5 vs 1afd9c13, p 0.09). The 6 commits between the two mains do not move the list. The box does. Pooling the A/B and the control gives 30 vs 30: main 2641, PR 2593.5, −47.5, p 0.11. The PR's third A/B block (2842) is its one high block, at 05:48–05:52Z. The lock excludes other locked runs, not sibling work.

    Reading against the done-when: the list does not clear 2.5 s on the PR build, with or without margin. The cut's effect is −46 to −81 ms across four readings (probe −54 at p 0.014), consistent in sign but not significant on its own build today. If the second-cut session's box level is right, the PR would read about 2470. That is under the line, but not with margin. Given the card's wording, I read this as "stays open for B".

    The record −76.5 ms (p 0.0007) is unexplained. The bytes, the script count and the time the plugin-form request starts all match on both builds. In PR 1's reading the record leaned +34 the other way. I would not count it as this PR's effect without another reading.

    {
      "issue": 37444,
      "status": "done",
      "branch": "claude/project-thread-kz8j47",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38486",
      "head": "6a6dc4b96363145f5f3ccb16ae4aff5d6c32379a",
      "session": "session_01L9qibxzGFPvShbd2qnkdEv",
      "premise_still_valid": true,
      "summary": "PR 2 per claim amendment 1 (7250623227), candidate A only, Part of #37444. plugin-view's ObjectView loads ObjectForm with React.lazy inside the drawer and modal that already mount their content on open. app-shell's AppContent mounts the record-form LazyModalForm the first render it is open (useOpenedOnce), and keeps it mounted after that. useOpenedOnce moved to app-shell/src/hooks/useOpenedOnce.ts, package-internal. The list stops fetching plugin-form (-45.4 KB gzip, 225 -> 224 scripts) and reads -46.5 ms (p 0.22). It does not clear 2500 on this reading (2584.5), so the card stays open for B under the amendment's done-when.",
      "tests": "Affected suite under the verify lock: 251 files / 2286 tests passed. New pins: plugin-view ObjectView.formLoadsOnOpen-37444 (1 case: drawing a list evaluates no plugin-form module; New loads it once in create mode) and app-shell AppContent.recordFormMountsOnOpen-37444 (2 cases: no form open = no module, no modal; ?form=new = loaded once, first render open). Three plugin-view tests (10976, 10885, ObjectView.test navigation drawer) now wait for the async form. Ablation, committed first, scripts/ablation-replace.mjs, re-run on 6a6dc4b9: (1) AppContent gate removed -> both AppContent cases red (loads.form 1, expected 0); (2) the lazy const replaced with the static import -> the plugin-view case red (expected 1 to be +0). Both restored, blob == HEAD, git diff HEAD empty.",
      "gates": "dispatch-gates --commands: 38 derived. The first pass had 2 reds on the new AppContent pin. check:test-source-alias wanted a module-top import of @objectstack/lint (now added). vitest run scripts/ went red on check-vi-mock-inherit, because the counted plugin-form factories did not spread importOriginal (both now do). Fixed, pins and both ablations re-run, then those two re-run green (scripts/: 172 files passed). --ran: 38 derived, 38 run, 0 NOT-MEASURED. --tier: no path-derived mandate; 311 changed lines, under 3000. overlap-check vs origin/main 430bbbf1: merges cleanly. eslint on the changed files: 0 errors. PR check-runs on 6a6dc4b9: 52 runs, none failed (Test UI 16 shards, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI and the repo gates success; the rest skipped).",
      "clause_2": "no — no exported shape, prop or option moved; useOpenedOnce is not exported",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "read-only: mcp__github__pull_request_read (get_check_runs); no MCP write tool",
      "api_writes": "3 — git push of claude/project-thread-kz8j47; relay pr_create (fleet-write run 46229394132; read-back 5779/5779 bytes identical, assignee os-tesla); this os-dev-report. A relay body patch on #38486 follows to fill Verification",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: c · reach: the card's LCP instrument — the same build (main 1afd9c13) read 2521.5 ms at 04:0xZ and 2681.5 ms at 06:1xZ on this shared container, so an absolute 'clears 2500' verdict depends on box state more than the cut sizes do · evidence: this control vs reading 7250610022 · dedupe words: LCP absolute drift, shared box, done-when threshold · carrier: this report, noted, not filed"
      ]
    }
    Method and runs

    Same instrument as 7250610022. Production pnpm console:build per arm: main at the merge base 4d07ddbf, and the PR at 8233f34c. 6a6dc4b9 differs from 8233f34c only in the two pin test files. Served by objectstack start (NODE_ENV=production, sqlite) behind the HTTP/2 TLS front. Lighthouse 13.6.0 desktop-config unchanged, signed in through the login form. Chromium 1243 headless, shared 4-core container, verify lock held (1904 s for the A/B, 594 s for the control). Each block is 5 runs per page, with list, record and home in every block. Blocks were interleaved: main-1, PR-1, PR-2, main-2, then PR-3, main-3, main-4, PR-4. Control: main1afd-1, main-1, PR-1, PR-2, main-2, main1afd-2, list only. All 150 reports served the document and every script over h2, ended on the requested page, and recorded no runtime error. p is a two-sided permutation test on the median difference, 20,000 shuffles.

    Runs (ms, block.run):

    • main list: 1.1=2656 1.2=2685 1.3=2546 1.4=2528 1.5=2579 2.1=2580 2.2=2674 2.3=2534 2.4=2648 2.5=2708 3.1=2646 3.2=2537 3.3=2539 3.4=2709 3.5=2626 4.1=2719 4.2=2853 4.3=2636 4.4=2507 4.5=2590
    • PR list: 1.1=2501 1.2=2479 1.3=2593 1.4=2576 1.5=2605 2.1=2536 2.2=2520 2.3=2556 2.4=2573 2.5=2569 3.1=2915 3.2=2847 3.3=2644 3.4=2566 3.5=2842 4.1=2675 4.2=2602 4.3=2610 4.4=3022 4.5=2529
    • main record: 1.1=2498 1.2=2573 1.3=2657 1.4=2556 1.5=2394 2.1=2476 2.2=2552 2.3=2777 2.4=2512 2.5=2649 3.1=2492 3.2=2586 3.3=2533 3.4=2513 3.5=2530 4.1=2489 4.2=2756 4.3=2548 4.4=2534 4.5=2490
    • PR record: 1.1=2406 1.2=2425 1.3=2446 1.4=2441 1.5=2440 2.1=2435 2.2=2537 2.3=2564 2.4=2527 2.5=2503 3.1=2537 3.2=2534 3.3=2443 3.4=2406 3.5=2498 4.1=2393 4.2=2559 4.3=2435 4.4=2613 4.5=2468
    • main home: 1.1=2116 1.2=2172 1.3=2124 1.4=2116 1.5=2087 2.1=2268 2.2=2147 2.3=2132 2.4=2162 2.5=2065 3.1=2230 3.2=2237 3.3=2216 3.4=2117 3.5=2194 4.1=2232 4.2=2177 4.3=2286 4.4=2115 4.5=2158
    • PR home: 1.1=2115 1.2=2327 1.3=2206 1.4=2147 1.5=2148 2.1=2277 2.2=2135 2.3=2159 2.4=2151 2.5=2225 3.1=2154 3.2=2186 3.3=2205 3.4=2224 3.5=2183 4.1=2154 4.2=2229 4.3=2145 4.4=2305 4.5=2186
    • control main 1afd9c13 list: 1.1=2576 1.2=2832 1.3=2737 1.4=2931 1.5=2687 2.1=2676 2.2=2610 2.3=2710 2.4=2526 2.5=2664
    • control main 4d07ddbf list: 1.1=2675 1.2=2792 1.3=2746 1.4=2537 1.5=2597 2.1=2702 2.2=2669 2.3=2608 2.4=2698 2.5=2635
    • control PR list: 1.1=2646 1.2=2594 1.3=2700 1.4=2571 1.5=2623 2.1=2537 2.2=2511 2.3=2559 2.4=2674 2.5=2606

    Block medians, list: main 2579 / 2648 / 2626 / 2636; PR 2576 / 2556 / 2842 / 2610. Rows, scripts and the gate record: /mnt/project-files/card-37444/pr2-reading/.

    Next, per the amendment: B (background reads after the first screen) needs a real "first screen drawn" signal, and it read −19 ms (p 0.15) as a 2 s-timer probe. Given today's drift, any next reading should run main 1afd9c13 as a fixed control arm, so that a box-level shift is visible in the same session.

  16. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
    Release: seat repo:objectstack#3 hands this card to seat 5 for review and landing, at 2026-11-29T06:18Z.
    Ruling-ref: Tesla 2026-11-29 04:59:05Z 「当前开发处理完提交后就可以交接给 5号座位」 and 05:00:26Z 「你开发中的提交代码之后就可以交接给5好审核落地了。」 (seat post 7250995384)
    Resume-from: claude/project-thread-kz8j47@6a6dc4b96363145f5f3ccb16ae4aff5d6c32379a

    State at release:

  17. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 29, 2026
  18. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5pH8MaBBP5T2dVcTHL
    Claim: PM loop round 3 · 2026-11-29T06:29Z · review and landing of PR 2 #38486 only (no new code), on seat 3's Release 7251782227
    Session: session_01FEkQ5pH8MaBBP5T2dVcTHL
    Account: os-project-manager
    Branch: claude/project-thread-kz8j47 (Resume-from @6a6dc4b963, PR #38486)
    Worktree: none — no dev dispatched; any rework goes to an os-dev on this branch
    Domain: domain:ui
    Seat: repo:objectstack#5
    Area: o5-ux
    File surface: the 10 files PR #38486 touches at 6a6dc4b: ui/packages/app-shell/src/console/AppContent.tsx, ui/packages/app-shell/src/views/ObjectView.tsx, ui/packages/app-shell/src/hooks/useOpenedOnce.ts, ui/packages/plugin-view/src/ObjectView.tsx, their *-37444 test files and four plugin-view ObjectView tests, .changeset/37444-list-route-defers-form.md. Nothing wider.
    Container & model: S, mode:subagent, model: opus (dispatch-gates --tier on the surface: "no path-derived mandate" ⇒ default), effort: medium (rework only, if L1-b asks)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — performance card (LCP), not a defect
    Thread-read: 7251782227
    Premise: holds — Release 7251782227: PR 1 #38429 merged; PR 2 #38486 green at 6a6dc4b (41 success, 0 failed); list still above 2.5 s ⇒ card stays open after PR 2 for candidate B
    Prior rulings read: amendment 1 7250623227 (candidate A); Tesla 04:59:05Z / 05:00:26Z hand-over (seat post 7250995384); no ADR row on route-level form deferral
    Serial constraints cleared: check-handover --inflight reads OVERLAP with in-area #38392 (dir-level ui/packages/app-shell/src/) and #36496 (ui/packages/plugin-view/src/ObjectView.tsx): code already written, overlap-check clean against main and #38501, merge-tree clean against #36496's branch; the second to land merges main
    Pre-claim lane: area:ux · domain:ui (paths ui/packages/app-shell, ui/packages/plugin-view) · Bug · p2
    Pre-claim deps: PR 1 #38429 merged; no Blocked-by

  19. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 29, 2026
  20. objectstack-fleet commented on Nov 29, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-project-manager · session_01FEkQ5pH8MaBBP5T2dVcTHL
    Claim amendment 1 to 7251896581 · 2026-11-29T08:04Z · PR 2 #38486 merged 2026-11-29T07:13Z; the list still read above 2500 on its build (−46.5 ms, p 0.22), so by the done-when the card stays open for candidate B (amendment 7250623227).
    Session: session_01FEkQ5pH8MaBBP5T2dVcTHL
    Account: os-project-manager
    Branch: claude/issue-37444-first-screen-background-reads
    Worktree: objectstack-issue-37444
    Area: o5-ux
    File surface: none in this phase — a measurement-only os-dev (production build, request waterfall, a real first-screen signal, control arm 1afd9c13) writes no product code and pushes nothing. The obvious directories overlap in-flight claims #38506, #38045, #37087 and #36496, so the build is claimed with an exact file list in amendment 2, after the reading.
    Container & model: S, mode:subagent, model: opus (dispatch-gates --tier on the surface: "no path-derived mandate" ⇒ default), effort: high (reason: candidate B is a measurement-led design read — which reads can move after the first screen and what signal marks it drawn — not a mechanical change)
    Clause-②: no
    Metadata-protocol: none
    Premise: PR 2 reading 7251766050 (20 vs 20 vs main 4d07ddb): home 2184.5, list 2584.5, record 2457 ms; the list misses 2500; any next reading carries main 1afd9c13 as a fixed control arm (Release 7251782227)
    Prior rulings read: amendment 7250623227 (B needs a real "first screen drawn" signal, not a timer; C refused for this card); ruling 7178954860 on #35212 (the LCP threshold and method)
    Serial constraints cleared: PR 2 #38486 merged; check-handover --inflight on the directory surface reads OVERLAP (four in-area claims), hence the measurement-first phase; the build phase re-runs it on the exact list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:uxbugdomain:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions