Skip to content

feat(spec, ui): master_detail children are overview body tables by default - #35691

Merged
os-zhuang merged 13 commits into
mainfrom
claude/issue-35597-md-body-tables
Nov 20, 2026
Merged

os-zhuang merged 13 commits into
mainfrom
claude/issue-35597-md-body-tables

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #35597
Part of #35590

Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: follow-up owed — skills/objectstack-data/rules/relationships.md (line 368, "Default for a master_detail FK with inlineEdit"), skills/objectstack-ui/evals/record-page.json ("after the first field section")

维护者速读

  • 用户能看到什么变化:打开带主从子表的记录(例如项目的任务),子表默认以表格出现在概览里、关键字段下方和字段分组上方;没有数据也显示表头和一行“新建”,超过十行可“显示全部”,合计由服务器按全部子记录计算。
  • 为什么做:这是“记录详情页改版”史诗的子卡,落实维护者“子表放在关键字段下面”的要求,不再要求作者额外打开行内编辑才能把子表放进正文。
  • 出错会怎样:原来在侧栏或标签页里的主从子表会移到概览正文;作者在关系字段上改回“侧栏列表”即可恢复原样,本次改动也可以直接撤回。
  • 要你做什么:本次修订了一条架构决策记录(配置驱动的主从关系),需要你审核并合并。

What changes

The rule (isBodyTableRelationship, still the one judgement):

FK relatedList before after
master_detail absent, no inlineEdit side list body table
master_detail absent, inlineEdit set body table body table
master_detail false hidden hidden
master_detail true side list side list
any 'primary' body table body table
lookup absent side list side list

This supersedes two rulings, by id:

Readers that follow the predicate, measured:

  • deriveRelatedLists (isPrimary), RecordDetailView (isBody), and the Studio inspectors. ObjectFieldInspector reads a plain master_detail FK as "primary"; "Show" now writes an explicit relatedList: true. ObjectGroupInspector now offers plain master_detail relationships as group placements.
  • fieldGroupBodyTableRefusal, at defineStack and the lint publish door: widened. A field group may now name a plain master_detail child. It still refuses a lookup side list, relatedList: true, and relatedList: false.

Placement (buildDefaultPageSchema.ts, bodyTablePlacement, the section posted on the card in comment 7023388416):

  • A body table that no field group positions is drawn above the field sections, in the parent's relatedLists order. That puts it under the header strip's stage bar and key fields.
  • A group-positioned table keeps its position.
  • With no section at all, the details node (the highlight fields) leads.
  • A body table never gets a tab or a related-column card. The drawer uses the same synthesized page.

The body-table face (RelatedList.tsx):

  • Totals are server-owned (useBodyTableTotals). There are two sources:
    • When the parent has a summary field that rolls up the same rows (no extra filter, and the list has no own filter), its stored value is used.
    • Otherwise one dataSource.aggregate(child, { aggregations: [sum…], where: parent scope [AND list filter] }) call. A record-mode currency amount is grouped by its code field, and it is totalled only when one code comes back.
    • This uses the existing POST /api/v1/data/:object/query aggregation path. No new endpoint.
    • Totals are drawn as the table's own summaryRow. The client "Totals (this page)" sum is gone. A data source with no aggregate draws no total.
  • Row cap: 10 by default (BODY_TABLE_PAGE_SIZE), and the page's pageSize overrides it. Past the cap, a "Show all N" button (data-body-table-show-all) replaces the pager and expands in place.
  • ↗ (data-body-table-open-list) calls the host's onViewAll. That is the existing useOpenRecordList path, so the child list opens under the parent filter.
  • Empty: the column headers plus one row (data-body-table-empty-row) holding "No related records found" and a New button. The header's New button is hidden while the table is empty.
  • No new i18n keys: the existing list.showAll, detail.viewAll, detail.noRelatedRecords and form.masterDetail.total are reused.

Authored pages (RecordDetailView.tsx, the ~5099 bodyTableIds line only): authoredBodyTableIds(page, relations), a new export of deriveRelatedLists.ts, names the record:related_list nodes an authored page places whose relation is a body table. Those nodes get the body treatment: totals, the empty row, and the cap.

Examples that flip (A1): showcase_task.project, showcase_field_zoo.f_master_detail, showcase_project_membership.team and showcase_project_membership.project. None is a comment, attachment or activity association. The CRM opportunity line item and the showcase expense and invoice lines already declared inlineEdit, so they are unchanged.

Tests

Migrated / added / retired tests

Spec and lint:

  • packages/spec/src/data/related-list-body-table.test.ts: verdict cells moved to the new rule (md with no keys → body; md + inlineEdit: false → body; md + true → side; md + false → none). Added a plainOwned control; the refusal text was updated.
  • packages/spec/src/stack-related-lists-order.test.ts: a plain md is now accepted. The refusal test now covers md + relatedList: false and a hidden lookup.
  • packages/lint/src/validate-related-list-refs.test.ts: added a plain-md group control (no finding).

ui/packages/plugin-detail:

  • src/__tests__/RelatedList.bodyTable-27055.test.tsx: rewritten against a server aggregate mock. It covers the server total, the total over ALL rows at a cap of 1 of 3, show-all, ↗, the empty row, no aggregate meaning no total, the stored roll-up versus filtered lists, and the record-mode groupBy.
    • Retired: "draws the full table with a totals line and no View All" (the client sum). It is replaced by the server-total cases.
  • src/synth/__tests__/buildDefaultPageSchema.bodyTables-27055.test.ts: the new order (tables before the sections), plus a no-section case.
  • src/__tests__/RelatedList.parentCurrency-31912.test.tsx: the total now comes from an aggregate mock and is read off the summary row.
  • src/renderers/__tests__/record-related-list.emptyFold-25895.test.tsx: the empty sentence and New button are read off the empty row.
  • src/__tests__/RecordPageColumns.test.tsx (the test only; RecordPageColumns.tsx is untouched): the approval-band fixture places LINES with a field group, so the split it pins still exists.

ui/packages/app-shell:

  • src/utils/__tests__/deriveRelatedLists.test.ts: md is now isPrimary: true. New describe for authoredBodyTableIds.
  • src/utils/__tests__/deriveRelatedLists.relatedListsOrder-27069.test.ts: a plain md is primary. Added the true / false / 'primary' cells.
  • src/views/metadata-admin/inspectors/ObjectFieldInspector.relatedList-27054.test.tsx:
    • the side-card fixture declares relatedList: true;
    • the show/hide case uses a lookup;
    • new case: a plain md reads as primary and "Show" writes true;
    • collection-time @objectstack/formula / @objectstack/lint imports (check:test-source-alias).
  • src/views/RecordDetailView.harness.test.tsx: new describe "the relation type decides, not inlineEdit" with 3 cases. The 27241 and 27524 side-list fixtures declare relatedList: true.
  • src/views/RecordDetailView.childWriteRefreshesParent-12244.test.tsx, RecordDetailView.recordPageTiers-26678.test.tsx and RecordDetailView.relatedListFilter-4664.test.tsx: these pin side-list mechanics (tabs, badge probes), so their md fixtures declare relatedList: true.
Local runs at f6595c5 (and the merge 2450e9d before it)
  • spec: vitest run over the whole package: Test Files 952 passed, Tests 29054 passed | 1 todo. pnpm --filter @objectstack/spec typecheck passed (VERDICT command-exit 0).
  • lint: vitest run: Test Files 221 passed, Tests 9311 passed.
  • ui, the record-page set (plugin-detail whole package plus app-shell RecordDetailView*, deriveRelatedLists*, the inspectors, PagePreview, AppContent.packagelessRecordRelated-29552): 13 failures after the rule change, all of them side-list fixtures. Migrated as listed above.
    • Re-run of the changed files at the final head: Test Files 88 passed, Tests 762 passed.
  • pnpm --filter @object-ui/plugin-detail type-check + build: exit 0. pnpm --filter @object-ui/app-shell type-check: exit 0.

Acceptance notes

  • Metadata-protocol is declared semantic, not the claim's "widened": the vocabulary is added|narrowed|semantic|none, and this is a changed default reading of an existing key.
  • These comments outside the claimed surface still describe the old inlineEdit predicate. Comments only, no behaviour:
    • ObjectFieldInspector.tsx ~2977 / ~3006;
    • ObjectGroupInspector;
    • RecordDetailView.tsx ~4285 (out of the claimed region);
    • the liveness notes in field.json / object.json;
    • lint data-model-rules.
  • The published skills text needs a follow-up, as named on the Skills-docs: line.
  • A4, the dogfood screenshots of the built console, was NOT MEASURED. Reason: a console build plus a showcase/CRM stack boot did not fit the memory-tight shared box next to the test runs. The overview order, the empty row, the cap, ↗, and "no tab or card" are pinned by the harness and the RelatedList suites above. A new checklist item, records-forms.master-detail-body-tables, carries the live legs.
  • Checklist: added docs/qa/platform-checklist/areas/records-forms.json → records-forms.master-detail-body-tables (rev 1). records-forms.related-list-server-pagination still holds as written: Contacts is a lookup child.

Browser reading (A4)

Built console, headless Chromium (Playwright), 1440x900, deviceScaleFactor 2, light theme, one server at a time on a private port, signed in as the seeded admin. Same data on both sides: the AFTER sqlite file was copied for the BEFORE boot, so record ids match.

  • BEFORE = d9801038 (origin/main merge-base of this PR).
  • AFTER = b4ba2a6d. Commits since then (719ca6f5 the two-key roll-up choice, docs, a describe pin; head now af275005) do not touch the cases read here: no case below has two keys to the same parent. The AFTER side was not re-shot on the current head.
  • This supersedes the "A4 ... NOT MEASURED" note under Acceptance notes.
  • HotCRM is not in this repository. The showcase and CRM examples below stand in for it.
  • Local-only data, added through the REST API: 11 extra tasks on Website Relaunch (13 in all), "A4 Empty Team" (no memberships), "A4 Big Team" (12 memberships), and 3 line items on "Acme — Q3 Platform Renewal".
  • Images are not committed: the repo keeps no review-screenshot convention in-tree. The 36 PNGs (18 per side, CASE-before.png / CASE-after.png) are in the area folder objectstack-seat5/area-ux/ux-2/a4-35597/ on the project files mount.
Case Before (d9801038) After (b4ba2a6d) Verdict
1. Project with tasks, showcase_task.project (Data Platform, 2 tasks) Authored page (Details / Tasks / Related tabs). The task list is in the Related tab, footer "View All". Same tabs and placement: an authored page keeps its own layout. The Related-tab list gets the body face: collapse chevron and ↗ in the header, no footer. No new tab. As designed. The side-card-to-body flip cannot be seen on the project page, because it is authored.
1t. Synthesized page: team with memberships, showcase_project_membership.team (Platform, 2) Memberships tab plus a side card listing "Record #id" rows. Memberships table in the Overview body, above the Team and Other field sections. No Memberships tab, no rail card. All columns, ↗, New. Flip confirmed. No duplicate tab or rail card.
2. Empty child (A4 Empty Team; Legacy Sunset project) Team: an empty "Memberships 0" rail card, and the tab sits behind "+1". Project Related tab: a folded one-line "Tasks 0 · No related records found" with New in its header. No table. Team: body table with column headers and one row, "No related records found" plus New. The header New is hidden. Project Related tab: the same empty row. Pass.
3. Over 10 rows (A4 Big Team, 12; Website Relaunch, 13 tasks) Team: rail card with 3 rows, plus a Memberships tab. Project Related tab: 5 rows a page, a "Page 1 of 3" pager, and "View All". Team: 10 rows and "Show all 12". It expands in place to 12 and the button goes away. Project Related tab: 10 rows and "Show all 13", which expands in place. Pass.
4. CRM opportunity with line items, crm_opportunity_line_item.opportunity (3 lines; line_total 111,000) Body table under the field sections (Owner ... Products Total). No totals line. Body table above the field sections, with a ↗ added. No total row. Placement and ↗ as designed. The missing total is unchanged from before and is not a regression; see the note below.
4s. Control: showcase expense report EXP-2001 (4 lines) Body table under the Report section, with the approval lock band above it. Body table first, with a server total "Total $1,500.50" (equal to the stored total_amount) and ↗. The lock band and Report section follow. Pass. The server total renders.
5. Record drawer (project row; team row) Project drawer: authored tabs, the same as the page. Team drawer: a Memberships tab, plus a Memberships card under the fields. Project drawer: unchanged authored tabs; the Related tab carries the body face. Team drawer: Memberships body table above the field sections, no tab. Pass. The drawer uses the same synthesized page.

Case 4 note: the CRM line item amount is a currency field with no currency of its own, and the CRM example sets no tenant default. Its cells draw without a symbol ("6,000.00"). useBodyTableTotals drops a currency column whose currency does not resolve (if (!currency) continue), and it does so before the stored roll-up branch, so the 111,000 the parent already holds is not drawn. Main's client "Totals (this page)" line had the same gate, and neither side draws a total. Not a defect of this PR, but the expected "server total" is not visible on this record. Whether a stored same-rows roll-up should stand without a resolved currency is the area's call.

Page errors captured during the runs: none on either side.

Verification

Read first, by risk:

  1. packages/spec/src/data/related-list-body-table.ts: the three-line predicate.
  2. ui/packages/plugin-detail/src/RelatedList.tsx useBodyTableTotals: the stored versus aggregate choice, and the groupBy for record-mode currency.
  3. ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts bodyTablePlacement: unplaced tables go before the sections.

Two-minute check: from ui/, run pnpm exec vitest run packages/plugin-detail/src/__tests__/RelatedList.bodyTable-27055.test.tsx. Expect every case to pass, including "the total is the server's over EVERY row, not the rows on show".


Generated by Claude Code

… is a body table

The 2026-10-28 amendment's clause (1) and ruling B on the record-page v3
card required inlineEdit; the maintainer's words on the record-page redo
card drop that requirement. Section 3 (the write side) is unchanged.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
isBodyTableRelationship no longer requires inlineEdit; the field-group
refusal sentence and the relatedList descriptions follow.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
…ns, server totals, show all

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
Authored pages give a master_detail list the body treatment
(authoredBodyTableIds); side-list test fixtures that relied on the old
default declare relatedList: true; a checklist item and the changeset.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
…; collection-time imports

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 4 documentable anchor(s).

11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-driven.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/external-datasources.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/field-types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/validation-rules.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/troubleshooting.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/validating-metadata.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/getting-started/quick-reference.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/kernel/contracts/data-engine.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/backward-compatibility.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectql/types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectui/concept.mdx (via FieldSchema (symbol, a top-level const))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-1.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-3.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-4.mdx (via FieldSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: master_detail (literal, 46 pages)
  • 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 — 174 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 d44b5e3daa828f7402c182770d0c025e537ed726 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 6539ce3c6c5b6c550a1d9079b6616afd0da0126e — the merge of head af275005b9f3e440c75ebcd4ee2f509eb2d8fecd into base d44b5e3daa828f7402c182770d0c025e537ed726, 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 6539ce3c6c5b6c550a1d9079b6616afd0da0126e && git checkout 6539ce3c6c5b6c550a1d9079b6616afd0da0126e
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin d44b5e3daa828f7402c182770d0c025e537ed726 af275005b9f3e440c75ebcd4ee2f509eb2d8fecd && git checkout -B drift-repro d44b5e3daa828f7402c182770d0c025e537ed726 && git merge --no-ff af275005b9f3e440c75ebcd4ee2f509eb2d8fecd

node scripts/docs-audit/affected-docs.mjs --json d44b5e3daa828f7402c182770d0c025e537ed726

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

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs d44b5e3daa828f7402c182770d0c025e537ed726 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…st: true

Since the body-table predicate widened, a plain master_detail FK is a body
table by default, so the refusal's side card is the same FK with
relatedList: true. Fixes the Test Core (6/10) failure on this PR.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:凡是"主从"关系的子表(比如报价单的明细行),在父记录详情页里默认显示为正文里的表格,排在基本信息上方,带服务器算的合计、默认 10 行、「显示全部」和跳转按钮;不再是右侧的小卡片。想保持原样的,在子表字段上写「显示为侧边列表」即可。
  • 为什么做:记录详情页重做专题的一张卡,按您说的「就是 master-detail 表类型的子表」,改为按关系类型决定,不再要求"可在表单内编辑"。
  • 出错会怎样:所有现有应用的主从子表都会换到正文位置;如果排版有问题,影响面是所有带主从子表的详情页。合计来自服务器,不会只算当前看到的几行。
  • 要你做什么:这次改了架构决策记录(ADR-0035),需要您或指定审批人人工合并;席位先做合同复审。
  • 席位意见:通过,只差一处补登记(文字即可);建议合并前补一组真实界面截图,因为所有带主从子表的详情页都会变。

席位核对

L1-a: ACCEPT, one text-only item · head b4ba2a6df69aa874c2ecbc3d3bc2e2b201549a8f · Fixes #35597 (epic #35590, maintainer direct dispatch cited in claim 7023261217) · K=4 · merge-tree clean · GOVERNED: docs/adr/0035-config-driven-master-detail.md, Tier H · 1,290 lines · CI 61 success, 9 skipped, 0 failed · 2026-11-20T00:14Z

The predicate change. isBodyTableRelationship now answers field.type === 'master_detail' when no relatedList is declared. Before, it also required inlineEdit ∈ {true, 'grid', 'form'}. relatedList: false, true and 'primary' answer as before, and a lookup with no relatedList stays a side card. The refusal text loses only the inlineEdit clause.

Clause-② yes (widening): holds, and no narrowing. At defineStack and at the publish door, a field group may now name a plain master_detail child that used to be refused as a side card. Nothing accepted before is refused now: the refused cases that remain, a hidden list and relatedList: false, were refused before too. The pins move accordingly:

  • stack-related-lists-order.test.ts swaps its refusal case to relatedList: false;
  • the protocol save-door CONTROL fixture now says relatedList: true;
  • the lint rule gains an accepted plain-master_detail case.

Existing apps: disclosed. Every parent whose master_detail children declare no relatedList changes its record page: the side card becomes a body table above the field sections. The changeset says so and gives the way back (relatedList: true on the FK), with spec, plugin-detail and app-shell graded minor.

Totals: server-owned, as ADR-0035 binds. Server totals come from the parent's summary roll-up when it sums the same rows, otherwise from dataSource.aggregate over the list's own condition. There is no client sum. Pins: RelatedList.bodyTable-27055.test.tsx has 15 cells, including "total over EVERY row, not the rows on show", "no aggregate ⇒ no totals", "a roll-up with its own filter is not this list's total" (CONTROL) and record-mode currency grouping. deriveRelatedLists and authoredBodyTableIds have CONTROLs too.

ADR. The amendment block is add-only. The one removed line is the Status line, which gains an **Amended** (2026-11-19, #35597…) marker; the word-diff shows nothing else on it changing. It is in its own commit, d4364f43, as the claim says. The seat ruled the override of ruling B (#27478) authorised.

R1 (text only, no push, no fresh L1): claim amendment for the files outside claim 7023261217's surface.

  • Spec sources: packages/spec/src/data/field.zod.ts (the relatedList jsdoc and describe) and packages/spec/src/data/object.zod.ts (the field-group jsdoc and describe). These are published describes, so name them.
  • Tests of fenced or other packages:
    • ui/packages/plugin-detail/src/__tests__/RecordPageColumns.test.tsx (RecordPageColumns.tsx is ⛔);
    • packages/lint/src/validate-related-list-refs.test.ts;
    • packages/metadata-protocol/src/protocol.runtime-authoring-gate.test.ts;
    • packages/spec/src/stack-related-lists-order.test.ts;
    • ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.relatedList-27054.test.tsx;
    • RelatedList.parentCurrency-31912.test.tsx;
    • record-related-list.emptyFold-25895.test.tsx.
      These are the "side-list fixtures in a few out-of-surface tests" the relay names.
  • The generated reference pages fall under "the generated spec baselines it moves".

Nit (for the L2). The relatedList describe still opens "true/absent = shown as an auxiliary panel" and only later says "Absent on a master_detail field, the list is 'primary' by default". The first clause now reads wrong for master_detail; "true (and absent on a lookup)" would match.

Recommended before the human merge (not an L1 item). The A4 browser reading was not measured. This changes the face of every record page with master_detail children in every app. One CRM or showcase pass would show the approver the new layout: a quote with line items, an empty child, and a child over 10 rows. The checklist item records-forms.master-detail-body-tables carries the live legs.

Routing. Clause-② yes (widening) on packages/spec: L2 at CONTRACT_REVIEW_TIER by seat 5. Then Tier H for the ADR path: the maintainer's merge, or an APPROVED review from GOVERNED_APPROVERS (os-zhuang / hotlong) followed by the seat's landing. Skills text follow-up #35692 is filed and blocked by this card.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b4ba2a6df69aa874c2ecbc3d3bc2e2b201549a8f
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, packages/spec/src/data/object.zod.ts, packages/spec/src/data/related-list-body-table.ts, docs/adr/0035-config-driven-master-detail.md + ui/packages/plugin-detail/src/RelatedList.tsx, ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts, ui/packages/app-shell/src/utils/deriveRelatedLists.ts, ui/packages/app-shell/src/views/RecordDetailView.tsx
Security-touching: no

PR #35691, card #35597. Read: the card body and its four comments (triage, claim, section notice 7023388416, dev report), the PR body, the 29-file list, the net diff against main, and the check-runs on this head (every run success or skipped, none failed). The epic #35590 is not an input of this review, so the maintainer's words are checked against the card body only.

① Derived judgments

  • isBodyTableRelationship: one verdict cell moves. A master_detail FK with no relatedList and no inlineEdit (absent or false) was a side list and is a body table. relatedList: 'primary' stays body, true stays side, false stays hidden, a lookup with no relatedList stays side, any other field type stays false. Right against card rule 1, cell by cell.
  • fieldGroupBodyTableRefusal, at defineStack and at the publish door through @objectstack/lint: the accept set widens. A field group may name a plain master_detail child. Because the body set only grows, no group that parsed or published before is refused now. Right, and it follows from the one predicate with no second copy. The metadata-protocol test fixture moving to relatedList: true confirms the runtime door follows.
  • Nothing narrows. Every consumer of the predicate at this head was read (stack.zod.ts, validate-related-list-refs.ts, deriveRelatedLists.ts, RecordDetailView.tsx, both Studio inspectors): none refuses a relationship for being a body table, so the widened predicate takes nothing away from an author.
  • RelatedListRelationshipFields.inlineEdit stays on the exported interface and is no longer read. Right: the public type does not move, and a caller may still hand over the whole field.
  • FieldSchema.relatedList and ObjectFieldGroupSchema.relatedList: the parse accept sets are unchanged (boolean | 'primary'; the entry pattern). The meaning of an omitted relatedList on a master_detail FK changes. Right as a changed default.
  • Stored metadata: no rewrite and no conversion. A stored object with a plain master_detail FK draws its child in the overview after upgrade; the opt-out is relatedList: true, and the changeset says so. Right for a changed default, which ruling A does not treat as a break.
  • New UI export authoredBodyTableIds (app-shell). The client sum "Totals (this page)" is removed and replaced by server totals. Right against card rules 5 and 7.
  • Owed, outside the diff and not graded: the shipped D3 entry packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts still lists "a plain master_detail with no inlineEdit" among the refused shapes and quotes the old predicate in its reason. After this PR, os migrate meta prints a notice for a shape that is accepted. The dev's list of stale comments does not name it. A follow-up card should cover it.

② Semver level

The kind is semantic, and that is the right word from the closed vocabulary (added / narrowed / semantic / none, AGENTS.md Post-Task Checklist step 3). The diff carries two protocol facts: a changed default (an omitted relatedList on a master_detail FK), which is semantic, and a newly accepted value at the field-group check, which is added. Nothing is narrowed (see ①). The precedence rule puts semantic over added. The claim's "widened" is not in the vocabulary, and the dev was right to replace it.

The level follows the kind: at least minor on every package the diff moves. The changeset takes minor on @objectstack/spec, @object-ui/plugin-detail and @object-ui/app-shell, which are exactly the three packages with non-test source in the diff. packages/lint and packages/metadata-protocol change tests only and publish nothing. No ADR-0087 disposition is owed for this kind.

The Clause-② line reads yes (widening) in the PR body and yes (widening: …) in the changeset. The reader takes the first token inside the parenthesis as the arm, so both read the same value and the same arm, and the Metadata-protocol line is present and identical in both. Consistent.

③ Boundary flags

Dev deviations, each answered:

  • Kind declared semantic, not the order's "widened": accepted, see ②.
  • No new i18n keys, four existing keys reused: accepted; a lane matter.
  • Tests of fenced sources edited for fixtures only: lane seat's ACCEPT; the fenced sources themselves are not in the file list.
  • RelatedList.tsx edits run past the claimed line range: accepted. Every hunk is gated on bodyTable or lives inside the totals hook. For a list that is not a body table, effectivePageSize, the pager and the New button compute as before.
  • Stale comments left outside the surface: accepted as follow-up, together with the D3 entry named in ①.
  • The section comment on the card: as ordered.
  • open_questions: none.

Questions put to this review:

  • New server aggregate path: none. The file list holds no server source. The totals call the data source's existing spec-shape aggregate, which on main posts aggregations, where and groupBy to the existing data query (ui/packages/data-objectstack/src/index.ts, the looksLikeSpecShape branch).
  • SQL push-down: the sums run in the database through that aggregate: one call for the plain columns, one more per record-currency code field with groupBy. No id materialisation and no in-app join is added. The client sum over the rows on show is gone, which is the SQL-first direction.
  • buildDefaultPageSchema.ts is confined to the section posted in comment 7023388416: three hunks, the isBody option doc, the bodyTablePlacement doc and the bodyTablePlacement body. synthTabs, the tab strip, highlights, header, timeline, approvals and attachments are untouched, so nothing here meets 记录页页签规则:第一个叫「概览」并含通栏的阶段条和关键字段;列出全部子表、带条数、只按宽度收进下拉;附件、审批、互动各一个页签 #35595's sections.
  • ADR-0035's form side is untouched in code: no form-derivation file (attachInlineSubforms, plugin-form) is in the diff.

Escalated to the maintainer's merge read:

④ Design judgment

S1 (should-fix) — ui/packages/plugin-detail/src/RelatedList.tsx, rolledUpSums, the sameRows test: an absent summaryOperations.relationshipField is read as "this list's FK". The engine resolves an absent one to the child's FIRST lookup / master_detail field that references the parent (packages/objectql/src/engine-summaries-and-expansion.ts, the fkField = cfName; break scan), and nothing at authoring refuses the omission. So when a child has two FKs to the same parent and the parent's sum roll-up omits relationshipField, the body table of the FK the engine did not pick draws the other FK's stored roll-up as its own total. That contradicts the amendment's "sums that column over the same rows" and card rule 5. The shape is rare and legal, the figure is wrong with every gate green, and no test covers a two-FK child. Fix: with relationshipField absent, grant sameRows only when this list's FK is the one the engine would pick (or the child's only FK to the parent), else fall through to the aggregate; add the two-FK case to RelatedList.bodyTable-27055.test.tsx.

N1 (nit) — packages/spec/src/data/field.zod.ts, the relatedList describe still opens "true/absent = shown as an auxiliary panel". Taken alone that clause is no longer true for a master_detail field. The same string then states the rule correctly and completely ("Absent on a master_detail field, the list is 'primary' by default … absent on a lookup field it is an auxiliary panel"), so a reader of the whole description cannot arrive at the wrong rule, and the accept set and behaviour are unaffected. That makes it wording, not contract. The TSDoc above it received the qualifier in this same hunk and the published describe did not. Rewrite the value table by type ("true = auxiliary panel; absent = 'primary' on a master_detail field, auxiliary on a lookup field") when S1's fix moves the head, or on a follow-up card; it regenerates three reference pages.

N2 (nit) — docs/adr/0035-config-driven-master-detail.md, the new note says such a table "sits … under the header strip and above the field sections". It omits that a field group's relatedList still positions a table among the sections, and that with no section the details node leads. bodyTablePlacement does both, and the relatedList TSDoc says the first.

N3 (nit) — the same note cites "§3" for "Only inlineEdit children are inlined". ADR-0035 has no numbered sections; the sentence sits under Decision, "Derivation rules". The quotation finds it, the number does not.

N4 (nit) — RelatedList.tsx: on the enlarged face a chip (mine, overdue) narrows the rows shown, while the totals line stays the total of the whole list and is labelled only "Total".

By file:

No must-fix. One should-fix, S1, open on this head.

Implemented-by: claude/issue-35597-md-body-tables
Reviewed-by: isolated-l2-35691

VERDICT: PASS

…s total only on the engine's key

With summaryOperations.relationshipField absent the engine sums through the
child's FIRST lookup / master_detail field referencing the parent
(ObjectQL.buildSummaryIndex). A body table on any other key to the same parent
now asks the server aggregate instead of drawing that key's stored roll-up.
Pinned with a two-key child; the single-key fixture names its key.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
…ts section by name

A field group's relatedList still places a body table among the field
sections, and with no field section the details node leads. The write-side
rule is cited by its section, Decision → Derivation rules, not a number.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
true = auxiliary panel; absent = 'primary' (a body table) on a master_detail
field, an auxiliary panel on a lookup field; false = hidden; 'primary' = a
body table.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
The describe now states true, absent (by field type), false and 'primary'
separately; the pin follows it and refuses the old merged true/absent cell.

Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
os-dev-report

Contract L2 rework round, delta report. Head af275005 (was b4ba2a6d). Commits: 719ca6f5 S1, aa146761 N2+N3, 0c84cf7e N1, 9ad58e75 regenerated references, af275005 the describe pin the N1 rewrite left red (Test Core 2/10 on 9ad58e75).

  • S1, done. RelatedList.tsx rolledUpSums: a roll-up with no relationshipField grants sameRows only when this list's key is the engine's pick, the child's FIRST lookup / master_detail field whose reference is the parent (engineRollUpForeignKey, the same scan as the engine's summary-index build). A single-key child is the same case. Any other key falls through to the server aggregate. Pinned in RelatedList.bodyTable-27055.test.tsx: on a two-key child the engine's key reads the stored roll-up and the other key calls the aggregate with its own key in where. A CONTROL checks that a roll-up naming the second key is that list's total. The single-key cases are unchanged.
  • S1 ablation. The old sameRows expression was put back through scripts/ablation-replace.mjs (anchor 1 to 0, blob 2c8f50ed to 004eb7c4). Result: the two-key test went red, expected '7' to contain '383,000.5', because the other key's table drew the stored roll-up. Tests 1 failed, 25 passed. Restored: blob back to 2c8f50ed (HEAD), git diff HEAD empty.
  • N1, done. The field.zod.ts relatedList describe now gives each value its own entry: true = auxiliary panel; absent = 'primary' (body table) on a master_detail field and auxiliary panel on a lookup field; false = hidden; 'primary' = body table. The reference pages were regenerated. record-page-describes.test.ts now pins each value's role in the new wording and checks that the old merged true/absent cell is gone.
  • N2, done. The ADR-0035 note now says that a field group's relatedList still places a body table among the field sections, and that with no field section the details node comes first.
  • N3, done. "§3" is replaced by "(Decision → Derivation rules)".
  • N4, left as is. No existing i18n key labels a total as the whole list. The only candidates are form.masterDetail.total / report.total ("Total"), detail.bodyTableTotals ("Totals (this page)", which is the opposite meaning) and filter-tab "All records" keys. Fixing this would need a new key, which the order rules out.

Tests on af275005 / 9ad58e75, run under the verify lock:

  • RelatedList.bodyTable-27055.test.tsx: 26 of 26 pass.
  • spec related-list-body-table + field + record-page-describes: 339 of 339 pass. The same run on 9ad58e75 was 1 failed, the stale pin.
  • @object-ui/plugin-detail type-check (both tsc programs): exit 0.

Gates: 112 families derived for this round's files, all reconciled with --ran and their exit codes.

  • 109 exit 0.
  • 3 not measured (exit 3, prerequisite not met in this checkout, not findings):
    • check:plugin-teardown-shape --self-test needs an unshallowed clone.
    • check:skill-examples and check:dual-build-cjs-loads need dists outside this diff's build closure.
  • CI on af275005: every completed run reads success, Test Core (2/10) included. The Test Core aggregate was still in_progress when this was read.

The PR body was not touched.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

VERDICT: PASS

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: af275005b9f3e440c75ebcd4ee2f509eb2d8fecd
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, docs/adr/0035-config-driven-master-detail.md + ui/packages/plugin-detail/src/RelatedList.tsx
Security-touching: no

This is a DELTA record for PR #35691 (card #35597). It covers b4ba2a6d..af275005 only: five commits, 8 files, +108/-30. The record on b4ba2a6df69aa874c2ecbc3d3bc2e2b201549a8f (comment 7026219725) stands for everything outside that range. Read: the delta diff, the dev's delta report (comment 7027457739), and the check-runs on this head (63 success, 11 skipped, none failed). object.zod.ts and related-list-body-table.ts do not move in the range.

① Derived judgments

② Semver level

Unchanged. The changeset is not in the range. A describe rewording and a UI fix add no protocol fact, so the kind stays semantic and minor on the same three packages still holds. The Clause-② line is untouched.

③ Boundary flags

④ Design judgment

S1: closed

engineRollUpForeignKey is the engine's pick exactly, not a conservative approximation of it. Both scan the child's fields in declared order, keep only lookup / master_detail, and take the first whose reference is a string equal to the parent's name. The engine's carrier reader (referenceCarrierOf, packages/spec/src/data/field-value.zod.ts) reads the reference key alone: an absent, null or empty one is skipped, and a non-string one is caught and skipped. The UI's strict equality against a non-empty parent name skips the same three. No other carrier spelling is read by either side, so there is no case where the engine picks a field the UI passes over. Where the two could differ, the UI falls to the aggregate: an unknown parent name, or a relationshipField of '' or null (the engine auto-detects, the UI grants nothing). The two-key cell pins both sides (the engine's key reads the stored figure with no aggregate call; the other key aggregates with its own key in where), and the CONTROL pins a roll-up that names the second key.

N1: closed. The describe now states each value by field type: true is an auxiliary panel; absent is 'primary' on a master_detail field and an auxiliary panel on a lookup field; false is hidden; 'primary' is a body table. All five cells agree with the predicate. Three reference pages are regenerated and the describe pin follows.

N2: closed. The note now says a field group's relatedList still places the table among the field sections, and that with no field section the details node leads. Both match bodyTablePlacement.

N3: closed. "§3" is replaced by "(Decision → Derivation rules)", which is where the sentence sits.

N4: accepted as it stands. The figure is the whole list's total, which is what card rule 5 asks for and what the label "Total" says. Saying "whole list" beside an active chip needs a new i18n key, and the order rules new keys out. No follow-up is owed unless the maintainer wants a chip-scoped total.

The ADR edit stays a note. It touches only the body of the #35597 amendment note: one parenthetical that restates the field-group placement #27069 already decided and the no-section order the code already had, and one citation by name. The status line, the form-side rule and every other paragraph are byte-identical to the earlier head. Nothing is decided beyond the stated supersession of ruling B on #27055 and of clause (1) of the #27069 amendment.

No must-fix, no should-fix.

Implemented-by: claude/issue-35597-md-body-tables
Reviewed-by: isolated-l2-35691

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

维护者速读

席位核对 — ACCEPT · repo:objectstack#5 · head af275005b9f3e440c75ebcd4ee2f509eb2d8fecd · 2026-11-20T01:30Z

  • Shape: +1108/−272 (1,380 lines, under 3,000). Fixes #35597. Body tables for master-detail children in the overview, decided by relation type; spec related-list-body-table.ts + field.zod.ts; plugin-detail RelatedList; synth placement; ADR-0035 note.
  • Contract review: L2 PASS with S1 + N1–N4 (7026219725), then delta b4ba2a6d..af275005 PASS, no must-fix or should-fix (this PR, just above). S1 (two-FK roll-up total) closed and pinned with an ablation; N4 accepted as it stands.
  • Gates: CI on this head 63 success, 11 skipped, 0 failed.
  • Tier: H — an ADR edit that is not add-only, spec minor, Clause-②: yes, Metadata-protocol: semantic. K = 13 (< 15).
  • Landing clause: this stroke marks ready, requests os-zhuang and hotlong, and adds pm:awaiting-merge. After an APPROVED review from GOVERNED_APPROVERS, the owning area (ux-2) lands it.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 01:31
@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 9b6db73 Nov 20, 2026
80 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35597-md-body-tables branch November 20, 2026 02:17
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…merged (objectstack-ai#36273)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XC63go34oEMBFaBgqpoDC8N)_

Fixes objectstack-ai#35701
Fixes objectstack-ai#36211

Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — no skill teaches either entry's text;
`skills/objectstack-ui/rules/record-page.md` §4 already says a `kind:
'full'` page is drawn on the desktop full page only, and no skill names
the field-group refusal's shapes

## 维护者速读

- 用户能看到什么变化:作者运行升级命令时看到的两条升级说明改成与现行规则一致;界面和检查都不变。
- 为什么做:主从子表与字段分组的规则、以及完整记录页只在桌面完整页按原样显示的规则都已合入,两条已发布的升级说明还写着旧说法。
- 出错会怎样:只改说明文字,不改任何检查、拒绝或数据,可直接撤回。
- 要你做什么:无。第三张卡(objectstack-ai#35846,检查清单里主从子表那一项)不在本 PR:它已被 objectstack-ai#36188 的 PR objectstack-ai#36284
取代并关闭,那条清单项在那边按新规则重写。

Seat: `repo:objectstack#4 · os-project-manager ·
session_01FEkQ5kDGa1ViantgrfH797`, area a4-I. Card 35846 was folded into
this dispatch and is **left out of this PR on purpose**: see Acceptance
notes.

## Read first

1.
`packages/spec/src/migrations/entries/semantic/18.field-group-related-list-side-card-refused.ts`:
the riskiest hunk is the `reason` parenthetical and the "Ruling B keeps
the FK's declared relatedList authoritative" sentence. Check them
against `isGroupPlaceableRelationship` / `fieldGroupBodyTableRefusal` in
`packages/spec/src/data/related-list-body-table.ts`.
2.
`packages/spec/src/migrations/entries/semantic/18.page-slots-tabs-retired.ts`:
the `replacement` tail now reads like `PAGE_SLOTS_TABS_REMEDY` in
`packages/spec/src/ui/page.zod.ts`.
3. `packages/spec/liveness/object.json`: one dated sentence was added to
the `fieldGroups[].relatedList` note.

Two-minute check: `pnpm --filter @objectstack/spec exec vitest run
--maxWorkers=2 src/ui/page-slots-tabs-retirement.test.ts
src/migrations/migrations.test.ts`. Both files should pass. The D3 pin
still finds `` `kind: 'full'` `` and no tracker number in any field
shown to authors.

## What changes

- **`field-group-related-list-side-card-refused`** (card 35701). Since
the body-table predicate was widened, a field group may place a
`master_detail` FK that declares no `relatedList`, with or without
`inlineEdit`, and the group makes it a body table.
`isGroupPlaceableRelationship` accepts this shape, and so do the
`defineStack` and publish-door refusals. The entry still listed it as
refused. Changes:
- `surface`: the shape "a plain master_detail with no inlineEdit" is
removed from the refused list.
- `replacement`: "for an inline-edited master_detail remove an explicit
`relatedList: true`" becomes "for a master_detail …".
- `reason`: the old predicate in the parenthetical is replaced by the
merged one. The text matches the refusal sentence: "`relatedList:
'primary'`, or a master_detail FK that declares no relatedList, which
the group makes a body table".
  - The entry's header comment is corrected the same way.
  - The `id`, `acceptanceCriteria` and every predicate are unchanged.
- **`page-slots-tabs-retired`** (card 36211). The `replacement` tail and
the `acceptanceCriteria` now say a `kind: 'full'` page is drawn as
authored on the desktop full record page, and that a phone and the side
preview draw the standard record page with the composed strip. This
matches the remedy and describe as merged in `92e0475e`. The pin file's
docblock line says the same.
- **Stale notes from 35701, comment only:**
- `packages/spec/liveness/field.json`: the `relatedList` evidence now
says "absent on a master_detail FK that a parent field group places".
- `packages/spec/liveness/object.json`: the `fieldGroups[].relatedList`
note gains one dated sentence about the widened placeable set. Verdict
unchanged: LIVE.
- **Checklist quote (scope addition 7027500679):** in
`docs/qa/platform-checklist/areas/records-forms.json`, item
`records-forms.related-list-server-pagination` steps[1] quotes the
`relatedList` describe. The quote now matches the describe as it stands
on `main`. This is the only edit in that file. No other item and no
revision changes: it is a correction to a quote, and what the step asks
the grader to do is unchanged.
- Changeset `.changeset/35701-shipped-text-after-body-tables.md`:
`@objectstack/spec` minor. The kind is `semantic`, and per AGENTS.md
step 3 a kind other than `none` takes at least minor. PR `92e0475e` used
the same level for its describe-only change.

`os migrate meta` lists the same entries for the same stacks.
`relevantWhen` is keyed on top-level stack keys and is untouched, and
the edit is in place: no new entry and no superseding entry.

## Tests

<details><summary>Spec unit tests and gates (filled from the local run,
see Verification)</summary>

At head `483e6f51f` (all under `scripts/pm/os-verify-lock.sh`, VERDICT
command-exit 0 each):

- `pnpm --filter @objectstack/spec test`: Test Files 869 passed (869),
Tests 27877 passed, 1 todo. This includes
`src/ui/page-slots-tabs-retirement.test.ts` (the D3 entry pin) and
`src/migrations/*.test.ts`.
- `pnpm --filter @objectstack/spec typecheck`: exit 0; `registry.ts is
current (638 semantic, 307 retired-key, 249 retired-def)`.
- `pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2
test/migrate-meta-engine-guidance.test.ts` (the os migrate meta guidance
pin), after building the cli closure: Test Files 1 passed, Tests 3
passed.
- No ablation: no tested behaviour changed (text only).

</details>

## Acceptance notes

- **Card 35846 not done (its premise was overtaken).** Its Done-when
asks the item to cite "the 2026-11-20 ADR-0035 note". That note was PR
35845, which was closed unmerged by maintainer ruling on 2026-11-20
22:08Z: 「35845 和新规则冲突,直接关闭作废」. The ADR on `main` has no such note.
Separately, `f3c9d426f` (2026-11-21) made a plain `master_detail` child
a tab by default. It is a body table only where a parent field group
places it, and it is then drawn at that group's position. The item
`records-forms.master-detail-body-tables` assumes the old default
throughout: **Resolved 2026-11-22:** the seat closed objectstack-ai#35846 as
superseded by objectstack-ai#36188; PR objectstack-ai#36284 rewrites the item to the objectstack-ai#35921 rule (no
citation of PR 35845).
- its title says "a table in the record overview by default … never a
tab";
- its fixture is `showcase_task.project`, which no `showcase_project`
field group names;
  - clause [2] and the negatives say the list has no tab;
  - its rule cells read "no relatedList → body".

Writing only the new order would leave the item false, so this PR makes
no edit to it. The next step is in the report's `open_questions`.
- **Scope addition, quote target.** The addition asked for the describe
"as merged by objectstack-ai#35691". `f3c9d426f` has since replaced that describe: its
"absent = 'primary' on a master_detail field" no longer holds. The quote
therefore uses the describe on `main` at `c30ce97c`. Quoting the older
text would have added a false statement.
- **35701's stale-note list, measured at `c30ce97c`:**
- Already current, no edit made (refreshed by the objectstack-ai#35889 / objectstack-ai#35921 work):
ObjectFieldInspector (`readRelatedListMode` docblock, now at about line
3058) and the ObjectGroupInspector `RelatedTablePlacement` docblock. The
`lint data-model-rules` notes at :292 and :1012 already cite the group
rule.
  - Skipped by order: RecordDetailView (seat 1 is editing it).
- Left alone, under `ui/` and outside this claim:
`ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts:306`
"drawn as authored" (docblock).
- **Not touched, by rule:** `packages/lint/CHANGELOG.md` near line 2317
still states the old remedy in a released entry. Package changelogs are
release-owned. Correcting a released entry takes its own docs-only PR.
- **Remaining wording drift, out of scope:**
`field-group-related-list-side-card-refused` still says "side card in
the related column". Since the tab row work, a non-body list is a tab
with a rail card. The card asked only for the predicate.

## Verification

Gate families derived by `node scripts/pm/dispatch-gates.mjs --commands
--repo objectstack-ai/objectstack` at `483e6f51f`: 92 commands, all run
under the lock; `--ran` reconciliation: 92 derived, 92 run, 0 UNRUN.

- 87 exited 0 on the first pass, among them `check:spec-changes`,
`check:upgrade-guide`, `check:docs` (249 generated files in sync),
`check:liveness`, `check:platform-checklist` (16 areas, 436 items OK),
`check:doc-authoring`, `check:nul-bytes`, `check:issue-citations`,
`check:adr-0087-registration`.
- 3 answered PREREQUISITE NOT MET (exit 3 or 1, an unbuilt package) and
exited 0 after `pnpm --workspace-concurrency=2 --filter
'@objectstack/cli...' build`: `migrate-meta-engine-guidance.test.ts`,
`check:doc-formula-expressions`, `check:lean-entry-closure`.
- NOT MEASURED: `check:dual-build-cjs-loads`, which needs a full
workspace build (105 packages without dist). CI's Lint & Repo Gates runs
it.
- NOT MEASURED: `check-plugin-teardown-shape.mjs --self-test`, whose
positive control is pinned to a commit this shallow clone cannot reach.
It is checker health only and cannot judge this diff.
- `generated references`: `content/docs/references/**` embeds neither
entry (`git grep` finds both ids only in release notes), so nothing was
regenerated. The upgrade guide and spec-changes are gitignored
projections, checked in memory above.
- Overlap: `node scripts/pm/overlap-check.mjs`: VERDICT clean (PRs 36233
and 36223 share `records-forms.json` and merge cleanly).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kDGa1ViantgrfH797)_


<!-- signed: repo:objectstack#4 · os-project-manager ·
session_01FEkQ5kDGa1ViantgrfH797 -->

---------

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 protocol:data 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

Development

Successfully merging this pull request may close these issues.

主从子表默认放进记录页概览左侧(关键字段下面),始终显示、带合计;判断规则改为按关系类型

3 participants