Repository navigation
feat(spec): a record-page tab title a relatedLists entry declares is translatable (objects.OBJECT._relatedLists.LIST.label) - #36574
Conversation
…ECT._relatedLists.LIST.label The record page's tab title an object-form relatedLists entry declares on the parent had no translation key, so it printed in its authoring language in every locale while the child FK's relatedListTitle it overrides was translatable. - spec: ObjectTranslationDataSchema._relatedLists (strict leaf, label only), alias relatedLists -> _relatedLists; translateObject overlays it onto the served parent's labelled object entries (ADR-0029 D9.2a catalog rule). - lint: the extractor walk emits the key for labelled entries; the orphan rule flags a key naming no labelled entry. - metadata-protocol: the save door's translated-echo restore puts a translated entry label back to its source. Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
… rule and echo restore Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
… ledger; changeset Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
…on brings A .custom arrangement's relatedLists entry (ADR-0146 D10) and a list placement in place each title a tab of the served target, which translateObject translates; the extension fold now carries them to the orphan rule. Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
…ads the meta-test scans Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 4 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 2 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 178 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 3d4ed3cb7db98f51c3c00465d9568acba5722dad && git checkout 3d4ed3cb7db98f51c3c00465d9568acba5722dad
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 84853fd18eb28a5481415c2d698d04025aa629e1 6fd5bb8573ec4fbcdb37772a5e6aabbf48871b17 && git checkout -B drift-repro 84853fd18eb28a5481415c2d698d04025aa629e1 && git merge --no-ff 6fd5bb8573ec4fbcdb37772a5e6aabbf48871b17
node scripts/docs-audit/affected-docs.mjs --json 84853fd18eb28a5481415c2d698d04025aa629e1
|
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head 4249fe4 · 2026-11-23T00:04Z |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract reviewServed-tier: Read: card #36528 (body and its 3 comments: triage, claim, dev report), PR #36574 (body, 18-file list, net diff against merge-base ① Derived judgments
② Semver levelChangeset Clause-②: yes (widening), on the PR body and the changeset. The declaration is the lane's; as a judgment of the diff, nothing narrows.
One sentence of the changeset is not true of the head and is published text: "A labelled entry an object extension brings (a list placement in ③ Boundary flags
④ Design judgment
M1 (must-fix) — A tab title a CODE package's
N1 (nit) — The named-but-unlabelled hint, "Give the entry a N2 (nit) — The extension leg adds a N3 (nit) — A finding's path prints a dotted list unbracketed (
Implemented-by: VERDICT: FAIL |
getPackagedObjectBase splices the list entries a code extender's place brings into the owner's relatedLists, as the fold does, so the /meta read compares a placed tab title with the packaged text and reads the catalog. Lint: a key over a built-in tab or a hidden .custom entry gets its own reason, and a dotted list is bracketed in the finding path. Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
…aged base The pin asks ObjectStackProtocolImplementation#getPackagedObjectBase for the base, the accessor the REST read's packagedObjectBaseOf asks, over an ObjectQL engine's registry. The objectql changeset entry is minor, as the kind takes; the changeset and the lint docblocks say a placed tab is applied (and translated) only where the target declares relatedLists. Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
registry.ts is a facade file whose ceiling is 6426 lines (check-facade-delegation-only, N6); the getPackagedObjectBase docblock grew it by 12. The why-paragraph for placed tabs moves to the facet's packagedPlacedRelatedLists docblock, and the facade keeps one reflowed sentence naming the third widening: net zero lines. Claude-Session: https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#2 · os-steve · session_01ADHkmRdKNUzzADvuRJx6UT 席位核对ACCEPT at 6fd5bb8 · L1 read 2026-11-23T01:27Z by the #36528 card thread (seat
|
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract-review-claim: session_01ADHkmT4eA4YqtxfiPyLPih · head 6fd5bb8 · 2026-11-23T01:27Z |
|
l2-review#4 · os-steve · session_01ADHkmT4eA4YqtxfiPyLPih Contract reviewServed-tier: Delta round 1 on the record of PR #36574 comment 7088121343 (FAIL at ① Derived judgments
② Semver levelChangeset Clause-②: yes (widening), on the PR body and the changeset. As a judgment of the diff, nothing narrows. The corrected sentences are true of the head: the objectql bullet (the base carries a code package's placed tabs as the fold splices them, only where the owner declares ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. M1: closed — traced again end to end at the head. (1) Fold:
N1: closed — a key over a built-in tab (
N4 (nit) — The base judges "declares N5 (nit) — N6 (nit) — Changeset, lint bullet: "the record page shows a placed tab only where that object declares Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY 维护者速读
ACCEPT → PR #36574 comment 7089156314 · Contract review PASS → comment 7089245527 · Head-sha Out of scope: review ③ (save door edge), N4, N5 and the dev's lint-union finding → filed #36595. N6 (changeset wording) accepted as is. |
…ep name (objectstack-ai#36576) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9App7SwcDfGUokz2R18dPK7)_ Fixes objectstack-ai#36530 repo:objectstack#2 · os-steve · session_01ADHkmQ19xzW4F83HZd4Up6 Clause-②: yes (widening: `objectstack validate` accepts `flows.FLOW.nodes.NODE_ID.label` over a screen that authors a non-empty `config.title`; `@objectstack/spec/automation` gains `flowDecisionEdgeBranch`, `FlowDecisionEdgeBranch`, `FLOW_DECISION_DEFAULT_BRANCH_LABEL`) Metadata-protocol: added Skills-docs: follow-up objectstack-ai#36401 ## 维护者速读 - 用户能看到什么变化:译文语言下的流程说明书和流程设计器里,自带标题的界面步骤现在显示译名;标题里带占位符的步骤不再显示原文或未填充的模板。 - 为什么做:补齐流程步骤名翻译这项工作的最后一块,让每个画出来的步骤都有译名位置。 - 出错会怎样:最坏情况是某个界面步骤仍显示原文名称,不影响流程运行;改动只涉及显示和校验,可以直接撤回。 - 要你做什么:无。 ## What changes Ruling 7076440876 (on objectstack-ai#35979) says every drawn step can carry a label per language. A screen that sets its own `config.title` was the one gap: its heading had a key (`screens.NODE_ID.title`) but its canvas label had none, because `objectstack validate` refused `nodes.NODE_ID.label` over any screen. The key name, `flows.FLOW.nodes.NODE_ID.label`, is the seat's call in claim 7086969804. `screens.NODE_ID.label` was not used because `screens` already aliases `label` onto `title`. - **Validator** (`packages/lint/src/validate-translation-references.ts`): `ScreenFacts.titled` records whether a screen has a non-empty string `config.title`. A `nodes` key over a titled screen is accepted. Over an untitled screen it is still refused (`TRANSLATION_TARGET_UNKNOWN`) and pointed at `screens.NODE_ID.title`, and the message now says why. Over an approval it is still pointed at `approvals.NODE_ID.label`. Did-you-mean suggestions now include titled screens. - **Reader** (`ui/packages/i18n/src/flowLabels.ts`): `stepLabel` returns `nodes.NODE_ID.label` for a titled screen. For an untitled screen, a translated `screens.NODE_ID.title` that holds a `{{` hole now returns `undefined`, so the drawing falls back to the authored label (card item 2). - **Docs embed** (`metadata-viewer.tsx` `flowStepName`): the heading test now runs before `stepLabel`. A titled screen is still named by its translated heading when that heading has no hole. Only a holed heading falls to the `nodes` key, then to the authored label. - **Studio canvas**: no code change. `FlowCanvas` already draws `stepLabel(node) ?? node.label`, so it now draws a titled screen's `nodes` translation. - **Walk** (`packages/lint/src/i18n-walk.ts`): asks for `nodes.NODE_ID.label` on a top-level screen whose authored `config.title` holds `{{`. That is where the docs embed draws the label. The rule, and why the Studio canvas read does not widen it, is under Acceptance notes. - **One branch rule** (comment 7084469163): `flowDecisionEdgeBranch(edge, conditions)` and `FLOW_DECISION_DEFAULT_BRANCH_LABEL` now live in `packages/spec/src/automation/flow-altitude.ts` beside `FLOW_TECHNICAL_NODE_TYPES`. `decisionBranches` (`flow-branches.ts`) and `decisionBranchTechnicalTargets` (`i18n-walk.ts`) both call it. Both local `'default'` constants are deleted. It is a pure function over plain records, so no UI guard types move into spec. - **Spec prose**: the `nodes` group docblock, the comment and the two `.describe` strings in `translation.zod.ts` now describe the titled-screen case. There is no shape change: the group is still a plain `z.record`. `content/docs/references/system/translation.mdx`, `api-surface/automation.json` and `export-origins/automation.json` were regenerated with `check:generated --fix`. The `liveness/translation.json` evidence and notes were updated; no cited symbol moved. ## Tests - Validator: accepts `nodes` over a titled screen next to its `screens` heading key. Still refuses it over an untitled screen (rule, severity, path, plus the redirect key) and over an approval. Offers a titled screen as did-you-mean. - Embed (`metadata-viewer.test.tsx`): a holed-title screen is named by its `nodes` key and never by its heading. A plain-title screen keeps its heading even when a `nodes` key exists. An untitled screen whose translated title adds a hole is named by its authored label. - Studio (`FlowCanvas.test.tsx`): the canvas draws a titled screen's `nodes` translation, and an untitled screen whose translation adds a hole keeps its authored label. The `stepLabel` unit assertion for a titled screen moves from `undefined` to the `nodes` value. - Walk (`packages/cli/test/i18n-flow-node-coverage.test.ts`): asks for the key on a top-level holed-title screen. Does not ask on a plain-title screen, an untitled screen or a nested holed-title screen. <details><summary>Local runs (tree 6f3b8c8)</summary> - `pnpm --filter @objectstack/lint test`: Test Files 225 passed (225), Tests 9446 passed. `typecheck`: exit 0. - `pnpm --filter @objectstack/spec test`: Test Files 875 passed (875), Tests 27972 passed, 1 todo. - `pnpm --filter @objectstack/cli exec vitest run --project unit`: Test Files 436 passed (436), Tests 6208 passed. The integration layer is left to CI: the diff touches no integration file and no spawn entry. - UI: `vitest run` over metadata-viewer, the basic renderer tests, FlowCanvas and `packages/i18n/`: Test Files 133 passed, Tests 2355 passed, 13 skipped. `type-check` for `@object-ui/i18n`, `@object-ui/components` and `@object-ui/app-shell`: all three Done, exit 0. - `pnpm --filter @objectstack/spec check:generated`: 3 stale (api-surface, export-origins, docs), fixed with `--fix`; the re-check after the write is green. </details> <details><summary>Ablations (one per behaviour the tests pin; every mutation landed, every restore verified as blob == HEAD)</summary> - Validator: deleted the `titled` skip. Red: 1 failed (the accept test). - `stepLabel` hole test: replaced with a bare `return title`. Red: 2 failed (the embed test and the canvas test for an untitled screen with a hole). - `stepLabel` titled screen: returned `undefined` for every screen. Red: 3 failed (the embed holed-title test, the `stepLabel` unit test and the canvas test). - `flowStepName` order: put `stepLabel` back before the heading. Red: 1 failed ("never by its heading"). - Walk: always skipped screens. Red: 1 failed (the cli walk test). The mutated lint build failed its DTS step (TS6133 on the now-unused `title`), and the dist preflight showed the marker absent. So the red came through the cli suite's source resolution of the walk, not through `dist`. Restore: lint rebuilt, `--absent` preflight exit 0. </details> ## Acceptance notes - **Walk rule chosen (A4).** The walk asks for `nodes.NODE_ID.label` on a **top-level** screen whose **authored** `config.title` is a string holding `{{`. That is exactly where the docs embed draws the label at `detail: business`. The Studio canvas draws the label for every titled screen, but the walk already asks only for what the docs embed draws. It does not ask for the technical steps the canvas also draws either, so the canvas read does not widen the demand. The validator accepts the key over **every** titled screen, at any depth, because the canvas reads it there. - **Coverage baseline**: unchanged. A static read of every `type: 'screen'` node in `examples/`, `packages/platform-objects` and `packages/plugins` finds 14 screens and no `config.title` holding `{{`, so each config moves by +0. The local `check:i18n-coverage` run was NOT MEASURED (PREREQUISITE NOT MET: the example closure is not built); CI runs it. - **`FLOW_DECISION_DEFAULT_BRANCH_LABEL`** has the same word as the engine's `DEFAULT_BRANCH_LABEL` (`service-automation` `engine.ts`). The engine keeps its own constant: switching it to the spec export is outside this card's file surface. - Not merged with `origin/main` before opening. `overlap-check.mjs` was run before each push and was clean against main and against objectstack-ai#36574, which shares six of these files and merges cleanly. ## Verification Read first, by risk: 1. `ui/packages/components/src/renderers/basic/metadata-viewer.tsx` `flowStepName`: the reorder. A plain heading must still win over a `nodes` key. 2. `packages/lint/src/validate-translation-references.ts`, the `nodes` block: the `titled` skip and its fact in `collectFlowRecord`. 3. `packages/spec/src/automation/flow-altitude.ts` `flowDecisionEdgeBranch`: it must match the two readers it replaced. Two-minute check: `cd ui && pnpm exec vitest run packages/components/src/__tests__/metadata-viewer.test.tsx -t "titled screen"`. Expect `Tests 4 passed | 20 skipped`, including "names a titled screen whose heading holds a hole by its nodes key, and never by its heading". Out of scope, kept as notes: the ADR wording for the key goes to objectstack-ai#36086, and the skill text for the key to objectstack-ai#36401. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmQ19xzW4F83HZd4Up6 --------- Co-authored-by: Claude <noreply@anthropic.com>
…custom package (objectstack-ai#36499, PR 2 of 2) (objectstack-ai#36624) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9Wq5utqEodnDCBh6heq37AG)_ Fixes objectstack-ai#36499 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:管理员在已安装(只读)应用的记录页「…」第一项就能「配置页签」,可拖动全部页签、隐藏或恢复关联页签,每个页签标明来自原包、其他包还是本环境;保存后所有人看到新排列,原包不动。自建应用的入口也挪到「…」第一项。 - 为什么做:本卡「记录页就地配置页签」的第二个也是最后一个合并请求,替管理员省去进 Studio 改已安装对象的绕路。 - 出错会怎样:只影响已安装对象记录页的页签排列,写在该应用配对的定制包里;管理员可再次进入配置改回,原包始终不变。定制总览读接口暂不列出页签排列,已另开卡跟进(定制总览列出页签排列)。 - 要你做什么:无(是否允许在已安装对象上隐藏附件、审批、动态三个内置页签,已另开决策卡等你裁定)。 ## What changes **Installed objects (card items 4 and 7).** On the record page of an object whose package is installed read-only, 「Configure tabs」 is now offered too. The gate is PR 1's admin gate (Studio opens the object, posture `view` here) plus `useCustomizeDoorWalled()`: where the customization door is walled (`group` / `isolated`), the entry is not offered. The edit state is the same one PR 1 built: the design-mode shell from objectstack-ai#36437, reused unchanged. - Every tab can be moved: the object's own lists, a list another package brings, and the built-in 附件 / 审批 / 动态. - A related tab can be hidden and shown again. A built-in tab cannot be hidden here, because the `.custom` list cannot hide it (spec: "cannot be hidden here"). An attachments tab the base does not draw waits in 「Hidden」 and can be shown from there. - Each related tab carries a source mark: 「Original package」, 「From PACKAGE」 or 「This environment」. - 「Save」 writes the `relatedLists` of the pair's object extension (`object_extension`, filed under the object's name, in the base's paired `.custom` package), in objectstack-ai#36498's shape. The write lists every shown tab in order (a built-in by its bare name) and then every hidden related tab as `{ list, hidden: true }`. A tab the list does not name is served after the named ones. - The pair is resolved through the ensure door (`POST /packages/:id/ensure-customization`). That door creates the pair on the first save, as Studio does. A pair the server does not list as writable is refused before any write. **One shared writer.** `views/objectExtensionArrangementSave.ts`, `saveObjectExtensionArrangement`, is the only write of an installed object's arrangement keys (`CUSTOM_ARRANGEMENT_KEYS`). - It reads the pair's STORED extension and the object as stored (the layered read). - It replaces only the keys its caller returns. Every other key is kept: `fields`, `fieldPatches`, `place`, the other arrangement key. - It saves a draft with the first-write pin (`ifNoneMatch: '*'`), then publishes. A refused publish discards that draft. - It announces the refresh through the door. The field-layout editor in objectstack-ai#36505 is meant to be its second caller (`fieldGroups`). objectstack-ai#36505 is not implemented here. `resolveRecordTabsSaveTarget` now answers `{ kind: 'package' } | { kind: 'pair' }`. **The 「…」 entry is the first item (card item 1).** `page:header` (`containers.tsx`): a host overflow entry that declares `leadsMenu: true` is drawn first, ahead of Refresh, with a separator. Only host entries can claim this place; an authored action cannot. The record page's 「Configure tabs」 declares it, on self-built and installed objects alike. No other entry declares it, so no other menu changes. **A stored title is kept (fix to PR 1's write).** Since objectstack-ai#36574, the served `relatedLists` labels are translated for the reader. PR 1 wrote the editor's labels back as they were, which would have stored a reader's translation as the title. Now a tab's stored label is written unless the administrator renamed it (`recordTabLabelToWrite`). This holds on both paths. **i18n.** New keys under `designMode.recordTabs`: `pairNotWritable`, `builtinMoves`, `sourceBase`, `sourcePackage`, `sourceEnvironment`. They are added to all eleven locales; zh-Hant is regenerated by `gen-zh-hant`. ## Tests New files, named for the card: - `ui/packages/app-shell/src/views/__tests__/objectExtensionArrangementSave-36499.test.ts` (6) - `ui/packages/app-shell/src/views/__tests__/recordTabsInstalled-36499.test.ts` (7) - `ui/packages/app-shell/src/views/__tests__/RecordTabsConfigInstalled-36499.test.tsx` (3) **Existing tests changed** (both are PR 1's): - `ui/packages/app-shell/src/views/__tests__/recordTabsConfigSave-36499.test.ts`: - the doors gain `ensureCustomization` and `client.get`; - TEXTS gains `pairNotWritable`; - the read-only refusal case is replaced by the pair target; - the seam test expects the pair target. - `ui/packages/components/src/__tests__/page-header-overflow-close-36499.test.tsx`: - `renderHeader` takes `headerSystemActions`; - a new describe has 2 cases for `leadsMenu`. Ablations. The fix was committed first. Each mutation was written with `ablation-replace.mjs`, and each restore was proven by blob == HEAD. - Dropping the `leadsMenu` flag: 1 test red. - `recordTabLabelToWrite` returning the served label: 2 tests red. <details><summary>Test and gate runs at head c7f9b58 (all through os-verify-lock)</summary> - The card's files plus PR 1's: 7 files, 44/44 passed. - `packages/app-shell/src/views/RecordDetailView.*`: 99 files, 826/826 passed. - components `page-header*`, `layout-containers*`, `horizontal-overflow*`, `page-tabs*`, plus plugin-detail `RecordPageColumns*` and `RecordRelatedListRenderer*`: 64 files, 598/598 passed. - i18n `src/__tests__`: 106 files, 1978 passed and 13 skipped. - `ui/scripts/` (a derived family): 174 files, 5127 passed and 2 skipped. - `type-check` (both `tsconfig.json` and `tsconfig.test.json`) for app-shell, components and i18n: exit 0. - `dispatch-gates --commands`: 41 derived families, all run, all exit 0. `--ran` reconciles them as 41 run, 0 NOT-MEASURED. - The 40 `ui` lint-workflow checks, including `check:spec-symbols`, `check:i18n-keys`, `check:i18n-drift` and `check:metadata-write-doors`: exit 0. - `check:doc-examples`, `check:doc-snippets` and `check:readme-exports` first answered PRECONDITION NOT MET because `@object-ui/cli` was not built. After building it, all three gave exit 0. - `check:new-line-citations`: exit 0. - `check:test-source-alias` and `check:nul-bytes` (both derived): exit 0. - eslint with the ADR-0054 `no-synthetic-event-trigger` ratchet, on the 24 changed ui files: exit 0. </details> At head 28193db (patch round 1, after a merge of main): own and PR 1 files plus `DataPillar.panelHold-27629` 8 files 49/49; `ui/scripts/` 5127 passed and 2 skipped; app-shell and components `type-check` exit 0; 41 derived families exit 0, with `--ran` reporting 0 NOT-MEASURED; `check:i18n-keys`, `check:i18n-drift`, `check:spec-symbols`, `check:new-line-citations` and the three `check:vi-mock-*` checks exit 0. The large neighbour suites (RecordDetailView.*, i18n, page-header) were not re-run locally after this merge; CI runs them. ## Acceptance notes - **The customizations read does not list an arrangement: moved to objectstack-ai#36626** (seat routing, 2026-11-23 04:26Z). After the save, `GET /api/v1/packages/com.example.showcase/customizations` answered `200` with every list empty. The extension itself is there: `GET /api/v1/meta/object_extension/showcase_account?package=com.example.showcase.custom` answers it. The read's contract is strict and names exactly three member kinds, `extensions.kind` = `field` | `validation` | `index`, so a `relatedLists`-only extension (and a `fieldGroups`-only one, for objectstack-ai#36505) has no entry to appear as. Making it appear is a spec and runtime change, carried by objectstack-ai#36626, not by this PR. - **H2 (a per-tab source on `_relatedListsArrangement`) does not hold; the narrow gap below is an accepted deviation** (seat routing, 2026-11-23 04:26Z; no card). The decoration carries `{ packageId, hidden, unlisted }` and nothing per tab. The source marks are derived from data the client already has: - the child object's `_packageId`: the base means the original package; `sys_metadata` or a `.custom` package means this environment; anything else means that package; - a relationship field named `__c` means this environment. The remaining gap: a relationship field that another package's extension adds to a base-owned child object shows as 「Original package」. Closing it needs a per-tab source from the server. No spec or server change is made here. - **Built-in tabs stay locked here: hiding them goes to decision card objectstack-ai#36627** (seat routing, 2026-11-23 04:26Z). On installed objects 附件 / 审批 / 动态 can be moved but not hidden: the spec says the `.custom` list cannot hide them ("cannot be hidden here"). They are not renamable either, on either path: a built-in entry is a bare name in the spec's shape and carries no label, so there is no place to store a rename. Seat ruling 7089839334 (no spec card for hiding 审批/动态 on self-built objects) is unchanged. - **Translated labels.** PR 1 combined with objectstack-ai#36574 would have written a reader's translated tab title into the stored definition on any save. Fixed on both paths; see What changes. - **Visible effect beyond the card.** 「Configure tabs」 now sits above Refresh in every record 「…」 where it is offered, including on self-built objects (PR 1 placed it after Refresh). No other menu entry moves. - **Observation, not filed.** For an installed object, the layered read's `code` layer (`GET /meta/object/showcase_account/layers?package=com.example.showcase`) answered the extension-folded `relatedLists`, while the showcase source declares none. The writer reads entries in the order extension first, then owner, so this does not change what is written. I note it because a reader of `code` would take the result for the package's own definition. - **CI patch round 1 (head 28193db).** At c7f9b58, `Test UI (13/16)` went red on one test that this change does not touch: `DataPillar.panelHold-27629` › "Show me" reopens the action…, a 3000 ms `waitFor` on the held line. That test was last changed by objectstack-ai#36597 on main. No file in its import graph is in this diff, and the dom project runs `isolate: true`, so no other file's mocks reach it. Under os-verify-lock it passed alone (5/5) and with all 41 `DataPillar.*` files on 4 workers (209/209). The merge group's CI for objectstack-ai#36597 and the later runs on main are green. I read it as a timing flake in a loaded shard (that file took 10 s there), not a defect of this change, so no code or test was changed for it. The new head is a merge of main (3110de5), which re-runs CI. - **H1 holds.** The extension is written as `object_extension` in the pair, and only `relatedLists` is replaced (unit: `objectExtensionArrangementSave-36499` keeps `fields`, `fieldPatches`, `place` and `fieldGroups`). Live: the second save in the browser pass read back the first save's extension and replaced only its list. ## Verification Browser pass at head `0aacc5aad`, with the same code as this head; the merge of main brought in no file this change reads. - Booted example app: `examples/app-showcase` (`objectstack dev --ui --seed-admin`, own port and DB). The console was rebuilt from this branch. - Installed read-only package: `com.example.showcase` (type app, `writable: false`). - Object: `showcase_account`, record Northwind. - Before the first save: no `com.example.showcase.custom` package existed, and the customizations read was empty. - To show a tab from another package, the run's DB holds a QA package `com.qa.tabs` with an object `qtab_visit` that looks up `showcase_account`. It exists only in the run's DB. <details><summary>Admin, 1440: reorder, hide, save, reload</summary> - 「…」 read `Configure tabs, Refresh, Share, Change Owner, Delete`. - Editor chips: - `showcase_contact` [Original package] - `showcase_field_zoo.f_lookup` [Original package] - `showcase_field_zoo.f_lookups` [Original package] - `qtab_visit` [From Tabs QA] - 审批 - 动态 - I dragged Visits first, hid 「Field Zoo · Lookup → Accounts (multiple)」 and saved. The writes, in order: - `POST /api/v1/packages/com.example.showcase/ensure-customization` - `PUT /api/v1/meta/object_extension/showcase_account?mode=draft&package=com.example.showcase.custom` - `POST /api/v1/meta/object_extension/showcase_account/publish?package=com.example.showcase.custom` - Nothing was written to `com.example.showcase`. - Tabs after save and after a reload: `Details, Visits, Contacts, Field Zoo, Activity`. - The pair's extension then read `{"extend":"showcase_account","relatedLists":["qtab_visit","showcase_contact","showcase_field_zoo.f_lookup","sys_approval_request","sys_activity",{"list":"showcase_field_zoo.f_lookups","hidden":true}]}`. - The served object carries `_relatedListsArrangement: {"packageId":"com.example.showcase.custom","hidden":["showcase_field_zoo.f_lookups"],"unlisted":"shown"}`. </details> <details><summary>Original package unchanged</summary> - `GET /meta/object/showcase_account/layers?package=com.example.showcase` answers `overlay: null`, `draft: null`, `provenance: package`, `editable: false`. - `GET /meta/object_extension?package=com.example.showcase` answers `items: []`. - `git status examples/` is clean. - The customizations read: see Acceptance notes. </details> <details><summary>Another account (plain member), 1440 and 1280</summary> - 「…」 read `Refresh, Share`: no entry. - The member's served object carries the same `relatedLists` and the same `_relatedListsArrangement`. - Tabs drawn: `Details, Field Zoo, Activity`. The multi-lookup tab is hidden. Visits and Contacts are not drawn because the member has no read on `qtab_visit` and `showcase_contact` (`403 PERMISSION_DENIED` on the data read), as before this change. </details> <details><summary>Admin, 1280: second save over the existing extension</summary> - The menu's first item is 「Configure tabs」. - On reopening, the editor shows the saved order and 「Field Zoo · Lookup → Accounts (multiple)」 in 「Hidden」. - I moved 动态 ahead of 审批, showed the hidden tab again and saved. The same three writes followed (ensure, pinned draft, publish). - After a reload: `Details, Visits, Contacts, Field Zoo · Lookup → Account, Field Zoo · Lookup → Accounts (multiple), Activity`. - A separate drag (not saved) moved 动态 to the very front, so built-ins move to any place. </details> <details><summary>Self-built path (PR 1), admin, 1280</summary> - On `qtab_account` (package `com.qa.tabs`, writable), 「…」 read `Configure tabs, Refresh, …`. - Chips carry no source mark. - I dragged People first and saved. The writes were `PUT /meta/object/qtab_account?mode=draft&package=com.qa.tabs`, then `POST …/publish?package=com.qa.tabs`. - After a reload: `People, Deals, Tickets, Attachments, Activity`. </details> The 「This environment」 mark is covered by `RecordTabsConfigInstalled-36499` and `recordTabsInstalled-36499`. It was not set up in the browser. Screenshots (`/mnt/project-files/objectstack-seat2/shots/36499-pr2/`): - `01-admin-1440-menu-first-item.png`: 「Configure tabs」 first in 「…」 on the installed object - `02-admin-1440-installed-edit-state.png`: the edit state with source marks - `03-admin-1440-installed-moved-hidden.png`: Visits moved first, multi-lookup tab in 「Hidden」 - `04-admin-1440-installed-after-reload.png`: after save and reload - `05-member-1440-installed-menu-no-entry.png`, `05-member-1280-installed-menu-no-entry.png`: the member's 「…」 and tabs - `06-admin-1280-menu-first-item.png`: the entry first at 1280 - `07-admin-1280-installed-reopened.png`: reopened on the saved arrangement - `08-admin-1280-installed-moved-restored.png`: 动态 moved, hidden tab shown again - `09-admin-1280-installed-after-reload.png`: after the second save and reload - `10-admin-1280-selfbuilt-edit.png`, `11-admin-1280-selfbuilt-after-reload.png`: the self-built path Files to read first, by risk: 1. `ui/packages/app-shell/src/views/objectExtensionArrangementSave.ts`: which keys are kept and which are replaced, the pinned draft, publish, and the discard on a refused publish. 2. `ui/packages/app-shell/src/views/recordTabsInstalled.ts`, `installedTabsEntries`: what the pair's list holds (built-ins bare, hidden related tabs, kept unknown entries, stored labels). 3. `ui/packages/components/src/renderers/layout/containers.tsx`: `leadsMenu`, in the record bar and in the state-group menu. Two-minute check: in `examples/app-showcase`, run `objectstack dev --ui --seed-admin`. As admin, open any Account record and open 「…」. The first item is 「Configure tabs」. Hide a tab, drag another, and save. `GET /api/v1/meta/object_extension/showcase_account?package=com.example.showcase.custom` answers the new `relatedLists`. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmP8GZoB2rUETxwNEDv)_ <!-- signed: repo:objectstack#2 · os-steve · session_01ADHkmP8GZoB2rUETxwNEDv --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Steve · project thread
Fixes #36528
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: follow-up #36575
维护者速读
What changes
A record page's tab title that an object-form
relatedListsentry declares on the parent ({ list, label, columns }) wins over the child lookup field'srelatedListTitle. The field's title had a translation key; the winning title did not. It now has one, on the parent, keyed by the entry's literallist(a dottedobject.fieldis one key, indexed directly):@objectstack/specObjectTranslationDataSchema._relatedLists: a record of closed leaves whose one key islabel(aliasesname/title/heading/textontolabel, like_tabs), plus the un-prefixed aliasrelatedListsonto_relatedLists.translateObjectoverlays it onto the served object's labelled object-form entries (translateObjectRelatedLists), along the locale chain, under the ADR-0029 D9.2a / ADR-0146 D2 catalog rule every other slot follows (a label that diverged from the packaged entry of the samelistreads only the pair's catalog).@objectstack/linttranslation-target-unknown) flags a key naming no labelled entry, with a distinct verdict when the object names the list but gives it nolabel. The shared extension fold now carries an extension'srelatedLists(the.customarrangement, ADR-0146 D10) andplacerecord entries, so a key over a labelled tab an extension brings resolves.@objectstack/metadata-protocollabelback to its source text (matched bylist), with the existinginfoadvisory, so a Studio save of an object read in another language does not store the translation as the title.@objectstack/objectqlgetPackagedObjectBase(the packaged base the/metaread and the form route handtranslateObject, and the echo restore translates with) carries the tabs a code extender'splacesplices into the owner'srelatedLists, by the fold's own pass (applyExtensionPlacements, so only where the owner declaresrelatedLists), as it already carries the fields such an extender adds. A placed title therefore compares equal to its packaged text and reads the deployment catalog. The.customarrangement stays the customization layer, never part of the base.Precedence is unchanged (entry
label, then the child FK'srelatedListTitle, then the child's plural label). Only an AUTHORED entrylabelis translated: an entry with no label, a bare name and a built-in tab gain nothing from the key, the rule the field-levelinlineTitle/relatedListTitledocblocks state.Where the record page reads the title. The tab title comes from
deriveRelatedLists(ui/packages/app-shell/src/utils/deriveRelatedLists.ts,title: entry.label), handed tobuildDefaultPageSchemaasoptions.related(label: rel.title ?? rel.objectName). ItsobjectDefisuseMetadata().objects, theGET /meta/objectlist read, which the REST read exit translates per request (translateMetadataDocument('object', …)→translateObject), outside the ADR-0156 D3 cached part. So noui/change is made.Extension-brought titles. The registry fold splices a list placement (
place) and the paired.customarrangement (relatedLists) into the parent's servedrelatedLists. A placed title is translated from the deployment catalog because the packaged base now carries the placed entry (round 2, see Acceptance notes); a.customtitle diverges from the base and reads the pair's own translations (ADR-0146 D2). Pinned through the read's real options (packagedBasefromObjectStackProtocolImplementation#getPackagedObjectBase, the accessor the REST read'spackagedObjectBaseOfasks) inpackages/objectql/src/registry-related-lists-label-translation-36528.test.ts.Also:
content/docs/protocol/kernel/i18n-standard.mdx(example and the key-resolution table), the regeneratedcontent/docs/references/system/translation.mdx,authorable-surface/system.jsonand the strictness-ledger count, the liveness ledger evidence forobjects, and.changeset/36528-related-list-label-translation.md(minor on spec, lint, metadata-protocol, objectql).Tests
packages/spec/src/system/i18n-related-lists-label-36528.test.tstitle→labelandrelatedLists→_relatedLists; overlay on a plain and a dotted entry through the type dispatch, the served object still parses; label-less, bare and built-in entries untouched; same array back when nothing matched; locale ladder and fallback chain; catalog loses to a tenant rewrite; pair translation for a changed labelpackages/lint/src/i18n-related-lists-label-36528.test.ts.customarrangement or aplacebrings (with the unlabelled control); a key over a built-in tab and over ahidden.customentry each get their own reason; a dotted list is bracketed in the finding path; verdict and hint each at most 200 characterspackages/metadata-protocol/src/protocol-translated-echo.related-lists-36528.test.tspackages/objectql/src/registry-related-lists-label-translation-36528.test.tsObjectQLengine's registry,packagedBasefromObjectStackProtocolImplementation#getPackagedObjectBase): the packaged base carries a code extender's placed tab and its title reads the catalog; a tenant's rename of that title keeps its text; a.customarrangement's title is not in the base and reads the pair's translationsvalidate-translation-references.test.ts,validate-security-posture.test.ts_relatedLists; the extension receiver's key-read table gainsplaceandrelatedListsPackage suites and typecheck (round 2, at `6fd5bb85`, after a full `pnpm build --concurrency=2`: 120 tasks, exit 0)
pnpm --filter @objectstack/objectql test:Test Files 633 passed (633),Tests 14345 passed (14345). This full suite holds every in-package reader of the packaged base (protocol-packaged-object-base,protocol-meta-effective-schema,engine-validation-tenant-rewrite,registry-field-patch-bases,registry-validation-rule-by-name).pnpm --filter @objectstack/lint test:Test Files 227 passed (227),Tests 9461 passed (9461).src/system/i18n-related-lists-label-36528.test.ts(spec)Tests 10 passed (10);src/protocol-translated-echo.related-lists-36528.test.ts(metadata-protocol)Tests 3 passed (3). The spec and metadata-protocol sources are unchanged in round 2; their full suites were green in round 1 (dcab40cb,4249fe4b) and are declared to CI here, as is@objectstack/rest(it reads the base; its source is unchanged).typecheckon objectql and lint: exit 0.Ablation: each changed behaviour broken once, the suite turns red, the file restored
Each leg via
node scripts/ablation-replace.mjs(anchor hits once, blob before/after printed, restored blob equalsHEAD,git diff HEADempty). Every mutated file is imported from source by the suite that runs, so no rebuild is in a leg.8e2ca2b7: therelatedListsspread of the placed entries removed fromPlatformGlobalFacet.getPackagedObjectBase(blob31877522to4549c158): the objectql pinTests 1 failed | 2 passed (3),expected [ 'Tasks', 'crm_note' ] to deeply equal [ 'Tasks', 'Audit trail', 'crm_note' ]; restored blob31877522equalsHEAD,git diff HEADempty.translateObject:Tests 4 failed | 6 passed (10).pushRelatedListLabelsremoved:Tests 1 failed | 4 passed (5).continueremoved:Tests 1 failed | 4 passed (5).restored.pushfor an entry removed:Tests 1 failed | 2 passed (3).f0d2db85):Tests 1 failed | 5 passed (6).Gates
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackat6fd5bb85: 122 commands, each run with stdin closed after the full build, all 122exit 0(among themcheck:facade-delegation-only,check:i18n-walk-parity,check:dual-build-cjs-loads,check-plugin-teardown-shape --self-test).--ran:Run reconciliation — 122 derived, 122 run, 0 NOT-MEASURED, 0 UNRUN.node scripts/pm/overlap-check.mjs --branch=HEADbefore every push:VERDICT clean exit 0.8e2ca2b7:Lint · repo & tooling gatesfailed on this PR's own change (check-facade-delegation-only --self-testN6:packages/objectql/src/registry.tsat 6438 lines, over its 6426 ceiling; the same lane is green on main at06c3e5ac). Fixed in6fd5bb85(net zero lines in the facade, the paragraph moved to the facet). TheLint & Repo Gates,TypeScript Type CheckandTest UIaggregates on8e2ca2b7read that failure plus lanescancelledwhen the push of6fd5bb85superseded the run; no other lane failed.Acceptance notes
65ce7983, which carries PR feat(spec): the paired .custom package declares an installed object's field-group and tab arrangement #36517's.customarrangement). The orphan rule's extension fold accepts_relatedListskeys for labelled entries a.customarrangement or aplacelist placement brings; its docblock that saidrelatedListsis not translatable through an extension is corrected.objectExtensions(for fields neither): a labelled tab an extension brings is not scaffolded byos i18n extractand not counted by coverage. The resolver translates it and the orphan rule accepts its key; scaffolding extension surfaces is a separate, pre-existing gap of the walk.placeentry's label applies only where the extended object declaresrelatedLists(the registry's rule, and the packaged base follows it). The orphan rule accepts its key regardless, the permissive direction: its fold does not read whether the target declares the list (the target may be another package's object the stack does not carry).listViewscopy orvalidations[].message, whichtranslateObjectalso translates.relatedListsentry today, so no shipped bundle and no coverage ratchet moves.Round 2 (contract review 7088121343)
getPackagedObjectBasenow carries the list entries a code extender'splacesplices into the owner'srelatedLists, computed by the fold's own pass (applyExtensionPlacementsover the enabled code extenders, same child-package rule), as it carries their added fields; only the lists are read off. A placed title therefore compares equal to its packaged base on the/metaread and the deployment catalog applies; a tenant's rename still diverges and keeps its text. Every reader of the packaged base was measured: the REST/metalist and item reads and the form route (throughtranslateObject, wheretranslateObjectRelatedLists, new in this PR, is the only code that reads the base'srelatedLists), the save door's echo restore (itsrelatedListsslot is this PR's, and it now restores exactly what the read translates), the share-link label (translates{ name, label }only), the validation-message reader (readsvalidationsonly) andgetPackagedFieldPatchBases(its bases are read forfieldsonly). No reader outside this card's slot changes its verdict; Studio, the.customarrangement fold and the customization-diff and divergence checks do not read this base. Pinned through the protocol accessor the REST read asks, with one ablation (red without the carry). The@objectstack/objectqlchangeset entry isminor, as the kind takes, with a sentence true of the head.sys_activity,sys_attachment,sys_approval_request) gets its own reason and hint, naming neither{ list, label }norrelatedListTitle..customentry withhidden: trueno longer counts as labelled; its key is flagged with its own reason._relatedLists["event.owner_id"]).registry.tsis a facade at its 6426-line ceiling; its docblock stays net zero there and the why-paragraph lives on the facet'spackagedPlacedRelatedLists.Verification
Read first, by risk:
packages/spec/src/system/i18n-resolver.ts,translateObjectRelatedLists: which entries are translated (labelled object-form only) and which catalog a label reads (valueOverridesPackagedBaseagainst the packaged entry of the samelist).packages/metadata-protocol/src/protocol-translated-echo.ts, therelatedListsblock inrestoreTranslatedEchoes: a save's entry label is put back only when a read of the source translates to exactly it.packages/lint/src/validate-translation-references.ts, the_relatedListsleg and the extension-fold addition.Two-minute check, one command:
Expected: 10 tests pass, among them the zh-CN title served on the parent's
contactandevent.related_toentries.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmRdKNUzzADvuRJx6UT