Skip to content

feat(plugin-detail): the default record page drops the stage bar and key-field strip; the stage moves from the header tag - #35938

Merged
objectstack-fleet[bot] merged 13 commits into
mainfrom
claude/project-thread-tpkpoi
Nov 20, 2026
Merged

objectstack-fleet[bot] merged 13 commits into
mainfrom
claude/project-thread-tpkpoi

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgTcbvQNTSr6ij3TMW7

Fixes #35891
Fixes #35849

Part of epic #35590 (record page redo). Maintainer, 2026-11-20 17:16:59Z, on the fig. 41 direction for these two cards: 「把阶段条和关键字段条去掉,是的」.

Clause-②: yes (widening) — new members: RecordStageMenu and RecordStageMenuProps on the @object-ui/plugin-detail entry, the RecordHeaderStageParts type and an optional stage member on RecordHeaderState in @object-ui/components, four detail.stageMenu* keys in every @object-ui/i18n locale, and @objectstack/lint field-group-shadowed accepting more (a highlighted member no longer counts as hidden from the body); nothing removed or renamed (useStageChange's new third parameter is package-internal: the hook is not exported from the entry)
Metadata-protocol: semantic — the same metadata draws a different default record page: highlightFields no longer draws a strip or takes fields out of their groups, stageField draws the header tag's menu instead of a path
Skills-docs: follow-up #35942 (skills/objectstack-ui/rules/record-page.md step 1 still says highlightFields draws a strip and stageField a stage path; a skills-lane card). This PR updates the hand-written docs: content/docs/ui/pages.mdx (the synthesized default and the highlights slot row), content/docs/ui/forms.mdx, content/docs/data-modeling/objects.mdx and schema-design.mdx (what highlightFields and stageField drive)

维护者速读

  • 用户打开任意记录详情页时,顶部不再有阶段条和关键字段条;阶段改在记录名旁的状态标签上,点开下拉直接改,手机上也一样。
  • 属于「记录详情页重做」专题:后台配的字段分组原样显示,不再有字段被抽走,查看和编辑时字段的位置一致。
  • 有编辑权限的人改阶段时会先确认,某阶段要求补填的字段(如丢单原因)会在同一个框里填完一起保存;服务端拒绝时阶段不动,原因就显示在框里。自定义页面里仍可放回这两个组件,改动可直接撤回。
  • 无。

Why

Epic #35590 redraws the record page to fig. 41: one header row, then the record's own groups. The maintainer confirmed dropping the stage bar and the key-field strip (quoted above), which leaves the header's status tag as the only place the stage is read, so it becomes the place it is moved. With the strip gone, nothing needs to be taken out of the groups, which is #35849's 「后台配的分组原样生效」.

What changes

The default record page (buildDefaultPageSchema) no longer emits record:highlights or record:path. Its shape is now page:header, then an authored highlights slot if one is given, then page:tabs.

Field groups as configured (#35849). The details body draws every field its groups hold. The highlight fields and the stage field are no longer taken out of their groups (headerDrawnFields and drawnPathField are gone, synthTabs no longer takes a hidden list). highlightFields is unchanged and still drives the hover card, a related list's default columns and the record picker. Nothing is picked when an object declares none (#28868 kept). Of #35849's three items, the read-only top row is no longer needed once the strip is gone, as the coordinator's comment on the card says.

The stage moves from the header's status tag (#35891).

  • @object-ui/components: RecordHeaderState gains an optional stage renderer, (parts: RecordHeaderStageParts) => ReactNode. The header calls it with the tag it would draw (field, label, tag) and draws the result in the host bar and in its own row. Without a host bar (a phone) the header now draws the stage tag in the row under the record's name, beside the state's tags. Before, a phone showed no stage at all.
  • @object-ui/plugin-detail: new RecordStageMenu. A reader who may edit the stage field sees the tag with an arrow; it opens a menu listing every stage in order, the current one checked. A stage the field's blocking state_machine cannot reach is disabled, with its reason under the name. Picking a stage opens a confirm dialog focused on Move (Enter confirms), or on the first field it asks for.
  • A stage that makes other fields required (their requiredWhen holds once the record stands on it, for example a loss reason on a lost stage) asks for exactly those fields in the same dialog, and the move and the values go in one write with ifMatch. A server refusal stays in the dialog, beside the field it names (a field the menu did not know about is added to the form), and the stage does not move. The server stays the validation authority; the client only decides which fields to ask for.
  • A reader without the edit grant on the field, a page that may not edit (an approval lock included) or an open draft sees the plain tag, no arrow. A plain status field (no stage role) is read and moved the same way.
  • The package-internal useStageChange takes { collectFields: true } for this dialog; record:path keeps its plain confirmation and its Cancel-first focus.
  • @object-ui/app-shell RecordDetailView: one hunk, hands RecordStageMenu to the header as recordHeaderState.stage. The record header's two-row work (记录页头部改成两行:导航条(上下条、来自哪个列表、关闭在最右)加记录名一行;操作按钮恢复最多露 3 个(图 40) #35853) is in flight on another branch; the menu is built on the current tag and rides wherever 记录页头部改成两行:导航条(上下条、来自哪个列表、关闭在最右)加记录名一行;操作按钮恢复最多露 3 个(图 40) #35853 puts the status tag.

Kept for authored pages. buildDefaultHighlights and both blocks stay: an authored page, or a slotted page's highlights slot, still places a strip and a path where it wants them.

Lint. field-group-shadowed (packages/lint) no longer counts the highlight strip as hiding fields from the detail body. A group whose only visible member is the record title still warns.

i18n. Four detail.stageMenu* strings in every locale; zh-Hant regenerated from zh-Hans by gen:zh-hant.

Platform checklist. studio-authoring.record-page-roundtrip r17: a full record page copies the default, which now carries no strip and no bar, so acceptance[0] asks for the default's blocks and neither block. records-forms.master-detail-body-tables acceptance[0] still says the Tasks table sits "under the header strip's stage bar and key fields"; that item belongs to #35889's change of the master-detail default, so it is left to that PR (listed as a follow-up below).

Tests

Migrated (the old rule pinned the strip, the path or the hidden list)
  • plugin-detail/src/synth/__tests__/buildDefaultPageSchema.test.ts: default types are page:header, page:tabs; a control pins that buildDefaultHighlights still emits both blocks; the options-override case runs on the sub-builder; the slot case now says the slot places the strip the page draws.
  • plugin-detail/src/synth/__tests__/highlights-declaredOnly-28868.test.ts: sections 2 and 3 rewritten to the new rule (no strip, no path, hideFields undefined in every case); deriveHighlightFields still reads the declared list minus the title, at most six.
  • plugin-detail/src/synth/__tests__/buildDefaultPageSchema.strictPayload.test.ts: record:highlights and record:path leave the emitted-type list.
  • plugin-detail/src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts: declared key fields draw no strip; the staged case places its strip through the highlights slot.
  • plugin-detail/src/renderers/__tests__/record-path.stageChange-28199.test.tsx: a stripPage helper places buildDefaultHighlights in the slot; describe names say "the synthesized strip".
  • plugin-detail/src/renderers/__tests__/record-highlights.groupGate-12720.test.tsx: the strip node comes from buildDefaultHighlights.
  • plugin-detail/src/__tests__/RecordPageColumns.test.tsx: uses a slotted strip.
  • app-shell/src/views/RecordDetailView.phoneFace-27058.test.tsx: the header keeps its subtitle and draws no strip under it; the strip's fields read in their groups.
  • app-shell/src/views/RecordDetailView.lookupDependsOn-7190.test.tsx: both InlineFieldInput call sites stay pinned; the strip is placed through a slotted page's highlights slot (stripPage), holding the list each case declares. Ablated: without the slotted page the strip-site prune case fails.
  • app-shell/src/views/RecordDetailView.updateActionRefresh-29935.test.tsx: the stage is read from the header's stage tag instead of the path bar's current step.
  • app-shell/src/views/RecordDetailView.phoneOwnerLine-28909.test.tsx: no strip at 390 or 1440, and the meta line names the owner at both (it used to be left out on a desktop, where the strip named it).
  • ui/e2e/record-tabs-rail-35595.spec.ts (Playwright, found red on CI Build & E2E UI at 7886ee09): the fixture places the stage path and key fields through the highlights slot (buildDefaultHighlights), as an authored page does; the span-both-columns and "another tab draws no strip" assertions are unchanged. 6 of 6 pass locally on chromium.
  • packages/lint/src/validate-semantic-roles.test.ts: rule (d) cases rewritten; positions 1 to 6 of a declared list come out clean; title-only still flags, with a hidden-member case and a control; the primaryField 不是可声明键(ObjectSchema 以 unrecognized_keys 拒收),但两条 lint 规则与 objectstack-data 技能文档都把它当作合法 name 面 #6326 primaryField case uses a group holding only ref_no.
Voided (the behaviour is gone by the maintainer's ruling)
  • lint: "flags a group fully shadowed by the highlight strip (rule d)" and "rule d judges the six highlights the record page hoists, not four". The default page no longer hoists highlights, so there is nothing to shadow; replaced by "rule d no longer counts highlights as hidden from the body".
  • 28868: "a declared entry past the sixth is drawn by the body, not dropped from both", "the stage joins a declared strip's hide list, once", "control: no path (stageField: false)…", "control: a status field with no stages to draw…", "an authored highlights slot decides: its record:path hides the stage…". The body hides nothing now, so each of these collapses into "the body hides nothing" (kept as new cases above).
  • buildDefaultPageSchema: "omits record:path when no status field" and "omits record:highlights when no fields derivable". The default page omits both always.
New
  • plugin-detail/src/__tests__/RecordStageMenu-35891.test.tsx (15): menu order and current stage; unreachable stage disabled with its reason; confirm writes with ifMatch and re-reads; cancel writes nothing; Closed Lost asks for the loss reason only and writes it with the move; an empty submission's server refusal stays in the dialog beside the field and nothing re-reads; a refusal naming an unknown field adds it; a non-field refusal reads under the form; the plain tag for canEdit: false and for a denied field grant, with a control; keyboard: Enter opens, Escape closes, the dialog opens focused on Move (or on the first field), and record:path keeps Cancel first. The two focus cases were ablated: with the focus hook removed they fail.
  • components/src/__tests__/page-header-stage-tag-35891.test.tsx (5): the phone row draws the stage tag first; the host stage receives field, label and tag and replaces the plain tag; the host control draws in the bar's title slot; no stage value means no tag and no call.

Acceptance notes

Verification

Browser (showcase, built console, 1280 and 375 wide, light and dark)

Evidence in /mnt/project-files/build-seat1/35891/ (project files).

  • Semantic zoo record: no strip, no path; Status stays in its Basics group; the arrowed stage tag opens the menu (current stage checked, every stage listed) at 1280 and 375, light and dark; no horizontal scroll at either width (scrollWidth 1280 and 375).
  • Keyboard only: focus the tag, Enter opens, arrows move to Done, Enter picks, the dialog opens focused on Move, Enter confirms; the tag reads Done and still reads Done after a reload (the API returns the new status). Before the focus fix, Enter hit Cancel; that run is why the focus hook exists.
  • Invoice INV-1001 uses an authored page under a pending approval: no stage menu there, as intended.
  • The fields a stage needs (L1-c finding 3), at 1280 and 375, record in browser-check-fields-dialog.md beside the screenshots. With a temporary, uncommitted requiredWhen: 'record.status == "done"' on the zoo's code: picking Done opens a dialog holding only Code, focused; Move with Code empty keeps the dialog open with 「Code不能为空」 under the field and the API status active; filling Code and Move closes it, the tag reads Done, the API stores both. A bare PATCH to done answered VALIDATION_FAILED naming code, so the server is the authority. No horizontal scroll at either width.
Local gates

Follow-ups (not in this PR):

Flow: built in the card thread (dev-thread flow); L1 by the L1-c review thread, the seat adopts and lands.

Rework round 1 (L1-c 7050407052)

Merge with #35925 and declaration L2 should-fix (7051547558)

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (ESLint over the changed files: 0 errors)
  • 4. One issue, one branch off an up-to-date main, one pull request. (two folded cards, one pull request, as dispatched)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (the 维护者速读 block and the maintainer's quotes are Chinese by the maintainer's standing rule)
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7

…field strip; stage moves from the header tag

The default record page no longer emits record:highlights or record:path
and the details body keeps every grouped field. The header's stage tag is
a menu (RecordStageMenu via RecordHeaderState.stage) listing every stage,
unreachable ones disabled with a reason; a stage that makes other fields
required asks for them in the confirmation and writes them with the move.
The phone header now shows the stage tag. field-group-shadowed stops
counting the strip.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
… Enter confirms

An alert dialog focuses Cancel on open, so Enter after picking a stage from
the header menu cancelled the move. The menu's dialog now focuses the first
field it asks for, or Move when it asks for none. record:path keeps the
alert dialog default.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
A full record page copies the synthesized default, which since #35891
places no record:highlights and no record:path, so acceptance[0] now asks
for the default's blocks and for neither block.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
The record-page skill, the pages guide and the object references said
highlightFields draws a strip under the title and stageField a stage path
on the default record page. Since #35891 the stage is the header tag's
menu and highlightFields drives hover cards, the record picker and
default columns.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
…trip

The phone face no longer draws a strip under the subtitle, and the 7190
dependsOn pins place the strip through a slotted page's highlights slot,
so both InlineFieldInput call sites stay covered.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
…m the meta line

The default record page draws no path bar and no strip, so the 29935 pins
read the stage from the header's stage tag, and the 28909 pins find the
owner in the meta line at both widths.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
@objectstack-fleet
objectstack-fleet Bot requested a review from os-sales November 20, 2026 20:48
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 4 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 170ca481f0aeec14ca06d74ec3d57c654997e698 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 0c863ce938cf7879bed3aa6c97d070b6612387ba — the merge of head d6f24785edef951c39479f85405b1d4d55e3379f into base 170ca481f0aeec14ca06d74ec3d57c654997e698, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0c863ce938cf7879bed3aa6c97d070b6612387ba && git checkout 0c863ce938cf7879bed3aa6c97d070b6612387ba
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 170ca481f0aeec14ca06d74ec3d57c654997e698 d6f24785edef951c39479f85405b1d4d55e3379f && git checkout -B drift-repro 170ca481f0aeec14ca06d74ec3d57c654997e698 && git merge --no-ff d6f24785edef951c39479f85405b1d4d55e3379f

node scripts/docs-audit/affected-docs.mjs --json 170ca481f0aeec14ca06d74ec3d57c654997e698

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

…adowed reads the default page differently

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

  • 方向和两张卡一致:默认记录页不再有阶段条和关键字段条,字段分组原样显示;阶段改在记录名旁的状态标签上,有权限的人点开下拉换阶段,要补填的字段在同一个框里一起填,手机上也能看到阶段。
  • 要退回改一处规则问题:这个 PR 直接改了一份技能文件(skills/objectstack-ui/rules/record-page.md)。按仓库规则,只有技能车道的 PR 才能改技能文件,其他 PR 要把这条改动留给后续卡。另有几条后续项缺卡号,还有一处浏览器验证缺一条(选「失败」时弹出补填框)。
  • 要你做什么:现在不需要。

席位核对 — REWORK (L1-c) · repo:objectstack#1 · head e3b53e1148 · 2026-11-20T20:55Z

Read at e3b53e11: nine commits plus a merge of main. The face is Clause-②: yes (widening) (new @object-ui/plugin-detail / @object-ui/components members, an optional useStageChange parameter, i18n keys) with Metadata-protocol: semantic. No packages/spec and no docs/adr files, so it is not Tier H. The seat's TIER_DEFAULT declaration L2 is owed, and this L1 does not replace it.

Must-fix

  1. skills/** is edited on a domain:ui PR. skills/objectstack-ui/rules/record-page.md step 1 changes in this diff. The claim template's Skills-docs: rule (SKILL.md) says "updated here = the diff teaches it in the docs (in skills/** only on domain:skills PRs, else follow-up #N)". Drop the skill hunk and give the skill text a follow-up #N, either a new card or 技能、文档、示例和 HotCRM 用上记录页的新写法:relatedLists 列页签、分组列字段、分组指向子表、扩展包声明位置 #35902 if the seat widens it to cover the stage tag menu. Keep the content/docs/** updates, which this PR may make. If the seat rules that this one-line edit stays, record the ruling in the body and I will accept it.

Should-fix

  1. Follow-ups need card numbers. "Follow-ups (not in this PR)" lists three items with no card:

    • the records-forms.master-detail-body-tables acceptance wording;
    • the generated record:details.hideFields description, and the spec highlightFields describe and Studio help;
    • the stale comments on RECORD_HIGHLIGHTS_MAX, the semantic-zoo object and the dogfood test.

    The seat files them, or names a card that already holds them, and the body writes #N. Raise the owner-twice question (Acceptance notes) as its own card too, as the seat ruled. The spec describe "Drives … detail highlight strip" is still true of a strip an authored page places, so it is not made false by this round, and a follow-up is the right route for it.

  2. One acceptance line has no browser reading. 记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891's 「选「失败」:出现只含「失败原因」的小表单;不填点确定,提示必填,阶段不变;填了之后才变」 is marked NOT MEASURED in the browser. The unit tests (RecordStageMenu-35891: Closed Lost asks for the loss reason only, an empty submission's refusal stays in the dialog, the move and the value go in one write) pin it, and the two focus cases are ablated. One run would close it: a temporary, uncommitted requiredWhen on a showcase stage field, done the way 字段分组自己列出成员和顺序(fieldGroups[].fields);字段上的 group 作为旧写法继续读 #35900's browser check did it (/mnt/project-files/build-seat1/35900/browser-check.md), at 1280 and 375.

Nits (no re-read needed)

  1. The signature line carries · Area b1-R2 after the session id, so l1-face no longer reads it as the signature and flags the first line as naming no card. Drop the suffix; the Fixes lines below it are right.
  2. feat(spec): a field group lists its own members and order (fieldGroups[].fields) #35925 conflicts in validate-semantic-roles.ts rule (d), as the body says. Whichever lands second merges main and re-runs validate-semantic-roles.test.ts.

Checked and fine


Generated by Claude Code

…ollow-up

A domain:ui pull request does not edit skills/**; the skill text moves to
its own card.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
The default record page draws no strip since #35891, so the tabs-and-rail
geometry pin places the stage path and key fields the way an author does,
in the highlights slot, and keeps its span and tab assertions.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-20T21:48Z. The brief handed to the isolated declaration-face reviewer for PR #35938 (owed by the PR's Clause-②: yes line). The record follows as its own comment. This head predates the main merge that #35925 needs (rule (d) of validate-semantic-roles.ts); that merge gets a delta round.

Contract review brief — PR #35938 @ 723d28900af918d46e6acff4cd17cf163140186d (cards #35891 + #35849)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· cards #35891 and #35849 (both, Fixes), and epic #35590's fig. 41 direction comment: its body and EVERY comment (rulings and earlier records included)
· PR #35938: its body, its file list, and the net diff against main at 723d28900af918d46e6acff4cd17cf163140186d
· the check-runs on 723d28900af918d46e6acff4cd17cf163140186d: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35938/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.
----- to here -----

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 723d28900af918d46e6acff4cd17cf163140186d
Local-runs: none

Inputs, read at 2026-11-20T21:54Z: cards #35891 and #35849 with every comment; epic #35590, its body and every comment, the fig. 41 direction comment 7045581845 among them; the PR #35938 body; its 44-file list; the net diff against main (merge base 17ed9e7bfd). The check-runs on the head: 61 success, 11 skipped, none failing or pending. Check Changeset (both runs), Governed Surface Queue Guard, Type Check UI, Build & E2E UI, Live E2E UI, Test UI 1-16 and Test Core 1-10 are all green. Face: no packages/spec path and no GOVERNED_SURFACES path in the tree (the skills/** hunk was reverted in 7886ee09), so the review is owed only by the Clause-②: yes line. That makes it the declaration face at TIER_DEFAULT.

① Derived judgments

  • buildDefaultPageSchema output (published, @object-ui/plugin-detail): right. The default page no longer emits record:highlights or record:path. This is a change of meaning, not a narrowing. No block, key or value is refused: both blocks stay registered and an authored page can place them. buildDefaultHighlights is unchanged, and a slotted page's highlights slot is still emitted as given. This is the maintainer's ruling 「把阶段条和关键字段条去掉,是的」 (2026-11-20 17:16:59Z), recorded in the 记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891 claim and quoted in the PR body. The epic's supersession table (记录页页签规则:第一个叫「概览」并含通栏的阶段条和关键字段;列出全部子表、带条数、只按宽度收进下拉;附件、审批、互动各一个页签 #35595 → 记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891) agrees.
  • Details body hides nothing (headerDrawnFields, drawnPathField and the hidden list removed): right. record:details.hideFields is still accepted, and the synthesizer no longer fills it. This meets 记录页关键字段:不再把字段从分组里拿掉,后台配的分组原样生效;顶部那一排改为只读 #35849's two items that survive (groups apply as configured; nothing auto-picked, deriveHighlightFields kept). The coordinator's 7045544044 voided the third item ("read-only top row").
  • RecordHeaderState.stage? and the exported RecordHeaderStageParts (@object-ui/components): right. The member is optional and additive. Without it the header draws the same tag as before. The host-bar branch and the own-row branch are exclusive, so the host's control mounts once. One addition: without a host bar (a phone, or any host-less header) the stage tag now draws in the row under the name. That is new output on an existing surface, declared in the changeset.
  • RecordStageMenu and RecordStageMenuProps on the @object-ui/plugin-detail entry: right. It reads the record context, mounts the row-scoped field-access scope, and asks useStageChange the same pressable verdict record:path asks (page canEdit with the approval lock, readonly or computed, recordEdit, the row grant, an open draft). The card's seven items and its acceptance list map onto the code and the 15-case test file: order, current checked, a stage outside the state_machine disabled with a line, the fields-a-stage-needs form, the plain tag without the grant, the approval lock, the plain status field, and the keyboard.
  • useStageChange third parameter { collectFields }: right, and package-internal. The default is off, so record:path keeps its plain confirmation and Cancel-first focus. With it on, the move and the asked-for fields go in one updateVia with ifMatch. A refusal stays in the dialog, and only fields this reader may fill join the form. The client only picks which fields to ask for, and the server stays the validator (objectui#6868). See nit 2 on how the Clause-② line words it.
  • Four detail.stageMenu* keys in all 11 @object-ui/i18n locales and in DETAIL_DEFAULT_TRANSLATIONS: right. They are additive.
  • @objectstack/lint field-group-shadowed (d): right, and a widening of lint's accept set. Fewer warnings: highlights no longer count as hidden from the body, and a title-only group still warns. This matches the page, which now draws every grouped highlight. The changeset names it, but the PR-body Clause-② member list does not. Its reach is unchanged on purpose (see nit 3).
  • BuildPageOptions.highlightFields, .statusField and .stages, and buildDefaultTabs's highlightFields and statusField: wrong as left. Should-fix 1. These published options are still accepted and are now never read. At the head, buildDefaultPageSchema passes them only into synthTabs, which no longer reads either key, and options.stages is read nowhere. Their JSDoc still says "Override the auto-derived highlight field list" and "Override the auto-derived statusField / stages". Neither declaration line nor the changeset says they went inert. One caller outside the diff, read and not reviewed, still feeds a value into them: RecordDetailView.tsx computes a phone-capped highlightFields and passes it to buildDefaultPageSchema.
  • Docs (pages.mdx, forms.mdx, objects.mdx, schema-design.mdx) and checklist studio-authoring.record-page-roundtrip r17: right. Each now describes the new default. The acceptance clause keeps its strength by asking for neither block, where before it asked for both.

② Semver level

  • The changeset grades @object-ui/plugin-detail minor, @object-ui/components minor, @objectstack/lint minor and @object-ui/i18n patch. All four sit in the one fixed group. @object-ui/app-shell is private, so its one hunk needs no entry.
  • Metadata-protocol: semantic, in both the PR body and the changeset: right. The meaning of highlightFields and stageField changes on the default record page, and nothing is added or refused. A kind takes at least one moved package to minor, and plugin-detail (where the meaning moved) and lint are minor. The i18n keys are a non-protocol widening, so patch is right under ruling A.
  • Clause-②: yes (widening), in both: right. Exports and optional members are added, nothing is removed or renamed, and nothing an author writes is refused, so no (narrowing) arm, no BREAKING banner and no ADR-0087 marker is owed. The member list is accurate in substance, with two wording issues: nit 2 (it names a non-entry hook) and the lint widening it leaves out (named in ①, carried by the changeset).
  • Check Changeset is green on the head.

③ Boundary flags

Findings:

  1. should-fix: BuildPageOptions.highlightFields, .statusField and .stages (on buildDefaultPageSchema) and buildDefaultTabs's highlightFields and statusField are published options that are now accepted and never read, while their JSDoc still promises an override. Fix: mark them in the JSDoc as accepted-but-unread, naming 记录页默认页不再画阶段条和顶部关键字段条;阶段改成记录名旁的状态标签,点开下拉切换(图 41) #35891, as this file already does for titleField (objectui#7287), and add one changeset line saying so. Or file a card to enforce or remove them, and name it in the PR body.
  2. nit: The Clause-② line and the changeset bullet name "an optional third options parameter on useStageChange" as a public member. useStageChange and the new StageChangeOptions are not exported from the @object-ui/plugin-detail entry, so this is package-internal. It overstates the surface and does no harm.
  3. nit: field-group-shadowed (d) now judges only title-only groups, yet still runs only on objects that declare highlightFields. That condition no longer bears on what the rule checks. The reach was kept on purpose (widening it would add warnings), and the comment says so. A later card may widen it.

Implemented-by: claude/project-thread-tpkpoi
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

Rule (d) of validate-semantic-roles keeps both changes: members come from
readFieldGroupMembership (a group's own fields list first), and only the
record title is hidden from the body. The case that expected a highlighted
member to shadow its group now expects no finding; a title-only list still
flags field-group-shadowed.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTcbvQNTSr6ij3TMW7
… reads

BuildPageOptions.highlightFields, .statusField and .stages are accepted by
buildDefaultPageSchema and buildDefaultTabs but read only by
buildDefaultHighlights now that the default page draws no strip and no
stage bar. Say so in their JSDoc and the changeset, and drop the two dead
pass-throughs into synthTabs.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-20T22:42Z. The DELTA brief handed to the same isolated declaration-face reviewer for PR #35938 (delta of its record 7051547558 on 723d2890: a merge of main at 170ca481 resolving rule (d) of validate-semantic-roles.ts, plus the S1 fix). The record follows as its own comment.

Contract review brief — PR #35938 @ d6f24785edef951c39479f85405b1d4d55e3379f (cards #35891 + #35849)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· cards #35891 and #35849 (both, Fixes), and epic #35590's fig. 41 direction comment: its body and EVERY comment (rulings and earlier records included)
· PR #35938: its body, its file list, and the net diff against main at d6f24785edef951c39479f85405b1d4d55e3379f
· the check-runs on d6f24785edef951c39479f85405b1d4d55e3379f: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35938/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.
----- to here -----

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP

维护者速读

席位核对 — ACCEPT (L1-c) · repo:objectstack#1 · head d6f24785ed · 2026-11-20T22:43Z

Delta read from e3b53e1148 (REWORK 7050407052) to d6f24785ed, plus body edits. There are four commits, one of them a merge:

  1. Must-fix 1, closed. The skill hunk is reverted: git diff origin/main 7886ee09 -- skills/ is empty. The body says Skills-docs: follow-up #35942, and the content/docs/** updates stay.

  2. Should-fix 2, closed. The follow-ups carry cards: Skill text: record-page rule still teaches the removed stage path and key-field strip (highlightFields / stageField) after #35891 #35942 (skill text), Record page after #35891: refresh the highlightFields / hideFields descriptions, Studio help and stale comments that still describe the removed strip #35943 (spec describe, Studio help, generated hideFields text, stale comments), 主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889 (the records-forms.master-detail-body-tables wording, which belongs to that card's change), and Record page: the owner shows twice when a field group draws owner_id (header meta line plus the group's field) #35941 (owner shown twice).

  3. Should-fix 3, closed. /mnt/project-files/build-seat1/35891/browser-check-fields-dialog.md was run at 1280 and 375 with a temporary, uncommitted requiredWhen on the semantic zoo's code:

    • the server refuses a bare move naming code;
    • the menu's dialog asks only for Code;
    • an empty Move keeps the dialog open with the required message, and the status stays active;
    • a filled Move stores both;
    • there is no horizontal scroll.

    The screenshots are beside the record. It uses a stand-in field, not Opportunity's loss reason, but it runs the same useStageChange path that the unit tests pin for Closed Lost, so it answers the acceptance line.

  4. Nit 4, closed. The first line is the signature with no suffix. l1-face reads Fixes #35891 as the first line, and Fixes #35849 is the intended fold (flagged keywords-other-cards, which is right here).

Nothing else changed in the diff, so the rest of 7050407052's "checked and fine" carries over. Nit 5 is closed by the merge above.

Gates. At 723d28900a: 63 success, 11 expected skip, 0 failed, 0 pending. The floor checks are green and mergeable_state is clean. The seat's TIER_DEFAULT declaration L2 is still owed, and this L1 does not replace it.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: d6f24785edef951c39479f85405b1d4d55e3379f
Local-runs: none

This is a DELTA record. It reviews this head against the record on 723d2890 (7051547558); this record judges only the head named above. Inputs, read at 2026-11-20T22:46Z:

The check-runs on the head: 63 success, 11 skipped, none failing or pending. Check Changeset (both runs), Governed Surface Queue Guard, Type Check UI, Build & E2E UI, Live E2E UI, Test UI 1-16, Test Core 1-10 and PR-body guards are all green. The face is unchanged: no packages/spec path and no governed path in the tree.

① Derived judgments

The changes between the two net diffs are exactly these. Everything else is context shifted by the merge.

S1: closed

② Semver level

  • The levels are unchanged: @object-ui/plugin-detail minor, @object-ui/components minor, @objectstack/lint minor and @object-ui/i18n patch, all in the one fixed group.
  • Metadata-protocol: semantic and Clause-②: yes (widening) are unchanged in the changeset, and right as before. The delta publishes no new member and removes nothing: a JSDoc change and the removal of two pass-throughs that had no effect.
  • The PR body's Clause-②: line now names the field-group-shadowed widening and leaves out useStageChange's parameter, which is package-internal. The changeset bullet matches. The earlier Clause-② nit is closed.
  • Check Changeset is green on the head.

③ Boundary flags

No must-fix, no should-fix.

Implemented-by: claude/project-thread-tpkpoi
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

L2 adoption and landing · 2026-11-20T22:47Z · The seat adopts the isolated declaration-face L2 delta record 7052470651 on head d6f24785 (served at TIER_DEFAULT, owed by Clause-②: yes (widening)). It is PASS with no must-fix or should-fix. It closes S1 of the earlier record 7051547558 on 723d2890 (the options that are accepted but unread are now documented that way, with a changeset line). It also confirms that the merge of main at 170ca481 keeps both intents of rule (d) in validate-semantic-roles.ts: #35925's fields membership and this PR's title-only check. One lint-reach nit is carried as an accepted deviation. The briefs are this PR's earlier comments.

L1-c: REWORK 7050407052, then delta ACCEPTs and 7052429551 on d6f24785 (this head). check-governed-merges --pr 35938 reads NOT governed, with 1735 changed lines. landing-k reads K = 7. On this head, 63 check-runs are success, 11 are skipped and none failed, and the PR is mergeable clean. The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35891 and Fixes #35849. Skills-docs: follow-up #35942. Follow-ups: #35889, #35941, #35943.

@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44833961783 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (5/10) — 失败步骤: Run this shard's tests

    @objectstack/rest:test:  FAIL   local  src/import-template.test.ts > describeTemplateColumns > a required select whose option is marked `default: true` is not starred, and its instructions row says no
      ↳ 失败原因: @objectstack/rest:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • src/import-template.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 12 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Flake reading and re-queue · 2026-11-20T23:26Z · Merge-queue run 44833961783 dropped this PR. Its one failed shard is Test Core (5/10) (job 136626661145): @objectstack/rest src/import-template.test.ts, "a required select whose option is marked default: true is not starred", which failed on "Test timed out in 5000ms". That is a timeout, not an assertion. The file is in a package this PR does not touch (this PR's 44 files are ui/, packages/lint, docs and the checklist). The same test passed on this head's PR run, and this is the PR's first queue failure. The seat reads it as load, not a defect (dev triage 7053122701).

The head d6f24785 is unchanged, so the adoption and landing record 7052500519 still stands. The seat re-arms auto-merge on the same head, once. If it is dropped again on the same test, the seat files it as a flaky-test card instead of re-queueing.

Merged via the queue into main with commit 52fb30c Nov 20, 2026
75 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-tpkpoi branch November 20, 2026 23:34
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…st, a group's own fields and the pinned details column (objectstack-ai#35902, objectstack-ai#35942) (objectstack-ai#36222)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuVUBehQPXWLrrSjKtHkXE93)_

repo:objectstack#1 · os-sales · session_01L6bhgWCfqdb19A74hDYnKp

Part of objectstack-ai#35902
Fixes objectstack-ai#35942
Part of objectstack-ai#36188

Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
Security-touching: no

Area: b1-RS. Claims: objectstack-ai#35902 7072867188 (slice 2; it redoes slice 1,
whose branch never reached GitHub), objectstack-ai#35942 7072873584 (folded), objectstack-ai#36188
7072882981 (this PR is its skills half; the seven platform-checklist
JSON items are PR B, `Fixes objectstack-ai#36188`, after this merges, because a
checklist JSON beside skills paths takes a PR off the low-risk skills
arm).

## 维护者速读

- AI 按技能搭建记录页时,现在知道页签由父对象的 `relatedLists`
决定:没写就照旧全部显示;写了就只显示列出的,按列的顺序;附件、审批、动态用对象名
`sys_attachment`、`sys_approval_request`、`sys_activity` 列进来;一项可写 `{ list,
label, columns }` 给这张子表自己的标题和列。
- 以前技能教「把任务排第一」写 `relatedLists:
['task']`,按现在的规则这会把其他页签全藏掉。技能和评测改成「列出要保留的全部页签,任务排第一」。
- 主从子表默认是页签(objectstack-ai#35921 之后),技能不再说「默认是正文表」;父对象分组指向子表才进字段区,而且只在使用者明确要求时才写。
- 第 1 片(分组用 `fields` 列成员、不再有阶段条和关键字段条、阶段在名字旁的状态标签里)当时没推上来,这次一起补上,关掉
objectstack-ai#35942。
- 右栏、⊟ 开关的文字删掉,改成今天的布局:宽的整页把字段钉在左栏,其余页签在右边。
- 新增三条评测:「去掉附件页签」「税号排在行业后面」「报价单的明细放在金额上面」;指南文档记录页一节加了父单的完整报价单例子。
- 代价:只改技能文字、评测、指南和一个 changeset,不动运行时;四个技能文件都没超上限,上限一个没动(同文件删过期文字来付)。

## What changes

**`skills/objectstack-ui/rules/record-page.md`** (3954 → 3951 B, 988 /
991 tokens)
- Step 1: the stage is the status tag beside the title, whose menu moves
it; no stage bar or key-field strip (`highlightFields` feed hover cards,
pickers, related-list columns) (objectstack-ai#35938, objectstack-ai#35942). `fieldGroups` are the
Details sections, each listing its members in `fields`; absent, the
fields whose `group` names it (objectstack-ai#35925). Layout: a full page fitting 320
px of details beside 400 px of tabs pins the details left, the other
tabs right; unless the details hold a child table or there is no other
tab; otherwise one column, Details first (objectstack-ai#36136,
`recordPagePinsDetails`). The old 760 / 1120 px two- and three-column
text, the right column and the Overview tab are gone.
- Step 2 is now "The parent's `relatedLists` is the tab list" (objectstack-ai#35923):
without it nothing changes; declared, only the named lists show, in
order (unlisted approvals and the stream still follow); the built-ins by
object name; "tasks first" lists every tab to keep; leaving out
`'sys_attachment'` drops attachments; `{ list, label, columns }`; a
built-in is a bare name; a child list another package adds is hidden by
a `relatedLists` that does not name it. Kept from the old step 2:
`relatedList: false`, `relatedListFilter`, the default list view `sort`.
A parent group `{ key, label, relatedList: 'quote_line' }` (no `fields`)
places a child table among the fields, written only when asked (objectstack-ai#35902's
open question); its tab stays unless a declared `relatedLists` omits it
(objectstack-ai#35889's note, seat reading 7048340194, as shipped by objectstack-ai#35923). The old
"`'primary'` default for a master_detail" and "`relatedLists: ['task']`,
no page file" are removed (objectstack-ai#35921, objectstack-ai#35923).
- Step 6: the ⊟ right-column switch is removed (objectstack-ai#36188); the details
column's dragged width joins the reader's choices.
- Paid for in the same file: step 1's retired layout text, step 3's "the
synthesizer fills the rest", step 5's removal release ("removed in
@objectstack/spec 18.3.0 (ADR-0087 D2)": the refusal carries its fix),
step 6's "(drawer or full page, for a drawer-mode object)" and the
deprecated `width` / `drawerWidth` aside, step 1's "the other tabs
right", step 4's "a filtered split (Open vs Closed)" and step 5's
"(`new_window`, `none` are the other members)" and "Field count never
decides".
- The `os:check` example is a quote (`sharingModel: 'private'`) with a
group listing its `fields` and a `relatedLists` entry carrying its own
label and columns.

**`skills/objectstack-data/rules/relationships.md`** (16790 → 16812 B,
4203 / 4203), Detail-page related lists: every child is a tab by
default, a `master_detail` child too; `false` hides; `'primary'` makes a
body table with no tab; a parent group naming a `master_detail` child
places its table there too (written only when asked), and its tab stays
unless a declared `relatedLists` omits it; the parent's `relatedLists`
is the tab list (pointing at objectstack-ui Record Page), with the
built-ins and the entry form; an entry's `label` / `columns` win over
`relatedListTitle` / `relatedListColumns`. Paid for by the old tri-state
bullets, the "Suppress a noisy association" comment, and a shorter
refusal aside ("bar a platform or sibling-artifact name", "one into a
package is stored, placing nothing").

**`skills/objectstack-data/references/examples-objects.md`** (6894 →
6876 B), Field Groups: a group lists its members in `fields`;
`Field.group` is the older spelling, still read; the two refusals named;
the example lists members on the groups.

**`skills/objectstack-ui/rules/navigation.md`** (10251 → 10219 B):
"`fieldGroups` + `Field.group`" is "`fieldGroups`", twice.

**Evals** (`skills/objectstack-ui/evals/record-page.json`, README;
measured, not ratcheted):
- Case 1 (tasks first) now expects the full tab list, `task` first, and
refuses `relatedLists: ['task']` and a group naming the task list. Its
old answer ("already a full-width body table") is wrong since objectstack-ai#35921.
- Case 4: remove the attachments tab: the full list without
`'sys_attachment'`.
- Case 5: a Tax ID field after Industry in the group's own `fields`,
with no `group` on the field.
- Case 6: a quote's line items above its Amount section instead of a
tab: a group `{ key: 'lines', label, relatedList: 'quote_line' }`
between the two, and a `relatedLists` naming the tabs kept without
`quote_line` (an undeclared parent keeps a group-placed table's tab).
- `must_not_contain` tokens are code shapes (`relatedLists: ['task'],`,
`'sys_attachment',`, `group: 'basic' }` …), so an answer that names the
wrong shape in prose is not failed.
- No case's `must_not_contain` token appears in its own reference
answer; every `must_contain` token does (checked by script).

**Guide (`content/docs/ui/pages.mdx`, Record pages)**: the synthesized
default says every related list is a tab by default, the header's status
tag carries the stage with no stage bar or strip, and an unplaced
`'primary'` table sits after the field sections drawn open (it said
"after the first field section"; `bodyTablePlacement` since objectstack-ai#35742). New
subsection "Declaring the tabs and the field groups": `relatedLists` as
the tab list with the built-ins and entries, a group's `fields`, a group
placing a child table (its tab stays unless a declared `relatedLists`
leaves it out), and epic objectstack-ai#35896's full quote example (`os:check`, with
`sharingModel: 'private'`; a comment says `quote_line` is in both places
on purpose, so it is drawn in the details and keeps a tab with its own
columns). The layout paragraph gets its own heading, "How the page is
laid out". "A one-word change on the relationship field" now reads "a
declaration on the parent (a field group naming the list)".

**Changeset** `.changeset/35902-skills-related-lists-tabs.md`:
`'@objectstack/skills': patch`, both declaration lines.

## Small calls made in this thread

- No ratchet ceiling moves: a `scripts/check-skills-token-ratchet.mjs`
edit is outside the low-risk skills arm. All four files fit under their
current ceilings.
- The skill says "no package places its own list yet" rather than naming
the follow-up card: the published catalog refuses internal ids
(`check-doc-authoring`).
- The Inline Editing section of `relationships.md`,
`skills/objectstack-ui/rules/list-views.md:370` and
`skills/objectstack-ui/SKILL.md:48` still teach that `inlineEdit: true`
alone puts the child rows on the parent's form; since objectstack-ai#35921 a parent
field group decides and `inlineEdit` only picks grid or form. Not in
this PR (it is form entry, not the record page's tabs, and it spans
three more files): follow-up for the seat to card.
- `content/docs/ui/field-grouping-and-order.mdx` was not touched: the
brief names the record-page section.

## Verification

(readings against `main` 48c732c, head 7b3f52e)

- Reviews on 4885e48: L1-c REWORK 7073387487 (two must-fixes, both in
7b3f52e); Fable rules L2 PASS 7073403529 (N1 narrowed in 7b3f52e, N2
closed by L1-c's fix 1, N3 = L1-c's fix 2, N4 left).
- `node scripts/check-skills-token-ratchet.mjs`: 60 authored files
within ceilings.
- `pnpm check:skill-links` (270 links, 139 fragments),
`check:skill-identifier-liveness` (549 citations), `check:doc-authoring`
(75 published skill files with no internal ids; 516 doc files clean):
green.
- `pnpm --filter @objectstack/spec check:skill-examples`: 348 marked
examples type-check across 3 surfaces (EXIT 0), the new record-page,
examples-objects and pages.mdx blocks among them.
- `pnpm --filter @objectstack/lint run check:doc-security-posture`: 41
`ObjectSchema.create` examples carry an `os validate`-clean posture (the
first head missed `sharingModel` on both quote examples; CI caught it,
fixed in 4885e48).
- The examples through `defineStack` (cross-reference validation): the
guide's quote with `quote_line`, `task` and `account` accepted; control:
the same quote without `quote_line` is refused (`relatedLists[0]
'quote_line' matches no inbound relationship of 'quote'`); the rule's
short quote with a `quote_line` child accepted; the data skill's account
accepted.
- `node scripts/pm/check-governed-merges.mjs --branch
claude/project-thread-emjngv`: skills/** ×6 (all `.md` or
`evals/*.json`), plus a changeset and one `content/docs` `.mdx`, 296
changed lines; the arm's `--pr` reading follows on the PR.

## Follow-ups

- PR B: the seven checklist items
(`docs/qa/platform-checklist/areas/records-forms.json` ×6,
`attachments-storage.json` ×1), `Fixes objectstack-ai#36188`, in a new session after
this merges.
- objectstack-ai#35902 stays open for the objectstack-ai#35901 batch (extension placement), the repo
example and HotCRM.
- `inlineEdit` skills text (above).

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (skills and doc gates
above)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset.
- [x] 6. `packages/spec` touched: n/a.
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English. (the 维护者速读 block is
the maintainer's Chinese summary)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgWCfqdb19A74hDYnKp

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgWCfqdb19A74hDYnKp -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants