Skip to content

feat(setup): platform-owned Setup items sit in their new groups under the new names; every old name stays searchable (#39057) - #39161

Merged
os-zhuang merged 11 commits into
mainfrom
claude/issue-39057-setup-platform-items
Dec 2, 2026
Merged

os-zhuang merged 11 commits into
mainfrom
claude/issue-39057-setup-platform-items

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #39057

Clause-②: no (navigation data and labels move inside the declared shape; no accept set widens, no export moves)
Metadata-protocol: none

维护者速读

  • 管理员在系统设置左侧导航看到:平台自带的菜单项进入新的十个分组,按裁定顺序排列并改用新名字(公司信息排在用户与组织第一位),七个设置页面打开后的标题和总览卡片也同名改过来,「全部设置」不再出现在菜单里,但原地址仍能打开。
  • 属于「系统设置导航改为两层十组」专题:让管理员按使用频率找到日常设置,并让改名后的页面仍能用旧名字搜到。
  • 出错时管理员会在错误的分组里看到某个菜单项,或者某个页面的名字和打开后的页面标题不一致;撤回只需回退本次改动,没有数据迁移。
  • 需要你人工合并:本 PR 改了 docs/adr/0057-erp-authorization-core-business-units-and-scope-depth.md 里的一行锚点(setup-nav.contributions.ts#group_people_org 改指 setup.app.ts#group_people_org,旧分组 id 仍在那里以 renamedFrom 声明),docs/adr/** 属受管面,所以是 Tier H;行数 1764,未超 3000。须与 Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055(⌘K 按旧名搜)同一版发布,否则改名后旧名暂时搜不到。

What changes

  • setup-nav.contributions.ts: every platform-owned entry names one of the ten group ids directly (never a retired id, so nav_contribution_group_renamed no longer fires for these), in the epic's order. Company Information is the first entry of Users & Organization (ruling D3). Priorities leave slots for the capability plugins' entries (Plugin-contributed Setup items target the new group ids; 「审批中心」 is no longer a Setup entry (#39050) #39058): Apps & AI 100 / 300, Audit & Data 200, Company Settings 200, Notifications 200 / 400, Integrations & Developer 100 / 500; the slot plan is in the file header.
  • Renames in all 11 locales (en literal + bundle, 10 translated bundles, recorded source hashes recomputed): Packages to Installed Apps, Company to Company Information, Localization to Language & Region, Standard Unit Settings to Standard Unit Decimals, Calendar Exceptions to Holidays & Workday Swaps, Mail Delivery / SMS Delivery to Email Channel / SMS Channel, Authentication to Sign-in Methods, AI & Embedder to AI Model Service, Data Lifecycle to Data Retention, Notification Events to Delivery Log, Sessions to Active Sessions. Plugin-contributed entries renamed in the 10 translated bundles: Position Holders, Permission Set Assignment, Record Shares, Queues; their English label stays the plugin's literal (plugin-security's own pin holds the en bundle to it) and changes with Plugin-contributed Setup items target the new group ids; 「审批中心」 is no longer a Setup entry (#39050) #39058.
  • Aliases (keywords): each renamed platform entry carries its former source-language name on the item; each translated locale carries its former label on its bundle node (label pinned beside it). Under either reading of replace-or-add (Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055) the data holds: the en list is on the item, each locale's own list on its node. Business Units carries Department / Organization Structure / Division, 部门 / 组织架构 / 事业部 in zh-CN (ruling D4), in all 11 locales. The seven groups with renamedFrom carry the retired groups' former names (source list on the setup.app.ts group, per-locale on the bundle node). group_overview left no group, so the pinned System Overview entry carries its former name: its label contains it in nine locales, and its zh-CN / zh-Hant bundle nodes list 总览 / 總覽 in keywords.
  • nav_settings_hub removed from navigation and from every bundle, added to the dead-id tombstone ledger; /apps/setup/system/settings keeps opening the hub (console route untouched, pinned by AppContent.systemHubRoutes.test.tsx).
  • Tests: new setup-platform-items-39057.test.ts (groups, order, priorities, zh-CN labels against the table, new label + former-label alias per renamed entry in 11 locales, BU aliases, group aliases, hub absence). Collateral pins updated where they read the old group ids or labels: setup-packages-door, setup-packaged-actions-nav, setup-users-nav-view, sys-exchange-rate / sys-unit / sys-standard-unit-setting object tests, cli connect-agent-both-halves-wire and setup-diagnostics-audience pins (the three former Diagnostics entries are now tracked wherever they sit), service-knowledge non-vacuity probe, service-settings hub parity (reads every group now).
  • Settings page and hub titles (Q1 ruling A): @objectstack/service-settings translations, all 11 locales, title only, for company, localization, auth, mail, sms, ai and lifecycle, now equal the new nav labels, so the hub card, the page heading and the sidebar agree and setup-nav-hub-parity is green unchanged. en.ts gains title-only sms and lifecycle blocks (their other strings still come from the manifest literals); no manifest is touched.
  • ADR-0057 anchor: its symbol anchor setup-nav.contributions.ts#group_people_org now points at setup.app.ts#group_people_org, where the retired id is still declared (renamedFrom). One line; docs/adr/** makes this PR Tier H.

Tests

Union on af54fa3e (local, targeted; CI runs the farm):

service-settings: 79 files, 1547 tests passed (hub parity green, unchanged); typecheck clean

pnpm --filter @objectstack/service-settings exec vitest run --maxWorkers=2 : Test Files 79 passed, Tests 1547 passed. pnpm --filter @objectstack/service-settings typecheck : exit 0. knowledge-turso settings-contribution.test.ts (reads the real settings bundles): 27 passed.

platform-objects: 132 files, 2313 tests passed

pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 : Test Files 132 passed, Tests 2313 passed.

composed pins (on e2ed19b, no platform-objects change since): cli 23, service-knowledge 53, plugin-security 5, plugin-audit 3 passed; check-app-nav-i18n OK; check:i18n OK on af54fa3
  • cli: connect-agent-both-halves-wire, console-page-nav-entries, setup-diagnostics-audience, setup-integrations-order, setup-landing-audience, format.server-ready-dev-admin-audience: 23 passed.
  • node packages/cli/scripts/check-app-nav-i18n.mjs: OK (14 contributors, 11 locales; setup 63 merged nav ids, every id labelled in every locale).
  • pnpm check:i18n: OK (10 packages, all bundles in sync, no undeclared authoring keys).
Ablation (each red, each restored, `git diff HEAD` empty)

Title change, -- vitest run src/setup-nav-hub-parity.test.ts:

  • restore zh-CN mail title 邮件投递: 1 failed (zh-CN parity, { ns: 'mail', hub: '邮件投递' });
  • delete en's title-only sms block: 1 failed (en parity, ns: 'sms'), proving the en block is what overrides the manifest literal.

New nav pins, -- vitest run src/apps/setup-platform-items-39057.test.ts:

  • drop Users from Users & Organization: 1 failed (order);
  • point Currency & Units' contribution at group_configuration: 2 failed (retired id, order);
  • drop zh-CN Work Queues' alias: 1 failed;
  • restore zh-CN 邮件投递 label: 2 failed (table, rename);
  • reintroduce nav_settings_hub in place of Public Forms: 3 failed incl. hub absence;
  • cut Business Units' aliases to one: 1 failed.

Acceptance notes

Verification

Two minutes: pnpm --filter @objectstack/platform-objects exec vitest run src/apps/setup-platform-items-39057.test.ts should report 26 passed. Read first: setup-nav.contributions.ts (group ids and priorities), translations/zh-CN.ts (setup block), service-settings/src/translations/en.ts (the two title-only blocks).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF

…clares the retired id (#39057)

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

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/platform-objects, @objectstack/service-settings, touching 70 documentable anchor(s).

41 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json b98173cea88f0cdc9fbe1a80a6bf1214396c1472.

⛔ 16 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (literal, 60 pages)
  • 6 name(s) were too generic to anchor anything (single lowercase words)
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json b98173cea88f0cdc9fbe1a80a6bf1214396c1472 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 8defacf7aee7fe4767223d4a50befccf890d7d9a — the merge of head b1624cecad0abbcd434fd33b86417d5c7a2034df into base b98173cea88f0cdc9fbe1a80a6bf1214396c1472, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 8defacf7aee7fe4767223d4a50befccf890d7d9a && git checkout 8defacf7aee7fe4767223d4a50befccf890d7d9a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin b98173cea88f0cdc9fbe1a80a6bf1214396c1472 b1624cecad0abbcd434fd33b86417d5c7a2034df && git checkout -B drift-repro b98173cea88f0cdc9fbe1a80a6bf1214396c1472 && git merge --no-ff b1624cecad0abbcd434fd33b86417d5c7a2034df

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

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

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

…etup names

company, localization, auth, mail, sms, ai and lifecycle now carry the
same title as their Setup nav entry in all 11 locales, so the hub card,
the page heading and the sidebar agree (#27854 parity). en gains
title-only blocks for sms and lifecycle; the manifests are untouched.

Claude-Session: https://claude.ai/code/session_01WGufzeZMKeDN64azVSgNLF
Co-authored-by: Claude <noreply@anthropic.com>
The settings pages' titles and hub cards changed in the shipped
@objectstack/service-settings translations, so the changeset releases
that package too and says what readers see.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF

2026-12-02T17:07Z · Final green head for L1: af54fa3e (every check run success or expected skip: 40 success, 18 skipped; mergeable clean). Zone osa-setup asks osa-L1-a for the L1 read. Tier H (docs/adr/**): after L1 the seat hands it to the maintainer for the human merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review — REWORK on af54fa3e782f6326b9cb39809a7d3cf4ab322ce0 (a missing changeset entry owes a fix head)

Check-runs: 40 success, 18 expected-skip, 0 failed, 0 pending. mergeable_state clean. 1,764 lines. Governed (docs/adr/**): the one-line anchor repoint in ADR-0057 (setup-nav.contributions.ts#group_people_org → setup.app.ts#group_people_org) makes it Tier H, which the body's 速读 says.

  • S1 (should-fix): @objectstack/service-settings ships changed strings with no changeset entry. l1-face flags it, and this one is real. Its 11 src/translations/*.ts change settings page titles: Mail Delivery → Email Channel, Company → Company Information, Localization → Language & Region, Authentication → Sign-in Methods, …, plus a new sms.title. That package publishes dist, so the renamed titles reach every install. The changeset releases @objectstack/platform-objects only, and its "Renamed, in every shipped locale" list names these titles as if platform-objects shipped them. Fix: add '@objectstack/service-settings': patch to .changeset/39057-setup-platform-items-regrouped.md. Saying the settings pages' own titles change too would make the rename sentence true for both packages.
    The other two packages in the flag are tests only: @objectstack/cli (two test/*.pin.test.ts) and @objectstack/service-knowledge (one __tests__). Nothing they ship changes.

A contract L2 is owed on the fix head. The governed path owes a CONTRACT_REVIEW_TIER record. I will run it in-house on the fix head, since a changeset edit moves the head and a record on this one would not cover it.

Verified on the tree; this stands on the fix head:

  • Contributions. setup-nav.contributions.ts names the ten new group ids directly, so no entry draws nav_contribution_group_renamed. The order follows amendment 7350990872: Q1 A renames the 7 settings titles with the parity guard unchanged, and Q2 A puts 当前组织 last in 用户与组织. setup.app.ts gains the groups' renamedFrom / keywords.
  • Old names as aliases. Every renamed entry carries its former name in keywords, using the source word on the entry and each locale's former name on that locale's bundle entry. That is the add rule from feat(app-shell): the command palette finds a nav entry by its old name and shows its group path #39163's ruling 7347779833. The source hashes move with the bundles.
  • nav_settings_hub has left the navigation. Its address still opens the hub, and the dead-key tombstone test pins it.
  • The ADR-0057 edit is an anchor repoint only. The prose around it is unchanged and still true, because group_people_org is now declared in setup.app.ts.
  • Declarations. Clause-②: no and Metadata-protocol: none stand: nothing changes in the declared shape, and no export moves.

Relation. Fixes #39057. Tier H: after the fix head, its L2 and my L1 delta, the seat hands it to the maintainer.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 8de9342 · 2026-12-02T18:22Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 8de93424a3470fc13b1cdf38dd6eb512b0aad2c2
Local-runs: none
Scope: docs/adr/0057-erp-authorization-core-business-units-and-scope-depth.md + packages/platform-objects/src/apps/setup.app.ts, packages/platform-objects/src/apps/setup-nav.contributions.ts, packages/platform-objects/src/apps/setup-platform-items-39057.test.ts, packages/platform-objects/src/apps/translations/{en,zh-CN,zh-Hant,ja-JP,ko,es-ES,fr,pt-BR,ru,de,ar}.ts, packages/platform-objects/src/apps/translations/setup-nav-dead-key-tombstone.test.ts, packages/services/service-settings/src/setup-nav-hub-parity.test.ts, packages/services/service-settings/src/translations/{en,zh-CN,zh-Hant,ja-JP,ko,es-ES,fr,pt-BR,ru,de,ar}.ts
Security-touching: yes

Read on this head: card #39057 (body, claim 7347722827, reports 7350917471 and 7352125469, amendment 7350990872), epic #39050 (table, ruling 7336749035 D1–D4), seat ruling 7347779833 on #39055, PR #39161 (body, file list, net diff against merge base b706ec6, 48 files).

⚠️ Two facts about the head, before anything else:

  • The PR head has moved. GitHub reports the PR head as d72ca56e0bf159f4fc846a9b4ea0a222d09fc54d ("Merge origin/main into claude/issue-39057-setup-platform-items", 18:20Z), one commit above the head this record names. This record covers 8de93424 only; it does not cover d72ca56e.
  • 8de93424 carries no check-run at all (check-runs total 0, no Actions run for that sha, read 18:26Z). The last head with concluded gates is af54fa3e (58 check-runs: 40 success, 18 skipped, 0 failed). git diff af54fa3e 8de93424 is the changeset file alone (+3 lines: the @objectstack/service-settings front-matter line and one paragraph), so every gate family except Check Changeset read the same tree on af54fa3e; Check Changeset has no verdict on the changeset as it now stands. On d72ca56e the Actions suites were queued or in progress at read time (ten suites, one success, one skipped, the rest running), no check-run concluded. Nothing below is a gate verdict for either head; the gate verdicts are owed by the check-runs of the head that is merged.

Security-touching: yes is meant: changed hunks in setup-nav.contributions.ts and in the cli pin setup-diagnostics-audience.pin.test.ts state permission behaviour (which entry carries manage_platform_settings, that a group gate prunes its subtree, which caller is served which entry), and gated entries move between gated and ungated groups. No audience change was found (see ①).

① Derived judgments

  • Accept sets: none widens, none narrows. keywords on a nav item, on a group and on a translation bundle node is declared on main (Navigation items accept search aliases, per locale (Setup redesign #39050) #39052: packages/spec/src/ui/app.zod.ts navKeywordsSchema, packages/spec/src/system/translation.zod.ts). The diff writes data inside that shape; no packages/spec/** path is in the diff. Right.
  • SETUP_NAV_CONTRIBUTIONS (exported data). 29 entries on main, 28 on the head: the 28 are the same ids, nav_settings_hub is the one removed, none duplicated. Every contribution names one of the ten group ids of setup.app.ts directly; none names a retired id. Right.
  • Who is served each entry does not change. Read entry by entry against main: every requiredPermissions, requiresObject, requiresService, visible, url, objectName, viewName, componentRef and params is unchanged; only label, keywords, group and priority move. The moves across group gates: nav_api_keys (own gate manage_platform_settings) and nav_public_forms (same) enter group_integrations_dev, whose gate is that same permission; nav_sessions and nav_notifications leave for ungated groups and keep their own manage_platform_settings; the ungated entries (company, localization, calendars, rates, units, access policy, recycle bin) came from a group that resolved to an ungated anchor and land in ungated anchors. No entry is served to a caller it was not served to. Right.
  • Group, order, names against the epic's table. Rows 1–10, platform-owned entries only: Users & Organization = 公司信息, 用户, 邀请, 团队, 业务单元, 所有组织, then 当前组织 (amendment Q2 A); Access & Sharing = 岗位与权限; Apps & AI = 已安装应用 (100) … AI 模型服务 (300); Audit & Data = 回收站, 数据保留, 文件存储 at 200 behind plugin-audit's Audit Log at 100; Company Settings = 语言与区域, 工作日历, 节假日与调休 at 200 behind Branding at 110; Currency & Units = 汇率, 计量单位, 标准单位小数位; Notifications = 邮件通道, 短信通道 (200), 发送记录 (400); Login & Security = 登录方式, 访问策略, 在线会话; Integrations & Developer = API 密钥, OAuth 应用 (100), 对外表单 (500). Each matches the table's relative order. Right.
  • Renames, 11 locales. Compared main against the head mechanically for every bundle: the 12 platform entries change label in all 11 locales; the 4 plugin entries (nav_position_holders, nav_permission_set_assignment, nav_record_shares, nav_queues) change in the 10 translated locales and keep the plugin's literal in en. In every translated locale the bundle node's keywords holds exactly the label main served. In en the former label sits on the item (nav_notifications carries both Notification Events, the literal, and Notifications, what the en bundle served). Right, and valid under the add rule of 7347779833.
  • D4. nav_business_units keeps its label and carries Department / Organization Structure / Division on the item and three aliases on each of the 10 translated nodes (zh-CN 部门 / 组织架构 / 事业部). Right.
  • Old group names. The seven groups with renamedFrom carry the retired groups' names; checked against the bundles at the parent of cef9a80 (Setup navigation has ten new group anchors; a contribution to a retired group id still lands in the right group (#39050) #39053), all 10 translated locales and the source list match the labels those groups had. group_overview's name has no carrier: see S1.
  • nav_settings_hub. Out of the contributions, out of all 11 bundles and their recorded hashes, added to the dead-id ledger; the only remaining mention in shipped code is a docblock in ui/apps/console/src/AppContent.tsx, outside the diff. The route itself is not in the diff. Right.
  • Settings titles (amendment Q1 A). settings.NAMESPACE.title for company, localization, auth, mail, sms, ai, lifecycle in the 11 service-settings bundles, title lines only; en.ts gains title-only sms and lifecycle blocks. No manifest in the diff. Right.
  • Parity guard. setup-nav-hub-parity.test.ts: its five assertions are byte-identical; only the reader changed, from the one group group_company to every node of the merged Setup tree. That is the same rule on a wider read (a second entry for a namespace, or an entry for an unlisted namespace, is now caught in any group), so its meaning is unchanged and nothing is exempted. Right.

② Semver level

.changeset/39057-setup-platform-items-regrouped.md: @objectstack/platform-objects patch, @objectstack/service-settings patch, Clause-②: no, Metadata-protocol: none; the PR body carries the same Clause-②: no line. That matches what the diff publishes: navigation data, labels and titles inside declared shapes, one navigation entry and its bundle key retired, no export added or removed, no accept set moved. The two packages named are the two whose published files change; the cli and service-knowledge changes are tests. The round-1 gap (service-settings translations published with no entry) is closed by 8de93424. Patch is the right level, and the changeset says what an administrator sees.

Clause-②: no — agreed.

③ Boundary flags

④ Design judgment

docs/adr/0057-erp-authorization-core-business-units-and-scope-depth.md (hit). One line: the symbol anchor in the 2026-06-21 addendum moves from setup-nav.contributions.ts#group_people_org to setup.app.ts#group_people_org. Holds. After this diff setup-nav.contributions.ts no longer contains the id, and setup.app.ts declares it in code (renamedFrom: ['group_people_org'] on group_users_org), so the anchor resolves outside comments and leads the reader to the group that took the retired id over, which is the true account of where that menu is now. The sentence it sits in is the addendum's dated problem statement ("Left unaddressed, all three land flat in …"), not a rule, and it is not made untrue by the move. The other ADR-0057 sentences about the Setup menu, read against the head: D10's nav_business_units "carries requiresObject: 'sys_business_unit'" still holds in setup-nav.contributions.ts; the anchor setup-nav.contributions.ts#nav_organizations still resolves; D9's "floor / ceiling / tenant" entries (Users, Teams, Business Units, Organizations, Invitations) are all still in the one group. Company Information entering that group as its first entry is maintainer ruling 3 of the epic and is a settings page, not a fourth org-shaped object, so D9–D11 are not contradicted. The file's two other anchors into setup-nav.contributions.ts are untouched and correct.

setup-nav.contributions.ts. Agrees with the epic's table and rulings sentence by sentence (①). The header's slot plan is honest about which neighbours are other packages' and which priority leaves them room. Tried to break it: an entry losing its gate by leaving a gated group (none: every such entry carries its own, ①); a tie that reorders platform entries (none inside this file; the 100/100 tie between Installed Apps and the marketplace's Browse entry exists on main already and is #39058's); an entry dropped or doubled (28 = 29 − 1).

setup.app.ts. Seven keywords lines, one per group with renamedFrom, each the retired group's source name; inside the claimed surface (group keywords only). The added comment's last sentence is where S1 sits.

Bundles, hashes, ledger. Labels, per-locale former labels and D4 aliases are as ①. setup-nav-dead-key-tombstone.test.ts gains the retired id, which is that ledger's own rule.

service-settings titles and the parity test. As ①. The title-only en blocks for sms and lifecycle are the narrowest way to rename without touching a fenced manifest; the cost is N3.

setup-platform-items-39057.test.ts. Pins what the card accepts: groups, fold order, slots, zh-CN labels against the table, new label plus former-label alias for 16 entries in 11 locales, D4, group aliases with an exhaustiveness check against renamedFrom, hub absence with a control. It does not pin the one old group name that has no group to carry it (S1).

Findings:

  • S1 (should-fix) — the old group name 总览 / 總覽 is not searchable in zh-CN and zh-Hant, and the comment that says it is does not hold there. The card accepts "Every renamed item and old group name has aliases in 11 locales". group_overview retired with no successor, and the new comment in setup.app.ts reasons that it "left no group to carry its name; the pinned System Overview entry already contains it". That is true of the source label (System Overview contains Overview) and of nine bundles (ja-JP システム概要 / 概要, ko, es-ES, ar, fr, pt-BR, ru, de), and false of two: zh-CN's group was 总览 and the entry reads 系统概览; zh-Hant's was 總覽 and the entry reads 系統概覽. No node carries either word, so an administrator searching the name that group had finds nothing, in the locale the epic was tested in. Fix inside the claimed surface: keywords on the nav_system_overview bundle node in zh-CN (['总览']) and zh-Hant (['總覽']), or in all ten for uniformity; the comment in setup.app.ts corrected to say where the name is carried; one test case in setup-platform-items-39057.test.ts that the former name of group_overview is a substring of the entry's label or one of its keywords in every locale.
  • N1 (nit) — ADR-0057's addendum still calls the menu group_people_org (the anchored sentence and D9's "stays in the group_people_org baseline") with no word that the id is retired into group_users_org. The anchor now lands on the line that shows it, so a reader is not misled. Accepted deviation; the anchor gate's own header says not to repair prose to clear it.
  • N2 (nit) — ja-JP and ko group_users_org carry a keyword equal to the label (ユーザーと組織, 사용자 및 조직): the retired group had the same name in those locales. Redundant, harmless, and pinned by the test's uniform rule. Likewise 公司 on 公司信息. Accepted deviation.
  • N3 (nit) — stale prose beside the change: platform-objects en.ts section comments "Configuration" / "Diagnostics" above entries that moved; the settings manifests' label literals keep the former names, masked by en.ts. Follow-up with Setup › 邮件投递 shows Provider = SMTP while its own banner says no mail leaves (the live transport is the dev log) #39044 and the manifest owners.

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

Implemented-by: claude/issue-39057-setup-platform-items
Reviewed-by: session_01WGufzhGA3zoCFquQgku4pm

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 delta — REWORK on 8de93424a3470fc13b1cdf38dd6eb512b0aad2c2 (one should-fix owes a fix head)

My round-1 S1 is closed. 8de93424 adds '@objectstack/service-settings': patch and a true paragraph about the settings pages' own titles. A correction to my round-1 record: setup.app.ts gains the groups' keywords only, not renamedFrom, which was already there from #39053.

The contract L2 at CONTRACT_REVIEW_TIER on this head is the record dispatched just before this one (request fw-20261202T182925Z-2e5bd2). It is PASS with S1 open. 8de93424 has no check-runs at all: GitHub started no suite for it. af54fa3e, one changeset file below it, was 40 success and 0 failed. The PR head is now d72ca56e, a merge of main. I will judge it as a pure-merge delta once its CI concludes.

S1 (should-fix), which I concur with. The retired group name 总览 / 總覽 is not searchable in zh-CN or zh-Hant. group_overview retired with no successor, and the new comment in setup.app.ts says the pinned System Overview entry "already contains it". That holds for the English source and nine bundles, but not for zh-CN (系统概览) or zh-Hant (系統概覽). The card accepts "every … old group name has aliases in 11 locales". Fix, inside the claimed surface: add keywords on the nav_system_overview bundle node in those two locales, correct the comment, and add one case to setup-platform-items-39057.test.ts.

Read with #39163 (its L2 S1). The palette there reads keywords on six entry kinds, and group is not one of them. So the group aliases this PR writes are served but not yet matched until #39163 settles its S1.

Carried to the seat:

Tier H (governed): after the fix head, its delta and my L1 delta, the seat hands it to the maintainer.

…in zh-CN and zh-Hant

The pinned System Overview entry carries 总览 / 總覽 in keywords, the two
locales whose entry label does not contain the former group name. The
setup.app.ts comment now says so; a test pins it in every locale.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeZMKeDN64azVSgNLF

2026-12-02T19:28Z · Round-4 green head for L1 delta: b1624cec (58 check runs: 40 success, 18 skipped, 0 failure). Built on d72ca56e (zone's pure merge of main) without rebase.

  • Answers L1 REWORK S1 (claim amendment 2): nav_system_overview zh-CN node { label: '系统概览', keywords: ['总览'] }, zh-Hant { label: '系統概覽', keywords: ['總覽'] }; the nine other locales already contain the retired Overview name in the entry label (lower-case match). setup.app.ts comment corrected (comment only). New test pins the name per locale; ablation of each zh keyword turns it red. Dev report 7356143098.
  • PR body updated: Verification line 26 passed, one alias sentence. 1792 changed lines ≤ 3000. Tier H (docs/adr/**): after L1 the seat hands it to the maintainer for the human merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head b1624ce · 2026-12-02T19:29Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b1624cecad0abbcd434fd33b86417d5c7a2034df
Local-runs: none
Scope: docs/adr/0057-erp-authorization-core-business-units-and-scope-depth.md + packages/platform-objects/src/apps/setup.app.ts, packages/platform-objects/src/apps/setup-nav.contributions.ts, packages/platform-objects/src/apps/setup-platform-items-39057.test.ts, packages/platform-objects/src/apps/translations/{en,zh-CN,zh-Hant,ja-JP,ko,es-ES,fr,pt-BR,ru,de,ar}.ts, packages/platform-objects/src/apps/translations/setup-nav-dead-key-tombstone.test.ts, packages/services/service-settings/src/setup-nav-hub-parity.test.ts, packages/services/service-settings/src/translations/{en,zh-CN,zh-Hant,ja-JP,ko,es-ES,fr,pt-BR,ru,de,ar}.ts
Security-touching: yes

Delta record. It follows the record on 8de93424 and covers the two commits above it: d72ca56e (merge of origin/main b98173c; first parent 8de93424) and b1624cec (the S1 fix). Read: git diff d72ca56e b1624cec (4 files), git diff 8de93424 d72ca56e restricted to the PR's files, dev report 7356143098 on card #39057, and the check-runs on b1624cec. Everything the earlier record judged and this delta does not touch stands as judged there.

Security-touching: yes is carried from the earlier record for the same hunks (the PR's net diff still states permission-gate behaviour in setup-nav.contributions.ts and the cli audience pin). The delta itself adds none: two bundle keywords, one comment, one test.

① Derived judgments

  • Check-runs on b1624cec: all concluded, none failed. 62 check-runs at read time: 42 success, 20 skipped, 0 failure, none queued or in progress. Check Changeset has two runs, both success, so the changeset as it now stands has its verdict (the gap the earlier record named on 8de93424). Success: Test Core and its 12 shards, TypeScript Type Check, Type Check · workspace / source gates / consumer gates / debt ledger, Lint & Repo Gates and the eight Lint · families, Build Core, Test UI, Live E2E UI, Dogfood Regression Gate, Check Changeset, Check PR Size, Check Documentation Links, Flag docs affected by code changes, PR-body guards, Governed Surface Queue Guard, Auto Label, Plan Test Core shards, filter. The PR head GitHub reports is b1624cec, the head this record names.
  • The merge changes no judgment. git diff 8de93424 d72ca56e over the 48 files of the PR is empty: the merge touched none of them. Of the files it did bring, none is the Setup shell, a nav contribution, the nav merge, the keywords schema, the settings bundles or ADR-0057; under packages/platform-objects/src/apps/ it changed only the eleven generated object bundles (*.objects.generated.ts), which hold object and field labels, not apps.setup.navigation. The net diff against main is still 48 files (+1140 / −652).
  • Accept sets and public surface: unchanged by the delta. Two keywords arrays on existing bundle nodes, inside the shape main declares (Navigation items accept search aliases, per locale (Setup redesign #39050) #39052). No entry, gate, group, priority, label or export moves. Right.

② Semver level

Unchanged: @objectstack/platform-objects patch, @objectstack/service-settings patch, Clause-②: no. The delta adds two search aliases in one package already named at patch; the changeset's sentence "each group that took a retired group over carries that group's former name" stays true, and the alias for the group that no group took over is within "every old name stays searchable". Check Changeset: success.

Clause-②: no — agreed.

③ Boundary flags

④ Design judgment

S1: closed

  • Both locales now carry the name. zh-CN nav_system_overview is { label: '系统概览', keywords: ['总览'] } and zh-Hant is { label: '系統概覽', keywords: ['總覽'] }. 总览 and 總覽 are the labels group_overview had in those bundles at the parent of cef9a80. The label is kept beside the keywords, as every other aliased node in these bundles does.
  • The nine-plus-source claim holds, each read on the head. en System Overview contains Overview; ja-JP システム概要 contains 概要; ko 시스템 개요 contains 개요; es-ES Resumen del Sistema contains Resumen; ar نظرة عامة على النظام contains نظرة عامة; fr Aperçu du système contains Aperçu; pt-BR Visão geral do sistema contains Visão geral; ru Обзор системы contains Обзор; de Systemübersicht contains Übersicht when case is folded, which is how the palette matches. The source literal in setup.app.ts is System Overview. The German case depends on that case fold alone; the test states the same rule, so the two cannot drift apart silently.
  • The corrected comment is true. It now says the pinned entry carries the name: in its label "in most locales", and in the bundle node's keywords where it does not, naming zh-CN 总览 and zh-Hant 總覽. Both halves match the tree. Comment text only; the item is unchanged.
  • The new test pins it per locale. For each of the 11 locales it takes the former group name and requires it as a case-folded substring of the entry's label or as one of the node's keywords, then pins the two zh nodes exactly. Tried to break it: removing either keyword fails the loop and the exact pin; changing a label in any of the nine so that it no longer contains the name fails the loop for that locale; a wrong word in keywords fails both. The former names in the test's table are the ones at the parent of cef9a80, checked against that tree in the earlier round.

Nits carried from the earlier record, unchanged and still accepted as written there: N1 (ADR-0057's addendum names the retired id with no word that it is retired), N2 (ja-JP and ko group_users_org keyword equal to the label), N3 (stale section comments in en.ts; manifest literals keep the former names).

No must-fix, no should-fix.

Implemented-by: claude/issue-39057-setup-platform-items
Reviewed-by: session_01WGufzhGA3zoCFquQgku4pm

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 delta — ACCEPT on b1624cecad0abbcd434fd33b86417d5c7a2034df

The contract-tier delta record on this head was posted just before this one. It is PASS and closes S1; no must-fix and no should-fix remain. That answers my REWORK 7354902924. Check-runs: 42 success, 20 expected-skip, 0 failed, 0 pending. Both Check Changeset runs succeeded.

Verified on the tree:

  • d72ca56e is a pure merge of main. git merge-tree --write-tree equals its tree, its first parent is 8de93424 (the head the round-3 L2 covered), and it moves none of the PR's 48 files.
  • S1. b1624cec gives nav_system_overview keywords: ['总览'] in zh-CN and ['總覽'] in zh-Hant. The other nine bundles and the English source contain the retired Overview name inside the entry's label. In German, Systemübersicht contains it under the palette's case-folded match. The setup.app.ts comment now says this, and it is a comment-only change. The new case in setup-platform-items-39057.test.ts checks the name in all 11 locales and pins the two zh nodes exactly.

Carried to the seat:

Governed (docs/adr/**), Tier H. The seat hands it to the maintainer.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

席位核对

ACCEPT — PR #39161 @ b1624cecad (Fixes #39057, epic #39050; zone osa-setup, claim 7347722827 with amendments 7350990872 and 2). Checked 2026-12-02T19:35Z against GitHub.

  • Shape: draft, mergeable_state clean, 48 files, +1140/−652 = 1,792 lines. Clause-②: no, Metadata-protocol: none.
  • What lands: the platform-owned Setup items move to their new groups under the epic's new names, in 11 locales. Every old name stays searchable as keywords, and nav_settings_hub is removed. Per amendment 7350990872, the seven renamed settings pages take the new names as their page and hub titles, so the hub-parity guard stays unchanged, and 当前组织 stays last in 用户与组织.
  • Reviews: contract delta PASS 7356347114 and L1 delta ACCEPT 7356382761, both on this head; no must-fix or should-fix remain.
  • Gates: 42 success · 20 expected skip · 0 failed (both Check Changeset runs success); landing-k K = 0. l1-face flags changeset for @objectstack/cli and @objectstack/service-knowledge; it does not hold, because all three files there are tests.
  • Carried, outside this PR: the five epic-table names no card owns (概览, 应用市场, 品牌外观, 审批委派, 权限集) went to the new epic owner, os-justin, on mailbox pm:mailbox — repo:objectstack@os-justin · os-justin #38811. The group keywords this PR writes become searchable when feat(app-shell): the command palette finds a nav entry by its old name and shows its group path #39163 (Command palette finds a Setup page by its old name and shows 「分组 › 页面」 on each result (#39050) #39055) lands its group reader; both ship in the same release.
  • Landing: Tier H, because of one governed path: docs/adr/0057-… has its anchor repointed (+1/−1). Handed off to os-zhuang.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

维护者速读

@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 Dec 2, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 2, 2026 19:38
@os-zhuang
os-zhuang marked this pull request as ready for review December 2, 2026 21:28
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit afc64fc Dec 2, 2026
70 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-39057-setup-platform-items branch December 2, 2026 21:55
os-justin pushed a commit that referenced this pull request Dec 3, 2026
…9059)

Setup was regrouped into ten groups and several entries were renamed
(#39092, #39161, #39202). Each Setup path that named a retired group or
an old entry name now names the group and entry Setup shows on main.

Claude-Session: https://claude.ai/code/session_01QSeKYnrQ7UMtHofKQVjcH2
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/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Platform-owned Setup items sit in their new groups under the new names; every old name stays searchable (#39050)

3 participants