Repository navigation
feat(spec): relatedLists is the record page's tab list, with built-in tabs by object name and per-entry title and columns - #35923
Conversation
Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
… record page) Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
…eset, tests Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
The bare alias is z.input; the parsed state is RelatedListEntryParsed. Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 4 package(s): 29 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 14 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 174 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 662bff244aee41d897c51551020f561778555852 && git checkout 662bff244aee41d897c51551020f561778555852
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin af2361ee85bf5e3d2192f9f69467bed67270f188 db548f418d60cef4f312b2b8116b5a1d7b3aebc3 && git checkout -B drift-repro af2361ee85bf5e3d2192f9f69467bed67270f188 && git merge --no-ff db548f418d60cef4f312b2b8116b5a1d7b3aebc3
node scripts/docs-audit/affected-docs.mjs --json af2361ee85bf5e3d2192f9f69467bed67270f188
|
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读
席位核对 — preliminary read (L1-c), no verdict · repo:objectstack#1 · head
|
… served under the FLS mask Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
Built-in tabs by object name, an entry's own title and columns, and every write keeps object entries and built-in names. Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
…-7vyy7l # Conflicts: # docs/adr/0035-config-driven-master-detail.md # ui/packages/app-shell/src/utils/deriveRelatedLists.ts
…laced master-detail table too An unlisted group-placed table stays at its group with no tab; the tab it keeps on an undeclared page shows only when an entry names it. The tab-by-default texts say so, and the tests follow the merged semantics. Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth Co-authored-by: Claude <noreply@anthropic.com>
…ed entry columns resolve; cross-package lists stated Review M1: the object form's relatedLists row used string-tags, which renders each element as a chip and broke on an object entry. It now names a related-list-entries widget that keeps every entry's stored form, and its help text (all ten locales; zh label 记录页页签) states the tab-list meaning. Review S1: an entry's dotted column walks the child's relationships, as the FK's relatedListColumns does. Review S2: the describe, both ADR notes and the migration entry say a child list another package adds is hidden too until the parent names it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgURTiPNmm7xNw3nsmz
…ge lists Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgURTiPNmm7xNw3nsmz
…dget tests
check-test-source-alias: the tests this PR edits reach import('@objectstack/formula')
and import('@objectstack/lint') through widgets.tsx; load them at module top.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgURTiPNmm7xNw3nsmz
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Posted 2026-11-22T01:33Z. The delta brief handed to the same isolated schema-face reviewer for PR #35923 at Contract review brief — PR #35923 @
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob Contract reviewServed-tier: Delta round on record 7071342837 (FAIL at Check-runs on this head: 74 runs, 0 failed, 0 pending. 63 success (Test Core 10/10 shards, Test UI 16/16 shards, both type checks, Lint and Repo Gates, Lint UI, Build Core, Build Docs, Build and E2E UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards), 11 skipped (opt-in or schedule-only jobs). M1: closed ① Derived judgments
② Semver levelThe changeset adds ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · os-sales · session_01L6bhgXtcSJVbw8Gny1ERbP 维护者速读Fable 指出的三处都改好了,我读的部分没有发现新问题: 席位核对 — ACCEPT (L1-c, delta) · repo:objectstack#1 · head
|
|
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob 维护者速读对象上声明的 Tier H approval request · 2026-11-22T01:37Z · @os-zhuang, PR #35923 (#35897 + #35899, epic #35896) is ready for your review on head Why it needs a human. Two governed paths: What it does. A declared Reviews.
Open for your read and Sales's.
Gates.
After your approval and Sales's answer, the seat readies this PR and lands it through the queue. The PR carries |
…he parent's relatedLists, and Studio shows it with its source Flips the hiding #35923 shipped (Sales ruling 7073014077): an unplaced list whose child belongs to another package than the parent shows at the end of the tabs, before a trailing approvals / stream run; a placed one sits at the entry the server splices in. A child of the parent's own package, or one no package owns, is still the parent's to list. Studio's tab-list editor shows such a list read-only with a from-package badge and previews it where the record page draws it. Claude-Session: https://claude.ai/code/session_01L6bhgUxeTKkCvZ2iariHQf Co-Authored-By: Claude <noreply@anthropic.com>
… on, Approve leads the band, one time face (objectstack-ai#36095) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu5xKbCuyXQ5nYfei9GkjzN3)_ Fixes objectstack-ai#35415 repo:objectstack#1 · os-sales · session_01L6bhgW5RH2VUXjRj9dZYH2 Clause-②: yes (widening) Metadata-protocol: none The widening: `@object-ui/components` takes one optional member, `RecordHeaderState.title`, and exports its type `RecordHeaderTitle`. Nothing is removed or renamed. ## 维护者速读 - 审批请求页的标题从流程名(「费用报告签批」)换成审批人要看的业务记录名(「EXP-2001」),点标题就打开那条记录。只有页面自己读得到那条记录时标题才是链接;无权读、读不到、或平台标记已删除时,标题只显示名字、不能点,和同页「提交时的内容」卡片的规则一致。取不到记录名时仍显示流程名,标题里不会出现裸记录 id。 - 流程名只在标题下方高亮条的「流程」一格出现一次。卡片第 1 条写了「副标题写流程名」,这里没有加副标题:那一格已经紧贴在标题下方,再加副标题就是卡片抱怨的重复。 - 审批条里「通过」仍是实心主按钮,「驳回」改为描边加危险色文字,「通过」成为页面上最醒目的按钮。业务记录页上的审批条是同一个组件,也一起变。 - 审批动态里的时间改成和页头一样的写法(`2026/11/21 上午10:09`),不再带秒。 - 列表、搜索、最近访问和面包屑里,审批请求仍按流程名称呼,对象定义不变。只改前端显示,可以整体撤回。 ## What changes Card objectstack-ai#35415 lists four defects on the approval request page. Read against main `fe753492`, two still held, one held in part, and one was already fixed: | Card item | On main | This PR | |:---|:---|:---| | 1. The title is the flow's name; the record cannot be opened from it | held | the title names the record and links to it | | 2. "As submitted" truncates text fields | fixed by objectstack-ai#34588 (the record is drawn whole, values wrap) | nothing to do; the screenshots confirm | | 3. Approve looks weaker than Reject | half: Approve was already filled, Reject was filled red | Reject becomes a destructive outline | | 4. Two time formats on one page | held | the timeline uses the page's one face | - **The page title (`RecordDetailView`, new `approval-decision/approvalSubjectTitle.tsx`).** On a `sys_approval_request` page the header names the business record by the `record_title` the approvals get already serves for it, as a link through the page's own record route (`RelatedRecordActionsBridge`'s `recordHref` / `openRecord`, the route the "As submitted" card's "Open record" link takes). A plain click opens the record the way the page opens one, which is the record drawer one level down on a desktop record page; a modifier or middle click keeps the anchor's new-tab behaviour. The name is a link only once one of the page's own reads of the record returned it, the rule the card's link follows (objectui#12557, objectui#11878): `SubmittedRecord`'s current read and `RecordPreviewCard`'s read report what they found through the new `RecordReadReportContext` (`approval-decision/recordReadReport.ts`), which `RecordDetailView` provides on a request page only. The title makes no read of its own. A refused, unresolvable or platform-deleted subject is named as plain text. Where the get serves no `record_title`, or one equal to the bare `record_id`, the header keeps the request's own title (`process_label`), so the page never names its subject by a raw id. That is the guarantee objectstack-ai#24665 / PR objectstack-ai#24708 gave the H1, kept here. - **`RecordHeaderState.title` (`@object-ui/components`).** The host hands `{ text, node? }`, and `page:header` draws `node` (else `text`) in its H1 in both faces: in the host's top bar and in its own row (phone, and pages with no bar). Absent, or with an empty `text`, every title rung the header had is unchanged. It sits beside the state's existing `tags`, `group` and `stage`. - **No subtitle.** The strip directly under the title already names the flow in its Flow chip, so the flow is named once. The card's item 1 asked for the flow as a subtitle. Adding one would put back the duplicate the card's first bullet complains about, so this PR does not add it. This reading is the one the claim (comment 7060828003, scope item 2) records. - **The decision band (`DeclaredActionsBar`).** In the approver's band (`foldDecisions`, drawn by the request page's panel and by the business record page's band), a declared `danger` decision is drawn as an outline button in the destructive text colour. That is the face the record header's group already gives a secondary danger lever (objectstack-ai#35593), and the two now share one condition (`secondaryDanger`). Approve keeps the filled primary face. A bar that does not fold keeps the declared filled danger face, and overrides keep their amber face. - **One time face (`ApprovalActionTimeline`).** Action times render through core's `formatDateTime(…, { style: 'compact' })`, the face every `datetime` cell and the strip's `updated_at` chip draw, in the host's display time zone. They used to be the browser's `toLocaleString` (seconds, a 24-hour clock under zh-CN). The timeline on a business record page's approvals panel is the same component, so it changes too. - `plugin-approvals`: comments only, in `sys-approval-request.object.ts` and `sys-approval-request.page.ts`, saying where the request page now names its record. The object's `nameField`, `highlightFields` and the page metadata are unchanged. Not changed, per the card's "不做的": the structure of the progress and timeline cards. ## Why An approver opens a request to decide on a business record. The page was titled by the process, which the strip repeated, and the record it is about had no name in the header and no link from it. The reject button outweighed approve, and the page wrote one moment in two ways. ## Verification Tests added (each run red with its fix ablated, green with it): - `approvalSubjectTitle.test.tsx` (new): read by the page, the title links through the host route; not read, plain text; a host that routes nowhere, plain text; a plain click is the host's `openRecord`, a modifier click the browser's; no title or an id-only title keeps the page's own. Ablating the read gate reds the not-read case. - Served request page (console, real adapter stack): `servedPageRecordLink-12557` gains an H1 case (the H1 reads the subject and its plain click opens the same drawer, the page stays put) and the readable case now counts the card's link and the H1's; its refused CONTROL also checks the H1 is plain `INV-2020`. `servedPageReferenceStates-12489`: readable names and links the H1; deleted names it as plain `INV-3030`. `ApprovalsInboxPage.opensServedPage-12484`: the served page is recognised by the subject's title in its H1. Ablating the read gate reds the refused CONTROL; ablating the report provider reds the two H1-link cases. - `RecordDetailView.harness.test.tsx`, block `RecordDetailView.approvalSubjectTitle-35415` (real `RecordDetailView`, real `page:header`, desktop top bar): the H1 reads the served subject title, and with no reader of the subject on that page it links nowhere and reads nothing; no `record_title` keeps the flow label with no link; a `record_title` equal to the record id keeps the flow label and never prints the id; CONTROL: another object with the same fields keeps its own title. Ablating the host wiring reds the subject case only. - `page-header-record-bar-35593.test.tsx`, block `the record state's title (objectstack#35415)`: the host's node is drawn inside the H1 in the bar and in the row; text-only; CONTROL: an empty title leaves the record's own name. Ablating the renderer reds the three host cases. - `DeclaredActionsBar.approverFold-34361.test.tsx`, block `…leads with a filled Approve, Reject outlined (objectstack#35415)`: Approve `bg-primary`, Reject outline with `text-destructive` and no `bg-destructive`; CONTROL: a bar that does not fold keeps `bg-destructive`. - `RecordApprovalsPanel.displayLocale-9909.test.tsx`: the de-DE and en pins now read the compact face (`4.3.2020 3:30 pm`, `3/4/2020 3:30 pm`), and a new zh-CN pin equals `formatDateTime(…, { style: 'compact' })` with no seconds. The three "is a reading of the session" pins are unchanged and green. Local runs on this head (`88775b7e`, main `493ad095` merged in, so objectstack-ai#35983's two-row record header is in): - vitest, `ui/` root, on this head: every ui test file that names an approval request, `DeclaredActionsBar`, `ApprovalActionTimeline`, `RecordHeaderState`, `RecordPreviewCard`, `SubmittedRecord`, the record pointer card, `RecordDetailView`, `ApprovalDecisionPanel` or `page:header` (490 files, console included): `Test Files 490 passed`, `Tests 6483 passed`. The first CI run on `9097b572` was red in three console served-page files (16 tests); this commit is the fix, above. - `turbo run type-check` for `@object-ui/components`, `@object-ui/app-shell` and `@object-ui/console`, on this head: 0 `error TS`. - `eslint` over the changed files: 0 errors. - `overlap-check.mjs` on this head: clean against origin/main `493ad095`, objectstack-ai#36105 and objectstack-ai#35923. Browser (showcase `objectstack dev --seed-admin --fresh`, console `vite`, zh-CN, the seeded pending request on `EXP-2001`, opened as its approver through `/system/approvals?request=`), before and after at 1280 and 375, light and dark, in the project thread's evidence folder: - before: H1 `费用报告签批`, no link; Reject `bg-destructive`; timeline `2026/11/21 10:09:5x`. - after (shot on `a02cb373`, where the subject reads, so the gate added since draws the same page; with objectstack-ai#35983's two-row header: the crumb row reads 审批请求, the title row reads the record): H1 `EXP-2001`, linked to `/apps/com.example.showcase/showcase_expense_report/record/…`; a click opens `EXP-2001` in the record drawer; Approve filled, Reject outlined; timeline `2026/11/21 下午1:37`, the same face as the strip's `更新时间` chip. ## Acceptance notes - Read first, by risk: `ui/packages/components/src/renderers/layout/containers.tsx` (`hostTitle` / `chipTitle`, both faces), `ui/packages/app-shell/src/views/approval-decision/approvalSubjectTitle.tsx` and `recordReadReport.ts` (the link's read gate), `ui/packages/app-shell/src/views/DeclaredActionsBar.tsx` (`secondaryDanger`). - Two-minute check: open a pending approval from the approvals inbox. The top bar reads the record's name, not the flow's. Click it and the record opens. In the band, 通过 is filled and 驳回 is outlined in red. The 审批动态 time reads like the strip's 更新时间. - The subject link follows the page's record route, so it exists exactly where the "As submitted" card's "Open record" link does: a subject object the console can route to. Where it cannot, the title is the record's name as plain text. - Breadcrumb, recent items and favourites still name a request by its own title (the flow), as lists and search do. Only the request page's header names the subject. - Observed, not changed: at 375 px the strip's `更新时间` value is cut (`上午10:…`) in a half-width cell. That is the strip's layout, outside this card. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. - [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: its generated artifacts are regenerated and committed. (Not touched.) - [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. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgW5RH2VUXjRj9dZYH2 <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgW5RH2VUXjRj9dZYH2 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ntry (objectstack-ai#36096) <!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoM2Z7gQnCvEUfEceUuUKyBZ)_ Fixes objectstack-ai#35619 Clause-②: yes Metadata-protocol: semantic Skills-docs: none — skills/** never teaches the object-level `userActions` block (its only `userActions` hits are the VIEW-level block in objectstack-ui's list-views and navigation rules); the author-facing docs are updated here (content/docs/data-modeling/objects.mdx, content/docs/frontend/plugins/plugin-list.mdx) ## 维护者速读 - 搭建者在对象表单里关掉「导出」开关后,该对象的表格、列表页和报表都不再显示下载数据的「导出」按钮;以前关了也照样显示,没设置的对象不变;甘特图把图表导出成图片或文档的按钮不受这个开关影响。 - 替在设计器里关掉导出开关的搭建者兑现这个设置:开关一直能设,却从没生效(维护者已裁定「生效」而不是「删除」)。 - 出错最多是某个对象的导出按钮该显示却不显示,或反之;它只隐藏入口、不拦服务端导出,整改动可直接撤回。 - 无。 ## What changes Ruling: **Enforce** (comment 7035537883 on the card). An object's `userActions.exportCsv: false` now hides the console's data Export entry for that object: the CSV, XLSX or JSON download on the grid (toolbar menu, table CSV button), the list view (wide toolbar, Display panel) and the dataset report. A view's export of the picture it draws is not covered: the Gantt view's PNG and PDF buttons stay (Acceptance notes). Every surface reads one verdict, `isObjectExportOffered(objectSchema, effectiveApiOperations)`, new in `@object-ui/core`. That verdict is the authored bit over the object's `managedBy` default, ANDed with the caller's effective `export` operation. Before this change the grid's toolbar menu, the list view and the report read the effective operation but not the object's bit, and the grid's table CSV button read neither half (only `operations.export`), so `exportCsv: false` changed nothing. - **The verdict** (`@object-ui/core`): `isObjectExportOffered` in `managedBy.ts`, beside `isObjectInlineEditable`, returns the resolved `exportCsv` bit from `resolveEffectiveCrudAffordances`. No surface calls `resolveEffectiveCrudAffordances` itself, because the affordance-to-grant census (`affordanceGrantMap-12082.test.tsx`) refuses that call outside its home modules. Why a helper and not an `AFFORDANCE_GRANTS` row is under Acceptance notes. - **ObjectGrid** (`@object-ui/plugin-grid`): one name, `objectExportOffered`, gates three things: the toolbar Export menu (`exportEnabled`), `handleExport`, and the table's own CSV button that `operations.export: true` turns on (`exportable`). - **ListView** (`@object-ui/plugin-list`): `exportPermitted` folds in the verdict. Both toolbar forms already read that name: the wide toolbar's Export button and the Display panel's export footer. `handleExport` reads it too. - **Dataset report** (`@object-ui/plugin-report`): `ReportExportControl` reads the base object's definition (the query answer's `object`) through the report's data source with `useSettledSchema`, then applies the same verdict. `DatasetReportRenderer` passes its `dataSource` down. - **RelatedList**: no change. It draws no export entry at all, so there is nothing to gate. Evidence is in Acceptance notes. - **Spec** (`@objectstack/spec`): - the `exportCsv` describe and the Studio object form's help text now say what the key does, narrowed in round 2 to the data Export entry it gates; - round 2 also fixes three older sentences: `CrudAffordances.exportCsv`'s docblock no longer says "CSV / clipboard export"; the `userActions` docblock's example no longer has an append-only table "expose CSV Export", which it does by default; and the `read` / `view` guidance no longer says `userActions` toggles write affordances only. The form row's label stays "Export CSV", since changing it would ripple into ten locale bundles; - the liveness ledger row `object.userActions.exportCsv` moves `dead` → `live`, citing the readers by `file#symbol`; - the generated reference row and the state-count shard are regenerated. - **Docs**: the `userActions` row in content/docs/data-modeling/objects.mdx; a new "The object's Export switch" section in content/docs/frontend/plugins/plugin-list.mdx; an Export section in each of the three plugin READMEs. - **Translations** (`@objectstack/platform-objects`): the English metadata-forms bundle is regenerated for the new help text. The ten translated locales keep their wording (merge mode). - Changeset: `.changeset/35619-user-actions-export-csv-enforced.md`. It grades spec, `@object-ui/core` and the three ui plugins `minor` and platform-objects `patch`, and carries the `Clause-②: yes` and `Metadata-protocol:` lines. - **Docs**, round 1: the core README gains a section on `isObjectExportOffered`; the three plugin READMEs, plugin-list.mdx and the ledger evidence now name the helper. Unchanged, per the rulings: the ADR-0103 bucket defaults (`exportCsv: true` in every bucket) and ADR-0153. No server gate is added; the REST export route is out of scope. The setting hides an entry and is not a permission: who may export is still the permission set's `allowExport`. ### Read first (by risk) 1. `ui/packages/core/src/utils/managedBy.ts`: `isObjectExportOffered`, the one export verdict and the new public name (Clause-② yes). Its docblock says why it asks no `can(object, verb)`. 2. `ui/packages/plugin-report/src/ReportExport.tsx`: the new definition read through the data source. A source that cannot serve `getObjectSchema` keeps the control, and so does a definition still in flight (fail-open). 3. `ui/packages/plugin-grid/src/ObjectGrid.tsx`: the `exportable: operations?.export && objectExportOffered` hunk. The table's own CSV button now also follows the effective `export` operation, which it did not read before. ### Two-minute check `pnpm --dir ui exec vitest run packages/plugin-grid/src/__tests__/exportCsvGate-35619.test.tsx`. Expect `Tests 4 passed (4)`: `exportCsv: false` finds neither the toolbar Export menu nor the table's CSV button, and the three controls find both. ## Tests New render-level pins. Each `false` case has CONTROLS that find the entry, so an absence is a reading and not a blind probe. - `ui/packages/plugin-grid/src/__tests__/exportCsvGate-35619.test.tsx` (4): - `exportCsv: false` hides both the toolbar Export menu and the table CSV button; - CONTROL: unset keeps both; - CONTROL: `true` keeps both; - closing `edit`/`delete` leaves export open. - `ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx`, new top-level `describe('ListView.exportCsvGate-35619')` (5): - wide toolbar: `false` hides Export; CONTROLS for unset and `true`; - Display panel footer: `false` hides every format entry; CONTROL. - `ui/packages/plugin-report/src/__tests__/ReportExport.exportCsvGate-35619.test.tsx` (3): `false` hides the report's Export control; CONTROLS for unset and `true`. - `ui/packages/core/src/utils/managedBy.test.ts`, new top-level `describe('isObjectExportOffered — the one export verdict (objectstack#35619)')` (5). It covers: - unset, in every bucket; - `false` and `true`, in every bucket; - other verbs closed; - the effective set; - agreement with `resolveEffectiveCrudAffordances(...).exportCsv` over every bucket, authored value and effective set. Readings, fix round 2, at eabd783. The change is prose only. The L2 record (7064709267) raised S1: the sentences claimed every Export entry and every format, but the Gantt view's PNG / PDF buttons are outside the gate. Round 2 narrows the describe, the help text, the `isObjectExportOffered` docblock, the liveness note, the core and plugin-list READMEs, objects.mdx, plugin-list.mdx and the changeset to the data Export entry, and says the Gantt picture export is not covered. N2 and N3 ride the same commit. Behaviour is unchanged. <details><summary>Round 2 readings: regenerated artifacts, check:i18n, check:liveness, spec suite, census and pins</summary> - `pnpm --filter @objectstack/spec check:generated --fix` found 1 stale artifact (`gen:docs`, the reference row in content/docs/references/data/object.mdx) and regenerated it. VERDICT command-exit 0. - `pnpm check:i18n` gave exit 1 (`platform-objects DRIFTED (1)`) before regeneration. After `node scripts/check-i18n-bundles.mjs --write`, only `en.metadata-forms.generated.ts` moved, and `pnpm check:i18n` gave exit 0 (`platform-objects in sync (32 bundle(s))`). - `pnpm --filter @objectstack/spec run check:liveness` gave exit 0. - `pnpm --filter @objectstack/spec test` gave `Test Files 868 passed (868)`, `Tests 27852 passed | 1 todo (27853)`, VERDICT command-exit 0. - The census, `managedBy.test.ts` and the three 35619 pin files gave `Test Files 5 passed (5)`, `Tests 217 passed (217)`, VERDICT command-exit 0. - `pnpm check:nul-bytes` gave exit 0, and a control-byte scan of the changed files found nothing. </details> Readings, fix round 1, at 88f1d55. CI `Test UI (15/16)` was red at 4443783 (job 136860952696) on the census `no console source outside the map reads a CRUD grant on its own`, naming ObjectGrid.tsx, ListView.tsx and ReportExport.tsx. 88f1d55 routes all three through `isObjectExportOffered`. <details><summary>Census, core and the three 35619 pin files at 88f1d55: 5 files, 217 tests passed</summary> `pnpm --dir ui exec vitest run --maxWorkers=2` over `affordanceGrantMap-12082.test.tsx`, `managedBy.test.ts` and the three pin files, under the verify lock: ```text Test Files 5 passed (5) Tests 217 passed (217) os-verify-lock: VERDICT command-exit 0 ``` - `pnpm --dir ui exec vitest run --maxWorkers=2 packages/core/ packages/plugin-form/src/affordanceGrantMap-12082.test.tsx` gave `Test Files 245 passed (245)`, `Tests 4798 passed | 27 skipped (4825)`, VERDICT command-exit 0. - `pnpm --workspace-concurrency=1 --filter @object-ui/core --filter @object-ui/plugin-grid --filter @object-ui/plugin-list --filter @object-ui/plugin-report run type-check` ran all four packages (each `tsc --noEmit && tsc -p tsconfig.test.json`), VERDICT command-exit 0. - eslint over the five changed ui source and test files: 0 errors. - `check:liveness` exited 0 with the evidence anchor `managedBy.ts#isObjectExportOffered`. </details> <details><summary>Ablation of the helper: every surface pin and the helper's pins go red, every CONTROL stays green</summary> `node scripts/ablation-replace.mjs` turned the helper's `return resolveEffectiveCrudAffordances(obj, effectiveApiOperations).exportCsv;` into `return true || …`. The anchor moved 1 to 0. A trap restores with `git checkout HEAD --` on an absolute path. `@object-ui/core` resolves to `src` through the ui vitest alias, so there is no `dist/` leg. ```text Test Files 4 failed (4) Tests 7 failed | 10 passed | 145 skipped (162) ``` - Red: grid "exportCsv false"; ListView wide-toolbar false and Display-panel false; report "exportCsv false"; three of the helper's five cases. - Green: every CONTROL in the three pin files, plus the helper's unset and other-verb cases. - Restore: blob == HEAD 80024db and `git diff HEAD` empty. So all three surfaces read the helper. </details> <details><summary>Clause-② measured on the built declarations</summary> - `ui/packages/core/dist/index.d.ts` line 18 is `export * from './utils/managedBy.js';`. - `dist/utils/managedBy.d.ts` declares `export declare function isObjectExportOffered(obj: SchemaLike | null | undefined, effectiveApiOperations?: readonly string[] | null): boolean;`. Its neighbour `isObjectInlineEditable` is declared the same way (positive control), and `origin/main`'s `managedBy.ts` has 0 hits for the name. - So it is a new name on `@object-ui/core`'s published entry, and `Clause-②` is `yes`. - The earlier `dataSource?` prop on `ReportExportControlProps` is not reachable from plugin-report's entry. Built `dist/index.d.ts` re-exports nothing from `./ReportExport.js`, and no entry declaration imports it. </details> Readings from round 0, before the fix. Their code head is 3e175d0, and 4443783 added only the regenerated English bundle and the changeset. <details><summary>New pins at 3e175d0: 3 files, 127 tests passed</summary> `pnpm --dir ui exec vitest run --maxWorkers=2` over the three pin files (the ListView harness file carries its other 115 cases too), under the verify lock: ```text Test Files 3 passed (3) Tests 127 passed (127) os-verify-lock: VERDICT command-exit 0 ``` </details> <details><summary>Package suites and type-check: plugin-grid, plugin-list, plugin-report, spec, platform-objects</summary> - ui suites, run on the tree that 3e175d0 commits (13af371 plus the test-typing edit, committed unchanged): `pnpm --dir ui exec vitest run --maxWorkers=2 packages/plugin-grid/ packages/plugin-list/ packages/plugin-report/` gave `Test Files 515 passed (515)`, `Tests 4928 passed | 7 skipped (4935)`, VERDICT command-exit 0. - ui type-check: `pnpm --filter @object-ui/plugin-grid --filter @object-ui/plugin-list --filter @object-ui/plugin-report run type-check` (each runs `tsc --noEmit` and `tsc -p tsconfig.test.json`) gave VERDICT command-exit 0. - spec at 3e175d0: `pnpm --filter @objectstack/spec typecheck && pnpm --filter @objectstack/spec test` gave `Test Files 868 passed (868)`, `Tests 27852 passed | 1 todo (27853)`, VERDICT command-exit 0. - platform-objects at 4443783: `pnpm --filter @objectstack/platform-objects test` gave `Test Files 125 passed (125)`, `Tests 2117 passed (2117)`, VERDICT command-exit 0. - eslint over the changed ui files: 0 errors. </details> <details><summary>Ablation: each pre-fix gate restored, each false case goes red, every CONTROL stays green</summary> `node scripts/ablation-replace.mjs` mutates the gate line, proves the anchor moved (1 to 0), runs the pin file under the lock, and restores. A trap restores with `git checkout HEAD --` on absolute paths. The subjects resolve to `src` through relative imports and the ui vitest aliases, so there is no `dist/` leg. - ObjectGrid (`objectExportOffered = true || …`, which opens the verdict that all three entries read): "exportCsv false" fails, `Tests 1 failed | 3 passed (4)`. - ListView (`exportPermitted` back to its `origin/main` effective-operation test): the wide-toolbar false case and the Display-panel false case fail; the 3 CONTROLS pass (`Tests 2 failed | 3 passed | 115 skipped`, filtered to the block). - ReportExport (back to its `origin/main` line, `if (ops && !ops.includes('export')) return null;`): "exportCsv false" fails; both CONTROLS pass (`Tests 1 failed | 2 passed (3)`). - Restores proven blob == HEAD (ObjectGrid 7c78f1b, ListView edf466e, ReportExport ac11257), with `git diff HEAD` empty after each leg. </details> ## Acceptance notes - **RelatedList has no export entry.** The ruling names RelatedList as an export surface. At `origin/main`, `ui/packages/plugin-detail/src/RelatedList.tsx` draws no Export button, menu or handler, and sets `exportable: false` on its table, so there is nothing to gate. The diff does not touch it, and the ledger note records this. - **Fail-open while the definition loads.** All three surfaces resolve with the bucket default until the object definition lands. Sibling affordances behave the same way. Every bucket defaults `exportCsv` to `true`, so the entry can show for a moment on an object that authors `false`. The pins wait for the definition before they look. - **Table CSV button now follows the effective `export` operation.** Before, the data-table's own CSV button (`operations.export: true`) read nothing but that flag. It now reads `objectExportOffered`, which includes the server's effective operation set. This matches the toolbar menu it sits beside. - **Legacy `ReportViewer` untouched.** It gates on the report's own `allowExport` and is not bound to an object. - **Interim changeset text.** The unreleased `.changeset/35401-user-actions-transfer.md` paragraph says `exportCsv` is dead and warns. If both changesets ship in one release, that paragraph describes an interim state, and the seat may amend it as a DELIBERATE CORRECTION. This PR does not edit another PR's changeset. - **Translated help text kept.** The ten translated `userActions.exportCsv` help texts still say "the CSV export entry, shown when unset". That is still true, but they do not yet mention every format or that the setting is not a permission. Merge mode keeps them, and they are legacy-trusted, so no gate reads them as stale. Refreshing them is translation work and is not done here. - **Why a helper, not an `AFFORDANCE_GRANTS` row.** Both were measured, and the census-prescribed row does not fit export: - the map's rows name a caller grant asked through `can(object, grant)`, typed `create | update | delete`; - `@object-ui/permissions` answers `can(object, 'export')` with `allowRead` (`MePermissionsProvider`'s verb map), not `allowExport`, so a row's grant half would ask the wrong bit; - the caller's `allowExport` already reaches the client through the effective `export` operation. The server derives it from `list` and that grant (`annotateEffectiveApiOperations` in `@objectstack/core`), and its export door answers `403 EXPORT_NOT_PERMITTED` without it (`enforceExportPermission` in `@objectstack/rest`); - the pin holds every row with a CRUD bit closed under an `append-only` bucket, while ADR-0103 keeps `exportCsv` on in every bucket. So the verdict stays exactly as it was, the authored bit ∧ the effective `export` operation, and it lives in the HOME module as a named helper. `OUT_OF_FAMILY` is unchanged. - **Not covered: a view's picture export (S1).** The Gantt view (`ui/packages/plugin-gantt/src/GanttView.tsx`, drawn by ListView for `viewType: gantt`) has two buttons, "Export as PNG" and "Export PDF". They export the chart it draws and read no export verdict. The switch does not hide them, and every sentence this PR writes now says so. Gating them is outside this claim's file surface; it is a separate card if the maintainer wants the chart picture covered. - **N1, follow-up candidate: the report control paints before its definition read settles.** `ReportExportControl` starts the base object's definition read once the table snapshot exists and reads only `def`. So on a report over an `exportCsv: false` object the control is drawn at least once per open, and for the length of the request when the definition is not cached. Holding it until `useSettledSchema`'s `ready` would remove the flash and keep it open where the source cannot serve a definition. Accepted on this head, since the setting is not a permission. - **N4, follow-up candidate: the Studio switch reads off for an unset key whose default is on.** The form row renders `checked` from the stored value, so an object that never authored `exportCsv` shows the switch off while export is offered. Writing `false` takes switching on and then off. This predates this PR: the row's comment and the composite's help text already describe it. It is now the row's only useful write, so the form face deserves its own card. - **Pin placement.** The claim asked for new pin files named for 35619 beside each surface. The ListView pin sits in the shared `ListView.harness.test.tsx` as a top-level describe instead, per the AGENTS.md shared-harness ruling (6583487846). - **Overlap.** `overlap-check` at eabd783 reports textual conflicts with two PRs. With objectstack-ai#35923 they are only on two generated artifacts, `content/docs/references/data/object.mdx` and `packages/spec/liveness/state-counts/object.md`; both PRs regenerate them, so whichever lands second merges main and regenerates them. With objectstack-ai#36129 (a draft, the related-tab list) the conflict is in `ui/packages/plugin-list/src/ListView.tsx`. That queues the second of the two to land. `origin/main` (dc10b3b) merges cleanly. ## Verification Round 2, at eabd783: `dispatch-gates --commands` derives the same 122 families. The local re-run was stopped at the coordinator's finish-now order once CI was green on this head, so the local union is partial, and says so. <details><summary>Reconciliation at eabd783: 122 derived, 98 run, 1 NOT MEASURED, 23 unrun; CI 70 check-runs, 0 failures</summary> ```text Run reconciliation — 122 derived, 98 run, 1 NOT-MEASURED, 23 UNRUN. ``` - All 98 that ran exited 0. They include every family the round-2 files feed: `check:generated`, `check:docs`, `check:liveness`, `check:i18n`, `check:i18n-stale-fill`, the changeset checks and `check:nul-bytes`. - `check:dual-build-cjs-loads` is NOT MEASURED locally (exit 3, needs every package built), as in earlier rounds. - 23 families were not run locally on this head: `check:query-options-erasure` through `check:wildcard-fallthrough`, the tail of the list. Each passed locally at 88f1d55, and this round changes prose only. CI ran them all. - CI check-runs on eabd783, read once: 70 runs, 61 success and 9 skipped, none failed. </details> Round 1, at 88f1d55: `dispatch-gates --commands --repo objectstack-ai/objectstack` derives the same 122 families as at 4443783. All of them were re-run on this head, with exit codes captured before any pipe. <details><summary>Reconciliation at 88f1d55: 122 derived, 121 run, 1 NOT MEASURED, 0 unrun; CI 70 check-runs, 0 failures</summary> ```text Run reconciliation — 122 derived, 121 run, 1 NOT-MEASURED, 0 UNRUN. - pnpm check:dual-build-cjs-loads [recorded exit 3 on line 78 — PREREQUISITE NOT MET] ✓ dispatch-gates --ran: 122 derived famil(ies) accounted for — 121 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). ``` - 121 families exited 0. Their prerequisites were built first: the CLI closure for `check:i18n` (`platform-objects in sync (32 bundle(s))`) and client-react for `check:skill-examples`. - `check:dual-build-cjs-loads` is NOT MEASURED locally, as in round 0: it needs every package built. CI covers it. - `overlap-check` gave exit 1, only on objectstack-ai#35923's two generated artifacts (see Acceptance notes). `origin/main` (493ad09) merges cleanly. - CI check-runs on 88f1d55, read once: 70 runs, 61 success and 9 skipped, none failed. `Test UI (15/16)`, `Test UI`, `Test Core`, `Lint & Repo Gates`, `Type Check UI`, `Check Changeset`, `Spec property liveness` and `Lint · PM dispatch-gates` are all success. </details> Round 0, at 4443783: the same 122 families, derived by `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`. Exit codes were captured before any pipe. <details><summary>Reconciliation: 122 derived, 121 run, 1 NOT MEASURED, 0 unrun</summary> ```text Run reconciliation — 122 derived, 121 run, 1 NOT-MEASURED, 0 UNRUN. NOT-MEASURED · DERIVED (1) - pnpm check:dual-build-cjs-loads [recorded exit 3 — PREREQUISITE NOT MET] ✓ dispatch-gates --ran: 122 derived famil(ies) accounted for — 121 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3). ``` - 117 families ran at 3e175d0 and exited 0. - Three refused their prerequisite there (exit 3). Each passed after its prerequisite was met: - `check-plugin-teardown-shape --self-test`, once its pinned fixture commit was fetched; - `check:skill-examples`, once client-react was built; - `check:i18n`, once the CLI closure was built. - `check:i18n` then went red (exit 1, `platform-objects DRIFTED (1)`). That red came from this diff: the object form's `exportCsv` help text is extracted into `en.metadata-forms.generated.ts`. 4443783 regenerates it with `node scripts/check-i18n-bundles.mjs --write` (only `en` moved), and `pnpm check:i18n` now exits 0 with every bundle in sync. - At 4443783 these exited 0: `check:i18n-stale-fill` (new to the derivation), the two changeset checks, `check:nul-bytes` and `check:published-files`. - `check:dual-build-cjs-loads` needs every package built (36 have no `dist/`), so it is NOT MEASURED locally: declared narrowing, and CI runs it. - `check:dev-prereqs` is local-only: exit 1, "the workspace is not built", 23 of 108 packages have no `dist/`. That describes this container, not the diff. - `check:liveness` exited 0 and `check:generated --fix` regenerated the two artifacts this PR commits. </details> CI families: the seat reads the check-runs on 88f1d55. Round 0's red `Test UI (15/16)` is the census this round fixes. --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibxUmEWpcN3eh4vH1WY)_ <!-- signed: repo:objectstack#7 · os-tesla · session_01L9qibxUmEWpcN3eh4vH1WY --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… page only; a phone and the side drawer draw the standard page (objectstack-ai#36150) (objectstack-ai#36174) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuKobRqmoXkrWkHE4z9tvY3k)_ repo:objectstack#1 · os-sales · session_01L6bhgVHYk1S4MD4WibYGKk Fixes objectstack-ai#36150 Clause-②: no Metadata-protocol: semantic Skills-docs: follow-up objectstack-ai#36179 — skills/objectstack-ui/rules/record-page.md rules 4 and 5 (the `record_more` advice); skills edits ride a domain:skills PR ## 维护者速读 - 手写的记录页(`kind: 'full'`)现在只在电脑整页上生效。手机整页、电脑右侧抽屉(以及分栏预览、界面页预览)一律画平台标准页:字段一列、每张子表一个页签、动态在最后。抽屉里「整页打开」打开的仍是手写页。 - 按您的两条裁决:审批请求页和用户页三处都保留自己的页;页面区块里的动作(`record_section`)标准页不画,演示应用任务的「重算工时」加了 `record_more`,手机和抽屉里在「⋯」里能找到;队列成员、审计日志「同一记录的变更」、发票的打印按钮只在电脑整页有(后续卡由席位立)。 - 不变:插槽页(HotCRM 线索、工单的告警,项目的甘特图)三处照旧;网址点名的页面(打印页等)照旧;电脑整页一点不变。 - HotCRM 主干已经没有手写整页(hotcrm#2671),所以 HotCRM 三处都没有变化,作对照;手写页的三处效果用演示应用的项目页拍。 ## What changes - **One reader of where an authored page applies**, `authoredRecordPageApplies` in the new `ui/packages/app-shell/src/views/recordPageSurface.ts`: true on the desktop full page, false on a phone (`usePhoneViewport`) and in every embedded view. Two exceptions are the host's, named there and nowhere else: a page named in the URL (`…/record/:id/page/:pageName`, which only the full-page route reads, objectui#12715), and `OBJECTS_KEEPING_AUTHORED_PAGE` = `sys_approval_request`, `sys_user` (maintainer rulings 7066490078). There is no author switch. - **`RecordDetailView`**: `usePhoneViewport()` moves up to where the page is assigned, and `assignedPage` is `null` where the authored page does not apply, so the view takes the synthesized standard page there. Inside the view everything downstream (columns, phone header, comments, related lists) keys off `assignedPage`. Slotted pages never populate `assignedPage` and keep their slots everywhere. - **The record route's object scope** (`console/appObjectScope.ts`, L2 M1): `declaredRecordPage` reads the same `authoredRecordPageApplies`, so on a phone the record route takes the synthesized page's arm (the objects pointing at the record's, from the bundle or the registry) instead of only the objects the authored page binds; the standard page's child tabs are then all there. `AppContent` and `useAppObjectScopePrefetch` hand it `usePhoneViewport()`, so the scope follows the width across 768 as the view does. A page named in the URL and the two kept platform pages still read their page's objects. - **Showcase**: `showcase_recalc_estimate` declares `['record_section', 'record_more']` (ruling 7066506909). The authored Task Detail header lists its action ids and leaves it out, so the full page still draws it once, in the section bar; the standard page reaches it under ⋯. `record-action-location-hosts.test.ts` now holds: the authored header lists the record_header / record_more set less the section bar's actions; no action is both a section action and an inline header one; every section action is reachable under ⋯ on the standard page. - **Docs**: `content/docs/ui/pages.mdx` gains "Where an authored page applies" (a window narrower than 768 px counts as the phone; an interface page's preview is embedded). - **Not in this PR** (L2 S1, seat): the spec describes of `kind`, `isDefault`, `apps` and the `slots.tabs` remedy → objectstack-ai#36180 (schema face); `skills/objectstack-ui/rules/record-page.md` rules 4 and 5 and the `record_more` advice → objectstack-ai#36179 (domain:skills). - **Changeset**: `@object-ui/app-shell` minor, both declaration lines. ## Why Card objectstack-ai#36150 (child of epic objectstack-ai#35590; maintainer 2026-11-22 「自定义记录页在手机和右侧预览里不生效、统一用标准页」). The card's item 5 list (page-only things, and what each becomes off the full page) was posted on the card before the build; the two questions it raised were ruled (7066490078, 7066506909). ### Item 5, and how each was handled | Page | Page-only | Off the desktop full page now | |---|---|---| | showcase project | Tasks inline-edit grid tab, three sections, own highlights, footer discussion | standard page: Tasks as the master-detail child tab, ungrouped fields, the object's own highlights, discussion in 动态 (the comment panel once objectstack-ai#36114 lands) | | showcase task | review banner, Recalculate Estimate (section bar), three sections, path | banner gone; Recalculate under ⋯ (`record_more` added); stage menu in the header | | showcase settings | two sections | ungrouped | | showcase invoice (default print page) | letterhead, print line items, Print button | standard page, no Print button (full page only, ruled) | | `sys_approval_request` | `record:approval_decision` | **kept on every surface** (ruled) | | `sys_user` | Security tab, effective access, AI assistants, verify banner, picker | **kept on every surface** until objectstack-ai#35897 (ruled) | | `sys_organization` | three related tabs with set columns | the three stay; the other lookups to the organization also become tabs until objectstack-ai#35897 | | `sys_queue` | Members list paired by text value | full page only (ruled; follow-up card by the seat) | | `sys_audit_log` | "Changes to the same record" list, five sections | list full page only (ruled; same follow-up); ungrouped | | HotCRM main | no authored full page since hotcrm#2671 | no change on any surface | ## Side effects reviewers should know - **Seventeen `RecordDetailView.*` test files mounted the drawer (`embedded`) only as a harness for an authored page** (`feedGrant-12082`, `feedCommentEditDelete-12268`, `reactionRecords-12078`, `authoredActivityThreading-12249`, `reactionWriteFailure-10899`, `withheldMentions-28218`, `discussionFallbackPipeline-8983`, `discussionExplicitComposition-7298`, `commentWriteFailure-10899`, `reactionsCommentRowsOnly-11035`, `reactionKeepIds-11019`, `feedRecordScope`, `topInset-35745`, `oneProvenanceFooter-12307`, `appendInset-27520`, `replyCountOnRead-12144`, `feedLoading`). They now mount the full page, with a one-line note where `embedded` was; no assertion changed. One case changed meaning: `harness` › recordPagePlacesNoComponent-32478 "the record drawer explains it the same way" now pins that the drawer draws the standard page and no explanation, since the authored page does not apply there. - **objectstack-ai#36114** (desktop comment panel) is merged; `main` is merged into this branch. Its pin "no icon on a hand-written page" (`commentsPanel-36075.test.tsx`) now mounts the full page, where an authored page keeps its discussion and shows no icon; a new case beside it pins the opposite on the drawer: an authored-page object's drawer draws the standard page and offers the panel (L1-c item 1). - The phone reading is the window width (`usePhoneViewport`, below 768): a desktop window narrowed below 768 also takes the standard page. ## Verification - New `AppContent.authoredPagePhoneScope-36150.test.tsx` (6), through the real `AppContent` and `MetadataProvider`, the view a double printing the objects it is handed: desktop reads the authored page's objects, a child it does not bind left out (CONTROL); a phone reads every object pointing at the record's, that child included; the width crossing 768 on an open record moves the scope; a media-query change that leaves the window wide (what printing fires) keeps the authored page's scope (L2 N4); on a phone a page named in the URL and the `sys_user` page still read their own objects. **Red before**: with the scope handed `phone = false`, 2 of 6 fail (phone, width crossing). - New `RecordDetailView.authoredPageDesktopOnly-36150.test.tsx` (19, one added for N4: the authored page survives a print-style media-query change), through the real `RecordDetailView`: an authored page draws on the desktop full page; the standard page with its tab strip on the phone (375) and the drawer, the authored block gone; on the drawer the object's `record_more` action is in ⋯. CONTROL: no authored page, the standard page on all three. Exceptions on the phone and the drawer: a slotted page keeps its slot; `sys_approval_request` and `sys_user` keep their page; a page named in the URL draws on the phone. **Red before**: with the reader returning `true`, 4 of 18 fail (the unit pin, phone, drawer, ⋯). - Local: every `app-shell` `RecordDetailView.*`, `recordDrawer*`, `ObjectView*` and `console/__tests__/AppContent*` file, plus every other `ui/` test file naming `RecordDetailView`, `recordDrawer` or `RecordPageDrawerHost`: 319 files, 3,003 tests, all pass. `examples/app-showcase` `record-action-location-hosts.test.ts` 14/14; `objectstack validate` passes. ESLint on every changed file: 0 errors. `overlap-check.mjs`: clean against main and the 4 open PRs that share a file (objectstack-ai#36136, objectstack-ai#36129, objectstack-ai#36114, objectstack-ai#35923). `type-check` for app-shell did not run locally (the ui packages' declarations are not built in this container); CI is the reading. - Browser, showcase on this branch (server 18.6.0, console from this branch's `ui/` on Vite), zh-CN, light and dark, shots in the project evidence folder `build-seat1/36150/`: | Surface | Showcase project | Showcase task | |---|---|---| | Desktop full page, 1280 | authored: tabs 详情 / 任务 / 相关 2 / 附件, footer 讨论 | authored: path, review banner slot, 重算工时 in the section bar, once | | Drawer from the list, 1280 | standard: 概览 / 字段动物园 1 / 成员 1 / 任务 2 / 客户简报 / 附件 / 动态 | standard: 概览 / 动态; ⋯ holds 打开文档, **重算工时**, 重算所选 … 整页打开 | | Phone, 390 | standard: 概览 / 字段动物园 1 / 成员 1 / 任务 2 / 更多 3, fields one column, bottom bar | standard; ⋯ holds 记录工时, 归档, **重算工时** … | - HotCRM main (`1468877`, on 18.6.0) as the no-change control, lead: the standard page with its tabs on all three surfaces (it is a slotted page), its record actions in the header / ⋯ (转化线索, 安排跟进, 记录通话 …). ## 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 (ESLint on the changed files, 0 errors). - [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 summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. Branch name is the harness-assigned `claude/project-thread-0slbpo`. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgVHYk1S4MD4WibYGKk <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgVHYk1S4MD4WibYGKk --> --------- Co-authored-by: Claude <noreply@anthropic.com>
… on a list field (objectstack-ai#36185) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XP3RHGWUG7UH3fNa4tBa9UC)_ Part of objectstack-ai#36167 — the builder half. The card's Done-when also names `validateExpression` refusing a list compared with a scalar; that half narrows an accept set and is not built here: the seat picked option A on the card (7068927390), and area a4-C claimed it (7068951634) under its own `Part of objectstack-ai#36167`. Clause-②: no Metadata-protocol: none ## 维护者速读 - 在 Studio 里给多值字段(多选、标签、多选人员或多选关联)写条件时,操作符从「等于 / 不等于」换成「包含 / 不包含 / 为空 / 不为空」;单值字段不变。 - 属于 Studio 条件编辑器:多值字段上的「等于」永远不成立、作者毫无提示,这次让编辑器只给出能真正命中的写法。 - 已保存的「多值字段 等于 某值」条件会改为在表达式框里原样打开,不会被改写;若有问题,作者看到的是表达式框而非行编辑器,可直接撤回本改动。 - 要你做的:决定是否另做「保存时拒绝多值字段与单值比较」的那一半(见卡片报告里的待决问题)。 ## What changes - `ConditionBuilder` (the Studio CEL condition builder behind hook, validation-rule, action visibility, page-block and flow entry conditions) now offers a **list subject** (a `multiselect` / `checkboxes` / `tags`, or a `select` / `lookup` / `user` declared `multiple: true`) exactly what the shared filter builder offers it: contains, does not contain, is empty, is not empty. `==` / `!=` / ordering are no longer offered there. Which operators a list takes is read from `jsonColumnFilterOperators` (through the new `listSubjectOperators`), not restated; a small table only translates those names onto the builder's own operator values. - Contains writes `S != null && V in S`, does not contain writes `S == null || !(V in S)`. That is the spelling the flow edge's rows shipped; it now lives in one module, `inspectors/cel-list-membership.ts` (`listMembershipCel` / `readListMembership` / `listSubjectOperators`), and `flow-edge-condition-rows.ts` writes through it too (its output is byte-for-byte unchanged; its existing pins hold). - A row moved onto a list subject leaves `equals` for `contains`; moved off a list, membership becomes `equals`. An operator offered on both sides (is empty / is not empty) stays, re-spelled for the new field. - A stored condition whose row uses an operator its subject is not offered (for example `record.labels == 'frontend'` on a list, or membership on a single-value field) opens in the raw expression editor exactly as stored: never rewritten, nothing emitted. - New studio locale key `engine.inspector.condition.op.notContains` (en, zh). ## Tests - New pin `ConditionBuilder.listSubject-36167.test.tsx` (27 tests): each of six list subjects offers the shared builder's list set and nothing else; three single-value controls keep equals / not equals and get no membership; the written CEL equals what the flow edge's `rowsToCel` writes for the same row and is evaluated by `celEngine` (member true, non-member false, `[]` and `null` null-safe both ways); stored membership round-trips; stored `==` / `!=` on a list and membership on a single-value field open raw and verbatim; an instrument control shows the replaced `==` answering a constant. - Fixture triage: three existing pins (`ConditionBuilder.typedEmptyOps-11894`, two cases; `ObjectValidationsPanel.typedEmptyOps-11894`, one case) seeded a list subject's row as `S == 'x'` only to reach its operator dropdown. That seed now opens in the raw editor, so it became the membership row; what each case pins (the empty check on a list, and that `multiple` reaches the builder) is unchanged and still needs the flag to reach the builder. ## Acceptance notes - Re-measured under `celEngine` (objectstack tree at this branch): `'a' in S` with `S = null` faults (no such overload for `string in` a null dyn), with `S = []` answers false; `S == 'a'` is false for `['a','b']` and for `null`; `S.contains('a')` faults on a list. Hence the null guard on both membership spellings. - A stored `S == null` / `S != null` on a list subject also opens raw now (the builder's own spelling for it is is empty / is not empty). Unchanged bytes, by the round-trip rule. - The schema-driven condition widget's catalog (`ResourceEditPage`'s object fetch) dropped `multiple` on this branch's base. objectstack-ai#36182 (merged to `main` as 865df27) closes it: the fetch now goes through `objectCatalogOf`, which carries `multiple: true`, and the condition widget hands that catalog to `ConditionBuilder` unprojected, so after this PR lands a `select` / `lookup` / `user` declared `multiple: true` is a list subject at that mount too. `multiselect` / `checkboxes` / `tags` are lists by type alone. The hook, page-block, action, flow-entry and validation-panel mounts carry `multiple`. - `node scripts/pm/overlap-check.mjs` reports a textual overlap with draft PR objectstack-ai#35923 on the studio en / zh catalogues (different keys). Not merged around. ## Verification Read first (risk order): 1. `ui/packages/app-shell/src/views/metadata-admin/inspectors/ConditionBuilder.tsx`: `initFrom` (the new offered-operator check that sends a stored row to the raw editor) and `withOfferedOp` on a subject change. 2. `ui/packages/app-shell/src/views/metadata-admin/inspectors/cel-list-membership.ts`: the shared spelling and reader. 3. `ui/packages/app-shell/src/views/metadata-admin/inspectors/flow-edge-condition-rows.ts`: now writes through the shared module. Two-minute check: `pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/inspectors/ConditionBuilder.listSubject-36167.test.tsx` — expect 27 passed. Local readings at `ef21bbcb31` (objectstack tree): <details><summary>Tests, type-check, ablation</summary> - `ConditionBuilder.listSubject-36167.test.tsx`: 27 passed. All `inspectors/ConditionBuilder*`, `flow-edge-condition-rows*`, `FlowEdgeInspector*` suites: 22 files, 262 tests passed (two locked runs; five suites first failed to collect on an unbuilt `@objectstack/client`, passed once it was built). - Mount-site suites (`ObjectValidationsPanel*`, `FlowNodeConfigField*`, `HookDefaultInspector*`, `ActionDefaultInspector*`, `PageBlockInspector.visibleWhen*`, `FlowNodeInspector.entryCondition*`, `widgets*ondition*`): 33 files, 323 passed, 1 failed before triage (the `ObjectValidationsPanel.typedEmptyOps-11894` list seed); after triage that file passes, run with `packages/i18n/` (106 files, 1967 passed) and with `ui/scripts/` (175 files, 5126 passed). - `pnpm --filter @object-ui/app-shell type-check` and `pnpm --filter @object-ui/i18n type-check`: exit 0 (lock VERDICT command-exit 0). - Ablation (one-off, restored byte-identical to the HEAD blob): deleting the list branch of `opChoicesFor` through `scripts/ablation-replace.mjs` (anchor 1 to 0) turns the new pin 19 failed / 8 passed of 27; the 8 are the single-value controls, the instrument control and the raw-open cases. </details> <details><summary>Gates</summary> `node scripts/pm/dispatch-gates.mjs --commands` (diff-derived, 38 families) all exit 0 at `ef21bbcb31`; `--ran` reconciliation: 38 derived, 38 run, 0 NOT-MEASURED (a derived zero). `pnpm --dir ui check:new-line-citations`: 0 new. ESLint on the changed files: 0 errors (warnings pre-existing). CI runs the full farm. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5okniknzVVR3KTSVr1)_ <!-- signed: repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1 --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…side the record's tabs; the right summary rail is retired (objectstack-ai#35890) (objectstack-ai#36136) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> Fixes objectstack-ai#35890 _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuSuWjKV41568rAPVdLLNa2U)_ repo:objectstack#1 · os-sales · session_01L6bhgUZTwDqtEFzNFCVTri Part of epic objectstack-ai#35590 (record page redo). One PR for the card. Clause-②: yes (widening): `RecordPageColumns` (exported from `@object-ui/plugin-detail`) gains the optional props `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange`, and `onEnlargeRelated` an optional second argument `{ replace?: boolean }`. `rightColumn` and `rail` stay on the props as `@deprecated` no-ops, so no caller breaks. New exports: `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH`, `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported and is now `@deprecated`. `@object-ui/i18n`: two new keys in every pack (`detail.approvalPendingStep`, `detail.detailsColumnResize`), and `detail.recordTabOverview` changes its text (概览 / Overview → 详情 / Details); every key the retired rail read stays in every pack, unread. The `RecordSummaryRail` module was internal (never exported from the package entry) and is deleted. Metadata-protocol: none ## 维护者速读 - 记录整页够宽时(放得下左 320 + 间隔 24 + 右 400),字段固定在左栏,其他页签(子表、附件、审批、动态)在右边,默认打开第一个;左栏默认 400,空间紧时自动让到 320,可以拖动,宽度按对象记在浏览器里。 - 右侧摘要栏(审批 / 附件 / 最近动态 / 其他相关卡片)在所有宽度都去掉了,⊟ 按钮和 ⌘⇧, 快捷键一起去掉;第一个页签改名「详情」。 - 「审批中」标签在有当前步骤时显示「审批中 · 当前步骤」(审批人自己仍是「待你审批」)。 - 抽屉、手机、窄窗口不分栏,照旧是一栏页签;它们也会看到两处变化:右侧摘要栏没了,第一个页签叫「详情」。手写的记录页不受影响;字段里放了子表的页面(objectstack-ai#35889)不分栏。 - 隐藏了的子表仍能从「更多」或带 `?related=` 的链接打开。 - 实测:1440 宽、左侧导航展开、评论栏打开时,内容只有 708,不够 744,页面退回一栏页签(打开的页签保持不变)。1280 和 1366 评论栏打开仍分栏。Sales 已接受这个代价,收起导航即恢复三栏(objectstack-ai#35890 note 7069882604)。等 objectstack-ai#36112 改成 1280 起默认展开导航后,1280 和 1366 展开导航再打开评论栏也会退回页签,收起导航即恢复三栏。 ## What changes **When the page pins.** Ruling on the card ([comment 7064066204](objectstack-ai#35890 (comment)), option 0 of the reviewed decision card): a full page pins its details when its content fits **left 320 + gap 24 + right 400** (744 content px). The left column is 400 px (or the reader's dragged width) and narrows by itself to 320 px to leave the tabs 400 px; narrower than that, the page falls back to the tab row. This replaces the card's line 「沿用出现右栏的宽度」. Pinning is measured on the page content's own width (`clientWidth`, ResizeObserver), never on the window, so the comment panel of objectstack-ai#36075, which gives way at window widths of 1280 and up, narrows the page and the page re-decides by itself. What that means on common windows, **measured** in the console against the CRM example (`measure-l1c.json`; the page frame is the window minus the nav minus the host's 48 px margin, and the content is the frame minus its 48 px padding; at 1280 and 1366 the nav is collapsed, at 1440 it is open at 256 px; comment panel 380 px, `beside`): | Window | Frame, panel closed | Panel closed | Frame, panel open | Panel open | |---|---|---|---|---| | 1280 | 1232 | pinned, details 400 / tabs 760 | 852 | pinned, details 380 / tabs 400 | | 1366 | 1318 | pinned, details 400 / tabs 846 | 938 | pinned, details 400 / tabs 466 | | 1440 | 1136 | pinned, details 400 / tabs 664 | 756 (content 708) | **not pinned**: the tab row, with 「详情」 first and the shown list kept | The earlier 1440 row (record area 1184, tabs 412) assumed no host margin; the measured frame is 48 px narrower, so with the nav open and the panel open the content is 708, under 744, and the page uses the tab row. Windows of about 1416 to 1475 with the nav open and the panel open land here. This follows the ruled threshold as written, and Sales accepted it: with the sidebar expanded, opening the comment panel can return the fields to the tab row, and collapsing the sidebar restores three columns ([note 7069882604](objectstack-ai#35890 (comment)), with objectstack-ai#36112 F1). These windows hold for today's sidebar threshold (expanded from 1416). Once objectstack-ai#36112 PR B makes the sidebar start expanded from 1280 (ruling 7069868269), the band with the sidebar expanded becomes about 1280 to 1475, so 1280 and 1366 also go to the tab row when the panel opens; collapsing the sidebar still restores three columns. The 1416 comment in `recordPageColumns.ts` is updated by objectstack-ai#36112 PR B. **Layout, pinned.** `[details 320–400+ px] [24 px separator] [tabs minmax(0,1fr)]`. The details render at one field column (`DetailsColumnCapContext` = 1). The tab row moves into the right column and drops 「详情」; the open tab is the address's `?related=` when it names one, otherwise the first tab (implied, never written). Each column scrolls on its own when the page has a scroll parent with room (`usePinnedHeight`). Esc does not close a tab while pinned (there is no "back to details" to go to). **The separator.** `role="separator"`, `aria-orientation="vertical"`, `aria-valuenow/min/max`; pointer drag previews and commits on release; ←/→ move 16 px, Home/End go to the ends. The width is the `record.columns.details-width` workspace preference (per object, `{ width, v: 1 }`), which replaces the retired `record.columns.related` (⊟) preference. **Narrowing out.** When a pinned page narrows below the threshold on the same record and the address names no tab, the implied tab is written to the address with `replace`, so the reader stays on what they were looking at and Back history does not grow. **Not pinned.** A page with no other tab draws the details alone, with no tab row. A page whose details hold a related table among the fields (objectstack-ai#35889) does not pin. Drawer, split pane and phone (`fullPage` false or too narrow) keep the one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」. Measured: drawer at 1440 (details 622 across, 「详情」 shown) and phone at 375 (details 327 across, 「详情」 shown), both with no rail. **Rail retired.** `RecordSummaryRail` is deleted with the ⊟ panel toggle, its `⌘⇧,` shortcut and the `record.columns.related` preference; the attachment-count hook and approval-pending test move to `recordTabBadges.ts`. The `PanelToggles` plumbing stays (empty) for objectstack-ai#36075. The hidden-list foot line under the rail goes too; hidden lists and the reset are in the tab row's 「更多」 menu. The "default order changed" hint stays, under the tab row. A hidden list still opens, from its 「更多」 item or from `?related=` naming it (`requested` accepts ids in `resolved.hidden`; test red without the fix). **Other card items.** The overview tab is labelled 「详情」 in every locale (`detail.recordTabOverview` takes the `detail.details` word). The in-approval tag reads `In approval · {{step}}` (`detail.approvalPendingStep`, 11 locales) for non-approvers when the request names a step, using the approvals panel's own `stepDisplayText`. **Host.** `RecordDetailView` passes `fullPage={!embedded}`, the width preference and `onShownTabChange`. When the shown tab is the 动态 timeline (implied or chosen), the full activity window is read, as it was when the tab was chosen. Feed reads at open are unchanged (the page payload still asks discussion + activity top 5 for the tab's count), to stay out of objectstack-ai#36075's way. Merged with `main` after objectstack-ai#36114 and objectstack-ai#36178 (the comment panel, PRs 1 and 2), keeping both sides: the rail's 最近动态 card that objectstack-ai#36114's `RecordCommentsInPanelContext` note spoke of no longer exists. `overlap-check.mjs` at push (`241f4b21`): clean against `main`, objectstack-ai#36187, objectstack-ai#36123 and objectstack-ai#35923; it conflicts with objectstack-ai#36183 (objectstack-ai#36047 slice 2, the text-size sweep) in `RecordSummaryRail.tsx` (deleted here), the e2e spec (renamed here) and two plugin-detail tests. Whichever lands second resolves it; objectstack-ai#36183 re-runs its mapping script on `main`. **Docs.** `content/docs/ui/pages.mdx` (Record pages › The synthesized default) now describes the tab row, the pinned layout and when related rows are read, instead of the right column. ## Acceptance notes (card checklist) - Wide full page: fields left, other tabs right, first of them open. ✔ (`RecordPageColumns.test.tsx` pinned block; `recordPageTiers-26678` at 1440 / 1100 / 800 px) - No other tab: fields fill the page, no tab row. ✔ - Right summary cards removed at all widths. ✔ (every tier asserts no `[data-record-summary-card]`) - Left column 400, draggable, remembered per person per object. ✔ (keyboard + pointer tests; host test writes and re-reads the preference). Kept in the browser's workspace preference store, like the other record-page preferences. - First tab 「详情」. ✔ - 「审批中 · 当前步骤」. ✔ (`approvalDeclaredActions` test, machine name and label) - Body-table page does not pin. ✔ - Narrowing keeps the tab (URL replace). ✔ (measured: 1440 with the panel opened wrote `?related=crm_activity.account`) - A hidden list opens from 「更多」 and from `?related=`. ✔ (`readerArrangement-35595`, red without the fix) - Drawer / phone never pin and keep the one-column tab row; what reaches them is the rail's removal and the 「详情」 name. Hand-written pages untouched. ✔ - Deliberate drops: the ⊟ control and `⌘⇧,`; the hidden-list foot line (its job is in 「更多」); the rail's three-row previews of each related list (a list now reads its rows when its tab opens). ## Why Sales asked for the record page they remembered: on a wide full page, the main form on the left and the child tables in tabs on the right (objectstack-ai#35890, under epic objectstack-ai#35590). The width rule was put to Sales after a decision review because the card's 760 px reading and the 1120 px reading both broke the comment panel layout on common laptops; option 0 keeps three columns (fields | tabs | comments) on every common laptop, which is the figure Sales approved on objectstack-ai#36075. ## Verification - Local, on the merged head `079c7723` (shared box, under `os-verify-lock`): plugin-detail, i18n, app-shell Record*, recordCommentsPanel, relatedListConditions and workspacePreference: 647 files / 6,742 tests pass; app-shell type-check (src and tests) clean. On `241f4b21`: plugin-detail + i18n 509 files / 5,677 tests pass, both type-checks clean, `record-tabs-35595.spec.ts` 6/6 locally. Earlier, on `fbe6e33d`: `vitest run packages/plugin-detail packages/i18n`: 500 files / 5,598 tests pass (31 skipped, existing). `vitest run packages/app-shell/src/views/Record packages/app-shell/src/utils/workspacePreference`: 133 files / 1,005 tests pass. The whole app-shell suite did not fit the 28-minute local window; CI is the full reading. - `type-check` (src and tests) clean for plugin-detail, i18n and app-shell; ESLint `--quiet` on every changed file: 0 errors; `check:test-source-alias` OK. - Rewritten / converted tests: `RecordPageColumns.test.tsx` (new pinned describe: threshold 744, auto-narrow 824→400 / 800→376 / 744→320 / 743→not pinned, drag, keyboard, drawer never pins, body table, narrowing writes the implied tab with replace, `onShownTabChange`), `RecordDetailView.recordPageTiers-26678` (host at 1440 / 1100 / 800 / 720 / 390, embedded, `?related=timeline` pinned and not, width preference round-trip), `workspacePreference.test.ts` (details-width codec). Deleted with the code they pinned: `RecordPageColumns.switches-27052`, `RecordDetailView.panelToggles-27052`. - Tests that read the rail now open the 动态 tab or assert its absence: `recordOpenWaves-13010`, `recordOpenOneRequest-28470`, `timelineCount-28737`, `harness › relatedCountsFirst-27056`, `accessibleNames-12625`, `topBar-27524`, `phoneFace-27058`, `feedLoadFailure-29188`. - Screenshots (1280 / 1440 / 1920, light and dark, with and without other tabs) are attached in the project thread, plus the comment panel open at 1280 / 1366 / 1440, the drawer at 1440 and the phone at 375; the measured numbers are in the evidence comment. - e2e: `ui/e2e/record-tabs-35595.spec.ts` (renamed from `record-tabs-rail-35595.spec.ts`). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes (changed files, `--quiet`). - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset (`.changeset/35890-record-details-pinned.md`), and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: not touched. - [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 summary, in the maintainer's language). - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgUZTwDqtEFzNFCVTri --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…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>
…ol picks per card, and a card thread confirms CI started (objectstack-ai#36203) (objectstack-ai#36205) <!-- claude-projects-attribution: {"github_login":"os-sales"} --> _Requested by **Sales** · [project thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu6w5evzMUfxv4RcRXpJou7e)_ repo:objectstack#1 · os-sales · session_01L6bhgXU3aQQzivgaDDU82c Part of objectstack-ai#36203 (items 1-5, the skill text; items 6-7, the scripts, stay on the card) Clause-②: no Metadata-protocol: none Rule-change: ruled Ruling-ref: 「同意五条都改」 — the maintainer's choice on the decision card 「同意按卡 objectstack-ai#36203 的五条修改技能文字吗?」, 2026-11-22T07:25Z, ruling record 7075909669 on objectstack-ai#36203 ## 维护者速读 - 以后席位决定"这张卡等 #N 之后再做"时,要在卡上写 `Blocked-by: #N` 并挂 `pm:blocked`,不能只记在记忆里。#N 一合入,现有的解锁扫描就会把卡放回可派。 - 每轮巡查都要把手上车道和专题的卡逐张过一遍(`card-pick --why`),不再只在"报队列空"时才做。没有挡路理由的子卡当轮派出。 - 卡线程每次推送后 10 分钟内要核对 CI 真的开跑了、PR 没冲突;冲突的 PR 根本不跑 CI,所以先合 main 再推。等 CI 必须设兜底提醒。席位每轮读每个在飞卡 PR 的状态,遇到 0 检查、冲突、2 小时无动静就叫醒线程。 - 你 07:25Z 选了「同意五条都改」(裁决记录 7075909669),四个技能文件的字节上限按实测增量放宽。 ## What changes - `references/filing-gate.md`: the order between same-epic fleet cards is the later card's `Blocked-by:` line, not a preference listed on the epic card. This removes the contradiction with `seat-lifecycle.md` 56. - `references/execution-duties.md`: deciding "this waits for #N" writes `Blocked-by: #N` + `pm:blocked` on the card in the same stroke, never only in memory or a comment. The ③ status probe covers card threads as well as devs. - `references/seat-lifecycle.md`: `card-pick.mjs --order <序> --why` runs every patrol round over the lanes and epics the seat holds, not only when the seat reports an empty queue. A card with no hold reason is dispatched that round. - Item 3's second arm (a card that is not dispatched gets its reason written on the card) is not repeated in `seat-lifecycle.md` 90: it is `execution-duties.md` 49 (a hold is a `Blocked-by:` line + `pm:blocked` on the card, which then shows as a hold point in `card-pick --why`), and restating it would need bytes the ruled ceiling does not have. - `references/dispatch-runbook.md` (card-thread section), two lines: (1) within 10 min after a push, the thread confirms that Actions started and the PR is not `dirty` (a conflicting PR starts no `pull_request` workflow), else it merges `origin/main` and pushes again; a CI wait sets a `send_later` fallback of at most 30 min. (2) Each round, the seat reads `pr-state.mjs` for every in-flight card PR and wakes the thread that round on zero Actions 30 min after the push, `dirty`, or 2 h with no push and no report. ## Why The two misses on 2026-11-21, read in objectstack-ai#36203: objectstack-ai#35890 / objectstack-ai#35892 sat undispatched for 3 h and 8 h after their blockers closed, because the hold lived only in memory. PR objectstack-ai#35923 waited 15.5 h on a head with zero Actions runs (it was already `dirty`), and its thread and the seat each waited for the other. ## Verification - `node scripts/pm/check-skill-line-ratchet.mjs`: green, 0 ✗. Ruling record 7075909669 orders the text; `CEILINGS` rows move by exactly the ruled deltas (dispatch-runbook 20070 → 20354, +284, the text itself +286 over main's 20068 because main sat 2 bytes under its old ceiling; execution-duties 20154 → 20277, +123 (main's own +6 raise, ruling 7073679594, landed first); seat-lifecycle 9070 → 9076, +6; filing-gate 9096 → 9101, +5), each row quoting the id. `--self-test`: 116 cases pass. Merging main (7971a71) took one byte of dispatch-runbook headroom that main had used (20067 → 20068), so one space in the new CI line is dropped to stay at the ruled 20354. - The only script touched is the ratchet's `CEILINGS` table. No workflow or published file changes. No changeset (nothing publishes; `skip-changeset`). ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (No `packages/spec` change.) - [x] 2. Every name I added uses the casing for its kind. (None added.) - [x] 3. No formatter ran; `pnpm lint` passes. (Markdown only.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset. (Nothing publishes.) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (Not touched.) - [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 维护者速读 section is the maintainer's Chinese summary.) - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01L6bhgXU3aQQzivgaDDU82c <!-- signed: repo:objectstack#1 · os-sales · session_01L6bhgXU3aQQzivgaDDU82c --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ses a lone Claim: comment (objectstack-ai#36434) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Steedos** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbCxiFE11rsKwyNffJZKYqJs)_ Fixes objectstack-ai#36203 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:这是车队内部工具。巡查脚本现在会标出"已认领卡的草稿 PR 有冲突,或推上去后 CI 根本没跑";发评论的工具不再接受单独发出的认领评论,会提示改用连标签一起改的一笔写法。 - 属于"派发为什么会出现疏漏"那张卡的最后两条脚本项(技能文字五条已合入),替席位和卡线程解决"互相等 CI、其实 CI 根本没开跑"的问题。 - 出错最坏是巡查报告多一行或少一行提醒,或某条认领评论被拒、换一种写法重发;不改任何数据,可以直接撤回。 - 无 ## What changes Items 6 and 7 of the card's To do (items 1-5, the skill text, merged in objectstack-ai#36205). Script-only: `scripts/pm/check-half-states.mjs` and `scripts/pm/post-stamped.mjs`, each with its self-test battery. No skill text, no ceiling, no workflow. **Item 6 — new row H82 in the half-state patrol: a claimed card's PR that CI cannot see.** The release note offered "widen H12/H16 to claimed drafts, or a new row"; this takes the new row. H16's pinned non-draft scope stays true for every other PR, H12 (orphan landing of a *ready* PR) has no meaning on a draft, and the second signal the card asks for (no Actions ever ran) is a read neither row makes. - Population: an open PR whose body binds (closing keyword or `Part of`, H16's extractor) a card the sweep holds under `pm:dispatched` — the state model's claimed bit, free from the label pages the sweep already lists. Silent past 30 min by `updated_at` (H16's age proxy), the card-thread wake rule's own number (`dispatch-runbook.md`, 卡线程: 推后 30 分钟零 Actions、`dirty`). - Leg 1: a DRAFT with `mergeable_state: dirty`. A non-draft dirty PR stays H16's row alone, never reported twice. - Leg 2: any claimed PR, draft or ready, not dirty, whose head answers `total_count: 0` on `/commits/SHA/check-suites?app_id=15368` (the GitHub Actions app). The filter is load-bearing: measured on the incident head `473c7ff4` (PR objectstack-ai#35923), the unfiltered read answers 5 suites (deploy previews, the fleet app) and the Actions-filtered one 0; a head CI ran on answers 10 Actions suites of 15. - Reads: the PR row (reused from H16's pass when both want it) and one check-suites page, for candidates only. A failed PR-row read drops that PR, all-failed rethrows (H16's posture). A failed check-suites read is UNJUDGED, counted on the summary line, never a zero and never rethrown. - Registered as a `stall` band row, four count keys on the sweep contract, one summary clause (`Claimed card PRs (H82): …`) with its anchor. **Item 7 — `post-stamped.mjs` refuses a comment whose first keyed line is `Claim:`** (exit 2, zero writes). The first line after the signature is read through the patrol's own marker (`CLAIM_COMMENT_MARKER`, `markerMatches`, so `> Claim:` counts as it does for H2). The refusal prints the stroke that folds the same comment: `label-write.mjs --issue N --comment-file PATH --add pm:dispatched --remove pm:queue --assign LOGIN`. - Judged in `main` after the route is resolved, deliberately NOT in `judgeBody`: `judgeBody` is the path `label-write --comment-file` folds the comment through, and that fold is the remedy. - One arm is route-aware. `label-write`'s header says `--comment-file` is RELAY-ONLY and that on a route resolved `direct` the claim goes "through post-stamped and the labels here, as before". Refusing there would leave no claim route at all, so on `direct` the claim is still written, with a stderr note that the labels follow as a second write. Every other route refuses, an undecidable one included (it cannot prove the fold absent). ## Tests <details><summary>Self-tests, at the head that also ran the gates (6efbcf5)</summary> - `pnpm check:pm-half-states`: exit 0, `check-half-states self-test: 5420 cases pass`, battery `H82 claimed card PR CI cannot see 24/24` (pin at the count). Each leg's firing case sits beside the control that silences it: the dirty draft vs. the same draft clean; H16 silent on the dirty draft H82 fires on; zero suites vs. an unread (null) reading; a non-draft dirty PR left to H16 while H16 does fire on it; unclaimed vs. claimed; the 30-minute boundary; the gate never narrower than the predicate; band, summary pair, count keys, wiring. - `pnpm check:pm-post-stamped`: exit 0, `post-stamped self-test: 802 cases pass across 30 batteries` (787 / 29 before). New battery, 15 cases: refused on the relay route and on an undecidable one; the `direct` control; a `Claim:` quoted further down a round report, a card body and a non-claim comment pass; the refusal text; **control: the same claim through `judgeBody` (label-write's fold path) passes**; CLI dry runs (refused exit 2 off `direct`, rendered exit 0 on `direct`, a non-claim body exit 0 on the same route); structural placement. - `pnpm check:pm-label-write`: exit 0, `398 cases pass across 19 batteries` (its fold battery folds a signed `Claim:` through `judgeBody`). </details> <details><summary>Live reads (read-only, this container)</summary> - Live patrol sweep (`node scripts/pm/check-half-states.mjs`, no flags, report-only, writes nothing): `Claimed card PRs (H82): PR row read on 15 of 15 open PR(s) bound to a pm:dispatched card and silent past 30 min, and the Actions check suites read on 15 of 15 head(s) not in conflict.` No H82 row today: no claimed card PR on the board is currently blind. - `post-stamped.mjs --dry-run --comment=36203` with a signed claim: route `dispatch`, exit 2, the refusal naming the fold stroke. - `label-write.mjs --issue 36203 --add pm:dispatched --comment-file SAME --dry-run`: exit 0, packed as ONE relay dispatch with the comment, nothing sent. </details> ## Acceptance notes - **Third wake trigger not read.** The runbook's third trigger (2 h with no push and no report) is still read by nobody mechanically; seat 1's release note names item 6 as the place to close it. This PR reads only the two signals the dispatch names (dirty, zero Actions suites). - **The patrol workflow grants no `checks:` scope.** `half-state-patrol.yml` lists `contents`, `issues`, `pull-requests`. If its `GITHUB_TOKEN` cannot read check suites, the runner's leg 2 reads UNJUDGED (said on the summary line) and leg 1 still runs. Not measured on a runner, because the workflow is on demand only. The seat-container sweep, the live consumer, reads them (15 of 15 above). - **Population is the label, not the claim comment.** "Claimed" is a bound card under `pm:dispatched`. A label without its claim is H1/H2's row, and re-reading every bound card's thread would cost requests. - **Age proxy.** `updated_at`, as H16. A quiet PR whose base just moved flags at once. A comment on the PR defers the row by one threshold. ## Verification - Targeted gates (`dispatch-gates --commands`, 70 families, at `6efbcf556bd`): 68 exit 0. `--ran` reconciliation: 70 derived, 69 run, 1 NOT-MEASURED. NOT MEASURED, `pnpm check:i18n-coverage`, exit 3: prerequisite not met (no package `dist/` built, and the diff touches no package). Red locally but NOT MEASURED, `node scripts/check-self-test-workflow-commands.mjs`: an unrelated child self-test (`check-adr-0087-registration.mjs --self-test`) runs past its 120 s spawn budget on the shared box (measured 3 min 1 s standalone, exit 0). CI owns both. - `overlap-check.mjs`: clean against `origin/main`, 0 PR heads. **Read first:** `check-half-states.mjs`, the H82 sweep pass after H16's rethrow (the two read postures). `h82ClaimedPrBlind` (the leg split with H16). `post-stamped.mjs`, `main`'s `claimStrokeRefusal` call and its `direct` arm. **Two-minute check:** `node scripts/pm/post-stamped.mjs --self-test 2>&1 | grep "claim stroke\|refuses the claim"` lists the claim-stroke cases, every one ✓. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jTeURPvEm465RcoYEC <!-- signed: repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Sales · project thread
repo:objectstack#1 · os-sales · session_01L6bhgTgsPwrw3VbvRRcqth
Fixes #35897
Fixes #35899
Clause-②: yes (widening)
Metadata-protocol: semantic
Skills-docs: follow-up #35902 (skills/objectstack-data/rules/relationships.md, skills/objectstack-ui/rules/record-page.md)
维护者速读
relatedLists,详情页的标签页就只显示列出的相关列表,按列出的顺序;没列的不再显示。没声明(或为空)时完全不变。sys_attachment(附件)、sys_approval_request(审批)、sys_activity(活动流);附件不列就不显示,审批和活动流不列时仍排在末尾。{ list, label, columns }给该列表自己的标题和列;列名不是子对象字段会被os validate、os build和元数据写入口拒绝。relatedLists时既在概览里、也保留页签;声明了但没列它,就只在概览里,不出页签(席位裁定 7048340194)。account.industry这种跨关系的写法,和外键上的写法一致。relatedLists却没列它,就不显示页签;让扩展包自己放置列表的做法在 扩展包给别人的对象加字段、分组、子表时声明放在哪(排在谁后面);带来的东西自动出现在指定位置 #35901。relatedLists的应用,没列的标签会消失(仓库内无此类对象;已部署的元数据未测量)。What changes
An object's declared
relatedListsbecomes its record page's tab list (epic #35896):packages/spec/src/data/object.zod.ts, newrelated-list-entry.ts): an entry is the bare name or{ list, label?, columns? }(strict, with aliases and guidance). The three built-in tabs are named by object:sys_attachment,sys_approval_request,sys_activity. A built-in is written only as its bare name; the object form naming one is refused at parse (a regex, so the published JSON schema keeps the refinement).defineStack's name check skips built-ins. The shared helpersRECORD_PAGE_BUILTIN_TABS,isRecordPageBuiltinTab,relatedListEntryNameandRELATED_LIST_BUILTIN_PART_OFare the one reading of an entry's name for every reader.validate-related-list-refs): newrelated-list-column-unknown(error: a column that is no field of the child, registry-injected columns included),related-list-attachments-off(warning:sys_attachmenton an object withoutenable.files) andrelated-list-stream-part(warning:sys_comment/sys_audit_logare parts of the stream; prescribessys_activity). The same rule runs atos validate,os buildand the metadata write door.deriveRelatedLists: on a declared non-emptyrelatedLists, an unlisted side list shows no tab. Body tables a field group places are kept, andrelatedList: falseon the FK still hides a list. An entry'slabel/columnswin over the FK'srelatedListTitle/relatedListColumns.buildDefaultPageSchema(arrangeDeclaredTabs): tabs follow the declared order. An unlisted attachments tab is dropped. Unlisted approvals follow the listed tabs. An unlisted stream closes the strip. The overview stays first.recordPageColumns: the related column keeps that one order.master_detailtable that a field group places in the overview keeps its tab only whilerelatedListsis undeclared or lists it. A declaredrelatedListsthat leaves it out shows it in the overview with no tab (seat ruling 7048340194 on relatedLists 管记录页页签的显示和顺序:声明了就只显示列出来的;附件、审批、动态用对象名 sys_attachment、sys_approval_request、sys_activity 列进来 #35897). feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921's ADR-0035 note andsemantic/18acceptance text are qualified to say so. feat(spec, ui): a master_detail child is a tab by default; a field group puts it in the overview and the form #35921's changeset stays as main has it; this PR's own changeset narrows it in one sentence (0215faf).RelatedListsEditor,relatedListVocabulary.acceptTabListEntries): the object settings panel editsrelatedListsas the tab list. Object entries and built-in names survive every move, removal and add. The add picker offers the built-ins by name (attachments only whenenable.filesis on), then the unlisted relationships. A relationship row edits its own title and columns; clearing both writes the bare name again. A listed attachments tab on an object without files shows a notice. The preview draws the tabs in order, built-ins included. New strings in@object-ui/i18n(en, zh).object-schema-fls-references.ts):relatedListsentries stay unmasked likelookupColumns: the columns are the child's fields, the label is author text, and the built-ins are object names. A pin test covers an entry whose column shares a denied field's name.related-lists-declared-is-tab-list. No D2 conversion, because which unlisted lists an author still wants is recorded nowhere.relatedListsonly, per the maintainer's ruling.list,label,columns) and the strictness ledger counts are regenerated.Tier H: this PR touches
docs/adr/**.Why
The maintainer ruled that the record page's tabs are declared on the parent object in one place: removing an entry removes its tab,
relatedListsis that list, and the three built-in tabs are named by their objects. Before this change, a declaredrelatedListsonly ordered the lists: every unlisted list still followed, and the built-ins always closed the strip in a fixed order.Tests
stack-related-lists-order.test.ts(object entries, built-ins, the parse refusal,defineStack); newrelated-list-entry.test.ts.validate-related-list-refs.test.ts(built-ins, both warnings, unknown and injected columns);rule-explanationscovers the three new ids.object-schema-fls-references.test.ts(relatedLists 的一项可以带标题和列:在父对象上配子表显示哪几列,不用去改子对象 #35899 entry pin).ObjectSettingsPanel.relatedListsTabList-35897.test.tsx(5 tests);ObjectSettingsPanel.relatedListsOrder-27054.test.tsxexpects the built-in add options.buildDefaultPageSchema.test.ts, new describedeclared relatedLists arranges the tabs (objectstack#35897);deriveRelatedLists.relatedListsOrder-27069.test.ts. Three tests that pinned the old "unlisted lists follow" meaning now pin the new one: two in the 27069 file, the 27241 case inRecordDetailView.harness.test.tsx(with a new all-listed control), and the page-order expectations inObjectSettingsPanel.relatedListsOrder-27054.test.tsx. The 27069 file also pins the ruling: a group-placedmaster_detailtable keeps its tab whenrelatedListsis undeclared or lists it, and loses only the tab when unlisted.Acceptance notes
On the record page of each object that declares
relatedLists, the tabs after the overview are the listed related lists and built-in tabs, in the listed order. Then come approvals, if unlisted and the record has requests, and the activity stream last. An object that declares norelatedListsshows the same tabs as before. In-repo census: no example, platform object, dogfood fixture or HotCRM object declaresrelatedListstoday.Verification
On
462477f8(the fixes above):@objectstack/lint222 files / 9,369 tests passed;@objectstack/platform-objects125 files / 2,126 tests passed;@objectstack/specsrc/data,src/migrations,src/stack230 files / 7,961 tests passed;check:generated --fixregeneratedcontent/docs/references/**and is clean;check-i18n-bundles --writeclean; ui vitest on all ofapp-shell/src/views/metadata-adminandObjectSettingsPanel*: 772 files, two failures in the first run, both resolved (the 9931 registry table, now carrying the new key, 40 passed;AddWidgetPicker.oneRegistry-26745passes alone, 7 passed, and the diff does not touch it).On the merged head 3434287 (main 6c7c6db merged into 473c7ff; conflicts listed below; 0215faf then touches only
.changeset/):@objectstack/spectest 961 files / 29,439 tests passed andcheck:generatedclean after--fix(it regeneratedcontent/docs/references/**and the liveness counts);@objectstack/lint222 files / 9,363 tests passed;@objectstack/metadata-core1,048 tests passed; ui vitest (fromui/) onapp-shellderiveRelatedLists,RecordDetailView.harness,ObjectSettingsPanel*,plugin-detailsynth and all of@object-ui/i18n: 133 files / 2,389 tests passed. The whole app-shell + plugin-detail suites ran past the local time limit and are left to CI.Main merge conflicts and how they were resolved:
docs/adr/0035keeps both notes (this PR's 2026-11-20 amendment, then main's 2026-11-21 second-slice form note);semantic/18acceptance text carries both qualifiers (the declared-relatedListstab rule from this PR, the same-place/tabbed-form wording from #36009); Studioen/zhkeep this PR's tab-list wording and drophighlightPreviewas #36020 did;content/docs/references/{api/metadata,data/object,system/migration}.mdxandliveness/state-counts/object.mdwere regenerated, not hand-merged.On 473c7ff, before this merge:
@objectstack/spectest 2355 files passed,check:test-typecheckandcheck:generatedclean;@objectstack/lint868 files passed;@objectstack/metadata-core222 files passed;@object-ui/plugin-detail105 files passed;@object-ui/app-shell394 files passed;@object-ui/i18n27 files passed. Earlier runs:pnpm --filter @objectstack/spec teston the touched files;check:generated;check:liveness.pnpm --filter @objectstack/lint test(validate-related-list-refs, runtime-gate, rule-explanations).ui/) on the touched plugin-detail / app-shell files: 7 files, 227 passed. A wide app-shell + plugin-detail run had no other failures.type-check.dispatch-gates.mjs --commandsderived list (128 commands) run locally: 126 green (two of them after building their inputs). Two are prerequisite refusals that measure nothing here, left to CI:check-plugin-teardown-shape --self-test(needs a full clone),check:dual-build-cjs-loads(needs a whole-repo build). An ADR-0122 alias finding was fixed in da074fd.Fable L2 fixes (record 7071342837, at
0215fafa)f5b256d4): the object form'srelatedListsrow (packages/spec/src/data/object.form.ts) now names a newrelated-list-entrieswidget (ui/packages/app-shell/src/views/metadata-admin/widgets.tsx, labellingcontrol). It renders a bare name and an object entry alike (the entry's title and columns beside its name), keeps every entry's stored form on add and remove, refuses a second entry for a name an object entry already places, and removes the key with the last entry. The help text states the tab-list meaning, hand-written in all ten translated locales (platform-objectsmetadata-forms bundles), and the zh label is 记录页页签 in both the bundle andmetadata-form-zh-cn.ts. Pinned byRelatedListEntriesWidget-35923.test.tsx(the published row names the widget; an object entry renders; remove/add keep it); the three widget-registry tests (widgetLabelling,controlWidgetGridNaming-9889,controlWidgetFailureArmNaming-9931) carry the new key.f5b256d4):validate-related-list-refswalks a dotted entry column throughresolveFieldPathfrom the child, asvalidate-object-field-refswalksrelatedListColumns; an unjudgeable path stays unjudged. Test:lead_id.namepasses,lead_id.nopeandnope_id.namearerelated-list-column-unknown. The specdescribeand the rule header say so.f5b256d4): therelatedListsdescribeand jsdoc, the ADR-0035 and ADR-0085 notes and therelated-lists-declared-is-tab-listmigration entry state that a child list another package adds is hidden too until the parent names it (accepted at build only when that package is in the parent's stack), and that an extension package placing its own list is 扩展包给别人的对象加字段、分组、子表时声明放在哪(排在谁后面);带来的东西自动出现在指定位置 #35901. No lint hint added: the case has no stack-side signal to warn on.db548f41: the four widget tests load@objectstack/formulaand@objectstack/lintat module top (check-test-source-alias:widgets.tsxreaches both through dynamic imports).462477f8): adds@objectstack/platform-objects(patch, translations) and the three points above.lookupColumnsprecedent). N3 left (first entry naming a list wins; a lint advisory is a follow-up). N4 left (no authorable parent has an inbound FK fromsys_comment).Human Minimum
Each item is one rule from
CONTRIBUTING.md › Human Minimum,
which links the AGENTS.md text that states it.
packages/specholds no runtime logic. (The newrelated-list-entry.tsholds only the name constants and two pure name readers, likerelated-list-body-table.ts.)pnpm lintpasses. (ESLint on every changed file: 0 errors.)main, one pull request. (Two cards folded by the dispatch order, oneFixesline each.)packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Tier H (
docs/adr/**): the ADR-0085 and ADR-0035 notes need the approver's review.🤖 Generated with Claude Code
https://claude.ai/code/session_01L6bhgTgsPwrw3VbvRRcqth