Skip to content

docs(qa): first-screen LCP item for core feature ux 6, with its baseline - #37398

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35212-ux6-first-screen
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-35212-ux6-first-screen

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Irene · project thread
Fixes #35212
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:平台测试清单里新增一条测试项,检查首页、对象列表页和记录页的首屏加载时间是否在 2.5 秒以内。
  • 为什么做:北极星核心功能与测试清单对齐专题的最后一项,即页面首屏加载时间,按已定的阈值写成可执行的测试项。
  • 出错会怎样:只改测试清单,不碰产品代码;测试项写错可以直接改或撤回,不影响任何用户。
  • 要你做什么:基线读数显示三个页面都超过 2.5 秒,需要你决定是否另开提速工作。

What changes

One item appended to docs/qa/platform-checklist/areas/ux-conventions.json, authored through checklist-author against the README's item anatomy: ux-conventions.first-screen-lcp, active, P1, browser. No other file changes. It closes the ux 6 row of PR #37165's mapping ("gap, out of scope here: not a checklist capability until a threshold exists"), now that ruling 7178954860 sets the threshold.

The item encodes the ruling as written, no stricter and no looser:

  • Threshold: LCP at most 2.5 s, as a per-page clause (median of 5 at or below 2500 ms).
  • Conditions: signed in, cold cache, Lighthouse's desktop preset as shipped (about 10 Mbps, 40 ms RTT, no CPU throttle, a desktop viewport). Lighthouse's default storage reset before each run clears the HTTP cache, cache storage and service workers, and keeps cookies and localStorage. So every run is on a cold cache and signed in.
  • Reading: the median of 5 runs on each of home (/_console/home), an object list (/_console/apps/showcase_app/showcase_task) and a record page (.../showcase_task/record/:id).
  • Before it gates: the baseline reading is taken in this PR and recorded in the item's history (revision 1).

Two more clauses keep a run honest. Each scored run must measure the page itself, signed in, with nothing served from cache. And the configSettings block must show the desktop profile. Traps: stale-console-bundle, first-boot-cold-start. One new anchor, ui/apps/console/src/App.tsx#App, which resolves.

Baseline reading

Commit measured db77cc493a (main; the item commit 93707e6ed9 changes only the ledger)
App showcase, OS_PORT=38517 pnpm dev -- --fresh -p 38517; workspace built from that tree and the Console rebuilt from it (pnpm console:build)
Signed in as the dev admin the fresh boot seeds, through the Console login form; the session held for every run (final URL never /login)
Tool Lighthouse 13.6.0, node API, core/config/desktop-config.js, performance category only
Profile formFactor desktop, throttlingMethod simulate, rttMs 40, throughputKbps 10240, cpuSlowdownMultiplier 1, 1350x940, disableStorageReset false
Browser Chrome for Testing 158.0.8127.36, --headless=new --no-sandbox, 4-core container
Page (final URL) LCP per run, ms Median At most 2500 ms?
home, lands on /_console/apps/com.example.showcase/page/showcase_capability_map 3516, 3557, 3513, 3602, 3624 3557 no
object list, /_console/apps/com.example.showcase/showcase_task 4625, 4585, 4554, 4661, 4663 4625 no
record page, /_console/apps/com.example.showcase/showcase_task/record/-2h3N6M1Mg033IU4 4264, 4175, 4111, 4221, 4132 4175 no

The LCP element was real page content on every run: the capability map's intro text box, a cell of the task grid, and the record's title heading. FCP was about 330 ms on every page.

This is a headless container reading, not desktop Chrome on real hardware. Lighthouse simulates the network leg. The CPU leg is this container's, and nothing else held the verify lock while it ran. For context only (not the item's reading), Lighthouse's observed, unthrottled localhost LCP medians were 2043 / 2706 / 2582 ms. The pages transfer about 2.0 to 2.5 MB of brotli-compressed script across 150 to 239 script requests, which by itself takes about 2 s at 10 Mbps.

Tests

No ablation: the diff changes no tested behaviour (ledger content only).

check:platform-checklist, before (main db77cc4) and after (93707e6)

Both runs exit 1 with the same single problem, which is inherited from main and outside this diff:

check-platform-checklist: 1 problem(s)
  ✗ areas/automation.json: ABSENT SYMBOL — `ui/packages/app-shell/src/views/studio-design/FlowItemMoreMenu.tsx#FlowItemMoreMenu`: `FlowItemMoreMenu` is not declared in ...

All four self-tests pass on both runs (checklist-select 45 cases, qa-rollup 82, retest-owed 57, check-platform-checklist 265). The new item adds no problem. --anchor-census reads 1800/1811 resolved on main and 1801/1812 after this change, so the one new anchor resolves. checklist-select ux-conventions.first-screen-lcp resolves 1 runnable item.

Derived gate families (dispatch-gates --commands, 17), run locally at 93707e6

16 exit 0: check-adr-links (and --self-test), check-closing-keyword-parity (and --self-test), check-comment-mask-corpus, plan-test-core-shards --self-test, lint check:doc-formula-expressions, check:adr-anchors, check:ci-filter-parity, check:cross-package-test-inputs, check:doc-authoring, check:driver-memory-census, check:gitlink-declared, check:nul-bytes, check:refd-timer-probe, check:watch-hint-literal. check:platform-checklist exits 1 only on the inherited problem above. dispatch-gates --ran: 17 of 17 accounted for. overlap-check: clean, exit 0.

Acceptance notes

  • The baseline fails all three page clauses: medians 3557 / 4625 / 4175 ms against 2500 ms. The item is active with steps, like the eight active items of docs(qa): map every North Star core feature to a checklist item #37165. Its first run will score those clauses FAIL until the pages get faster. No speed-up card is filed from this PR. That call belongs to the seat.
  • "home" on the showcase redirects to the app's home page (the capability map), not a console Home page. The item asks the run to record the URL it lands on.
  • The persona is the seeded dev admin, a platform admin. The ruling says only "logged in", and the stock boot provisions no member persona.

Verification

Read first: the new item at the end of areas/ux-conventions.json, especially its negative and knownGaps (what a run must not score, and the headless caveat).

Two-minute check: node scripts/checklist-select.mjs ux-conventions.first-screen-lcp in the branch. Expect 1 runnable item(s), P1 browser ux-conventions.first-screen-lcp.


Generated by Claude Code

Claim for this branch: card comment 7180384719 (re-posted, so check:closing-target-claim reads it; the earlier claim 7140622994 named the first branch, merged as #37165).

🤖 Generated with Claude Code

Adds ux-conventions.first-screen-lcp: signed in, cold cache, desktop
Chrome under Lighthouse's desktop preset, the median LCP of 5 runs is at
most 2.5 s on home, an object list and a record page. The baseline the
ruling asks for before the item gates is recorded in its history.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J8VVAjMMU8pcMXmiLEMMG4
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAjUnwjG1e7EW88ruEN

L1 review · ACCEPT

Reviewed head: 93707e6ed980775ec923117e6a643b4973ff24ba
L1 thread L1-b (areas f2-D/E/F), read at 2026-11-26T03:09Z, under the seat's GO for #35212's ux ⑥ item. No contract review is owed: the one path, docs/qa/platform-checklist/areas/ux-conventions.json, touches no schema and no governed path, Clause-② is no, and there is no narrowing arm. This is the seat-side self-read.

席位核对

  • 形态: l1-face.mjs --pr 37398: open, draft, base main. Line 1 is the attribution comment and the next line is Requested by, so Fixes #35212 is the first content line. No closing keyword sits near any other card. Fixes is right: ruling 7178954860 says "the card closes on that PR", and this item is the last gap in docs(qa): map every North Star core feature to a checklist item #37165's mapping, which has already landed.
  • Item against ruling 7178954860, clause by clause (neither stricter nor looser):
    • Threshold: the ruling sets LCP ≤ 2.5 s. Each page clause reads "the median … is 2500 ms or less". Exact.
    • Conditions: the ruling names cold cache, logged in, desktop Chrome, and the Lighthouse desktop profile (about 10 Mbps / 40 ms RTT, no CPU throttle). The item uses the preset as shipped, with storage reset on (it clears the HTTP cache, cache storage and service workers, and keeps cookies and localStorage) and sign-in before the measured navigation. Its profile clause pins formFactor desktop, rttMs 40, throughputKbps 10240 (10 Mbps), cpuSlowdownMultiplier 1, screenEmulation.mobile false and disableStorageReset false. Those are the preset's own values, so the profile clause verifies the ruled profile and adds nothing to it.
    • Reading: the ruling asks for the median of 5 runs on each of home, an object list and a record page. The item has one clause per page, and its negative line says one run above 2500 ms is not a FAIL when the median holds.
    • Baseline before gating: the ruling requires a baseline reading first. That reading is in history revision 1, so the item is active and gates from now on. A FAIL on its first run is the honest reading and does not make the item stricter.
    • Two honesty clauses go beyond the ruling's numbers. One discards a run that measured /login or a loading screen and checks transferSize > 0 on scripts. The other reads configSettings. Both judge whether a run is valid, not whether it passes. They hold the ruled conditions without changing the threshold.
  • Baseline honesty: the knownGaps entry says a container run measures headless Chrome for Testing on the container's CPU, not desktop Chrome on real hardware. It says the preset simulates the network leg while the CPU leg is the host's own, and that the run records which kind of reading it took. The history row names Chrome for Testing 158, headless, the 4-core container, Lighthouse 13.6.0, the simulate method and all 15 values. The medians 3557 / 4625 / 4175 ms recompute from the listed values. The dev's report labels the unthrottled medians "context only" and keeps them out of the item. Nothing is presented as a real-hardware reading.
  • Attribution deviation (line 1): not a defect. os-dev.md has no rule on that line. The area order requires the PR body to start with exactly those two lines. l1-face.mjs and the relay fixtures treat them as the expected preamble. Accepted.
  • 前提实测: check:platform-checklist exits 1 before and after with the same single inherited problem: areas/automation.json FlowItemMoreMenu, also red on origin/main (seen at 98bda0ac in the docs(qa): map every North Star core feature to a checklist item #37165 review). The new anchor, ui/apps/console/src/App.tsx#App, resolves (anchor census 1800/1811 → 1801/1812, per the dev). The diff adds one item and edits no other line.
  • 门禁 check-runs: at 93707e6e: 28 success, 26 expected skip (check-expected-skips OK, exit 0), 0 pending; mergeable_state clean. The one failure is the 01:58Z PR-body guards run, which failed because the claim had not named the new branch. It is superseded on this same head by the 02:03Z run of the same job, which passed after the claim was re-posted (7180384719). Lint & Repo Gates and TypeScript Type Check both pass.
  • 范围外去向: the class-b finding (all three medians above 2500 ms; the Console's eager bundle is the named seam) has no carrier, and the maintainer's no-new-cards order stands. That is the seat's call, together with the dev's open question: whether the item stays plain active (A, which the dev recommends and I agree with) or gets a blocked annotation once a speed-up card exists. The prerequisite-build note is a local observation only. Skills-docs: not owed.
  • changeset: skip-changeset is right, since only docs/qa/** changes and no published package is touched.
  • 落地条款: NOT governed, 84 lines. landing-k: K = 6. Ordinary landing at this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · huangyiirene · session_01J8VVAm8Y73VGNq3PkTe3dc

维护者速读

  • 改了什么:平台测试清单新增一条测试项 ux-conventions.first-screen-lcp(P1,浏览器),按你定的阈值检查首页、对象列表页、记录页的首屏加载时间(LCP ≤ 2.5 秒,冷缓存、已登录、Lighthouse 桌面配置,5 次取中位数);基线读数写在测试项的 history 里(docs/qa/platform-checklist/areas/ux-conventions.json,+84/−0)。
  • 为什么改:core features: map each to a platform-checklist item, author the missing ones #35212「核心功能与测试清单对齐」的最后一项(ux ⑥),阈值定下后才能写成可执行的测试项。
  • 风险与回滚:只改测试清单,不碰产品代码;revert 一个合并即可。
  • 先看:PR 正文的「Baseline reading」表。
  • 两分钟验证:pnpm check:platform-checklist(锚点 1800/1811 → 1801/1812;唯一的红是 main 上 areas/automation.json 的 FlowItemMoreMenu 锚点,与本 PR 无关)。
  • 需要你做的:基线三个页面都超过 2.5 秒(中位数:首页 3557 ms、对象列表 4625 ms、记录页 4175 ms),测试项首跑会记 FAIL。是否另开提速工作,本席在项目对话里另问你;本 PR 本身无需你操作。

席位意见:ACCEPT(L1-b 7181456754),落地。

席位核对

ACCEPT · repo:objectstack#2 · head 93707e6ed980775ec923117e6a643b4973ff24ba · card #35212

  1. 形态:1 个文件,docs/qa/platform-checklist/areas/ux-conventions.json +84/−0;Fixes #35212;Clause-②: no。按裁决 7178954860 编写,不加严不放宽。
  2. 前提实测:check-governed-merges --pr 37398 读出 NOT governed(0/1 路径命中);landing-k --pr 37398 读出 K = 6 < 15。
  3. 门禁 check-runs:当前 head 28 success、26 expected skip、0 pending,mergeable_state clean(pr-state --pr 37398);check-expected-skips --pr 37398 OK。唯一一条 failure 是 2026-11-26T01:58Z 的 PR-body guards(认领行指向旧分支),重贴认领 7180384719 后同一 head 上 2026-11-26T02:03Z 的同一 job 已 success。
  4. 接受的偏差:无。开发提的开放问题按 A 处理:测试项保持 active、不加注记;首跑记 FAIL 是如实读数。
  5. 范围外去向:基线未达标(三页全超 2.5 秒,瓶颈在 Console 首屏 eager 包,约 2.0–2.5 MB brotli、每页 150–239 个脚本请求)。按维护者 2026-11-25T23:10Z「不再接新单」的指示,本席不立提速卡,由维护者决定是否另开;若立卡,该卡的 PR 再给本测试项加 blocked {by: product-bug} 注记。Skills-docs: none。
  6. 落地条款:非治理面、未声明 narrowing,本席 ready 并开启 auto-merge 经队列落地;core features: map each to a platform-checklist item, author the missing ones #35212 随合并关闭。head 若移动,本记录作废。

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

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core features: map each to a platform-checklist item, author the missing ones

2 participants