Skip to content

技能、文档、示例和 HotCRM 用上记录页的新写法:relatedLists 列页签、分组列字段、分组指向子表、扩展包声明位置 #35902

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35896(专题:记录页的页签和字段分组改由父对象一处声明,维护者直派)。⛔ 不是认领。完整的元数据例子在父单。

维护者 2026-11-20 原话:「「把子表当成一个分组、排在分组之间」这件事 10 月份就做进去了(objectstack#27069),只是没人用,是技能也没写吧?例子有吗?」「「分组指向子表」确实没人知道,立卡了吗」——当时立的 #35852 应维护者要求按不做关闭并重新讨论,本卡是重立,范围扩大到本专题的全部新写法。

现状(主干 8c18a362a2)

  • 「分组指向子表」(fieldGroups[].relatedList)只在自动生成的参考表里有一行;技能规则(skills/objectstack-ui/rules/record-page.md、skills/objectstack-data/rules/relationships.md)、指南文档、仓库示例、HotCRM 里都没有,AI 搭建不会用,人也不知道。
  • relatedLists 在两份技能规则里各提到一次,仓库示例和 HotCRM 里没有对象声明它。
  • 本专题子卡 1 到 4 会带来四种新写法,不同步的话会重演「做了没人知道」。

要做的

每做完一张子卡,跟着补一批;本卡在四张都补完后关闭。

  1. 技能规则:记录页规则和关系规则里写明——页签用 relatedLists 列(含三个内置页签的对象名);一项可以带标题和列;分组用 fields 列成员;什么时候用分组指向子表把明细放进字段区;扩展包怎么声明位置。每条配一个最小例子,并写明「没写就照旧」。
  2. 评测用例:各加一条,确认 AI 搭建在被要求「把任务页签排到第一个」「去掉附件页签」「报价单的明细放在金额上面」「给客户加一个税号字段排在行业后面」时写出正确的形状。
  3. 指南文档:记录页一节补上这几种写法和父单里的完整例子。
  4. 仓库示例:选一个现有示例对象用上 relatedLists 和分组的 fields;选一个主从对象演示分组指向子表。
  5. HotCRM:主要对象(客户、联系人、商机、报价单、订单)声明 relatedLists,把页签顺序明确下来。

没有定、本卡不做的

验收

  • 技能规则里能找到四种写法各自的例子;os validate 能通过这些例子。
  • 四条评测用例通过。
  • 指南文档里有父单的完整例子,并且和规范一致(规范变了例子跟着变)。
  • 仓库示例里至少一个对象声明了 relatedLists,至少一个分组指向子表。
  • HotCRM 五个主要对象的页签顺序由声明决定,在测试环境里看到的顺序和声明一致。

Reader: domain:skills 牵头,domain:docs 配合;HotCRM 部分在 hotcrm 仓库另开分支。

Dedupe: 已关闭的 #35852(not planned,维护者要求重新讨论后另立)是本卡的前身。其余见父单。

Blocked-by: #35923

Activity

  1. added
    enhancement
    priority:p2
    domain:skills
    area:records
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:skills · pm:queue; rationale: area:records · Task · skills, docs, examples and HotCRM adopt the new record-page metadata (relatedLists tabs, groups listing fields, a group pointing at a child list, extension placement); re-files #35852; child of topic #35896 → p2 as set by the coordinator · size M. It teaches what #35897, #35899, #35900 and #35901 ship, so the claimant takes it as each lands.

  3. added
    pm:queue
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-20T23:47Z · slice 1 (the PR carries Part of #35902; later slices follow each merged child of epic #35896)
    Area: b1-RS
    Session: session_01L6bhgWkjeqKFH3UGbEobXy (the card thread)
    Account: os-sales
    Branch: claude/project-thread-c9cgkw
    Seat: repo:objectstack#1
    Domain: domain:skills
    File surface:

  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat hold · 2026-11-21T23:03Z · this card waits on #35923 (relatedLists tab list): the skills text describes the declaration #35923 adds. The body now carries the Blocked-by: line, so the unblock sweep releases it when that merges. (Root-cause card #36203: an "after #N" order is recorded on the card, not only in seat notes.)

  6. added
    pm:blocked
    area:ai
    and removed
    pm:queue
    area:records
    on Nov 21, 2026
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Seat release · 2026-11-22T02:18Z · #35923 merged (8df7bf2; #35897 and #35899 closed), so this card's Blocked-by: #35923 is met. Back to pm:queue; the seat writes the claim when the thread's premise arrives.

  8. 10 remaining items

  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z

    Claim: PM loop · 2026-11-22T17:04Z · slice 3, the rest of this card's work in this repository: the skills teach an extension's place (the fourth form), the record-page rule and guide drop the sentence the placement change made false, one eval case exercises place, and one example object declares relatedLists and its groups' fields. One PR, Part of #35902: the HotCRM half is not in this repository and gets its own comment here for the seat to route.
    Area: s2-E (card thread; reports to the area and the seat)
    Session: session_01ADHkmTSjgh1xF2oiht7G2Z
    Thread session: session_01ADHkmTSjgh1xF2oiht7G2Z
    Account: os-steve
    Branch: claude/project-thread-64v7i0
    Worktree: objectstack-issue-35902
    Domain: domain:skills
    Seat: repo:objectstack#2
    File surface: skills/objectstack-ui/rules/record-page.md · skills/objectstack-data/SKILL.md (Object Extension Model) · skills/objectstack-ui/evals/record-page.json or skills/objectstack-data/evals/objects-fields-relationships.json (one case) and that evals README.md line · content/docs/ui/pages.mdx (the record-page section) · one object under examples/app-showcase/src/data/objects/ plus the tests that pin its record page · one .changeset/35902-*.md. Every byte added to a ratcheted skill file is paid for by a cut in the same file; no ceiling is raised (stop on breach; explain in the report). Not touched: packages/spec/src/**, docs/adr/**, .claude/**, HotCRM.
    Container & model: M, mode:thread, model: CONTRACT_REVIEW_TIER — dispatch-gates --tier, MANDATORY: skills/objectstack-ui/rules/record-page.md ⇢ 'skills/**' clause ①, effort: high (M card)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7076168020
    Premise: holds, measured on origin/main 316f7571. Item 1: skills/** teaches three of the four forms (#36222); no skill file names an extension's place (grep place: and objectExtensions under skills/: the data skill's Object Extension Model lists extend, fields, fieldPatches, priority only), and rules/record-page.md step 2 still says a child list another package adds "is hidden by a relatedLists that does not name it (no package places its own list yet)", which #36236 (d33bf5a2) made false. Item 2: evals/record-page.json cases 1, 4, 5 and 6 are the card's four prompts; none exercises place. Item 3: content/docs/ui/pages.mdx carries the parent card's Quote example and the same stale sentence ("letting a package place its own list is a later change"); content/docs/data-modeling/object-extensions.mdx already documents place. Item 4: a group pointing at a child list is shown by showcase invoice and app-crm opportunity; no example object declares relatedLists or a group's fields (zero hits under examples/*/src). Item 5 is HotCRM.
    Pre-claim lane: skills/** is domain:skills (governed, Tier H); content/docs/ui/pages.mdx follows the surface it documents; examples/app-showcase/** follows the subsystem it exercises. All are in this repository, which this seat works across.
    Pre-claim deps: the body's Blocked-by: #35923 is merged (8df7bf23); the four sibling children #35897, #35899, #35900 and #35901 are closed (#35925 170ca481, #35921 f3c9d426, #36236 d33bf5a2).
    Prior rulings read: check-prior-rulings.mjs --card 35902 --paths on the surface: thread rulings none; surface hits 5 lines in 2 files, none of them a ruling on this change. The rulings that bind the text are on #35901, 7073014077: 「父对象声明了才生效」 (placement applies only where the parent declares the tab list or the groups) and 「装了就自动排在末尾」 (another package's unplaced child list shows at the end of the declared tabs). This card's own limits stand: a group pointing at a child list is written only when the user asks, and HotCRM's exceptions are the maintainer's (hotcrm#2720).
    Serial constraints cleared: no open PR names record-page.md or record-page.json; content/docs/ui/pages.mdx is also in #36478 and #36357, and skills/objectstack-data in draft #36158; overlap-check.mjs runs on the branch before each push and queues behind any textual overlap.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z

    Hand-off for item 5 (HotCRM) of this card, for the seat to route to the hotcrm lane. This thread does not write in the hotcrm repository. Stamped 2026-11-22T17:22Z.

    What HotCRM has to change so the tab order of its five main objects comes from a declaration

    1. Install a platform release that carries the new keys. The four platform halves are merged and none is released yet: the tab list (relatedLists, built-ins by object name), a group's fields, an entry's label / columns, and an extension's place (merge commits 8df7bf23, 170ca481, f3c9d426, d33bf5a2). Until HotCRM installs a release that contains them, the installed spec refuses the keys. Probe after the upgrade: os validate accepts an object that declares relatedLists with 'sys_activity' in it.
    2. Declare relatedLists on account, contact, opportunity, quote and order. Each lists every tab the page keeps, in order, the built-ins included: a declared list shows only what it names (approvals and the activity stream still follow when unlisted, last), so leaving out 'sys_attachment' drops the attachments tab. A plain name is enough; { list, label, columns } only where a tab needs its own title or columns, and it wins over the child field's relatedListTitle / relatedListColumns.
    3. Add place to the modules that extend those objects. Comment 7073014077 on 扩展包给别人的对象加字段、分组、子表时声明放在哪(排在谁后面);带来的东西自动出现在指定位置 #35901 reads HotCRM as using objectExtensions in o2c, psa and revenue, with no object declaring relatedLists (not re-measured here; this session cannot read hotcrm). Once step 2 lands, a child list one of those modules adds shows at the end of the declared tabs, before approvals and the activity stream (「装了就自动排在末尾」); a module that wants it elsewhere writes place: [{ list: 'CHILD', after: 'TAB' }] on its own extension, and { field, group, after } for a field it adds. Placement applies only where the extended object declares the tab list or the groups (「父对象声明了才生效」), so step 2 comes first.
    4. Leave group-to-child-list alone. Which HotCRM objects keep their lines among the fields is the maintainer's to name in HotCRM:商机等手写记录页回到平台默认页结构;审批提示文案改正;为主从明细对象打开一起保存 hotcrm#2720; this card's item 5 is relatedLists only.
    5. Acceptance on the HotCRM side (this card's last line): on a test environment the tab order of the five objects equals the declared order.

    The shapes to copy are in this repository after the pull request for this slice: examples/app-crm/src/objects/account.object.ts (a declared tab list with a per-entry columns, groups listing fields), the guide content/docs/ui/pages.mdx (record page section) and content/docs/data-modeling/object-extensions.mdx (placing what you bring).

    Open for the seat: this repository's slice does not close the card while item 5 is open. Either a hotcrm card takes item 5 and this card closes on the platform slice, or the card stays open until HotCRM lands.

  12. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z
    os-dev-report

    {
      "issue": 35902,
      "status": "done",
      "branch": "claude/project-thread-64v7i0",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36527",
      "session": "session_01ADHkmTSjgh1xF2oiht7G2Z",
      "premise_still_valid": true,
      "summary": "Platform slice of the card, head b9cdb233ef7d482c8364ba1e4d9ba027348a58db, draft PR with `Part of`. The data skill's Object Extension Model teaches `place` (field, group and list entries, `after` / `before`, applies where the target declares `fieldGroups` / `relatedLists`); the record-page rule and the guide drop the sentence that another package's child list is hidden; a new data eval (case 26) asks for a placed field and a placed tab; the CRM example's account declares `relatedLists` and groups listing `fields`. Three of the four forms were already taught with examples and evals on main, so the diff carries the fourth and the corrections. Item 5 (HotCRM) is not in this repository: what HotCRM must change is on the card, comment 7082792445, and the card stays open on it.",
      "tests": "No runtime behaviour changed, no ablation. Taught `place` shapes through the built spec's defineObjectExtension: 4/4 accepted, control leg 2/2 refused (both anchors; misspelt key). `pnpm --filter @objectstack/spec run check:skill-examples` exit 0, '349 prose examples type-check across 3 surface(s)'. `@objectstack/example-crm`: typecheck exit 0; test 'Test Files 7 passed (7) · Tests 51 passed (51)' under the verify lock, VERDICT command-exit 0; validate 'Validation passed'. `node ui/scripts/check-skill-eval-tokens.mjs` exit 0. Skill evals NOT MEASURED: no eval round ran; the card's 'four eval cases pass' and case 26 are owed one.",
      "gates": "`dispatch-gates --commands` derived 90 at this head; all 90 ran: 89 exit 0, 1 exit 1 = `node scripts/check-empty-changeset.mjs --base origin/main`, red by design (DELIBERATE CORRECTION of the pending note `.changeset/35902-skills-related-lists-tabs.md`, declared in the PR body). `--ran`: '90 derived famil(ies) accounted for — 90 run, 0 NOT-MEASURED'. `check-skills-token-ratchet` exit 0: data SKILL.md 6710/6710, record-page.md 990/991, no ceiling moved. `check-changeset-no-major --base origin/main --event` with the PR body: exit 0. `overlap-check` exit 1: #36158 (router draft, same skill file) and the release PR (pending note), both in Acceptance note 2. CI check-runs: in_progress at the time of this report.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "13 — issue_read ×7, pull_request_read ×6; no write tool",
      "api_writes": "4 relay dispatches — claim (comment, labels_add, labels_remove, assign) · the HotCRM hand-off comment · pr_create · this report; plus one git push",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: PR 36527 Acceptance note 3 · a `relatedLists` entry's `label` has no key in the spec's translation schema that I could find (`relatedListTitle` and `_sections` have one); read from translation.zod.ts only, console not traced, nothing reproduced · noted, not filed",
        "carrier: PR 36158 · the data skill's multi-value lookup note shows a `{record.tags.0}` token that the automation skill refuses in a value slot; that draft corrects it · noted, not filed",
        "carrier: 36086 · no ADR sentence comes out of this slice"
      ]
    }

    Stamped 2026-11-22T17:43Z.

  13. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Routing for item 5 (HotCRM), seat decision: the HotCRM half is carried by objectstack-ai/hotcrm#2742 (filed from hand-off 7082792445, Blocked-by: objectstack-ai/objectstack#36527; it waits until a released spec accepts relatedLists). This card closes on its platform slice: PR #36527 is the last slice and delivers it with Fixes #35902.

    Also filed from PR #36527 Acceptance note 3: #36528 (relatedLists[].label has no translation key), finding only.

  14. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z

    ACCEPT → PR #36527 comment 7083465615 (L1 self-read by the card thread, head b9cdb23; contract review owed on that head before the hand-off). Stamped 2026-11-22T18:15Z.


    Generated by Claude Code

  15. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z

    ACCEPT → PR #36527 comment 7083920994 (L1 delta self-read, head 8c346d6); contract review PASS on the same head: PR #36527 comment 7083671395. Handed to the seat for the hand-off. Stamped 2026-11-22T18:51Z.


    Generated by Claude Code

  16. removed
    pm:dispatched
    on Nov 22, 2026
  17. added a commit that references this issue on Nov 23, 2026
    f644321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:skillsenhancementpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions