Skip to content

docs(skills): teach an object extension's place; another package's child list still shows on a declared tab list - #36527

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-64v7i0
Nov 22, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-64v7i0

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #35902
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 搭建应用的人,让自己的扩展包给别人的对象加字段或子表时,AI 现在会写明它们排在哪个字段、哪个页签后面;技能和指南不再说「别的包加的子表会被隐藏」;CRM 示例的客户对象演示了页签清单和分组自己列字段。
  • 为什么做:属于「记录页的页签和字段分组改由父对象一处声明」专题:平台的四种新写法都已合并,这一批补上最后一种(扩展包声明位置)的技能、指南、评测和示例,免得「做了没人知道」。
  • 出错会怎样:AI 可能没写位置或写错,扩展包带来的字段和页签就按默认排在末尾,不丢数据;撤回只需回退这一次合并。
  • 要你做什么:批准合并这份技能与指南的更新。

What changes

The fourth form of the parent-declared record page, an extension's place, reaches the skills, the guide and an eval; the sentence that said another package's child list is hidden goes; one repository example declares a tab list.

File Change
skills/objectstack-data/SKILL.md § Object Extension Model defineObjectExtension takes place. One example with a field entry and a list entry, the group form { group: { key, label }, after }, before as the other anchor, and the condition: placement applies where the target declares fieldGroups / relatedLists.
skills/objectstack-ui/rules/record-page.md step 2 "A child list another package adds is hidden by a relatedLists that does not name it (no package places its own list yet)" becomes "still shows, after the named lists or where its extension's place puts it (objectstack-data)".
skills/objectstack-data/evals/objects-fields-relationships.json case 26, evals/README.md An add-on package puts its Tax ID field after Industry in the account's Basic group and its Contracts tab after Opportunities, on an account whose tab list names another child list after Opportunities, so a missing list placement draws a different page. Expected: two place entries on the package's own extension, no redeclared crm_account, no overrides:.
content/docs/ui/pages.mdx, record page section The same sentence corrected (shows where the extension places it, or at the end of the tabs, before approvals and the activity stream); a paragraph and a checked defineObjectExtension example for place, linking the object-extensions guide, which already documents the key.
examples/app-crm/src/objects/account.object.ts fieldGroups listing each group's fields, and relatedLists naming every tab in order, one entry with its own columns, the two built-ins by object name.
examples/app-crm/src/translations/crm.translation.ts zh-CN labels for the two new groups.
.changeset/35902-skills-extension-place.md New, @objectstack/skills patch.
.changeset/35902-skills-related-lists-tabs.md DELIBERATE CORRECTION, see below.

What the skills already taught before this change, and is not in the diff: the tab list with the three built-ins, an entry's label / columns, a group's fields, and the group that places a child table, each with its example and its eval (record-page evals 1, 4, 5, 6), and the repository examples of a group placing a child table (the showcase invoice, the CRM example's opportunity).

DELIBERATE CORRECTION of a pending release note. .changeset/35902-skills-related-lists-tabs.md is on main and unreleased. Its first bullet said: "A child list another package adds is hidden by a relatedLists that does not name it." The platform change that let a package place its own list made that false before any release carried it. The sentence now reads: "A child list another package adds still shows, after the named lists or where that package's extension places it." Nothing else in the note changed. Check Changeset is red on this by design; no skip-changeset.

Skill size readings

main 316f7571 This head
skills/objectstack-data/SKILL.md 473 lines · 26,832 bytes · 6,703 tokens (ceiling 6,710) 473 lines · 26,858 bytes · 6,710 tokens (ceiling 6,710, not raised)
skills/objectstack-ui/rules/record-page.md 64 lines · 3,952 bytes · 988 tokens (ceiling 991) 64 lines · 3,958 bytes · 990 tokens (ceiling 991, not raised)
All 14 SKILL.md files 4,950 lines · 261,027 bytes 4,950 lines · 261,053 bytes
Ratcheted (authored) tokens 197,533 197,542
Eval fixtures (measured, not ratcheted) 78,177 78,658
skills/**, 114 files 1,172,198 bytes 1,174,155 bytes

The data skill's entry file had 7 tokens of headroom and the place paragraph costs about 75, so the rest is paid in the same file by shorter wording, no ceiling moved. Every inline code span and every link of the file on main is still in it (compared by script), except the one signature that gained place. What the shorter wording no longer says, all prose: "on 31/31 objects in the reference apps" (twice, on pluralLabel and icon; the instruction to author both stays), "the fundamental data entity in ObjectStack", the lead-in "The full table, per-type config and traps" (the link stays), "stored and read ... on the record" in the multi-value lookup note, "range" before 0–999, "incorrect/correct" before "examples", and "This axis is distinct from ownership, which decides" (now "ownership is a separate axis").

Tests

  • No runtime behaviour changes, so no ablation.
  • The taught shapes parse. The skill's example, its group form, the guide's example and a before entry go through the built spec's defineObjectExtension: 4 of 4 accepted. Control leg: an entry with both after and before, and an entry with a misspelt key, are both refused, so an accept is a measurement.
  • pnpm --filter @objectstack/spec run check:skill-examples: exit 0, 349 prose examples type-check across 3 surface(s), the guide's new block among them, against a spec built at this base (full build under the verify lock, VERDICT command-exit 0).
  • The example app. @objectstack/example-crm: typecheck exit 0; test 7 files, 51 tests passed (under the verify lock, VERDICT command-exit 0); validate "Validation passed", no warning.
  • Eval token reachability. node ui/scripts/check-skill-eval-tokens.mjs: exit 0, "Every must_contain token is taught by its own skill bundle."
  • Skill evals: NOT MEASURED. No eval round ran here. The card's "four eval cases pass" and the new case 26 are owed a round: pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-ui.

Acceptance notes

  1. This slice is the card's last. Item 5 of the card (HotCRM declares relatedLists on its five main objects) lives in another repository and is carried by Declare relatedLists (tab order) on account, contact, opportunity, quote and order; place extension tabs hotcrm#2742, which the seat filed from the hand-off on the card (comment 7082792445); it waits for a release that carries these keys. Seat record: card comment 7083107636.
  2. Overlap. overlap-check at this head exits 1 on two open pull requests. The draft that turns the data skill's entry file into a router, docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158, rewrites skills/objectstack-data/SKILL.md whole: this pull request does not wait for it (the seat's call), and whichever lands second merges main and replays its entry-file text. If the router lands first, the place paragraph belongs in references/examples-objects.md § Object Extension Model, where that draft moves the section, and the wording payments here are dropped. The release pull request (chore: version packages) deletes every pending note, so a corrected pending note conflicts with it by construction; the release job regenerates it from main.
  3. A relatedLists entry's label has no translation key that I could find. The CRM example's entries carry no label for that reason. Read from packages/spec/src/system/translation.zod.ts: it has relatedListTitle under the child's field and _sections for groups, and no key for a tab-list entry's label. The console's reading was not traced and nothing was reproduced at run time. The seat filed the observation as Related list entry label (relatedLists[].label) has no translation key: a declared tab title cannot be localised #36528.
  4. The example lives in the CRM example, not the showcase. The showcase account's record page is pinned by an end-to-end shape test, and the CRM example's account had neither key.
  5. The multi-value lookup note keeps its {record.tags.0} token. The router draft above records that the automation skill refuses that token in a value slot and corrects it; this change only shortened the sentence around it.
  6. Merging ends the card while its eval done-when is unmeasured. The round named under Tests is owed; the seat filed Skill eval round owed: objectstack-data and objectstack-ui cases for related-list tabs and extension place (PR #36527, card #35902) #36535 as its carrier, for the eval lane to run on main after the merge.
  7. Guide example. The record page section of the guide carries the full Quote example from the parent card already; this change adds the extension half beside it.

Verification

Read first, by risk:

  1. skills/objectstack-data/SKILL.md: the payments. Risky hunk: the Object Extension Model guard, where "extend is not object-level ownership" replaced a longer sentence; the four enum values stay.
  2. skills/objectstack-ui/rules/record-page.md step 2: one sentence flips from "hidden" to "still shows".
  3. examples/app-crm/src/objects/account.object.ts: the declared tab list names all four child lists, so no tab the page had is dropped.

Two-minute check: node scripts/check-skills-token-ratchet.mjs. Expected: the last line reads ✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings, and the two changed rows read 6710 / 6710 and 990 / 991.

Head 8c346d66, two commits. The readings below were taken at b9cdb233; the second commit, from the contract review's finding S1, changes one eval fixture (the prompt's tab list and one sentence of the expected answer) and one comment in the CRM example. Re-run at 8c346d66: check-skills-token-ratchet exit 0, ui/scripts/check-skill-eval-tokens.mjs exit 0, check-nul-bytes exit 0, the CRM example's typecheck exit 0. Exit codes captured before any pipe.

Derived list. node scripts/pm/dispatch-gates.mjs --commands printed 90 commands. All 90 ran at b9cdb233: 89 exit 0, 1 exit 1. The exit 1 is node scripts/check-empty-changeset.mjs --base origin/main, red by design on the corrected pending note (DELIBERATE CORRECTION above); its other half reads "No empty-frontmatter changeset introduced by this diff (2 declaring changeset(s) added)".

Reconciliation: ✓ dispatch-gates --ran: 90 derived famil(ies) accounted for — 90 run, 0 NOT-MEASURED (a DERIVED zero — all 90 recorded an exit code and none of them is 3).

The dist-reading gates in that list read a full build of this tree (pnpm build, 13m40s, VERDICT command-exit 0). The build ran before the last wording edits to the two skill files and the guide; none of those files is a build input of the packages the gates read, and the gates themselves ran after the final commit.

Outside the derived list: node scripts/pm/overlap-check.mjs exit 1 (Acceptance note 2); the example app's three commands and the eval-token check under Tests.

Not run locally, CI's: the type-check lanes, Build Core, Test Core, the repo lint, the docs build.


Generated by Claude Code

… the record-page rule and guide say another package's child list still shows

The CRM example's account declares its field groups' members and its tab list.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z

席位核对

ACCEPT — L1 self-read by the card thread that wrote this pull request (the card order assigns L1 to the thread; author and reader are one session, so the independent read is the contract review owed below). Head-sha: b9cdb23. Stamped 2026-11-22T18:15Z.

  • ① Shape. Open, draft, base main, 9 files, +104 / −24. First line Fixes #35902: the seat's routing (card comment 7083107636) puts item 5 on Declare relatedLists (tab order) on account, contact, opportunity, quote and order; place extension tabs hotcrm#2742, so merging delivers what is left of the card in this repository. No closing keyword sits beside another card number (l1-face.mjs --pr 36527: keywords-other-cards ok). Clause-②: no, Metadata-protocol: none; Skills-docs: not owed.
  • ② Premise, measured on origin/main before the claim. Three of the four forms were already taught with an example and an eval each; place was in neither skill; the "hidden until named" sentence was in the record-page rule, the guide and one pending release note, and the spec's own text for relatedLists and place says the opposite ("A child list another package brings is not hidden by it … an unplaced one shows at the end of the tabs, before approvals and the activity stream").
  • ③ Gates, check-runs at this head (l1-face.mjs, read 2026-11-22T18:15Z): 39 success · 11 expected skip · 0 unexpected skip · 0 pending · 2 failed, both Check Changeset (the second is the re-run on the body edit). Lint & Repo Gates success, TypeScript Type Check success. Check Changeset is the third kind: red by design. Run locally at this head, the red command is check-empty-changeset.mjs --base origin/main (exit 1, on the pending note this change rewrote, with the DELIBERATE CORRECTION text); in the job log the check-changeset-no-major.mjs step is green. This record confirms the DELIBERATE CORRECTION: the old sentence ("is hidden by a relatedLists that does not name it") is false on main since the platform change that lets a package place its own list, and restoring the note from the base would put it back. Local subset: 90 derived, 90 run, 89 exit 0, the one exit 1 is the same gate.
  • Sentence reads (changesets and the guide, each against the spec text or the diff):
    • .changeset/35902-skills-related-lists-tabs.md: "A child list another package adds still shows, after the named lists or where that package's extension places it." True to the relatedLists description. Nothing else in the note moved.
    • .changeset/35902-skills-extension-place.md: three bullets, each matches a hunk (the data skill's place paragraph and example, the record-page rule's flipped sentence, eval case 26).
    • content/docs/ui/pages.mdx: "is not hidden by a relatedLists that does not name it: it shows where that package's extension places it (below), or at the end of the tabs, before the approvals and activity-stream tabs" matches the same description; "Where the target declares no fieldGroups (or no relatedLists), its automatic arrangement stays and the additions still show in it. An extension places only what it brings." matches the place description ("Where it declares none, its automatic arrangement stays as it is and the item still shows there"; "An extension places only its own items"). The example block is type-checked by check:skill-examples (349 blocks, exit 0).
  • Skills, read from the seat of an agent that loads the whole bundle. Authored tokens 197,533 to 197,542 (+9); no ceiling moved. The data skill's entry file is at 6710 / 6710, paid in the same file by shorter wording. Spot check by script: every inline code span and link of that file on main is still in it, except the one signature that gained place; the four ownership enum values, dropped in a first draft of the payment, are back. One three-line paragraph teaches the key; the rule is where an agent extending someone else's object already reads.
  • ④ Deviations accepted. overlap-check exit 1 on docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 (same entry file) and on the release pull request: not a wait, by the seat's call; whichever lands second merges main and replays. The repository example is the CRM example's account, not the showcase. Skill evals NOT MEASURED: the card's eval done-when and case 26 are owed a round, stated in the body.
  • ⑤ Out of scope. The missing translation key for a relatedLists entry's label: filed by the seat as Related list entry label (relatedLists[].label) has no translation key: a declared tab title cannot be localised #36528. The {record.tags.0} token in the multi-value lookup note: carried by docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158. No ADR sentence.
  • ⑥ Landing. Tier H (skills/**). Stays draft. Contract review is owed on this head at the governed tier before any hand-off; the hand-off to the governed approver is the seat's. This thread does not ready, queue or merge.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head b9cdb23 · 2026-11-22T18:16Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b9cdb233ef7d482c8364ba1e4d9ba027348a58db
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-ui/rules/record-page.md + none
Security-touching: yes

Read for this record: card #35902 (body, 11 comments), PR #36527 (body, 9 files, 2 comments), the net diff 316f7571..b9cdb233, the 52 check-runs on the head. Code read on main, not reviewed: packages/spec/src/data/object.zod.ts (relatedLists jsdoc and description, the three placement schemas, objectExtensionPlaceDescription, the extension's refused fieldGroups / relatedLists keys), packages/objectql/src/registry-extension-placement.ts, packages/objectql/src/registry-object-registration.ts (the fold's call), ui/packages/app-shell/src/utils/deriveRelatedLists.ts, ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts (arrangeDeclaredTabs), packages/qa/scenarios/src/skill-evals/grade.ts, .github/workflows/pr-automation.yml, scripts/check-empty-changeset.mjs, content/docs/data-modeling/object-extensions.mdx. Read for agreement only (lane seat's ACCEPT): examples/app-crm/**, content/docs/ui/pages.mdx, both changesets.

① Derived judgments

  • Published schema, accept-set, error codes: no change. No path under packages/spec/src/**; Clause-②: no is right.
  • Published surface that does change: @objectstack/skills text. (a) the data skill's extension signature gains place and one paragraph teaches it: right, ObjectExtensionSchema.place exists on main with exactly the three entry forms taught ({ field, group, after | before }, { group: { key, label }, after | before }, { list, after | before }), and arrangementDeclared applies group/field placements only where the target declares fieldGroups and list placements only where it declares relatedLists. (b) the record-page rule flips "hidden" to "still shows": right, see ④. (c) eval case 26 is new: shape right, one sentence wrong, see S1.
  • Example app: crm_account now declares fieldGroups (with fields) and relatedLists. Right: the four objects of the example with a lookup to crm_account (contact, opportunity, activity, lead) are all named, the account does not enable files so leaving out sys_attachment drops nothing, and the columns names (full_name, email) are fields of crm_contact.
  • Gates: 52 check-runs, all completed. 39 success, 11 skipped (second-run Auto Label and Check PR Size, UI Published Artifacts, Dogfood Verify CLI, the Dogfood Regression matrix placeholder, Temporal Conformance, Queue verdict, Borrowed queue verdict, Packed-tarball smoke, Schedule gate, 18.x upgrade harness), 2 failure, both Check Changeset (the opened run and the body-edit re-run). Lint & Repo Gates (the token ratchet's lane), TypeScript Type Check, Build Core, Test Core, Build Docs, Check Documentation Links, Governed Surface Queue Guard, Spec property liveness: success.
  • Check Changeset red, the by-design test, three conditions:
    1. Source says red by design on pushed branches: holds. pr-automation.yml ("Past a designed red (ci(pr-automation): on a DELIBERATE CORRECTION PR the Check Changeset job stops at the foreign-changeset step, so the ADR-0087 disposition and no-major steps never run on the PRs that carry a breaking changeset #20784)": the empty-changeset step is red by design on a PR that corrects a note and adds its own; "The check still stays red") and check-empty-changeset.mjs (the foreign changeset rule, DELIBERATE CORRECTION class; "do NOT restore it"). This diff is that shape: one A row (35902-skills-extension-place.md) and one M row on a note that exists on the merge base (35902-skills-related-lists-tabs.md).
    2. Does not run on merge_group: holds. The workflow's only trigger is pull_request (opened, synchronize, reopened, labeled, unlabeled, edited).
    3. A PR comment records the gate and the reason: holds. Comment 7083465615 names Check Changeset, the red command check-empty-changeset.mjs --base origin/main, the note, and the reason; the PR body carries the DELIBERATE CORRECTION declaration with both sentences. No skip-changeset label is on the PR.
      Not verified here: which step of the job is the red one. The job log was not among this review's inputs; the conclusion failure and the diff shape are consistent with the designed red, and the claim that the no-major step is green rests on the comment above.
  • The corrected pending note, judged by sentence (this diff changes more than release text, so this record is the confirmation). Before: "A child list another package adds is hidden by a relatedLists that does not name it." After: "A child list another package adds still shows, after the named lists or where that package's extension places it." The before sentence is false on main: deriveRelatedLists keeps an other-package side list a declared relatedLists does not name, and arrangeDeclaredTabs draws it. The after sentence is true (same compression as N1). Nothing else in the note changed. Confirmed as a DELIBERATE CORRECTION of .changeset/35902-skills-related-lists-tabs.md.

② Semver level

@objectstack/skills patch (new .changeset/35902-skills-extension-place.md) matches what the diff publishes: skill prose and one eval fixture, no schema, no runtime. The three bullets each match a hunk. The example app and the guide publish no package.

Clause-②: no — holds; no contract path in the file list, and the claim comment declares the same.

③ Boundary flags

④ Design judgment

skills/objectstack-data/SKILL.md

New text. "place: [{ field: 'tax_id', group: 'basic', after: 'industry' }, { list: 'acme_contract', after: 'crm_opportunity' }] puts the extension's own fields, groups ({ group: { key, label }, after }) and child lists after (or before) a named item, where the target declares fieldGroups / relatedLists." Holds sentence by sentence against the spec and the merge: own items only (ownFields, the child-package check), the three forms, after or before, declared-only (PLACEMENT_ARRANGES_DECLARED_ONLY). The signature line matches ObjectExtensionSchema. Tried to break it: an unsuffixed tax_id beside the .custom paragraph is right for a dependent package (the __c suffix is the pair's alone); a field placement with no group is refused by the schema and the example carries one; a built-in tab as list is refused and the example names a child object.

Payments, each judged for its teaching:

  • "An Object maps to a database table and exposes automatic CRUD APIs": keeps the two facts; the dropped clause taught nothing.
  • "ownership is a separate axis: whether owner_id exists at all (Relationship Patterns below)": same claim, same pointer.
  • pluralLabel / icon rows: the instruction stays (icon gains "give every object one"); only the 31/31 evidence goes.
  • Naming summary, "examples": link kept.
  • Field Type Selection lead: the three rules are word for word; the link stays (N2).
  • Multi-value lookup note, "Its value is an array of ids": the referent is the bold lead; the positional-reference teaching stays.
  • Extension paragraph: default 200, 0–999, add-never-remove, the label / pluralLabel exception and all four enum values stay. "⛔ extend is not object-level ownership" names the referent the old sentence left implicit ("Not the same key as"); it agrees with the spec's own note that the package contribution kind and the record-ownership model are distinct.
  • Every inline code span and link on a removed line reappears on an added line of the same hunk, except the signature that gained place (read off the diff; no script run here).

skills/objectstack-ui/rules/record-page.md

"A child list another package adds still shows, after the named lists or where its extension's place puts it (objectstack-data)." True on main. deriveRelatedLists keeps a side list whose child and parent belong to different packages when the declared list does not name it; the registry fold splices a placed one into relatedLists; arrangeDeclaredTabs puts an unplaced one at the end of the tabs. The spec says the same in the relatedLists description. The removed parenthesis "(no package places its own list yet)" was false since #36236. The pointer to objectstack-data resolves to the new paragraph.

skills/objectstack-data/evals/objects-fields-relationships.json, case 26

The shape asked for is the right one and the fixture grades itself: under the literal, case-sensitive substring grader the expected_output carries all five must_contain tokens (defineObjectExtension, extend: 'crm_account', place:, after: 'industry', after: 'crm_opportunity') and neither forbidden string (name: 'crm_account', overrides:). The forbidden strings do not catch a correct answer: the reference names the child object as acme_contract, and the skill's own phrase is "takes no overrides declaration", without the colon. The scenario is the card's prompt ("给客户加一个税号字段排在行业后面") plus a tab. All five tokens are taught by the bundle at this head.

S1 (should-fix) — case 26's list half is unobservable and its reference answer says a false thing about it. The prompt declares relatedLists: ['crm_contact', 'crm_opportunity', 'sys_activity']. On main an unplaced other-package list goes to the end of the tabs BEFORE a trailing listed approvals / stream tab (arrangeDeclaredTabs: tail - 0.5; the registry's tabsEnd; the spec: "at the end of the tabs, before approvals and the activity stream"), so with no placement the Contracts tab already sits between crm_opportunity and sys_activity, exactly where { list: 'acme_contract', after: 'crm_opportunity' } puts it. So (1) the expected_output sentence "Without it ... the Contracts tab after the listed tabs" is false for this scenario (sys_activity is a listed tab and the tab lands before it), and (2) an answer that leaves the list entry out produces the same page and is failed by must_contain. Fix in the fixture alone: give the prompt's tab list one more child list after Opportunities (for example ['crm_contact', 'crm_opportunity', 'crm_lead', 'sys_activity']) so the placement moves the tab, and reword the sentence to "at the end of the tabs, before the activity stream". The assertions need no change.

skills/objectstack-data/evals/README.md

"an object extension placing what it brings (place)": matches case 26. Holds.

N1 (nit) — "after the named lists" (record-page rule, both changesets) compresses "at the end of the tabs, before a trailing approvals / activity-stream tab". Read with "lists" as the child lists it is right, and the guide spells the full rule; an agent cannot write wrong metadata from it. The rule file has one token of headroom (990 / 991). Accepted deviation.

N2 (nit) — the Field Type Selection lead no longer says what the linked file holds ("The full table, per-type config and traps" became "the rest"). The link and the section heading still route. Accepted deviation.

N3 (nit) — examples/app-crm/src/objects/account.object.ts, comment on relatedLists: "only the lists named here show ... Leaving a list out hides its tab" is the rule for the package's own lists and does not mention the exception this same PR teaches (another package's list still shows; unlisted approvals and the stream still follow). Outside hits, a code comment in the lane seat's remainder; follow-up at the lane's choice.

Result of this round: S1 is open on this head and earns a delta review of its fix; the fix moves the head, and the owed eval round (③) belongs on that head.

Implemented-by: claude/project-thread-64v7i0
Reviewed-by: session_01ADHkmT4eA4YqtxfiPyLPih

VERDICT: PASS

…ies, so the placed tab is observable

An unplaced child list of another package lands at the end of the tabs,
before a trailing activity stream. With Opportunities last before the
stream, a missing list placement drew the same page. The prompt's tab
list now names one more child list after Opportunities, and the expected
answer says where the unplaced tab goes. The CRM example's comment names
the same exception.

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

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head 8c346d6 · 2026-11-22T18:27Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8c346d66efb9ccf74bcf475f0086a07516a61ae5
Local-runs: none
Scope: skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-ui/rules/record-page.md + none
Security-touching: yes

Delta round on the previous at-tier record, PR comment 7083563112 (head b9cdb233, PASS with S1 open). Read for this record: card #35902 (body, 11 comments), PR #36527 (body, 9 files, 4 comments), the net diff 316f7571..8c346d66, the rework diff b9cdb233..8c346d66 (two files: the eval fixture and examples/app-crm/src/objects/account.object.ts), the check-runs on the head (read twice, last at 48 runs). Code read on main (0b2118f4), not reviewed: packages/objectql/src/registry-extension-placement.ts, ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts (arrangeDeclaredTabs), ui/packages/app-shell/src/utils/deriveRelatedLists.ts, packages/spec/src/data/object.zod.ts (the relatedLists description, objectExtensionPlaceDescription), packages/qa/scenarios/src/skill-evals/grade.ts, .github/workflows/pr-automation.yml, scripts/check-empty-changeset.mjs. None of these moved between the merge base and main; the only file of this PR that main touched since the base is content/docs/ui/pages.mdx, in another hunk (the maxVisible row).

① Derived judgments

  • The rework changes no accept-set and no published schema. It changes one eval fixture (case 26: the prompt's tab list and one sentence of the reference answer) and one code comment in the CRM example. Clause-②: no still right; no path under packages/spec/src/**.
  • Published surface, unchanged since the previous record: @objectstack/skills text (the place paragraph and signature, the flipped record-page sentence, eval case 26). The judgments of record 7083563112 on those stand; the three skill files other than the fixture are byte-identical to the head it reviewed.
  • Check-runs on 8c346d66, second read: 48 runs. 19 success, 11 skipped, 2 failure, 16 in progress.
    • Success: Build Core, Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Lint · scoped · query-options erasure, Governed Surface Queue Guard, Spec property liveness, Check Documentation Links, PR-body guards (both runs), Dogfood Regression Gate, Build UI Deps, Plan Test Core shards, Plan Test UI shards, filter, Auto Label, Check PR Size.
    • Skipped (the same eleven as on the previous head): second-run Auto Label and Check PR Size, UI Published Artifacts, Dogfood Verify CLI, the Dogfood Regression matrix placeholder, Temporal Conformance, Queue verdict, Borrowed queue verdict, Packed-tarball smoke, Schedule gate, 18.x upgrade harness.
    • PENDING, not judged here: Test Core (1/10 to 4/10), Test UI (1/16), Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Build Docs, Type Check · consumer gates, Lint · ESLint, Lint · repo & tooling gates (the token ratchet's lane), Lint · docs & code guards, Lint · CI, release & engine gates, Lint · scoped · slot lookup & corpus. This record renders the contract judgment only; the gate verdicts on this head are not in, and the adopting seat reads them before any hand-off. Nothing in the rework is an input the previous head's green runs did not already cover in kind (one JSON fixture string, one comment), but that is an expectation, not a verdict.
    • Failure: Check Changeset, both runs (the synchronize run and the meta re-run).
  • Check Changeset red, the by-design test at this head, three conditions:
    1. Source says red by design on pushed branches: holds. check-empty-changeset.mjs on main carries the foreign changeset rule (an M or D row on a note present at the merge base is refused) and the DELIBERATE CORRECTION class (do NOT restore it; declare it on the PR; the seat's record confirms). The changeset rows of this head are unchanged by the rework: A .changeset/35902-skills-extension-place.md, M .changeset/35902-skills-related-lists-tabs.md.
    2. Does not run on merge_group: holds. pr-automation.yml on main has one trigger, pull_request (opened, synchronize, reopened, labeled, unlabeled, edited).
    3. A PR comment records the gate and the reason: holds. Comment 7083465615 names Check Changeset, the red command and the reason, and the PR body at this head still carries the DELIBERATE CORRECTION declaration with both sentences. No skip-changeset label (labels: documentation, size/m, tooling).
      Not verified, as before: which step of the job is red; the job log is not among this review's inputs.
  • The corrected pending note was confirmed sentence by sentence in record 7083563112; its text is unchanged at this head and the confirmation carries.

② Semver level

@objectstack/skills patch (.changeset/35902-skills-extension-place.md) still matches what the diff publishes: skill prose and one eval fixture. Its third bullet (the eval places the child list after the Opportunities tab) is true of the reworked case. The rework adds nothing that publishes.

Clause-②: no — holds; no contract path in the file list.

③ Boundary flags

  • open_questions: empty in the dev report on the card. No new dev report for the rework is on the card or the PR; the PR body's Verification section names the second commit and what it changes, and that account matches the rework diff.
  • Skill evals, the escalation of record 7083563112: STILL OPEN at this head, unchanged. The PR body says Skill evals: NOT MEASURED. No eval round ran here and Acceptance note 6 says merging ends the card while its eval done-when is unmeasured. No eval round is recorded on the PR or the card, no carrier card is named for the owed round, and the PR still carries Fixes #35902. The card's own acceptance line (四条评测用例通过) and the reworked case 26 are therefore unmeasured. Kept as an escalation to the seat, not graded: the fixture is sound on a read (④), and what is missing is a measurement and a home for it, which is the seat's routing. The seat's choices before the close: run pnpm --filter @objectstack/scenarios skill-evals --skills objectstack-data,objectstack-ui on this head and record it, or name a carrier card for the round, or turn Fixes into Part of.
  • Overlap with draft docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158 and the release pull request: accepted as stated in the previous record; a replay after either lands is a new head this record does not cover.
  • relatedLists[].label translation key (Related list entry label (relatedLists[].label) has no translation key: a declared tab title cannot be localised #36528), the {record.tags.0} token (docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158), item 5 on Declare relatedLists (tab order) on account, contact, opportunity, quote and order; place extension tabs hotcrm#2742: unchanged, accepted as before.
  • SQL push-down: not applicable. No query, no id materialisation, no join in the diff or the rework.
  • Security-touching stays yes, on the same narrow ground as the previous record: the net diff's hunks in skills/objectstack-data/SKILL.md reword lines that teach security behaviour (the sharing-posture paragraph's ownership sentence, the credentials-are-secret lead, the extension guard naming the record-ownership enum). Meaning kept in each; no security rule added or changed. The rework itself touches no such line.

④ Design judgment

skills/objectstack-data/evals/objects-fields-relationships.json, case 26 (the rework)

S1: closed — the prompt's tab list is now ['crm_contact', 'crm_opportunity', 'crm_lead', 'sys_activity'], and the three checks hold against main:

  1. The placement is observable. Without place, deriveRelatedLists keeps the acme_contract side list (child and parent in different packages, a declared list that does not name it), and arrangeDeclaredTabs ranks it: names.length is 4, the trailing run is sys_activity alone so tail is 3 and an unlisted related tab ranks 2.5, after crm_lead (2) and before sys_activity (3). With { list: 'acme_contract', after: 'crm_opportunity' } the registry fold (applyExtensionPlacements, lists pass) splices the list into relatedLists at index 2, between crm_opportunity and crm_lead: the child is the extension's own package's, the account declares relatedLists, the anchor is present. Two different pages, so an answer that omits the list entry now draws the wrong one.
  2. The new reference sentence is true. "the Contracts tab at the end of the tabs, before the activity stream" is the 2.5 rank above, and is the spec's own wording for the unplaced case ("at the end of the tabs, before approvals and the activity stream"); the registry's tabsEnd says the same for an unanchored placement.
  3. The fixture still grades itself. Under the literal, case-sensitive substring grader (grade.ts) the new expected_output carries all five must_contain tokens (defineObjectExtension, extend: 'crm_account', place:, after: 'industry', after: 'crm_opportunity') and neither forbidden string (name: 'crm_account', overrides:); read by eye, no script. The assertions were not changed and still fit the new prompt: the prompt's added crm_lead appears in no assertion, and a correct answer that also defines the child object writes name: 'acme_contract' and a lookup to 'crm_account', neither of which is a forbidden string.

The rest of the reference answer is unchanged from the head record 7083563112 judged, and the prompt's other facts (the group, the lookup, the package dependency) are unchanged.

No must-fix, no should-fix.

N4 (nit) — with crm_lead now following Opportunities, { list: 'acme_contract', before: 'crm_lead' } draws the same page as the reference entry on this prompt, and the literal after: 'crm_opportunity' token fails it (as before: 'website' already could for the field). The prompt asks for the tab "right after Opportunities" and the field "right after Industry", which is the after spelling, and after is also the entry that stays right if another list is later placed at that anchor, so the token grades the intended answer. Inherent to a literal grader; accepted deviation, no change asked.

skills/objectstack-data/SKILL.md, skills/objectstack-data/evals/README.md, skills/objectstack-ui/rules/record-page.md

Not touched by the rework. The judgments of record 7083563112 stand on this head; the cited code on main did not move.

N1: accepted deviation, as before.
N2: accepted deviation, as before.

examples/app-crm/src/objects/account.object.ts (read for agreement; lane seat's remainder)

N3: closed — the comment now reads "Leaving a list out hides its tab, except a child list another package brings: that one still shows, at the end of the tabs or where that package's extension places it." True on main: the exception is the _otherPackage branch of deriveRelatedLists, the end position is arrangeDeclaredTabs (before this account's listed sys_approval_request and sys_activity, the same compression as N1), and the placed position is the registry fold. The other half of the old N3 (unlisted approvals and stream still follow) is moot on this object, which lists both. A comment only; no code moved.

Result of this round: S1 and N3 closed, N1 and N2 remain accepted deviations, N4 is new and accepted. Open for the seat, outside the grading: the unmeasured eval round with no carrier (③), and the 16 check-runs still pending on this head (①).

Implemented-by: claude/project-thread-64v7i0
Reviewed-by: session_01ADHkmT4eA4YqtxfiPyLPih

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTSjgh1xF2oiht7G2Z

席位核对

ACCEPT — L1 delta self-read by the card thread, b9cdb23..8c346d6 (one commit, two files), on top of the first read (comment 7083465615). Head-sha: 8c346d6. Stamped 2026-11-22T18:51Z.

  • Delta. skills/objectstack-data/evals/objects-fields-relationships.json, case 26: the prompt's tab list gains crm_lead after crm_opportunity, and one sentence of the expected answer now reads "the Contracts tab at the end of the tabs, before the activity stream". Assertions untouched. This is the contract review's S1 (record 7083563112), checked here against arrangeDeclaredTabs in ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts: an unplaced list of another package ranks just before a trailing run of approvals / stream tabs, so with Opportunities last before the stream a missing list placement drew the same page; with one more list after Opportunities it does not. examples/app-crm/src/objects/account.object.ts: the tab-list comment names the same exception (comment only).
  • Gates, check-runs at this head (l1-face.mjs, read 2026-11-22T18:51Z): 40 success · 13 expected skip · 0 unexpected skip · 0 pending · 3 failed, all Check Changeset (the push and two body edits), red by design as in the first read. Lint & Repo Gates success, TypeScript Type Check success. Local at this head: check-skills-token-ratchet exit 0 (the fixture is measured, not ratcheted: eval fixtures 78,648 to 78,658), check-skill-eval-tokens exit 0, check-nul-bytes exit 0, the CRM example's typecheck exit 0.
  • Body. Brought to this head, then two pointer lines in Acceptance notes: the carrier of the unmeasured eval round is Skill eval round owed: objectstack-data and objectstack-ui cases for related-list tabs and extension place (PR #36527, card #35902) #36535 (seat-filed), and the readings name both heads. First line unchanged.
  • Contract review. Delta record 7083671395, PASS at this head; no must-fix, no should-fix. N1, N2 and N4 stand as accepted deviations.
  • Landing. Unchanged: Tier H, draft, the hand-off is the seat's.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

维护者速读(席位记录 · head 8c346d66ef)

  • 改了什么:这是 技能、文档、示例和 HotCRM 用上记录页的新写法:relatedLists 列页签、分组列字段、分组指向子表、扩展包声明位置 #35902「记录页页签顺序可声明」的最后一块,只改文字。技能文档教 AI 两件事:对象可以用 relatedLists 声明页签顺序;扩展模块可以用 place 指定自己带来的页签和字段放在哪里。记录页规则里把「没列出的页签会被隐藏」改正为「仍会显示」。CRM 示例应用的客户对象改成声明式页签和分组,使用指南里补了这一节。平台代码的四块之前已经合并。
  • 为什么:专题「记录页与表单」。不改技能文字,AI 写元数据应用时不会用这些新键,或者会照着错的规则写。
  • 风险:只改对外发布的技能文字、示例和文档,不改代码和接口。技能评测这一轮没跑,欠账由 Skill eval round owed: objectstack-data and objectstack-ui cases for related-list tabs and extension place (PR #36527, card #35902) #36535 承接(合并后评测席跑)。HotCRM 那一半由 hotcrm#2742 承接,要等平台发版后才能做。三行涉及共享、凭据、所有权的技能措辞被精简了,含义不变,L2 已逐句核对。
  • 要你做什么:批准合并。契约审核(L2)同 head PASS,记录 7083671395,Head-sha 8c346d66efb9ccf74bcf475f0086a07516a61ae5。CI 只有 Check Changeset 是红的:它按设计会红,因为这次修改了一份还没发版的旧发布说明。L1 和 L2 两份记录都确认了这一点。
  • 席位意见:建议批准。

席位核对

ACCEPT → PR #36527 comment 7083920994 (the #35902 card thread's L1 delta at head 8c346d66ef, on its first read 7083465615), adopted by seat repo:objectstack#2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Hand-off for approval: L1 ACCEPT 7083920994 and same-head contract review PASS 7083671395 at head 8c346d66efb9ccf74bcf475f0086a07516a61ae5. Tier H (skills/**, Security-touching: yes). Check Changeset is red by design (an unreleased changeset edited); every other check is green. The seat lands it after an approval is on record.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 22, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 22, 2026 22:15
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit f644321 Nov 22, 2026
58 of 62 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-64v7i0 branch November 22, 2026 22:37
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…flows.FLOW.nodes.NODE_ID.label (objectstack-ai#36383)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbYV2nRmpjdz5BmCf9psuMXA)_

Part of objectstack-ai#35979 (Asked item 2 only, as ruled in comment 7076440876; Asked
item 1 is PR objectstack-ai#36335, merged)

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTrJZvNaijgX3NxBMc

Clause-②: yes (widening: a new translation key
`flows.FLOW.nodes.NODE_ID.label`; the new exports
`FLOW_TECHNICAL_NODE_TYPES` and `isFlowTechnicalNodeType` from
`@objectstack/spec/automation`; and `@object-ui/i18n`'s exported
`FlowLabelTranslations` type gains the member `screenTitle`, and its
`stepLabel` parameter accepts a `config`)
Metadata-protocol: added
Skills-docs: follow-up objectstack-ai#36401

## 维护者速读

- 用户能看到什么变化:应用包现在可以给流程里每个步骤(开始、判断、通知、结束等)写各语言名称;手册里的流程图和 Studio
流程画布都按读者语言显示这些步骤名,中文下不再夹英文。已发布语言的应用在检查里会多出这些步骤的缺译提示。
- 为什么做:HotCRM 销售手册的审批流程图在中文下仍显示英文的判断和通知步骤,维护者在卡上选了「补上翻译位,可以翻译」。
- 出错会怎样:只影响显示和缺译提示,不改流程运行和任何数据;可直接撤回。
- 要你做什么:无。

## What changes

Both halves are on this branch: the key, its validation and its coverage
demand, and the readers that draw it (on `main` since PR objectstack-ai#36335 merged
the shared flow-label resolution into `@object-ui/i18n`).

- **The key** (`packages/spec/src/system/translation.zod.ts`).
`flows.FLOW.nodes.NODE_ID.label`, a strict entry with one plain-text
leaf, `label`, overlaying the node's own `FlowNode.label`. It addresses
every node but a `screen` (whose `screens.NODE_ID.title` covers
`config.title ?? node.label`) and an `approval`
(`approvals.NODE_ID.label`), so one string keeps one key. `nodes` was an
unknown-key alias onto `screens`; it is now the real group (`node`
aliases onto it). The `## nodes` docblock section states the rule; the
convention list gains the row.
- **Start and end nodes (ruling item 3).** Keyed like any other step;
the viewer supplies no words of its own. Measured on
`examples/app-showcase` at c448c61: of the start/end labels, 25 are
`End` and 11 `Start`, but the rest name an outcome or a trigger
(`Approved` x5, `Rejected` x5, `Signed Off`, `Declined`, `On Task
Created` x3, `Daily at 06:00`, ...), which a generic word would erase.
- **Validation**
(`packages/lint/src/validate-translation-references.ts`). A `nodes` key
over an unknown node is `translation-target-unknown` with the nearest
node offered; over a `screen` it is pointed at `screens.NODE_ID.title`,
over an `approval` at `approvals.NODE_ID.label`. The reverse slips now
point at the new key: a `screens` or `approvals` key over any other node
says `its label is keyed nodes.NODE_ID.label` (two existing messages
gain that clause instead of "so nothing resolves").
- **The demand** (`packages/lint/src/i18n-walk.ts`,
`i18n/missing-flow`). Every top-level node the docs embed draws at its
default `detail: business` altitude, minus screens and approvals, which
were already demanded; and, since the embed's branch list names the step
each branch of a drawn decision leads to, a folded technical step a
branch names (seat reading L2 S1; live case: app-todo's
`check_recurring` branching to the `compute_next_due_date` script).
`decisionBranchTechnicalTargets` mirrors which out-edges the viewer
lists (`flow-branches.ts` `decisionBranches`). Region-nested nodes are
accepted by validation but not demanded: the embed does not draw them.
`packages/cli/src/utils/i18n-coverage.ts` only updates the bucket's
description.
- **The readers** (`ui/packages/i18n/src/flowLabels.ts`). The shared
`stepLabel` now reads each step's one key by node type:
`approvals.NODE_ID.label` for an approval, `screens.NODE_ID.title` for a
screen with no `config.title`, `nodes.NODE_ID.label` for any other node.
The docs viewer's `type: flow` embed (`metadata-viewer.tsx`, new
`flowStepName`) names each drawn step and each decision-branch target by
it; the Studio canvas (`FlowCanvas`, and `flow-region-view`'s
`RegionNode` for nested region nodes) and the inspector heading read the
same `stepLabel` unchanged, so a nested node's key, which validation
accepts, has a reader.
- **A titled screen (seat reading S3).** A screen with its own
`config.title` shows that heading at run time, translated under
`screens.NODE_ID.title`; its canvas label has no key. The docs embed
names such a screen by its heading (translated where the bundle carries
it), unless the heading holds a `{{ }}` hole a drawing cannot fill, in
which case it keeps the authored label. `FlowLabelTranslations` gains
`screenTitle` for this read. The Studio canvas keeps a titled screen's
authored label, since that is the label the designer edits.
- **One table for business altitude**
(`packages/spec/src/automation/flow-altitude.ts`). The viewer's private
`TECHNICAL_NODE_TYPES` set becomes `FLOW_TECHNICAL_NODE_TYPES` +
`isFlowTechnicalNodeType` in `@objectstack/spec/automation`; the viewer
folds steps by it and the walk demands by it, so they agree on which
steps a reader sees.
- **Examples.** `app-crm`'s lead-conversion wizard gets its three drawn
steps in zh-CN (its baseline stays 0). The ratchet in
`scripts/i18n-coverage-baseline.json` is raised for the new population,
as the PR that first walked the validation-message family did:
`app-showcase` 317 -> 425 (+108, one of them the folded
`showcase_inquiry_purge.purge` a branch names), `app-todo` 106 -> 130
(+24, two of them `todo_task_completion.compute_next_due_date` in its
two translated locales); the other 12 configs are unchanged (the ten
bundle packages stay 0, `check:i18n` in sync).
- **Ledger and pins.** `liveness/translation.json` gains `flows.nodes`
(+ `label`), `live`, citing `flowLabelTranslations`, `flowStepName`,
`FlowCanvas` and `RegionNode`. `flows-translation-face.test.ts`: the
`node.label` row now lists `nodes.NODE.label` beside
`approvals.NODE.label`.
- **Generated.** `api-surface/automation.json`,
`export-origins/automation.json`,
`content/docs/references/system/translation.mdx`, the strictness-ledger
counts and the liveness state counts, regenerated by `check:generated
--fix`.

## Read first (by risk)

1. `packages/lint/src/i18n-walk.ts`, the new loop at the end of
`walkScreenFlows`: what is demanded (top level, not technical, not
screen/approval).
2. `ui/packages/i18n/src/flowLabels.ts` `stepLabel` and
`metadata-viewer.tsx` `flowStepName`: which key each node type reads,
and the titled-screen rule.
3. `packages/spec/src/system/translation.zod.ts`, the `nodes` entry and
the `nodes` / `steps` alias changes.
4. `packages/lint/src/validate-translation-references.ts`, the `nodes`
block and the two redirect clauses.

Two-minute check: `pnpm --filter @objectstack/cli exec vitest run
--project unit test/i18n-flow-node-coverage.test.ts`; expect 6 passed,
including HotCRM's `opportunity_approval` shape asking for its start,
decision, notify, loop and end labels and nothing for its approvals,
screen or record write.

## Tests

<details><summary>Pins</summary>

- `packages/cli/test/i18n-flow-node-coverage.test.ts` (new family file,
like the screen / approval / refusal family files beside it): the walker
harvests exactly the drawn steps with no other key, seeded with the
authored label; a folded step only where a drawn decision's listed
branch names it, once (a conditions-free decision lists every out-edge;
a `conditions` decision its default and its claimed labels; an unclaimed
label and a non-decision source name nothing); nothing for any other
`FLOW_TECHNICAL_NODE_TYPES` step or an id-less node; every harvested key
parses and is kept by `TranslationDataSchema`; the coverage gate lists
them in the flow bucket and goes quiet once translated.
- `packages/lint/src/validate-translation-references.test.ts`: a new
top-level describe (clean run over start / decision / loop / nested
notify / end beside the other groups; `nodes` over an approval and over
a screen redirected; unknown node with suggestion), the two changed
redirect messages, and the one-line-verdict arm list gains the four new
arms.
- The screen, approval and liveness-gate family files in
`packages/cli/test/` pin exact key lists of their own family; they now
read every key but the `nodes` family (one predicate per file, pointing
at the new file).
- `ui/packages/components/src/__tests__/metadata-viewer.test.tsx`: a new
top-level describe: start / decision / notify / end by `nodes`, an
untitled screen by `screens` title, a titled screen by its translated
heading and a holed heading by its label, a decision-branch target by
`nodes`, and the business view folding exactly
`FLOW_TECHNICAL_NODE_TYPES`.
-
`ui/packages/app-shell/src/views/metadata-admin/previews/FlowCanvas.test.tsx`:
`stepLabel` reads each group by node type (and never another type's
group under the same id); the canvas draws a decision's and a nested
notify's translation; the inspector heading titles a decision by its
`nodes` key with the authored label beside it.
</details>

<details><summary>Runs at cafc3fd (the spec half) unless
noted</summary>

- `@objectstack/lint` whole suite (before the L2 S1 widening): `Test
Files 225 passed (225)`, `Tests 9431 passed (9431)` (at eabf0e6; lint
unchanged since).
- `@objectstack/cli` unit project, the 60 i18n / translation / lint test
files: 18 failures at eabf0e6, all exact key lists in the three family
files above; after the predicate, those 4 files `Tests 52 passed (52)`.
- `@objectstack/spec`: `flows-translation-face.test.ts` +
`translation.test.ts`, `Tests 238 passed (238)`.
- `pnpm --filter @objectstack/spec check:generated`: 5 stale before
regeneration, all 5 green after `--fix`.
- `node scripts/check-i18n-coverage.mjs`: before the baseline edit
`app-crm 0 -> 3`, `app-showcase 317 -> 424`, `app-todo 106 -> 128`;
after: `OK (14 config(s), 552 baselined untranslated string(s), none
new)`. `pnpm check:i18n`: all ten bundle packages in sync. `pnpm
check:i18n-walk-parity`: 17 declared, 15 walked, 2 exempted.
- Derived gate sweep at cafc3fd (`dispatch-gates --commands`, 127
commands): 126 exit 0, 1 NOT MEASURED (`check:dual-build-cjs-loads`,
exit 3 for want of a full build; left to CI). `dispatch-gates --ran`:
127 accounted for.
</details>

<details><summary>Runs at bc0171d (the reader half, after merging main
at dda5e74)</summary>

- ui, from `ui/`: `FlowCanvas.test.tsx` +
`flowNodeLabels.sites-13200.test.ts`, 64 tests passed;
`metadata-viewer.test.tsx` at its final edit, `Tests 22 passed (22)`
(two runs before it failed on the test's own isolation: a shared i18n
instance and a locale-specific string, both fixed in the test).
- `pnpm --filter @object-ui/i18n run type-check`,
`@object-ui/components`, `@object-ui/app-shell`: all exit 0 (after
building app-shell's dependency closure, 68 of 68 tasks).
- `pnpm --filter @objectstack/spec check:generated --fix`: the 2
artifacts the merge deferred plus the liveness counts regenerated, all 3
re-checked green.
- Derived gates for the files changed since the first sweep
(`dispatch-gates --commands`, 96 commands): 96 exit 0. `dispatch-gates
--ran`: 96 accounted for, 0 NOT MEASURED (derived from recorded exit
codes).
- `overlap-check.mjs`: merges cleanly with `origin/main` at 316f757.
</details>

<details><summary>Runs at 04d28e0 (the L1 / L2 rework)</summary>

- `@objectstack/lint` whole suite: `Test Files 225 passed (225)`, `Tests
9444 passed (9444)`.
- `@objectstack/cli` unit project, the 4 flow family files: `Tests 53
passed (53)` (the new folded-branch-target pin included).
- `node scripts/check-i18n-coverage.mjs`: `app-showcase 424 -> 425`,
`app-todo 128 -> 130` before `--update`; the new keys are
`flows.showcase_inquiry_purge.nodes.purge.label` and
`flows.todo_task_completion.nodes.compute_next_due_date.label`.
`check:generated` green after rebuilding spec.
- Derived gates for the files changed since bc0171d (`dispatch-gates
--commands`, 105 commands): 105 exit 0; `--ran`: 105 accounted for, 0
NOT MEASURED.
- `overlap-check.mjs`: clean against `origin/main` and the open PRs
sharing files (objectstack-ai#36517, objectstack-ai#36527).
</details>

## Acceptance notes

- `flows.FLOW.label` is still demanded only for a flow with a screen or
an approval node, although item 1's viewer draws the label of every
embedded flow. Not widened here, by the seat's word: filed as objectstack-ai#36400.
- HotCRM's own translations (`opportunity_approval`: 9 of 11 drawn
steps) are a follow-up in that repository now that the key has a reader:
objectstack-ai#36402.
- The i18n skill's text for the new key is owed: objectstack-ai#36401.
- A titled screen whose heading holds a `{{ }}` hole is drawn in the
docs embed by its authored label, which has no key, so it stays in the
authored language: carded as objectstack-ai#36530 with the L2's N2. Every other step
the embed names has a key and a reader.

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

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

https://claude.ai/code/session_01QsR2jTrJZvNaijgX3NxBMc

<!-- signed: repo:objectstack#7 · zhuangjianguo ·
session_01QsR2jTrJZvNaijgX3NxBMc -->

---------

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

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants