Skip to content

Console first screen: about six serial API round trips (bundle before the first call, chained boot calls, lazy chunks before data, me/localization sent twice) make a hosted page take 2-3.5 s locally and 9-10 s on staging #35455

Closed
3 of 3 issues completed

Description

@objectstack-fleet

repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

Filing gate: ① a measured defect from step 1 of objectstack-ai/cloud#4563 (p1, maintainer-ruled grade: 「体验相关的优先级也要提升」). A page in a hosted environment takes 9–10 s to open fully. The chain lives in the framework console, not in cloud. Reader: the domain:ui lane; the objectstack fleet dispatches its own cards. Dedupe: console first screen serial, bootstrap waterfall, lazy chunk before data, get-session after localization, me/localization twice — no open card. objectstack#34207, #34208 and #34211 (the footer count probe, the explain probes, the deployment notice) have landed and are gone from the chain.

Consumer: objectstack-ai/cloud#4563 (its step 2 waits on this card).

Measured

Cloud main 8431db621, objectstack pin 1aac465fe1d0. Local prod-like stack in the hosted posture, a plain owner of a free-plan environment, Playwright Chromium with a cold context per run and a warm server, X-OS-Debug-Timing.

  • Setup overview: 2.2–3.4 s to the last API answer, 25 requests, 10–12 serial hops. Users list: 2.4–2.8 s, 28 requests, 9–13 hops. Environment home: 1.6 s.
  • Server runtime along the critical chain is only 0.36–0.73 s. For more than half of each page's span no API request is in flight.
  • The chain behaves like about six serial round trips: +150 ms of API round trip adds about 0.9 s to the page, and +300 ms adds about 1.8 s. Staging and production sit far from the user, which is how 2–3 s locally becomes 9–10 s there.

Items (one family card)

  1. The bundle before the first call. The first authenticated call waits 580–750 ms for the eager console bundle: 8 files, 2.92 MB raw / 751 KB br.
  2. Serial boot calls. runtime/config + discovery → me/localization → get-session → permissions / org / meta/app → meta/app/ID/bundle → packages → ai/agents → a lazy chunk → meta/view + data → meta/position → position and permission-set data. get-session waits for me/localization; bundle, packages and ai/agents run one after another before the view and data calls.
  3. Lazy chunks before data. Gaps of 100–490 ms where a lazy chunk loads before the view and data calls start. The data calls could start beside the chunk.
  4. Duplicate. GET /api/v1/auth/me/localization is sent twice: at layer 2, and again beside meta/object after the app loads.

Done when

A hosted page's critical path is at most about 3 round trips after the shell loads: the independent boot calls go in parallel and data starts beside the lazy chunk. me/localization is sent once. A test or reading pins the hop count.

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    bug
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · Impeded (a hosted page takes 9–10 s to open; about six serial round trips in the console boot chain) · end users, daily (every first screen) · measured on a prod-like stack → p1: objectstack-ai/cloud#4563 (p1, maintainer-ruled) waits on this card for its step 2, and a card blocking another repo's p1 takes that grade.

  3. added
    domain:ui
    pm:queue
    priority:p1
    on Nov 19, 2026
  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim: PM loop round 15 · area ux-2 (seat 5 13:06Z: ux-2 takes #35455 first; p1) · 2026-11-19T13:44Z
    Area: ux-2
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Branch: claude/issue-35455-console-boot-chain
    Worktree: objectstack-issue-35455
    Domain: domain:ui
    Seat: repo:objectstack#5
    Scope of this claim (slice 1 of a family card): measure the boot chain on origin/main, then fix item 4 (me/localization sent twice) and item 2's serial boot edges that need no contract change (e.g. get-session waiting on me/localization; bundle, packages and ai/agents one after another). Items 1 (eager bundle; overlaps #33581, a seat-held big card) and 3 (data beside the lazy chunk) are measured and reported, not fixed here; the area files them as child cards from the dev's readings. The PR uses Refs #35455, not Fixes, unless the dev's measurement shows the Done-when holds.
    File surface: the console boot path in ui/packages/auth/src/ (AuthProvider.tsx, createAuthClient.ts, createAuthenticatedFetch.ts), ui/packages/i18n/src/ (provider.tsx, LocalizationContext.tsx, useDisplayLocale.ts), ui/packages/types/src/http-inflight.ts, ui/packages/app-shell/src/ (console/ConsoleShell.tsx, hooks/useUserLocale.ts, and the app-load providers that issue bundle / packages / ai-agents), their tests, root .changeset/. ⛔ No packages/spec/**, no server or REST source, no new endpoint, no sharedUserFeeds.ts (PR #35519), no plugin-detail source (#35437), no new i18n key. Stop on breach and report.
    Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui auth, i18n and app-shell in objectstack order the console's boot calls; no platform path covers it; every console user on every first screen, worst in hosted environments (objectstack-ai/cloud#4563 step 2 waits on this card)
    Thread-read: 7006039384
    Premise: holds as filed (measured by the filer on cloud main 8431db621, objectstack pin 1aac465fe1d0: about six serial round trips, me/localization twice); dev re-measures on origin/main first
    Serial constraints cleared: no open PR touches the listed files (live read of all open PRs' files at claim time)
    Pre-claim lane: domain:ui (ui/packages/{auth,i18n,types,app-shell}/**)
    Pre-claim deps: none (#33581 overlaps item 1 only, which this slice does not fix)
    Prior rulings read: boot chain, me/localization, get-session, bundle → #34207/#34208/#34211 (probes removed from the chain, landed) and ruling 6999004977 on #34211 (page-load layer work measured by request layers) bind the measurement method; check-prior-rulings hits (ADR-0027 §12, ADR-0036 §1, ADR-0076 D10, ADR-0080 §2, ADR-0104 D2, ADR-0127 D6) are term matches, none rules on the boot order

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    os-dev-report

    {
      "issue": 35455,
      "status": "blocked",
      "branch": "claude/issue-35455-console-boot-chain",
      "pr": null,
      "head": "92121196 (branch pushed empty at origin/main; no commit of mine)",
      "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
      "premise_still_valid": true,
      "summary": "Stopped before any code under the dispatch fence: both fixes A2 asks for are issued from ui/apps/console, which the claim's file surface does not list. A1 was measured on origin/main 92121196 with the built console. Items 1, 3 and 4 reproduce. For item 2, get-session does wait on the language-seed race in the cold posture, but the bundle -> packages -> ai/agents chain is not a dependency chain: delaying each by 1.5 s moved nothing after it. The only in-surface code on the two cuttable paths is takePreflightSession in packages/auth createAuthClient.ts, and it does nothing without the console half. Nothing in app-shell is a cuttable edge. No PR. The fix design is below so a re-dispatch with an amended surface can start at once.",
      "blocked_on": "PM: amend the claim's file surface (or re-claim) to add ui/apps/console/src/languageSeed.ts, ui/apps/console/src/LocalizationFetchProvider.tsx, ui/apps/console/src/lib/auth-preflight.ts, ui/apps/console/index.html and their tests under ui/apps/console/src/ (main.tsx only if the seed moves to parse time). Every request on the two A2 paths is sent from there: seedTenantLanguage and LocalizationFetchProvider are the two me/localization senders, and the get-session wait is main.tsx's pre-mount Promise.all (initRuntimeConfig, preflightAuth, seedTenantLanguage) with AuthProvider asking only after mount. Can proceed without waiting: the A4 child cards for items 1 and 3 can be filed from the readings below, and so can the out-of-scope finding.",
      "fix_design_for_redispatch": [
        "Item 4 (one me/localization per cold load). fetchAndCacheSeed in languageSeed.ts keeps its settled answer in a one-shot module slot: authenticated answers only, with its request key (inflightGetKey of URL and init) and getSessionOwnerChangeCount at request time. LocalizationFetchProvider's boot read (userRowWrites === 0) takes it once when the key and owner count still match. Otherwise it calls sharedGetJson as today. The 503 retry policy, the re-read after a sys_user write, the seed-cache write and the answer itself are unchanged. Pins: 1 request per cold load. A signed-out answer or an answer from a changed owner is not handed over. CONTROL: a re-read after a row write still issues its own request.",
        "get-session edge (cold posture: no stored Bearer). index.html startEarlySessionCheck also sends the cookie-only get-session (credentials include, no Authorization header: the request AuthProvider's client sends). preflightAuth takes it and leaves the answer in the existing objectui.authPreflightSession slot with token null. takePreflightSession (packages/auth createAuthClient.ts, in surface) accepts a token-null slot only while no token is stored. Design point for the re-dispatch: also hand on a 200 no-user answer as signed out, or a signed-out visitor goes from 1 to 2 get-session requests. CONTROLs: a protected route still waits for the session answer, because AuthProvider isLoading stays true until it holds one. The mount still waits up to 500 ms for the seed race, so the locale applies before first paint exactly as now.",
        "Expected effect (not measured, no code): the cold list's dependency chain to first data goes from 7 hops to 6, because get-session joins L1. The 7 hops are parse-time reads, seed localization, get-session, meta/app, bundle, meta/view and data. me/localization goes from 2 to 1 on every load. Size estimate: 250-400 changed lines including pins, 6-8 files, under the 600-line split mark."
      ],
      "a1_readings": {
        "method": "Built console (turbo build of the showcase closure + @object-ui/console in this tree, packages/console/dist from build-dist.sh), served by objectstack dev --fresh from examples/app-showcase on private port 38455; headless Chromium 1440x900; signed in once via POST auth/sign-in/email; each load a NEW context. cold = session cookie only (no localStorage: no Bearer, no stored language, no seed cache -- the card's posture). warm = cookie + the sign-in Bearer in localStorage (PR 35304's posture). Resource Timing from navigation to networkidle + 3 s. Layer = 1 + deepest layer of any request that ENDED before it STARTED (chain depth, counts client render gaps too). Edges confirmed by delay probes: one API response held 1.5 s via route.fetch + fulfill, then read who moved.",
        "tree": "objectstack-ai/objectstack origin/main 921211960d2e (shared box: other agents' builds ran concurrently; times are shared-box ms)",
        "layer_table_before": {
          "list cold": "13 / 13 / 13 layers; me/localization 2/2/2; api requests 27/26/26",
          "record cold": "13 / 14 / 14 layers; me/localization 2/2/2; api 28/27/27",
          "list warm": "13 / 12 / 13 layers; me/localization 2/2/2; api 27/26/26",
          "record warm": "12 / 14 / 13 layers; me/localization 2/2/2; api 27/27/27"
        },
        "layer_table_after": "NOT MEASURED: no code under the fence",
        "cold_list_chain_with_edges": [
          "L1 runtime/config, discovery (parse time, index.html). In the warm posture get-session is here too (startEarlySessionCheck runs only with a stored Bearer).",
          "gap: eager bundle download + evaluate; first module-issued call at 503-790 ms (item 1)",
          "L2 auth/me/localization: seedTenantLanguage, first visit, raced at most 500 ms in main.tsx's pre-mount Promise.all",
          "L3 auth/get-session: AuthProvider after mount. Waits on the seed race through the mount gate, and uses nothing from its answer. Probe: localization held 1.5 s, get-session left at about race start + 500 ms + mount (891 -> 1487 ms). CUTTABLE.",
          "L4 me/permissions, i18n/translations, organization get-active-member + list, auth/config, meta/app, sys_user_preference: these wait on get-session (ConnectedShell session gate, AuthGuard). REAL auth dependency: kept. In warm the same group waits on the seed race instead (3/3).",
          "L5 auth/me/localization again: LocalizationFetchProvider mounts inside AppContent after the seed request has SETTLED. sharedGetJson shares in-flight requests only, so it asks again. DUPLICATE (item 4).",
          "L6 meta/object?package, me/apps, meta/app/APP/bundle: these wait on meta/app. REAL: the URL carries the package id and the bundle route takes the app name (the 34211 ruling context).",
          "L7 meta/object?names=sys_user, packages, ai/agents: one layer after the bundle. Probe: packages held 1.5 s, and neither ai/agents (2095 ms) nor meta/view (2576 ms) moved. ai/agents held 1.5 s, and meta/view did not move (2380 ms). names=sys_user held 1.5 s, and meta/view and data did not move. The card's 'bundle, packages and ai/agents one after another' is start-time stagger from render and chunk work on a fast local server, not a wait. Nothing to cut.",
          "L8 meta/view?object, sys_personal_view: these wait on the bundle (probe: bundle held, and all of them left 13-366 ms after it answered), then on a 693-845 ms post-bundle chunk/render gap with no request in flight (item 3)",
          "L9 data/showcase_task: waits on meta/view. REAL: select and sort come from the view.",
          "tail: data/sys_notification_receipt; on 4 of 8 list loads an identical data/showcase_task read 149-378 ms later (see out_of_scope_findings)"
        ],
        "item_verdicts": {
          "1_eager_bundle": "CONFIRMED. The first module-issued call (me/localization) leaves at 503-790 ms on all 12 loads. Before it the page fetched 105 JS files: 6.57 MB raw / 1.59 MB br, sizes read from packages/console/dist. That is the entry plus its static-import wave at about 160 ms. The card's 8 files / 2.92 MB counts a different cut.",
          "2_serial_edges": "PARTLY. get-session -> me/localization is confirmed in the cold posture (3/3 list, 3/3 record). With a stored Bearer, get-session leaves at parse time and the L4 group waits on the seed race instead. bundle -> packages -> ai/agents is REFUTED as a dependency (delay probes above). The other edges are real data or auth dependencies.",
          "3_lazy_chunk_before_data": "CONFIRMED as a gap. From bundle answered to meta/view leaving: list 693/845/763 ms cold and 774/786/842 ms warm; record 523/499/439 ms cold. The plugin-view, plugins-views, plugin-form and plugin-list chunks load in it, and no request is in flight. The record page's own data read (data/OBJ/ID/page) already leaves before meta/view.",
          "4_localization_twice": "CONFIRMED, 12/12 loads in both postures. Control: with the seed's response held 1.5 s the two overlap, sharedGetJson joins them, and the count is 1. The duplicate is settle-then-re-ask, not two parallel callers."
        }
      },
      "a3_pins": "NOT MEASURED: no code. Pins planned in fix_design_for_redispatch.",
      "a4_not_fixed": {
        "item_1": "Gap: first module-issued call at 503-790 ms after navigation, after 105 eager JS files (6.57 MB raw / 1.59 MB br). Cause: ui/apps/console/src/main.tsx's static imports: register-plugins.ts, which imports @object-ui/plugin-grid and plugin-detail eagerly; the register*Components modules; and the @object-ui/app-shell entry. Their whole closure must download and evaluate before the first fetch the module code makes. Sketch: two halves. (a) Cheap: start the seed's me/localization at parse time in index.html, beside get-session and discovery (startEarlyDiscovery's pattern; it needs discovery's locale.supported, which is already a parse-time request), and have seedTenantLanguage take it. That takes the language read off the bundle wait: about 100-150 lines plus a pin in sessionCheckBootDedup.test.tsx. (b) Large: shrink the eager closure (plugin-grid and plugin-detail behind registerLazy, the app-shell entry split). That half overlaps #33581, which already holds plugin-grid, plugin-form and RecordDetailView: estimate 300-800 lines, owned there.",
        "item_3": "Gap: from the bundle answering to meta/view leaving takes 693-845 ms on the list page and 439-523 ms on the record page, with no request in flight. Cause: the view read is issued from inside ui/packages/app-shell/src/views/ObjectView.tsx (a routeChunk.lazy route chunk in console/AppContent.tsx), only after the post-bundle render and the plugin-view / plugins-views / plugin-list / plugin-form chunks. Sketch: start meta/view?object=OBJECT from the route level as soon as appObjectScope has the bundle and the route's object, into the MetadataProvider / adapter cache that ObjectView joins on mount. It then runs beside the chunk loads. The first list data page still needs the view (select and sort), so data moves up by the same amount but stays one hop behind the view. Estimate 150-300 lines in app-shell plus one pin that the view read is issued while the chunk import is pending."
      },
      "tests": "None run: no code change. Readings and probes: scratchpad issue-35455/measure.mjs over the built console, 3 loads x 2 pages x 2 postures (before-cold.txt, before-warm.txt, reading-before-*.json) plus 6 single-load delay probes.",
      "gates": "None owed: empty diff (no files changed), so dispatch-gates --commands derives nothing; no PR, so there are no check-runs. Build for the reading: os-verify-lock VERDICT command-exit 0, held 735 s, turbo 101/101 tasks successful (3 cached). A first attempt was VERDICT queue-timeout exit 99 (NOT MEASURED, re-queued under the same slot). pnpm console:build was VERDICT queue-timeout exit 99. The dist was copied with build-dist.sh from the @object-ui/console build the successful run had just made.",
      "dogfood_battery": "n/a: no PR, no ! in a title, no (narrowing) arm",
      "line_budget": "0 changed lines (cap about 600)",
      "files_changed": [],
      "deviations": [
        "Backend started with pnpm --filter @objectstack/example-showcase dev --fresh -p 38455, not root pnpm dev. scripts/check-dev-prereqs.mjs refused on 9 unbuilt packages outside showcase's closure: studio, client-react, embedder-openai, knowledge-memory, knowledge-ragflow, scenarios, service-knowledge, ui schema-catalog example, ui cli. The server I started was killed afterwards (port 38455 free).",
        "packages/console/dist was produced by running packages/console/build-dist.sh directly, not through turbo build:dist, after pnpm console:build queue-timed out on the verify lock. Its input, ui/apps/console/dist, was this tree's build from minutes earlier.",
        "No PR and no 维护者速读: the fence stop came before any code.",
        "Worktree removed (node_modules first, then git worktree remove without --force; it was clean). The remote branch stays at origin/main 92121196, empty."
      ],
      "mcp_calls": "0",
      "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/35455/comments (this report, through post-stamped.mjs and the relay). git push of the empty branch is not a REST write.",
      "open_questions": [
        {
          "question": "Widen slice 1's file surface to ui/apps/console so that items 4 and 2 (the get-session edge) can be fixed?",
          "options": [
            "A: Amend the claim to add the ui/apps/console paths named in blocked_on and re-dispatch on the same branch. Gets me/localization from 2 to 1 and get-session into L1 in the cold posture. About 250-400 lines, one PR. CONTROLs as planned.",
            "B: Amend for item 4 only (languageSeed.ts + LocalizationFetchProvider.tsx + tests, about 120-200 lines) and file the get-session edge as its own child card. Smaller diff, but the index.html and auth slot change waits a round.",
            "C: Close slice 1 as measured and file items 1-4 as child cards from these readings. No code now, and the Done-when moves no closer."
          ],
          "recommendation": "A, because both A2 fixes live in the same boot files (main.tsx's gate, the seed and the preflight slot), each is a one-shot hand-off of a request the boot already makes, and together they stay well under the 600-line split mark."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: public door, the console list page /_console/apps/com.example.showcase/showcase_task, measured. On 4 of 8 list loads the identical GET /api/v1/data/showcase_task?populate=project&top=50&select=... was sent twice, 149-378 ms apart. On the one load captured with full URLs, the two are byte-identical. Not on the path to first data (the first answer paints), but a wasted round trip on a first screen. Family: #35455's duplicate first-screen reads, so it is named for that family's closing card or a sub-issue, not a single-point card · evidence: reading-before-cold.json list run 1 (2097, 2466 ms), reading-before-warm.json list run 1 (2138, 2516 ms), plus the trial and dup runs · dedupe words: list data read twice, duplicate data read list page, populate top=50 sent twice, grid refetch after first page"
      ]
    }
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim amendment · area ux-2 · 2026-11-19T14:35Z
    Area: ux-2
    Amends: Claim 7010912290 (slice 1), after the dev's fence stop in os-dev-report 7012178512 (both fixes are issued from the console app, outside the first surface). Option A of that report is taken.
    File surface added: ui/apps/console/src/languageSeed.ts, ui/apps/console/src/LocalizationFetchProvider.tsx, ui/apps/console/src/lib/auth-preflight.ts, ui/apps/console/index.html, ui/apps/console/src/main.tsx (only if the seed hand-off needs it), and their tests under ui/apps/console/src/. The rest of the claim's surface and fences stand.
    Scope now: item 4 (one me/localization per cold load: the seed's settled authenticated answer is handed once to the boot read, keyed by request and session owner) and the item-2 get-session edge in the cold posture (the parse-time cookie-only get-session, handed on through the existing preflight slot, including a signed-out answer). The bundle → packages → ai/agents chain was measured as no dependency (delay probes) and is dropped from this slice. Items 1 and 3 and the duplicate list-data read are filed as child cards from the readings.
    Prior rulings read (check-prior-rulings --paths on the added surface): ruling 6915665005 on #33985 (letter B: seed rungs; the user's own choice outranks the seed; stale-while-revalidate) and the bounded seed race (#5419 point 3) bind and stay as they are; the boot-order note at main.tsx ~:132 (#12681: Sentry after runtime config) binds; the sign-out hold ruling in createAuthClient.ts ~:664 is untouched by this change.
    Serial constraints cleared: no open PR touches the added files (live read of all open PRs' files at amendment time).
    Container & model: unchanged (M, effort: high). Clause-②: no · Metadata-protocol: none.

  8. 27 remaining items

  9. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#5 · hotlong · session_01Q4EjjPP1zuWBNq3nBXVei9

    Release: session session_01Q4EjjPP1zuWBNq3nBXVei9 · reason: the seat clocks out on the account owner's word 「你可以下班了,不用巡查」 (2026-11-23T12:08Z) · next: measure the hosted page load. Cloud now pins objectstack 7ae5e0742d45, which carries slice 3 (PR #35920, 753091eed15), and that build is live on cloud staging and production. Take that measurement on a hosted environment (cloud#4563's 9–10 s reading), then choose between a chrome-read slice here and closing on the critical-path result. Slices 1–3 are all merged, so there is no unmerged branch to resume from.

    pm:dispatched → pm:queue; the assignee is cleared.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: PM loop round 8 · 2026-11-23T13:50Z
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: opened by the coordinator; the thread names itself in its first report
    Account: os-warren
    Branch: the card thread's own branch, named at its first push; the seat records it then
    Worktree: objectstack-issue-35455
    Domain: domain:ui
    Seat: repo:objectstack#1
    Area: card thread #35455 (w7-J)
    Dispatch: p1 area:ux, released by its previous seat on this card 2026-11-23T12:09Z; taken under the maintainer's ruling 2026-11-23T12:16Z 「所有区未认领的p1你都可以接」; deduped by the coordinator; one in for one out under the 15-thread cap. Slices already merged by the previous seat (e.g. #35920) are read first; the thread continues from them, not from scratch
    File surface: the console's first-screen boot path (the serial API round trips before the first paint), its tests, a changeset (stop on breach; the thread's first report states the real surface and the seat amends this line)
    Container & model: S, mode:thread, model: opus — default tier; the thread's first report states the served tier, effort: high
    Clause-②: no. A new route, contract, spec key or export is amended to yes before its code
    Metadata-protocol: none
    Responsibility: as the card body states
    Thread-read: 7100568585
    Premise: re-measured on the thread's base before code
    Serial constraints cleared: no open PR names the card, per the coordinator's dedupe

  12. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 23, 2026
  13. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Claim: branch record · 2026-11-23T13:53Z · same session as claim 7103108534, which it completes
    Session: session_01JQwxbZeHNsF3RWcWpj7rGj
    Thread session: session_01JQwxbWHSv6yUjshTLzcMCp
    Branch: claude/project-thread-w5y3ob
    Clause-②: no
    Metadata-protocol: none

  14. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbWHSv6yUjshTLzcMCp
    os-dev-report

    {
      "issue": 35455,
      "status": "reading",
      "branch": "claude/project-thread-w5y3ob (no commits; nothing pushed)",
      "pr": null,
      "session": "session_01JQwxbWHSv6yUjshTLzcMCp",
      "premise_still_valid": true,
      "summary": "Re-measured the first screen on origin/main 9e0c0c23 after slices 1-3 (#35575, #35837, #35920). On a repeat visit (the everyday case: language seed cached) first data leaves at API layer 4: the parse-time boot wave, then permissions/org/app list, then bundle + package object list, then data. That is 3 round trips after the boot wave, the card's done-when, on both the list and the record page. On a browser's first visit the bounded language-seed race (ruled, at most 500 ms) adds one layer. me/localization is 1 per load. The console chrome reads (approvals, notifications, inbox, locales, sys_user) already leave in the same layer as the data read, so a chrome-read slice would not shorten anything; the only read after data is packages, which starts about 1 s after the page goes quiet and draws nothing on the first screen. One render gap remains (the bundle leaves 150-290 ms after the package list in the same wave). An experiment that removed it (bundle entered in render, no await before its fetch) did NOT bring data earlier: data is then held by main-thread work (430-640 ms of long tasks before first data), and moving the bundle into that busy window made data 54-311 ms later. The experiment is reverted, not shipped. Recommendation: close the card on the critical-path result, no slice 4; the remaining first-screen cost is CPU (chunk evaluation and render), not round trips.",
      "readings": {
        "method": "Built console (turbo build of @objectstack/example-showcase... then @objectstack/console build:dist, both under os-verify-lock, VERDICT command-exit 0). objectstack dev --seed-admin --fresh from examples/app-showcase on port 38455, a local TLS HTTP/2 front on 38456 (hosted is HTTP/2 behind Cloudflare, comment 7042031071), CDP latency per request (0 / 150 / 300 ms), headless Chromium 1440x900, service workers blocked, a new context per load. cold = cookie only, no localStorage (a browser's first visit). warm = cookie + Bearer. repeat = the same context loads the page once, then the measured load (seed and HTTP cache warm: the everyday case). API layer = 1 + deepest layer of any API request that ended before it started. Delay probes hold one request 1.5 s. Medians of n=3. Shared box: read ratios, not absolute ms. Scripts and raw JSON: project folder issue-35455/ (measure.mjs, h2proxy.mjs, stats.mjs, probe.sh, *.json).",
        "tree": "objectstack-ai/objectstack origin/main 9e0c0c23",
        "table_300ms_rtt": [
          "posture/page | first-data API layer | whole-load API layers | first data leaves | first data answered | last API answered",
          "repeat/list   | 4 | 5 | 2063 ms | 2368 ms | 3549 ms",
          "repeat/record | 4 | 6 | 1941 ms | 2246 ms | 3472 ms",
          "cold/list     | 6 | 7 | 2230 ms | 2534 ms | 3622 ms",
          "cold/record   | 5 | 7 | 2121 ms | 2426 ms | 3668 ms"
        ],
        "table_150ms_rtt": [
          "repeat/list 6 layers to data, data answered 1912 ms; repeat/record 5, 1515 ms",
          "cold/list 7, 1804 ms; cold/record 7, 1598 ms; warm/list 6, 1603 ms; warm/record 7, 1769 ms"
        ],
        "repeat_list_chain_300ms": "L1 runtime/config + get-session + discovery (parse time, 322-711) -> L2 me/permissions, translations, org get-active-member + list, auth/config, meta/app, sys_user_preference (974-1329) -> L3 me/localization (revalidate, off path), meta/object?package (1396-1723), me/apps, bundle (1558-1866), ai/agents -> L4 meta/view, sys_personal_view, data (2030-2335) beside i18n/locales, approvals, sys_user, sys_notification_receipt, sys_inbox_message -> L5 packages (3101-3409).",
        "probes_list_cold_150ms": "Data waits on: the bundle (held 1.5 s -> data 3283 ms vs about 1650), meta/object?package (-> 3070), the ObjectView route chunk (-> 2859), me/localization in the cold posture (the bounded seed race: permissions group moved 800 -> 1361 ms). Data does NOT wait on: meta/view?object, meta/object?names=showcase_task, the SchemaForm chunk wave, me/apps, sys_user_preference?top=4. Repeat posture 300 ms: holding meta/view, names=sys_user or ai/agents does not move data.",
        "remaining_gap": "The bundle leaves 150-290 ms after the package object list although both are started for the same app-list answer (gap medians 153-293 ms across all 10 cells). Cause, measured: useAppObjectScopePrefetch starts the package list during ConsoleShell's render, but enters the bundle from a passive effect, and requestAppBundle awaits the already-settled connect(), so its fetch runs after the whole route tree's render task. useLayoutEffect alone: no change. Entering in render alone: no change (the await still defers it). Both together: gap 150-290 -> -2 ms (the bundle leaves with the package list).",
        "experiment_not_shipped": "With the bundle beside the package list (after300c.json): repeat/list first data 2063 -> 2374 ms, repeat/record 1941 -> 2199, cold/list 2230 -> 2386, cold/record 2121 -> 2175 (300 ms RTT, n=3). Data is not gated by the bundle once the bundle answers inside the busy window: long tasks before first data are 430-640 ms on the baseline (lt300.json), and 55-173 ms of long tasks sit between the bundle answer and the data read even on the baseline. Reverted; patch kept as experiment-bundle-in-render.patch in the project folder for reference.",
        "slope": "Cold list, data answered: 1804 ms at 150 ms RTT -> 2534 ms at 300 ms (+730 ms per +150 ms, about 5 serial trips counting the HTML and the JS wave). Whole load: +895 ms per +150 ms. At filing time the card measured +900 ms per +150 ms to the LAST answer; first data now pays about 4 trips after the HTML on a first visit and 3 after the boot wave on a repeat visit.",
        "me_localization": "1 per load in every posture",
        "done_when": "Met on the critical path for the everyday case: 3 round trips after the boot wave to first data (list and record, repeat visit), independent boot calls in one wave, the route chunk loads in one preloaded wave beside the app reads (slice 2; holding it still moves data, so it is on the path but no longer serial behind its own imports), me/localization once, hop count pinned by slice 3's wave-counting test (appObjectScope-12811.test.tsx). A browser's first visit adds the ruled seed race (one bounded layer)."
      },
      "hosted_reading_capture": [
        "Needed only to confirm the 9-10 s figure is gone; this container cannot reach *.objectos.app (proxy refuses).",
        "1. Chrome, a staging environment as its owner, a list page of an installed app (for example an object list) and one record page.",
        "2. DevTools > Network, Preserve log on, Disable cache OFF. Open the page once, wait until it settles, then open the same URL again in the same tab (this second load is the repeat visit).",
        "3. Network panel > download icon > Export HAR (sanitized). One file per page. Sanitized export drops cookies and auth headers.",
        "4. Drop the files in the project folder issue-35455/hosted/. The same layer script reads a HAR; a reply in this thread with the file names is enough."
      ],
      "tests": "None: no code shipped. Readings above; experiment builds under os-verify-lock (VERDICT command-exit 0 each).",
      "gates": "None owed: empty diff, no PR.",
      "dogfood_battery": "n/a: no PR",
      "mcp_calls": "0",
      "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/35455/comments (this report, via post-stamped.mjs)",
      "open_questions": [
        {
          "question": "Close #35455 on the critical-path result, or keep it open for a CPU slice?",
          "options": [
            "A: Close as completed. Slices 1-3 met the done-when on the critical path; this reading shows no round trip left to cut, and the chrome reads already run beside data. A hosted HAR (steps above) can confirm the hosted time afterwards on objectstack-ai/cloud#4563, which consumes this card.",
            "B: Keep it open and cut a CPU slice: the 430-640 ms of main-thread work before first data (route chunk evaluation, the first full-tree render). That is a different mechanism from this card's round trips and overlaps the eager-bundle family (#33581)."
          ],
          "recommendation": "A, because the card's measured defect was serial round trips and those are now at the done-when; the CPU cost is real but belongs to its own card with its own measurement."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #35455 seat · noted, not filed: main-thread work before first data is 430-640 ms on a repeat visit at 300 ms RTT (lt300.json); a candidate for the eager-bundle / route-chunk family, not a round-trip defect."
      ]
    }

    Generated by Claude Code

  15. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    维护者速读

    控制台打开页面时要等的串行请求,已经从大约六轮减到三轮,这张卡定的目标达到了。本地按每次请求 300 毫秒的网络延迟测,常用的再次打开,列表页约 2.4 秒出数据,记录页约 2.2 秒出数据。剩下的时间主要花在浏览器自己的计算上,不是在等网络,再减请求轮数已经没有用处。线上实际快了多少,要在托管环境里抓一次,挪到 cloud#4563 上。
    要你做的:无。

    Closure — completed by slices 1–3 (#35575, #35837, #35920)

    • Done-when met. Reading on main 9e0c0c23 by card thread session_01JQwxbWHSv6yUjshTLzcMCp (report 7104207896). The setup was HTTP/2, 300 ms RTT, medians of 3 runs.
      • On a repeat visit, first data leaves at API layer 4, 3 round trips after the boot wave, on both list and record pages.
      • me/localization is sent once per load.
      • Slice 3's wave-counting test (appObjectScope-12811.test.tsx) pins the hop count.
      • A browser's first visit adds the ruled, bounded seed-race layer.
    • No slice 4. The chrome reads (approvals, notifications, inbox, locales, sys_user) already leave in the same layer as data. One experiment removed the remaining bundle gap (150–290 ms). Data then arrived 54–311 ms later, because 430–640 ms of main-thread work before first data gates it. The experiment was reverted; the patch is kept in the project folder issue-35455/.
    • What remains is CPU, a separate mechanism. That is chunk evaluation and the first render, which is the eager/route-chunk family (console first load: plugin-grid, plugin-form and RecordDetailView are still in the eager closure (split from #33293) #33581). No card is opened from this one.
    • Hosted confirmation of the 9–10 s figure moves to objectstack-ai/cloud#4563, which consumes this card. This container cannot reach staging.
  16. removed
    pm:dispatched
    on Nov 23, 2026
  17. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Closed as completed (closure above); unassigning.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipriority:p1

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions